Class: PlatformAPI::AddonAction
- Inherits:
-
Object
- Object
- PlatformAPI::AddonAction
- Defined in:
- lib/platform-api/client.rb
Overview
Add-on Actions are lifecycle operations for add-on provisioning and deprovisioning. They allow add-on providers to (de)provision add-ons in the background and then report back when (de)provisioning is complete.
Instance Method Summary collapse
-
#deprovision(addon_id_or_addon_name) ⇒ Object
Mark an add-on as deprovisioned.
-
#initialize(client) ⇒ AddonAction
constructor
A new instance of AddonAction.
-
#provision(addon_id_or_addon_name) ⇒ Object
Mark an add-on as provisioned for use.
Constructor Details
#initialize(client) ⇒ AddonAction
Returns a new instance of AddonAction.
877 878 879 |
# File 'lib/platform-api/client.rb', line 877 def initialize(client) @client = client end |
Instance Method Details
#deprovision(addon_id_or_addon_name) ⇒ Object
Mark an add-on as deprovisioned.
891 892 893 |
# File 'lib/platform-api/client.rb', line 891 def deprovision(addon_id_or_addon_name) @client.addon_action.deprovision(addon_id_or_addon_name) end |
#provision(addon_id_or_addon_name) ⇒ Object
Mark an add-on as provisioned for use.
884 885 886 |
# File 'lib/platform-api/client.rb', line 884 def provision(addon_id_or_addon_name) @client.addon_action.provision(addon_id_or_addon_name) end |