@@ -86,60 +86,6 @@ type CustomActionsTriggerDefinitionsConnection struct {
8686 TotalCount int
8787}
8888
89- // type CustomActionsWebhookActionCreateInput struct {
90- // Name string `json:"name" yaml:"name" default:"Page The On Call"`
91- // Description *string `json:"description,omitempty" yaml:"description,omitempty" default:"Pages The On Call"`
92- // LiquidTemplate string `json:"liquidTemplate" yaml:"liquidTemplate" default:"{\"token\": \"XXX\", \"ref\":\"main\", \"action\": \"rollback\"}"`
93- // WebhookURL string `json:"webhookUrl" yaml:"webhookUrl" default:"https://api.pagerduty.com/incidents"`
94- // HTTPMethod CustomActionsHttpMethodEnum `json:"httpMethod" yaml:"httpMethod" default:"POST"`
95- // Headers JSON `json:"headers" yaml:"headers" default:"{\"accept\": \"application/vnd.pagerduty+json;version=2\",\"authorization\":\"Token token=XXXXXXXXXXXXX\",\"from\":\"[email protected] \"}"` 96- // }
97-
98- // type CustomActionsWebhookActionUpdateInput struct {
99- // Id ID `json:"id"`
100- // Name *string `json:"name,omitempty"`
101- // Description *string `json:"description,omitempty"`
102- // LiquidTemplate *string `json:"liquidTemplate,omitempty"`
103- // WebhookURL *string `json:"webhookUrl,omitempty"`
104- // HTTPMethod CustomActionsHttpMethodEnum `json:"httpMethod,omitempty"`
105- // Headers *JSON `json:"headers,omitempty"`
106- // }
107-
108- // type CustomActionsTriggerDefinitionCreateInput struct {
109- // Name string `json:"name" yaml:"name" default:"Page The On Call"`
110- // Description *string `json:"description,omitempty" yaml:"description,omitempty" default:"Pages the On Call"`
111- // Owner ID `json:"ownerId" yaml:"ownerId" default:"XXX_owner_id_XXX"`
112- // // In the API actionID is `ID!` but that's because of the CustomActionsWebhookActionCreateInput
113- // // But we are not implementing that because it is used for the UI, so we need to enforce an actionId is given
114- // Action ID `json:"actionId" yaml:"actionId"`
115- // Filter *ID `json:"filterId,omitempty" yaml:"filterId,omitempty"`
116- // // This is being explicitly left out to reduce the complexity of the implementation
117- // // action *CustomActionsWebhookActionCreateInput
118- // ManualInputsDefinition string `json:"manualInputsDefinition" yaml:"manualInputsDefinition"`
119- // Published *bool `json:"published,omitempty" yaml:"published,omitempty"`
120- // AccessControl CustomActionsTriggerDefinitionAccessControlEnum `json:"accessControl" yaml:"accessControl"`
121- // ResponseTemplate string `json:"responseTemplate" yaml:"responseTemplate"`
122- // EntityType CustomActionsEntityTypeEnum `json:"entityType" yaml:"entityType"`
123- // ExtendedTeamAccess *[]IdentifierInput `json:"extendedTeamAccess,omitempty" yaml:"extendedTeamAccess,omitempty"`
124- // }
125-
126- // type CustomActionsTriggerDefinitionUpdateInput struct {
127- // Id ID `json:"id"`
128- // Name *string `json:"name,omitempty"`
129- // Description *string `json:"description,omitempty"`
130- // Owner *ID `json:"ownerId,omitempty" yaml:"ownerId,omitempty"`
131- // Action *ID `json:"actionId,omitempty" yaml:"actionId,omitempty"`
132- // Filter *ID `json:"filterId,omitempty" yaml:"filterId,omitempty"`
133- // // This is being explicitly left out to reduce the complexity of the implementation
134- // // action *CustomActionsWebhookActionCreateInput
135- // ManualInputsDefinition *string `json:"manualInputsDefinition,omitempty" yaml:"manualInputsDefinition,omitempty"`
136- // Published *bool `json:"published,omitempty" yaml:"published,omitempty"`
137- // AccessControl CustomActionsTriggerDefinitionAccessControlEnum `json:"accessControl,omitempty" yaml:"accessControl,omitempty" default:"service_owners"`
138- // ResponseTemplate *string `json:"responseTemplate,omitempty" yaml:"responseTemplate,omitempty"`
139- // EntityType CustomActionsEntityTypeEnum `json:"entityType,omitempty" yaml:"entityType,omitempty"`
140- // ExtendedTeamAccess *[]IdentifierInput `json:"extendedTeamAccess,omitempty" yaml:"extendedTeamAccess,omitempty" default:"[\"alias\":\"team_alias_1\",\"id\":\"XXX_team_id_XXX\"]"`
141- // }
142-
14389func (client * Client ) CreateWebhookAction (input CustomActionsWebhookActionCreateInput ) (* CustomActionsExternalAction , error ) {
14490 var m struct {
14591 Payload struct {
0 commit comments