Class: PlatformAPI::AllowedAddonService
- Inherits:
-
Object
- Object
- PlatformAPI::AllowedAddonService
- Defined in:
- lib/platform-api/client.rb
Overview
Entities that have been allowed to be used by a Team
Instance Method Summary collapse
-
#create_by_team(team_name_or_team_id, body = {}) ⇒ Object
Allow an Add-on Service.
-
#delete_by_team(team_name_or_team_id, allowed_addon_service_id_or_addon_service_name) ⇒ Object
Remove an allowed add-on service.
-
#initialize(client) ⇒ AllowedAddonService
constructor
A new instance of AllowedAddonService.
-
#list_by_team(team_name_or_team_id) ⇒ Object
List all allowed add-on services for a team.
Constructor Details
#initialize(client) ⇒ AllowedAddonService
Returns a new instance of AllowedAddonService.
1186 1187 1188 |
# File 'lib/platform-api/client.rb', line 1186 def initialize(client) @client = client end |
Instance Method Details
#create_by_team(team_name_or_team_id, body = {}) ⇒ Object
Allow an Add-on Service
1201 1202 1203 |
# File 'lib/platform-api/client.rb', line 1201 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
1209 1210 1211 |
# File 'lib/platform-api/client.rb', line 1209 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
1193 1194 1195 |
# File 'lib/platform-api/client.rb', line 1193 def list_by_team(team_name_or_team_id) @client.allowed_addon_service.list_by_team(team_name_or_team_id) end |