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):
        """
        Create a new CredentialInstance

        :param CredentialInstance.PushService type: The Credential type
        :param unicode friendly_name: A string to describe the resource
        :param unicode certificate: [APN only] The URL-encoded representation of the certificate
        :param unicode private_key: [APN only] URL-encoded representation of the private key
        :param bool sandbox: [APN only] Whether to send the credential to sandbox APNs
        :param unicode api_key: [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging
        :param unicode secret: [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging

        :returns: Newly created CredentialInstance
        :rtype: twilio.rest.notify.v1.credential.CredentialInstance
        """
        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, )
Create a new CredentialInstance

        :param CredentialInstance.PushService type: The Credential type
        :param unicode friendly_name: A string to describe the resource
        :param unicode certificate: [APN only] The URL-encoded representation of the certificate
        :param unicode private_key: [APN only] URL-encoded representation of the private key
        :param bool sandbox: [APN only] Whether to send the credential to sandbox APNs
        :param unicode api_key: [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging
        :param unicode secret: [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging

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