Class: 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?
optionalcreatedTime?:$Properties|null
The date and time when the custom role was created.
id
id:
string
The id of the custom role.
lastModifiedTime?
optionallastModifiedTime?:$Properties|null
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?
optionalspec?:$Properties|null
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()
Call Signature
staticcreate(properties?):CustomRole&$Properties
Creates a new CustomRole instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CustomRole & $Properties
CustomRole instance
Call Signature
staticcreate(properties?):CustomRole
Creates a new CustomRole instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CustomRole
CustomRole instance
decode()
staticdecode(reader,length?):CustomRole&$Properties
Decodes a CustomRole message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message 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()
staticdecodeDelimited(reader):CustomRole&$Properties
Decodes a CustomRole message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader 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()
staticencode(message,writer?):Writer
Encodes the specified CustomRole message. Does not implicitly temporal.api.cloud.identity.v1.CustomRole.verify|verify messages.
Parameters
message
CustomRole message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CustomRole message, length delimited. Does not implicitly temporal.api.cloud.identity.v1.CustomRole.verify|verify messages.
Parameters
message
CustomRole message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CustomRole
Creates a CustomRole message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
CustomRole
CustomRole
toObject()
statictoObject(message,options?):object
Creates a plain object from a CustomRole message. Also converts values to other types if specified.
Parameters
message
CustomRole
CustomRole
options?
IConversionOptions
Conversion options
Returns
object
Plain object