Class: PlatformAPI::AddonRegionCapability

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

Overview

Add-on region capabilities represent the relationship between an Add-on Service and a specific Region. Only Beta and GA add-ons are returned by these endpoints.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AddonRegionCapability

Returns a new instance of AddonRegionCapability.



984
985
986
# File 'lib/platform-api/client.rb', line 984

def initialize(client)
  @client = client
end

Instance Method Details

#listObject

List all existing add-on region capabilities.



989
990
991
# File 'lib/platform-api/client.rb', line 989

def list()
  @client.addon_region_capability.list()
end

#list_by_addon_service(addon_service_id_or_addon_service_name) ⇒ Object

List existing add-on region capabilities for an add-on-service

Parameters:

  • addon_service_id_or_addon_service_name:

    unique identifier of this add-on-service or unique name of this add-on-service



996
997
998
# File 'lib/platform-api/client.rb', line 996

def list_by_addon_service(addon_service_id_or_addon_service_name)
  @client.addon_region_capability.list_by_addon_service(addon_service_id_or_addon_service_name)
end

#list_by_region(region_id_or_region_name) ⇒ Object

List existing add-on region capabilities for a region.

Parameters:

  • region_id_or_region_name:

    unique identifier of region or unique name of region



1003
1004
1005
# File 'lib/platform-api/client.rb', line 1003

def list_by_region(region_id_or_region_name)
  @client.addon_region_capability.list_by_region(region_id_or_region_name)
end