lib/twilio-ruby/rest/ip_messaging/v2/credential.rb in twilio-ruby-5.25.4 vs lib/twilio-ruby/rest/ip_messaging/v2/credential.rb in twilio-ruby-5.26.0

- old
+ new

@@ -113,16 +113,16 @@ # @param [String] friendly_name A descriptive string that you create to describe # the new resource. It can be up to 64 characters long. # @param [String] certificate [APN only] The URL encoded representation of the # certificate. For example, # `-----BEGIN CERTIFICATE----- - # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== + # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== # -----END CERTIFICATE-----` # @param [String] private_key [APN only] The URL encoded representation of the # private key. For example, # `-----BEGIN RSA PRIVATE KEY----- - # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. + # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... # -----END RSA PRIVATE KEY-----` # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox # APNs. Can be `true` to send to sandbox APNs or `false` to send to production. # @param [String] api_key [GCM only] The API key for the project that was obtained # from the Google Developer console for your GCM Service application credential. @@ -187,12 +187,11 @@ class CredentialContext < InstanceContext ## # Initialize the CredentialContext # @param [Version] version Version that contains the resource - # @param [String] sid The Twilio-provided string that uniquely identifies the - # Credential resource to fetch. + # @param [String] sid The SID of the Credential resource to fetch. # @return [CredentialContext] CredentialContext def initialize(version, sid) super(version) # Path Solution @@ -220,16 +219,16 @@ # @param [String] friendly_name A descriptive string that you create to describe # the resource. It can be up to 64 characters long. # @param [String] certificate [APN only] The URL encoded representation of the # certificate. For example, # `-----BEGIN CERTIFICATE----- - # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== + # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== # -----END CERTIFICATE-----` # @param [String] private_key [APN only] The URL encoded representation of the # private key. For example, # `-----BEGIN RSA PRIVATE KEY----- - # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. + # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... # -----END RSA PRIVATE KEY-----` # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox # APNs. Can be `true` to send to sandbox APNs or `false` to send to production. # @param [String] api_key [GCM only] The API key for the project that was obtained # from the Google Developer console for your GCM Service application credential. @@ -255,11 +254,11 @@ CredentialInstance.new(@version, payload, sid: @solution[:sid], ) end ## # Deletes the CredentialInstance - # @return [Boolean] true if delete succeeds, true otherwise + # @return [Boolean] true if delete succeeds, false otherwise def delete @version.delete('delete', @uri) end ## @@ -280,12 +279,11 @@ class CredentialInstance < InstanceResource ## # Initialize the CredentialInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio - # @param [String] sid The Twilio-provided string that uniquely identifies the - # Credential resource to fetch. + # @param [String] sid The SID of the Credential resource to fetch. # @return [CredentialInstance] CredentialInstance def initialize(version, payload, sid: nil) super(version) # Marshaled Properties @@ -345,17 +343,17 @@ def sandbox @properties['sandbox'] end ## - # @return [Time] The RFC 2822 date and time in GMT when the resource was created + # @return [Time] The ISO 8601 date and time in GMT when the resource was created def date_created @properties['date_created'] end ## - # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated + # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated def date_updated @properties['date_updated'] end ## @@ -376,16 +374,16 @@ # @param [String] friendly_name A descriptive string that you create to describe # the resource. It can be up to 64 characters long. # @param [String] certificate [APN only] The URL encoded representation of the # certificate. For example, # `-----BEGIN CERTIFICATE----- - # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== + # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== # -----END CERTIFICATE-----` # @param [String] private_key [APN only] The URL encoded representation of the # private key. For example, # `-----BEGIN RSA PRIVATE KEY----- - # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. + # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... # -----END RSA PRIVATE KEY-----` # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox # APNs. Can be `true` to send to sandbox APNs or `false` to send to production. # @param [String] api_key [GCM only] The API key for the project that was obtained # from the Google Developer console for your GCM Service application credential. @@ -403,10 +401,10 @@ ) end ## # Deletes the CredentialInstance - # @return [Boolean] true if delete succeeds, true otherwise + # @return [Boolean] true if delete succeeds, false otherwise def delete context.delete end ## \ No newline at end of file