Class: Account
Represents an Account.
Properties
asyncOperationId
• asyncOperationId: string
The id of the async operation that is updating the account, if any.
id
• id: string
The id of the account.
metrics
• Optional metrics: null | $Properties
Information related to metrics.
resourceVersion
• resourceVersion: string
The current version of the account specification. The next update operation will have to include this version.
spec
• Optional spec: null | $Properties
The account specification.
state
• state: ResourceState
The current state of the account.
Methods
toJSON
▸ toJSON(): Object
Converts this Account to JSON.
Returns
Object
JSON object
create
▸ create(properties?): Account & $Properties
Creates a new Account instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
Account instance
▸ create(properties?): Account
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): Account & $Properties
Decodes an Account 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
Account
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): Account & $Properties
Decodes an Account message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
Account
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 Account message. Does not implicitly temporal.api.cloud.account.v1.Account.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Account message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified Account message, length delimited. Does not implicitly temporal.api.cloud.account.v1.Account.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | Account message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): Account
Creates an Account message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
Account
toObject
▸ toObject(message, options?): Object
Creates a plain object from an Account message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | Account | Account |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object