'Initialize the CredentialInstance
:returns: twilio.rest.chat.v1.credential.CredentialInstance
:rtype: twilio.rest.chat.v1.credential.CredentialInstance'

def __init__(self, version, payload, sid=None):

    super(CredentialInstance, self).__init__(version)
    self._properties = {'sid': payload['sid'], 'account_sid': payload['account_sid'], 'friendly_name': payload['friendly_name'], 'type': payload['type'], 'sandbox': payload['sandbox'], 'date_created': deserialize.iso8601_datetime(payload['date_created']), 'date_updated': deserialize.iso8601_datetime(payload['date_updated']), 'url': payload['url']}
    self._context = None
    self._solution = {'sid': (sid or self._properties['sid'])}
