Class: NgrokAPI::Services::TlsCertificatesClient
- Inherits:
-
Object
- Object
- NgrokAPI::Services::TlsCertificatesClient
- Defined in:
- lib/ngrokapi/services/tls_certificates_client.rb
Overview
A client for interacting with the tls_certificates API
Constant Summary collapse
- LIST_PROPERTY =
The List Property from the resulting API for list calls
'tls_certificates'
- PATH =
The API path for tls certificates
'/tls_certificates'
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#create(certificate_pem: '', description: '', metadata: '', private_key_pem: '') ⇒ NgrokAPI::Models::TlsCertificate
Upload a new TLS certificate.
-
#delete(id: nil) ⇒ nil
Delete a TLS certificate by ID.
-
#delete!(id: nil) ⇒ nil
Delete a TLS certificate by ID.
-
#get(id: nil) ⇒ NgrokAPI::Models::TlsCertificate
Get detailed information about a TLS certificate by ID.
-
#get!(id: nil) ⇒ NgrokAPI::Models::TlsCertificate
Get detailed information about a TLS certificate by ID.
-
#initialize(client:) ⇒ TlsCertificatesClient
constructor
A new instance of TlsCertificatesClient.
-
#list(before_id: nil, limit: nil, url: nil) ⇒ NgrokAPI::Models::Listable
List all TLS certificates on this account.
-
#update(id: nil, description: nil, metadata: nil) ⇒ NgrokAPI::Models::TlsCertificate
Update attributes of a TLS Certificate by ID.
-
#update!(id: nil, description: nil, metadata: nil) ⇒ NgrokAPI::Models::TlsCertificate
Update attributes of a TLS Certificate by ID.
Constructor Details
#initialize(client:) ⇒ TlsCertificatesClient
Returns a new instance of TlsCertificatesClient.
17 18 19 |
# File 'lib/ngrokapi/services/tls_certificates_client.rb', line 17 def initialize(client:) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
15 16 17 |
# File 'lib/ngrokapi/services/tls_certificates_client.rb', line 15 def client @client end |
Instance Method Details
#create(certificate_pem: '', description: '', metadata: '', private_key_pem: '') ⇒ NgrokAPI::Models::TlsCertificate
Upload a new TLS certificate.