Module: SentryApi::Client::Teams
- Included in:
- SentryApi::Client
- Defined in:
- lib/sentry-api/client/teams.rb
Instance Method Summary collapse
-
#create_project(team_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new project bound to a team.
-
#delete_team(team_slug) ⇒ Object
Schedules a team for deletion.
-
#team(team_slug) ⇒ SentryApi::ObjectifiedHash
Return details on an individual team.
-
#team_projects(team_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of projects bound to a team.
-
#update_team(team_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Update various attributes and configurable settings for the given team.
Instance Method Details
#create_project(team_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Create a new project bound to a team.
15 16 17 |
# File 'lib/sentry-api/client/teams.rb', line 15 def create_project(team_slug, ={}) post("/teams/#{@default_org_slug}/#{team_slug}/projects/", body: ) end |
#delete_team(team_slug) ⇒ Object
Schedules a team for deletion
25 26 27 |
# File 'lib/sentry-api/client/teams.rb', line 25 def delete_team(team_slug) delete("/teams/#{@default_org_slug}/#{team_slug}/") end |
#team(team_slug) ⇒ SentryApi::ObjectifiedHash
Return details on an individual team.
47 48 49 |
# File 'lib/sentry-api/client/teams.rb', line 47 def team(team_slug) get("/teams/#{@default_org_slug}/#{team_slug}/") end |
#team_projects(team_slug) ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of projects bound to a team
36 37 38 |
# File 'lib/sentry-api/client/teams.rb', line 36 def team_projects(team_slug) get("/teams/#{@default_org_slug}/#{team_slug}/projects/") end |
#update_team(team_slug, options = {}) ⇒ SentryApi::ObjectifiedHash
Update various attributes and configurable settings for the given team.
61 62 63 |
# File 'lib/sentry-api/client/teams.rb', line 61 def update_team(team_slug, ={}) get("/teams/#{@default_org_slug}/#{team_slug}/", body: ) end |