new RoleContext(version, serviceSid, sid)
Initialize the RoleContext
Parameters:
Name | Type | Description |
---|---|---|
version |
V2 | Version of the resource |
serviceSid |
sid | The SID of the Service to fetch the resource from |
sid |
sid | The SID of the Role resource to fetch |
- Source:
Methods
fetch(callbackopt) → {Promise}
fetch a RoleInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed RoleInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a RoleInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed RoleInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
- Source:
Returns:
Object
update(opts, callbackopt) → {Promise}
update a RoleInstance
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
object | Options for request
Properties
|
|||||||
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed RoleInstance
- Type
- Promise