'Initialize the DocumentPermissionInstance
:returns: twilio.rest.sync.v1.service.document.document_permission.DocumentPermissionInstance
:rtype: twilio.rest.sync.v1.service.document.document_permission.DocumentPermissionInstance'

def __init__(self, version, payload, service_sid, document_sid, identity=None):

    super(DocumentPermissionInstance, self).__init__(version)
    self._properties = {'account_sid': payload['account_sid'], 'service_sid': payload['service_sid'], 'document_sid': payload['document_sid'], 'identity': payload['identity'], 'read': payload['read'], 'write': payload['write'], 'manage': payload['manage'], 'url': payload['url']}
    self._context = None
    self._solution = {'service_sid': service_sid, 'document_sid': document_sid, 'identity': (identity or self._properties['identity'])}
