def create(self, type, friendly_name=values.unset, certificate=values.unset,<EOL>private_key=values.unset, sandbox=values.unset, api_key=values.unset,<EOL>secret=values.unset):
data = values.of({<EOL>'<STR_LIT>': type,<EOL>'<STR_LIT>': friendly_name,<EOL>'<STR_LIT>': certificate,<EOL>'<STR_LIT>': private_key,<EOL>'<STR_LIT>': sandbox,<EOL>'<STR_LIT>': api_key,<EOL>'<STR_LIT>': secret,<EOL>})<EOL>payload = self._version.create(<EOL>'<STR_LIT:POST>',<EOL>self._uri,<EOL>data=data,<EOL>)<EOL>return CredentialInstance(self._version, payload, )<EOL>
Create a new CredentialInstance

:param CredentialInstance.PushService type: Credential type, one of "gcm" or "apn"
:param unicode friendly_name: Friendly name for stored credential
:param unicode certificate: [APN only] URL encoded representation of the certificate, e.
:param unicode private_key: [APN only] URL encoded representation of the private key, e.
:param bool sandbox: [APN only] use this credential for sending to production or sandbox APNs
:param unicode api_key: [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
:param unicode secret: The secret

:returns: Newly created CredentialInstance
:rtype: twilio.rest.chat.v1.credential.CredentialInstance