'Create a new CredentialInstance
:param CredentialInstance.PushService type: The type
:param unicode friendly_name: The friendly_name
:param unicode certificate: The certificate
:param unicode private_key: The private_key
:param bool sandbox: The sandbox
:param unicode api_key: The api_key
:param unicode secret: The secret
:returns: Newly created CredentialInstance
:rtype: twilio.rest.chat.v2.credential.CredentialInstance'

def create(self, type, friendly_name=values.unset, certificate=values.unset, private_key=values.unset, sandbox=values.unset, api_key=values.unset, secret=values.unset):

    data = values.of({'Type': type, 'FriendlyName': friendly_name, 'Certificate': certificate, 'PrivateKey': private_key, 'Sandbox': sandbox, 'ApiKey': api_key, 'Secret': secret})
    payload = self._version.create('POST', self._uri, data=data)
    return CredentialInstance(self._version, payload)
