Class: PlatformAPI::AllowedAddonService

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

Overview

Entities that have been allowed to be used by a Team

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AllowedAddonService

Returns a new instance of AllowedAddonService.



1179
1180
1181
# File 'lib/platform-api/client.rb', line 1179

def initialize(client)
  @client = client
end

Instance Method Details

#create_by_team(team_name_or_team_id, body = {}) ⇒ Object

Allow an Add-on Service

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team

  • body:

    the object to pass as the request payload



1194
1195
1196
# File 'lib/platform-api/client.rb', line 1194

def create_by_team(team_name_or_team_id, body = {})
  @client.allowed_addon_service.create_by_team(team_name_or_team_id, body)
end

#delete_by_team(team_name_or_team_id, allowed_addon_service_id_or_addon_service_name) ⇒ Object

Remove an allowed add-on service

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team

  • allowed_addon_service_id_or_addon_service_name:

    unique identifier for this allowed add-on service record or unique name of this add-on-service



1202
1203
1204
# File 'lib/platform-api/client.rb', line 1202

def delete_by_team(team_name_or_team_id, allowed_addon_service_id_or_addon_service_name)
  @client.allowed_addon_service.delete_by_team(team_name_or_team_id, allowed_addon_service_id_or_addon_service_name)
end

#list_by_team(team_name_or_team_id) ⇒ Object

List all allowed add-on services for a team

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



1186
1187
1188
# File 'lib/platform-api/client.rb', line 1186

def list_by_team(team_name_or_team_id)
  @client.allowed_addon_service.list_by_team(team_name_or_team_id)
end