Class: PlatformAPI::Team
- Inherits:
-
Object
- Object
- PlatformAPI::Team
- 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
-
#create(body = {}) ⇒ Object
Create a new team.
-
#create_in_enterprise_account(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object
Create a team in an enterprise account.
-
#delete(team_name_or_team_id) ⇒ Object
Delete an existing team.
-
#info(team_name_or_team_id) ⇒ Object
Info for a team.
-
#initialize(client) ⇒ Team
constructor
A new instance of Team.
-
#list ⇒ Object
List teams in which you are a member.
-
#list_by_enterprise_account(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List teams for an enterprise account.
-
#update(team_name_or_team_id, body = {}) ⇒ Object
Update team properties.
Constructor Details
#initialize(client) ⇒ Team
Returns a new instance of Team.
3413 3414 3415 |
# File 'lib/platform-api/client.rb', line 3413 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new team.
3440 3441 3442 |
# File 'lib/platform-api/client.rb', line 3440 def create(body = {}) @client.team.create(body) end |
#create_in_enterprise_account(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object
Create a team in an enterprise account.
3462 3463 3464 |
# File 'lib/platform-api/client.rb', line 3462 def create_in_enterprise_account(enterprise_account_id_or_enterprise_account_name, body = {}) @client.team.create_in_enterprise_account(enterprise_account_id_or_enterprise_account_name, body) end |
#delete(team_name_or_team_id) ⇒ Object
Delete an existing team.
3447 3448 3449 |
# File 'lib/platform-api/client.rb', line 3447 def delete(team_name_or_team_id) @client.team.delete(team_name_or_team_id) end |
#info(team_name_or_team_id) ⇒ Object
Info for a team.
3425 3426 3427 |
# File 'lib/platform-api/client.rb', line 3425 def info(team_name_or_team_id) @client.team.info(team_name_or_team_id) end |
#list ⇒ Object
List teams in which you are a member.
3418 3419 3420 |
# File 'lib/platform-api/client.rb', line 3418 def list() @client.team.list() end |
#list_by_enterprise_account(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List teams for an enterprise account.
3454 3455 3456 |
# File 'lib/platform-api/client.rb', line 3454 def list_by_enterprise_account(enterprise_account_id_or_enterprise_account_name) @client.team.list_by_enterprise_account(enterprise_account_id_or_enterprise_account_name) end |
#update(team_name_or_team_id, body = {}) ⇒ Object
Update team properties.
3433 3434 3435 |
# File 'lib/platform-api/client.rb', line 3433 def update(team_name_or_team_id, body = {}) @client.team.update(team_name_or_team_id, body) end |