Class: PlatformAPI::WhitelistedAddonService
- Inherits:
-
Object
- Object
- PlatformAPI::WhitelistedAddonService
- Defined in:
- lib/platform-api/client.rb
Overview
Entities that have been whitelisted to be used by an Organization
Instance Method Summary collapse
-
#create(organization_name, body = {}) ⇒ Object
Whitelist an Add-on Service.
-
#delete(organization_name, whitelisted_addon_service_id_or_addon_service_name) ⇒ Object
Remove a whitelisted entity.
-
#initialize(client) ⇒ WhitelistedAddonService
constructor
A new instance of WhitelistedAddonService.
-
#list(organization_name) ⇒ Object
List all whitelisted Add-on Services for an Organization.
Constructor Details
#initialize(client) ⇒ WhitelistedAddonService
Returns a new instance of WhitelistedAddonService.
2360 2361 2362 |
# File 'lib/platform-api/client.rb', line 2360 def initialize(client) @client = client end |
Instance Method Details
#create(organization_name, body = {}) ⇒ Object
Whitelist an Add-on Service
2375 2376 2377 |
# File 'lib/platform-api/client.rb', line 2375 def create(organization_name, body = {}) @client.whitelisted_addon_service.create(organization_name, body) end |
#delete(organization_name, whitelisted_addon_service_id_or_addon_service_name) ⇒ Object
Remove a whitelisted entity
2383 2384 2385 |
# File 'lib/platform-api/client.rb', line 2383 def delete(organization_name, whitelisted_addon_service_id_or_addon_service_name) @client.whitelisted_addon_service.delete(organization_name, whitelisted_addon_service_id_or_addon_service_name) end |
#list(organization_name) ⇒ Object
List all whitelisted Add-on Services for an Organization
2367 2368 2369 |
# File 'lib/platform-api/client.rb', line 2367 def list(organization_name) @client.whitelisted_addon_service.list(organization_name) end |