new DocumentPermissionContext(version, serviceSid, documentSid, identity)
Initialize the DocumentPermissionContext
PLEASE NOTE that this class contains preview products that are subject to
change. Use them with caution. If you currently do not have developer preview
access, please contact help@twilio.com.
Parameters:
Name | Type | Description |
---|---|---|
version |
Sync | Version of the resource |
serviceSid |
sid | The service_sid |
documentSid |
sid_like | Sync Document SID or unique name. |
identity |
string | Identity of the user to whom the Sync Document Permission applies. |
Methods
fetch(callbackopt) → {Promise}
fetch a DocumentPermissionInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed DocumentPermissionInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a DocumentPermissionInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed DocumentPermissionInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object
update(opts, callbackopt) → {Promise}
update a DocumentPermissionInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options for request
Properties
|
|||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed DocumentPermissionInstance
- Type
- Promise