Class: NgrokAPI::Services::SSHUserCertificatesClient
- Inherits:
-
Object
- Object
- NgrokAPI::Services::SSHUserCertificatesClient
- Defined in:
- lib/ngrokapi/services/ssh_user_certificates_client.rb
Overview
SSH User Certificates are presented by SSH clients when connecting to an SSH
server to authenticate their connection. The SSH server must trust the SSH
Certificate Authority used to sign the certificate.
Constant Summary collapse
- PATH =
The API path for the requests
'/ssh_user_certificates'- LIST_PROPERTY =
The List Property from the resulting API for list calls
'ssh_user_certificates'
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#create(ssh_certificate_authority_id:, public_key:, principals: [], critical_options: {}, extensions: {}, valid_after: "", valid_until: "", description: "", metadata: "") ⇒ NgrokAPI::Models::SSHUserCertificate
Create a new SSH User Certificate.
-
#delete(id: "") ⇒ NgrokAPI::Models::Empty
Delete an SSH User Certificate.
-
#delete!(id: "") ⇒ NgrokAPI::Models::Empty
Delete an SSH User Certificate Throws an exception if API error.
-
#get(id: "") ⇒ NgrokAPI::Models::SSHUserCertificate
Get detailed information about an SSH User Certficate.
-
#get!(id: "") ⇒ NgrokAPI::Models::SSHUserCertificate
Get detailed information about an SSH User Certficate Throws an exception if API error.
-
#initialize(client:) ⇒ SSHUserCertificatesClient
constructor
A new instance of SSHUserCertificatesClient.
-
#list(before_id: nil, limit: nil, url: nil) ⇒ NgrokAPI::Models::Listable
List all SSH User Certificates issued on this account.
-
#update(id: "", description: nil, metadata: nil) ⇒ NgrokAPI::Models::SSHUserCertificate
Update an SSH User Certificate.
-
#update!(id: "", description: nil, metadata: nil) ⇒ NgrokAPI::Models::SSHUserCertificate
Update an SSH User Certificate Throws an exception if API error.
Constructor Details
#initialize(client:) ⇒ SSHUserCertificatesClient
Returns a new instance of SSHUserCertificatesClient.
19 20 21 |
# File 'lib/ngrokapi/services/ssh_user_certificates_client.rb', line 19 def initialize(client:) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
17 18 19 |
# File 'lib/ngrokapi/services/ssh_user_certificates_client.rb', line 17 def client @client end |
Instance Method Details
#create(ssh_certificate_authority_id:, public_key:, principals: [], critical_options: {}, extensions: {}, valid_after: "", valid_until: "", description: "", metadata: "") ⇒ NgrokAPI::Models::SSHUserCertificate
Create a new SSH User Certificate