Sha256: b8625a7b5d14fc18af57d2745769022c0bf2b0d8216557f2f43a17ba9cce6146
Contents?: true
Size: 1.38 KB
Versions: 6
Compression:
Stored size: 1.38 KB
Contents
# frozen_string_literal: true module NgrokAPI module Models class SSHCertificateAuthority attr_reader :client, :result, :id, :uri, :created_at, :description, :metadata, :public_key, :key_type def initialize(client:, result:) @client = client @result = result @id = @result['id'] @uri = @result['uri'] @created_at = @result['created_at'] @description = @result['description'] @metadata = @result['metadata'] @public_key = @result['public_key'] @key_type = @result['key_type'] end def ==(other) @result == other.result end def to_s @result.to_s end ## # Delete an SSH Certificate Authority # # https://ngrok.com/docs/api#api-ssh-certificate-authorities-delete def delete @client.delete( id: @id ) end ## # Update an SSH Certificate Authority # # https://ngrok.com/docs/api#api-ssh-certificate-authorities-update def update( description: nil, metadata: nil ) @description = description if description @metadata = metadata if metadata @client.update( id: @id, description: description, metadata: metadata ) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems