From b4cb42ca19c7c565d40883a99ff5a9542a45028b Mon Sep 17 00:00:00 2001 From: Brandon Waskiewicz Date: Wed, 29 Nov 2023 12:24:36 -0500 Subject: [PATCH] update heimweh/go-pagerduty to a11b2f7 --- go.mod | 2 +- go.sum | 4 +-- .../pagerduty/incident_workflow.go | 25 ++++++++++++++++--- vendor/modules.txt | 2 +- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index a7bc1bc7a..e90cd21c4 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/hashicorp/terraform-exec v0.16.0 github.com/hashicorp/terraform-json v0.13.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.11.0 - github.com/heimweh/go-pagerduty v0.0.0-20231125004736-fa2590da432f + github.com/heimweh/go-pagerduty v0.0.0-20231201163338-a11b2f79dfcf ) require ( diff --git a/go.sum b/go.sum index d2682ef5c..48b359598 100644 --- a/go.sum +++ b/go.sum @@ -250,8 +250,8 @@ github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/heimweh/go-pagerduty v0.0.0-20231125004736-fa2590da432f h1:vxbb7MQHNvhgBJ7RlN6ZmvDbP87ez+U2ZMWRwSjX9zE= -github.com/heimweh/go-pagerduty v0.0.0-20231125004736-fa2590da432f/go.mod h1:r59w5iyN01Qvi734yA5hZldbSeJJmsJzee/1kQ/MK7s= +github.com/heimweh/go-pagerduty v0.0.0-20231201163338-a11b2f79dfcf h1:LyQb5eb/+R5VSA7aP5bBjDW4nHndclJQ2bG5N4lGmik= +github.com/heimweh/go-pagerduty v0.0.0-20231201163338-a11b2f79dfcf/go.mod h1:r59w5iyN01Qvi734yA5hZldbSeJJmsJzee/1kQ/MK7s= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= diff --git a/vendor/github.com/heimweh/go-pagerduty/pagerduty/incident_workflow.go b/vendor/github.com/heimweh/go-pagerduty/pagerduty/incident_workflow.go index f19ee21d9..09b131c22 100644 --- a/vendor/github.com/heimweh/go-pagerduty/pagerduty/incident_workflow.go +++ b/vendor/github.com/heimweh/go-pagerduty/pagerduty/incident_workflow.go @@ -31,16 +31,35 @@ type IncidentWorkflowStep struct { // IncidentWorkflowActionConfiguration represents the configuration for an incident workflow action type IncidentWorkflowActionConfiguration struct { - ActionID string `json:"action_id,omitempty"` - Description *string `json:"description,omitempty"` - Inputs []*IncidentWorkflowActionInput `json:"inputs,omitempty"` + ActionID string `json:"action_id,omitempty"` + Description *string `json:"description,omitempty"` + Inputs []*IncidentWorkflowActionInput `json:"inputs,omitempty"` + InlineStepsInputs []*IncidentWorkflowActionInlineStepsInput `json:"inline_steps_inputs,omitempty"` } +// IncidentWorkflowActionInput represents the configuration for an incident workflow action input with a serialized string as the value type IncidentWorkflowActionInput struct { Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` } +// IncidentWorkflowActionInlineStepsInput represents the configuration for an incident workflow action input with a series of inlined steps as the value +type IncidentWorkflowActionInlineStepsInput struct { + Name string `json:"name,omitempty"` + Value *IncidentWorkflowActionInlineStepsInputValue `json:"value,omitempty"` +} + +// IncidentWorkflowActionInlineStepsInputValue represents the value for an inline_steps_input input +type IncidentWorkflowActionInlineStepsInputValue struct { + Steps []*IncidentWorkflowActionInlineStep `json:"steps,omitempty"` +} + +// IncidentWorkflowActionInlineStep represents a single step within an inline_steps_input input's value +type IncidentWorkflowActionInlineStep struct { + Name string `json:"name,omitempty"` + Configuration *IncidentWorkflowActionConfiguration `json:"action_configuration,omitempty"` +} + // ListIncidentWorkflowResponse represents a list response of incident workflows. type ListIncidentWorkflowResponse struct { Total int `json:"total,omitempty"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 273e4cc4b..076a1d2f0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -182,7 +182,7 @@ github.com/hashicorp/terraform-svchost # github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d ## explicit github.com/hashicorp/yamux -# github.com/heimweh/go-pagerduty v0.0.0-20231125004736-fa2590da432f +# github.com/heimweh/go-pagerduty v0.0.0-20231201163338-a11b2f79dfcf ## explicit; go 1.17 github.com/heimweh/go-pagerduty/pagerduty github.com/heimweh/go-pagerduty/persistentconfig