Class: PlatformAPI::SSLEndpoint
- Inherits:
-
Object
- Object
- PlatformAPI::SSLEndpoint
- Defined in:
- lib/platform-api/client.rb
Overview
SSL Endpoint is a public address serving custom SSL cert for HTTPS traffic to a Heroku app. Note that an app must have the ssl:endpoint
addon installed before it can provision an SSL Endpoint using these APIs.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new SSL endpoint.
-
#delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Delete existing SSL endpoint.
-
#info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Info for existing SSL endpoint.
-
#initialize(client) ⇒ SSLEndpoint
constructor
A new instance of SSLEndpoint.
-
#list(app_id_or_app_name) ⇒ Object
List existing SSL endpoints.
-
#update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body = {}) ⇒ Object
Update an existing SSL endpoint.
Constructor Details
#initialize(client) ⇒ SSLEndpoint
Returns a new instance of SSLEndpoint.
2272 2273 2274 |
# File 'lib/platform-api/client.rb', line 2272 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new SSL endpoint.
2280 2281 2282 |
# File 'lib/platform-api/client.rb', line 2280 def create(app_id_or_app_name, body = {}) @client.ssl_endpoint.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Delete existing SSL endpoint.
2288 2289 2290 |
# File 'lib/platform-api/client.rb', line 2288 def delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) @client.ssl_endpoint.delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) end |
#info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Info for existing SSL endpoint.
2296 2297 2298 |
# File 'lib/platform-api/client.rb', line 2296 def info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) @client.ssl_endpoint.info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) end |
#list(app_id_or_app_name) ⇒ Object
List existing SSL endpoints.
2303 2304 2305 |
# File 'lib/platform-api/client.rb', line 2303 def list(app_id_or_app_name) @client.ssl_endpoint.list(app_id_or_app_name) end |
#update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body = {}) ⇒ Object
Update an existing SSL endpoint.
2312 2313 2314 |
# File 'lib/platform-api/client.rb', line 2312 def update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body = {}) @client.ssl_endpoint.update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body) end |