Class: AccountAccess
Represents an AccountAccess.
Implements
Constructors
constructor
• new AccountAccess(properties?
): AccountAccess
Constructs a new AccountAccess.
Parameters
Name | Type | Description |
---|---|---|
properties? | IAccountAccess | Properties to set |
Returns
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
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
Name | Type | Description |
---|---|---|
properties? | IAccountAccess | Properties to set |
Returns
AccountAccess instance
decode
▸ decode(reader
, length?
): AccountAccess
Decodes an AccountAccess message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
Name | Type | Description |
---|---|---|
message | IAccountAccess | AccountAccess message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
message | IAccountAccess | AccountAccess message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
AccountAccess
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for AccountAccess
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your 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
Name | Type | Description |
---|---|---|
message | AccountAccess | AccountAccess |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object