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.
-
#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.
-
#update(team_name_or_team_id, body = {}) ⇒ Object
Update team properties.
Constructor Details
#initialize(client) ⇒ Team
Returns a new instance of Team.
3287 3288 3289 |
# File 'lib/platform-api/client.rb', line 3287 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new team.
3314 3315 3316 |
# File 'lib/platform-api/client.rb', line 3314 def create(body = {}) @client.team.create(body) end |
#delete(team_name_or_team_id) ⇒ Object
Delete an existing team.
3321 3322 3323 |
# File 'lib/platform-api/client.rb', line 3321 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.
3299 3300 3301 |
# File 'lib/platform-api/client.rb', line 3299 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.
3292 3293 3294 |
# File 'lib/platform-api/client.rb', line 3292 def list() @client.team.list() end |
#update(team_name_or_team_id, body = {}) ⇒ Object
Update team properties.
3307 3308 3309 |
# File 'lib/platform-api/client.rb', line 3307 def update(team_name_or_team_id, body = {}) @client.team.update(team_name_or_team_id, body) end |