Skip to content

Commit

Permalink
Merge pull request #11 from grafana/iskhakov/allow-edit-team
Browse files Browse the repository at this point in the history
Allow editing team for resources
  • Loading branch information
iskhakov authored Jun 23, 2023
2 parents 75ed784 + 19ee45c commit 8e60345
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type UpdateCustomActionOptions struct {
Password *string `json:"password"`
AuthorizationHeader *string `json:"authorization_header"`
ForwardWholePayload bool `json:"forward_whole_payload"`
TeamId string `json:"team_id"`
}

// UpdateCustomAction updates custom action
Expand Down
3 changes: 2 additions & 1 deletion escalation_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ func (service *EscalationChainService) CreateEscalationChain(opt *CreateEscalati
}

type UpdateEscalationChainOptions struct {
Name string `json:"name,omitempty"`
Name string `json:"name,omitempty"`
TeamId string `json:"team_id"`
}

// UpdateEscalationChain updates escalation chain with name.
Expand Down
1 change: 1 addition & 0 deletions integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (service *IntegrationService) CreateIntegration(opt *CreateIntegrationOptio

type UpdateIntegrationOptions struct {
Name string `json:"name,omitempty"`
TeamId string `json:"team_id"`
Templates *Templates `json:"templates,omitempty"`
DefaultRoute *DefaultRoute `json:"default_route,omitempty"`
}
Expand Down
1 change: 1 addition & 0 deletions on_call_shift.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (service *OnCallShiftService) CreateOnCallShift(opt *CreateOnCallShiftOptio
type UpdateOnCallShiftOptions struct {
Type string `json:"type"`
Name string `json:"name"`
TeamId string `json:"team_id"`
Level *int `json:"level,omitempty"`
Start string `json:"start"`
Duration int `json:"duration"`
Expand Down
1 change: 1 addition & 0 deletions schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (service *ScheduleService) CreateSchedule(opt *CreateScheduleOptions) (*Sch

type UpdateScheduleOptions struct {
Name string `json:"name,omitempty"`
TeamId string `json:"team_id"`
ICalUrlPrimary *string `json:"ical_url_primary"`
ICalUrlOverrides *string `json:"ical_url_overrides"`
TimeZone string `json:"time_zone,omitempty"`
Expand Down

0 comments on commit 8e60345

Please sign in to comment.