class PlatformAPI::AddonConfig

Configuration of an Add-on

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 955
def initialize(client)
  @client = client
end

Public Instance Methods

list(addon_id_or_addon_name) click to toggle source

Get an add-on's config. Accessible by customers with access and by the add-on partner providing this add-on.

@param addon_id_or_addon_name: unique identifier of add-on or globally unique name of the add-on

# File lib/platform-api/client.rb, line 962
def list(addon_id_or_addon_name)
  @client.addon_config.list(addon_id_or_addon_name)
end
update(addon_id_or_addon_name, body = {}) click to toggle source

Update an add-on's config. Can only be accessed by the add-on partner providing this add-on.

@param addon_id_or_addon_name: unique identifier of add-on or globally unique name of the add-on @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 970
def update(addon_id_or_addon_name, body = {})
  @client.addon_config.update(addon_id_or_addon_name, body)
end