Class: PlatformAPI::AddonRegionCapability
- Inherits:
-
Object
- Object
- PlatformAPI::AddonRegionCapability
- 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
-
#initialize(client) ⇒ AddonRegionCapability
constructor
A new instance of AddonRegionCapability.
-
#list ⇒ Object
List all existing add-on region capabilities.
-
#list_by_addon_service(addon_service_id_or_addon_service_name) ⇒ Object
List existing add-on region capabilities for an add-on-service.
-
#list_by_region(region_id_or_region_name) ⇒ Object
List existing add-on region capabilities for a region.
Constructor Details
#initialize(client) ⇒ AddonRegionCapability
Returns a new instance of AddonRegionCapability.
989 990 991 |
# File 'lib/platform-api/client.rb', line 989 def initialize(client) @client = client end |
Instance Method Details
#list ⇒ Object
List all existing add-on region capabilities.
994 995 996 |
# File 'lib/platform-api/client.rb', line 994 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
1001 1002 1003 |
# File 'lib/platform-api/client.rb', line 1001 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.
1008 1009 1010 |
# File 'lib/platform-api/client.rb', line 1008 def list_by_region(region_id_or_region_name) @client.addon_region_capability.list_by_region(region_id_or_region_name) end |