Class: CreateCustomRoleRequest
cloudservice.v1.CreateCustomRoleRequest
Represents a CreateCustomRoleRequest.
Implements
Constructors
constructor
• new CreateCustomRoleRequest(properties?): CreateCustomRoleRequest
Constructs a new CreateCustomRoleRequest.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | ICreateCustomRoleRequest | Properties to set |
Returns
Properties
asyncOperationId
• asyncOperationId: string
The ID to use for this async operation. Optional, if not provided a random ID will be generated.
Implementation of
ICreateCustomRoleRequest.asyncOperationId
spec
• Optional spec: null | ICustomRoleSpec
The specification for the custom role to create.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this CreateCustomRoleRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?): CreateCustomRoleRequest
Creates a new CreateCustomRoleRequest instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | ICreateCustomRoleRequest | Properties to set |
Returns
CreateCustomRoleRequest instance
decode
▸ decode(reader, length?): CreateCustomRoleRequest
Decodes a CreateCustomRoleRequest 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
CreateCustomRoleRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): CreateCustomRoleRequest
Decodes a CreateCustomRoleRequest message from the specified reader or buffer, length delimited.