class NgrokAPI::Models::TLSCertificate
Attributes
attrs[R]
certificate_pem[R]
client[R]
created_at[R]
description[R]
extended_key_usages[R]
id[R]
issued_at[R]
issuer_common_name[R]
key_usages[R]
metadata[R]
not_after[R]
not_before[R]
private_key_type[R]
serial_number[R]
subject_alternative_names[R]
subject_common_name[R]
subject_country[R]
subject_locality[R]
subject_organization[R]
subject_organizational_unit[R]
subject_province[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/tls_certificate.rb, line 30 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @uri = @attrs['uri'] @created_at = @attrs['created_at'] @description = @attrs['description'] @metadata = @attrs['metadata'] @certificate_pem = @attrs['certificate_pem'] @subject_common_name = @attrs['subject_common_name'] @subject_alternative_names = @attrs['subject_alternative_names'] @issued_at = @attrs['issued_at'] @not_before = @attrs['not_before'] @not_after = @attrs['not_after'] @key_usages = @attrs['key_usages'] @extended_key_usages = @attrs['extended_key_usages'] @private_key_type = @attrs['private_key_type'] @issuer_common_name = @attrs['issuer_common_name'] @serial_number = @attrs['serial_number'] @subject_organization = @attrs['subject_organization'] @subject_organizational_unit = @attrs['subject_organizational_unit'] @subject_locality = @attrs['subject_locality'] @subject_province = @attrs['subject_province'] @subject_country = @attrs['subject_country'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/tls_certificate.rb, line 56 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete a TLS certificate
ngrok.com/docs/api#api-tls-certificates-delete
# File lib/ngrokapi/models/tls_certificate.rb, line 72 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/tls_certificate.rb, line 64 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/tls_certificate.rb, line 60 def to_s @attrs.to_s end
update( description: nil, metadata: nil )
click to toggle source
Update attributes of a TLS Certificate by ID
ngrok.com/docs/api#api-tls-certificates-update
# File lib/ngrokapi/models/tls_certificate.rb, line 82 def update( description: nil, metadata: nil ) @description = description if description @metadata = metadata if metadata @client.update( id: @id, description: description, metadata: metadata ) end