Skip to main content

Class: AccountAccess

identity.v1.AccountAccess

Represents an AccountAccess.

Implements

Constructors

constructor

new AccountAccess(properties?): AccountAccess

Constructs a new AccountAccess.

Parameters

NameTypeDescription
properties?IAccountAccessProperties to set

Returns

AccountAccess

Properties

role

role: string

The role on the account, should be one of [admin, developer, read] admin - gives full access the account, including users and namespaces developer - gives access to create namespaces on the account read - gives read only access to the account

Implementation of

IAccountAccess.role

Methods

toJSON

toJSON(): Object

Converts this AccountAccess to JSON.

Returns

Object

JSON object


create

create(properties?): AccountAccess

Creates a new AccountAccess instance using the specified properties.

Parameters

NameTypeDescription
properties?IAccountAccessProperties to set

Returns

AccountAccess

AccountAccess instance


decode

decode(reader, length?): AccountAccess

Decodes an AccountAccess message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

AccountAccess

AccountAccess

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): AccountAccess

Decodes an AccountAccess message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

AccountAccess

AccountAccess

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified AccountAccess message. Does not implicitly temporal.api.cloud.identity.v1.AccountAccess.verify|verify messages.

Parameters

NameTypeDescription
messageIAccountAccessAccountAccess message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified AccountAccess message, length delimited. Does not implicitly temporal.api.cloud.identity.v1.AccountAccess.verify|verify messages.

Parameters

NameTypeDescription
messageIAccountAccessAccountAccess message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): AccountAccess

Creates an AccountAccess message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

AccountAccess

AccountAccess


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for AccountAccess

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

Creates a plain object from an AccountAccess message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageAccountAccessAccountAccess
options?IConversionOptionsConversion options

Returns

Object

Plain object