'Initialize the DocumentPermissionContext
:param Version version: Version that contains the resource
:param service_sid: The service_sid
:param document_sid: Sync Document SID or unique name.
:param identity: Identity of the user to whom the Sync Document Permission applies.
:returns: twilio.rest.preview.sync.service.document.document_permission.DocumentPermissionContext
:rtype: twilio.rest.preview.sync.service.document.document_permission.DocumentPermissionContext'

def __init__(self, version, service_sid, document_sid, identity):

    super(DocumentPermissionContext, self).__init__(version)
    self._solution = {'service_sid': service_sid, 'document_sid': document_sid, 'identity': identity}
    self._uri = '/Services/{service_sid}/Documents/{document_sid}/Permissions/{identity}'.format(**self._solution)
