Skip to main content

Class: CustomRole

identity.v1.CustomRole

Represents a CustomRole.

Properties

asyncOperationId

asyncOperationId: string

The id of the async operation that is creating/updating/deleting the custom role, if any.


createdTime

Optional createdTime: null | $Properties

The date and time when the custom role was created.


id

id: string

The id of the custom role.


lastModifiedTime

Optional lastModifiedTime: null | $Properties

The date and time when the custom role was last modified. Will not be set if the custom role has never been modified.


resourceVersion

resourceVersion: string

The current version of the custom role specification. The next update operation will have to include this version.


spec

Optional spec: null | $Properties

The custom role specification.


state

state: ResourceState

The current state of the custom role. For any failed state, reach out to Temporal Cloud support for remediation.

Methods

toJSON

toJSON(): Object

Converts this CustomRole to JSON.

Returns

Object

JSON object


create

create(properties?): CustomRole & $Properties

Creates a new CustomRole instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

CustomRole & $Properties

CustomRole instance

create(properties?): CustomRole

Parameters

NameType
properties?$Properties

Returns

CustomRole


decode

decode(reader, length?): CustomRole & $Properties

Decodes a CustomRole message from the specified reader or buffer.

Parameters

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

Returns

CustomRole & $Properties

CustomRole

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): CustomRole & $Properties

Decodes a CustomRole message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

CustomRole & $Properties

CustomRole

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 CustomRole message. Does not implicitly temporal.api.cloud.identity.v1.CustomRole.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesCustomRole message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
message$PropertiesCustomRole message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): CustomRole

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

CustomRole

CustomRole


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageCustomRoleCustomRole
options?IConversionOptionsConversion options

Returns

Object

Plain object