class NgrokAPI::Models::CertificateAuthority
Attributes
attrs[R]
ca_pem[R]
client[R]
created_at[R]
description[R]
extended_key_usages[R]
id[R]
key_usages[R]
metadata[R]
not_after[R]
not_before[R]
subject_common_name[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/certificate_authority.rb, line 20 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'] @ca_pem = @attrs['ca_pem'] @subject_common_name = @attrs['subject_common_name'] @not_before = @attrs['not_before'] @not_after = @attrs['not_after'] @key_usages = @attrs['key_usages'] @extended_key_usages = @attrs['extended_key_usages'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/certificate_authority.rb, line 36 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete a Certificate Authority
ngrok.com/docs/api#api-certificate-authorities-delete
# File lib/ngrokapi/models/certificate_authority.rb, line 52 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/certificate_authority.rb, line 44 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/certificate_authority.rb, line 40 def to_s @attrs.to_s end
update( description: nil, metadata: nil )
click to toggle source
Update attributes of a Certificate Authority by ID
ngrok.com/docs/api#api-certificate-authorities-update
# File lib/ngrokapi/models/certificate_authority.rb, line 62 def update( description: nil, metadata: nil ) @description = description if description @metadata = metadata if metadata @client.update( id: @id, description: description, metadata: metadata ) end