Class: PlatformAPI::SniEndpoint
- Inherits:
-
Object
- Object
- PlatformAPI::SniEndpoint
- Defined in:
- lib/platform-api/client.rb
Overview
SNI Endpoint is a public address serving a custom SSL cert for HTTPS traffic, using the SNI TLS extension, to a Heroku app.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new SNI endpoint.
-
#delete(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) ⇒ Object
Delete existing SNI endpoint.
-
#info(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) ⇒ Object
Info for existing SNI endpoint.
-
#initialize(client) ⇒ SniEndpoint
constructor
A new instance of SniEndpoint.
-
#list(app_id_or_app_name) ⇒ Object
List existing SNI endpoints.
-
#update(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name, body = {}) ⇒ Object
Update an existing SNI endpoint.
Constructor Details
#initialize(client) ⇒ SniEndpoint
Returns a new instance of SniEndpoint.
2864 2865 2866 |
# File 'lib/platform-api/client.rb', line 2864 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new SNI endpoint.
2872 2873 2874 |
# File 'lib/platform-api/client.rb', line 2872 def create(app_id_or_app_name, body = {}) @client.sni_endpoint.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) ⇒ Object
Delete existing SNI endpoint.
2880 2881 2882 |
# File 'lib/platform-api/client.rb', line 2880 def delete(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) @client.sni_endpoint.delete(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) end |
#info(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) ⇒ Object
Info for existing SNI endpoint.
2888 2889 2890 |
# File 'lib/platform-api/client.rb', line 2888 def info(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) @client.sni_endpoint.info(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name) end |
#list(app_id_or_app_name) ⇒ Object
List existing SNI endpoints.
2895 2896 2897 |
# File 'lib/platform-api/client.rb', line 2895 def list(app_id_or_app_name) @client.sni_endpoint.list(app_id_or_app_name) end |
#update(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name, body = {}) ⇒ Object
Update an existing SNI endpoint.
2904 2905 2906 |
# File 'lib/platform-api/client.rb', line 2904 def update(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name, body = {}) @client.sni_endpoint.update(app_id_or_app_name, sni_endpoint_id_or_sni_endpoint_name, body) end |