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
Instance Method Summary collapse
-
#initialize(client) ⇒ AddonRegionCapability
constructor
A new instance of AddonRegionCapability.
-
#list(region_id_or_region_name) ⇒ Object
List existing add-on region capabilities for a region.
-
#list_by_add_on_service(addon_service_id_or_addon_service_name) ⇒ Object
List existing add-on region capabilities for an addon-service.
Constructor Details
#initialize(client) ⇒ AddonRegionCapability
Returns a new instance of AddonRegionCapability.
730 731 732 |
# File 'lib/platform-api/client.rb', line 730 def initialize(client) @client = client end |
Instance Method Details
#list(region_id_or_region_name) ⇒ Object
List existing add-on region capabilities for a region.
737 738 739 |
# File 'lib/platform-api/client.rb', line 737 def list(region_id_or_region_name) @client.addon_region_capability.list(region_id_or_region_name) end |
#list_by_add_on_service(addon_service_id_or_addon_service_name) ⇒ Object
List existing add-on region capabilities for an addon-service
744 745 746 |
# File 'lib/platform-api/client.rb', line 744 def list_by_add_on_service(addon_service_id_or_addon_service_name) @client.addon_region_capability.list_by_add_on_service(addon_service_id_or_addon_service_name) end |