Class: PlatformAPI::WhitelistedAddonService

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Entities that have been whitelisted to be used by an Organization

Instance Method Summary collapse

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

Parameters:

  • organization_name:

    unique name of organization

  • body:

    the object to pass as the request payload



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

Parameters:

  • organization_name:

    unique name of organization

  • whitelisted_addon_service_id_or_addon_service_name:

    unique identifier for this whitelisting entity or unique name of this addon-service



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

Parameters:

  • organization_name:

    unique name of organization



2367
2368
2369
# File 'lib/platform-api/client.rb', line 2367

def list(organization_name)
  @client.whitelisted_addon_service.list(organization_name)
end