Class: CustomRoleSpec
Represents a CustomRoleSpec.
Properties
description
description:
string
The description of the custom role.
name
name:
string
The name of the custom role.
permissions
permissions:
$Properties[]
The permissions assigned to the custom role.
Methods
toJSON()
toJSON():
object
Converts this CustomRoleSpec to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):CustomRoleSpec&$Properties
Creates a new CustomRoleSpec instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CustomRoleSpec & $Properties
CustomRoleSpec instance
Call Signature
staticcreate(properties?):CustomRoleSpec
Creates a new CustomRoleSpec instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CustomRoleSpec
CustomRoleSpec instance
decode()
staticdecode(reader,length?):CustomRoleSpec&$Properties
Decodes a CustomRoleSpec 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
CustomRoleSpec & $Properties
CustomRoleSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):CustomRoleSpec&$Properties
Decodes a CustomRoleSpec message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
CustomRoleSpec & $Properties
CustomRoleSpec
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 CustomRoleSpec message. Does not implicitly temporal.api.cloud.identity.v1.CustomRoleSpec.verify|verify messages.
Parameters
message
CustomRoleSpec message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CustomRoleSpec message, length delimited. Does not implicitly temporal.api.cloud.identity.v1.CustomRoleSpec.verify|verify messages.
Parameters
message
CustomRoleSpec message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CustomRoleSpec
Creates a CustomRoleSpec message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
CustomRoleSpec
CustomRoleSpec
toObject()
statictoObject(message,options?):object
Creates a plain object from a CustomRoleSpec message. Also converts values to other types if specified.
Parameters
message
CustomRoleSpec
CustomRoleSpec
options?
IConversionOptions
Conversion options
Returns
object
Plain object