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 = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Create a new project bound to a team.
-
#delete_team(team_slug, organization_slug = "") ⇒ Object
Schedules a team for deletion.
-
#team(team_slug, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Return details on an individual team.
-
#team_projects(team_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of projects bound to a team.
-
#update_team(team_slug, options = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Update various attributes and configurable settings for the given team.
Instance Method Details
#create_project(team_slug, options = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Create a new project bound to a team.
16 17 18 19 |
# File 'lib/sentry-api/client/teams.rb', line 16 def create_project(team_slug, ={}, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" post("/teams/#{organization_slug}/#{team_slug}/projects/", body: ) end |
#delete_team(team_slug, organization_slug = "") ⇒ Object
Schedules a team for deletion
28 29 30 31 |
# File 'lib/sentry-api/client/teams.rb', line 28 def delete_team(team_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" delete("/teams/#{organization_slug}/#{team_slug}/") end |
#team(team_slug, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Return details on an individual team.
54 55 56 57 |
# File 'lib/sentry-api/client/teams.rb', line 54 def team(team_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/teams/#{organization_slug}/#{team_slug}/") end |
#team_projects(team_slug, organization_slug = "") ⇒ Array<SentryApi::ObjectifiedHash>
Return a list of projects bound to a team
41 42 43 44 |
# File 'lib/sentry-api/client/teams.rb', line 41 def team_projects(team_slug, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/teams/#{organization_slug}/#{team_slug}/projects/") end |
#update_team(team_slug, options = {}, organization_slug = "") ⇒ SentryApi::ObjectifiedHash
Update various attributes and configurable settings for the given team.
70 71 72 73 |
# File 'lib/sentry-api/client/teams.rb', line 70 def update_team(team_slug, ={}, organization_slug="") organization_slug = @default_org_slug if organization_slug == "" get("/teams/#{organization_slug}/#{team_slug}/", body: ) end |