Class: PlatformAPI::Team

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

Overview

Teams allow you to manage access to a shared group of applications and other resources.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Team

Returns a new instance of Team.



5197
5198
5199
# File 'lib/platform-api/client.rb', line 5197

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



5242
5243
5244
# File 'lib/platform-api/client.rb', line 5242

def create(body = {})
  @client.team.create(body)
end

#create_in_enterprise_account(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object



5280
5281
5282
# File 'lib/platform-api/client.rb', line 5280

def (, body = {})
  @client.team.(, body)
end

#delete(team_name_or_team_id) ⇒ Object



5254
5255
5256
# File 'lib/platform-api/client.rb', line 5254

def delete(team_name_or_team_id)
  @client.team.delete(team_name_or_team_id)
end

#info(team_name_or_team_id) ⇒ Object



5216
5217
5218
# File 'lib/platform-api/client.rb', line 5216

def info(team_name_or_team_id)
  @client.team.info(team_name_or_team_id)
end

#listObject

List teams in which you are a member.



5204
5205
5206
# File 'lib/platform-api/client.rb', line 5204

def list()
  @client.team.list()
end

#list_by_enterprise_account(enterprise_account_id_or_enterprise_account_name) ⇒ Object



5266
5267
5268
# File 'lib/platform-api/client.rb', line 5266

def ()
  @client.team.()
end

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



5230
5231
5232
# File 'lib/platform-api/client.rb', line 5230

def update(team_name_or_team_id, body = {})
  @client.team.update(team_name_or_team_id, body)
end