diff --git a/client/custom_fields.go b/client/custom_fields.go index 005500c..2069bbb 100644 --- a/client/custom_fields.go +++ b/client/custom_fields.go @@ -64,7 +64,7 @@ func (c *Client) CreateCustomField(d *CustomField) (*CustomField, error) { } func (c *Client) GetCustomField(id string) (*CustomField, error) { - req, err := rootlygo.NewGetCustomFieldRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetCustomFieldRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/dashboards.go b/client/dashboards.go index ee5369f..7f8c2ff 100644 --- a/client/dashboards.go +++ b/client/dashboards.go @@ -59,7 +59,7 @@ func (c *Client) CreateDashboard(dashboard *Dashboard) (*Dashboard, error) { } func (c *Client) GetDashboard(id string) (*Dashboard, error) { - req, err := rootlygo.NewGetDashboardRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetDashboardRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/escalation_paths.go b/client/escalation_paths.go index 3fffabb..993a3e3 100644 --- a/client/escalation_paths.go +++ b/client/escalation_paths.go @@ -66,7 +66,7 @@ func (c *Client) CreateEscalationPath(d *EscalationPath) (*EscalationPath, error } func (c *Client) GetEscalationPath(id string) (*EscalationPath, error) { - req, err := rootlygo.NewGetEscalationPathRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetEscalationPathRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/escalation_policies.go b/client/escalation_policies.go index 279fc2c..6445c2f 100644 --- a/client/escalation_policies.go +++ b/client/escalation_policies.go @@ -66,7 +66,7 @@ func (c *Client) CreateEscalationPolicy(d *EscalationPolicy) (*EscalationPolicy, } func (c *Client) GetEscalationPolicy(id string) (*EscalationPolicy, error) { - req, err := rootlygo.NewGetEscalationPolicyRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetEscalationPolicyRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/form_fields.go b/client/form_fields.go index 8766ea9..6cdfe5d 100644 --- a/client/form_fields.go +++ b/client/form_fields.go @@ -71,7 +71,7 @@ func (c *Client) CreateFormField(d *FormField) (*FormField, error) { } func (c *Client) GetFormField(id string) (*FormField, error) { - req, err := rootlygo.NewGetFormFieldRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetFormFieldRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/functionalities.go b/client/functionalities.go index 60a82c3..500b55d 100644 --- a/client/functionalities.go +++ b/client/functionalities.go @@ -18,6 +18,12 @@ type Functionality struct { PublicDescription string `jsonapi:"attr,public_description,omitempty"` NotifyEmails []interface{} `jsonapi:"attr,notify_emails,omitempty"` Color string `jsonapi:"attr,color,omitempty"` + BackstageId string `jsonapi:"attr,backstage_id,omitempty"` + PagerdutyId string `jsonapi:"attr,pagerduty_id,omitempty"` + OpsgenieId string `jsonapi:"attr,opsgenie_id,omitempty"` + OpsgenieTeamId string `jsonapi:"attr,opsgenie_team_id,omitempty"` + CortexId string `jsonapi:"attr,cortex_id,omitempty"` + ServiceNowCiSysId string `jsonapi:"attr,service_now_ci_sys_id,omitempty"` Position int `jsonapi:"attr,position,omitempty"` EnvironmentIds []interface{} `jsonapi:"attr,environment_ids,omitempty"` ServiceIds []interface{} `jsonapi:"attr,service_ids,omitempty"` diff --git a/client/incident_sub_statuses.go b/client/incident_sub_statuses.go index d2e20fa..3f6a658 100644 --- a/client/incident_sub_statuses.go +++ b/client/incident_sub_statuses.go @@ -63,7 +63,7 @@ func (c *Client) CreateIncidentSubStatus(d *IncidentSubStatus) (*IncidentSubStat } func (c *Client) GetIncidentSubStatus(id string) (*IncidentSubStatus, error) { - req, err := rootlygo.NewGetIncidentSubStatusRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetIncidentSubStatusRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/playbooks.go b/client/playbooks.go index 32cd52d..2e7839a 100644 --- a/client/playbooks.go +++ b/client/playbooks.go @@ -68,7 +68,7 @@ func (c *Client) CreatePlaybook(d *Playbook) (*Playbook, error) { } func (c *Client) GetPlaybook(id string) (*Playbook, error) { - req, err := rootlygo.NewGetPlaybookRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetPlaybookRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/retrospective_configurations.go b/client/retrospective_configurations.go index b461e32..1eae89e 100644 --- a/client/retrospective_configurations.go +++ b/client/retrospective_configurations.go @@ -36,7 +36,7 @@ func (c *Client) ListRetrospectiveConfigurations(params *rootlygo.ListRetrospect } func (c *Client) GetRetrospectiveConfiguration(id string) (*RetrospectiveConfiguration, error) { - req, err := rootlygo.NewGetRetrospectiveConfigurationRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetRetrospectiveConfigurationRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/retrospective_process_groups.go b/client/retrospective_process_groups.go index ce3673f..877d555 100644 --- a/client/retrospective_process_groups.go +++ b/client/retrospective_process_groups.go @@ -62,7 +62,7 @@ func (c *Client) CreateRetrospectiveProcessGroup(d *RetrospectiveProcessGroup) ( } func (c *Client) GetRetrospectiveProcessGroup(id string) (*RetrospectiveProcessGroup, error) { - req, err := rootlygo.NewGetRetrospectiveProcessGroupRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetRetrospectiveProcessGroupRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/retrospective_processes.go b/client/retrospective_processes.go index efbc21c..47f2bf6 100644 --- a/client/retrospective_processes.go +++ b/client/retrospective_processes.go @@ -60,7 +60,7 @@ func (c *Client) CreateRetrospectiveProcess(d *RetrospectiveProcess) (*Retrospec } func (c *Client) GetRetrospectiveProcess(id string) (*RetrospectiveProcess, error) { - req, err := rootlygo.NewGetRetrospectiveProcessRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetRetrospectiveProcessRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/client/schedules.go b/client/schedules.go index 8361a9e..b2e234e 100644 --- a/client/schedules.go +++ b/client/schedules.go @@ -14,6 +14,8 @@ type Schedule struct { ID string `jsonapi:"primary,schedules"` Name string `jsonapi:"attr,name,omitempty"` Description string `jsonapi:"attr,description,omitempty"` + AllTimeCoverage *bool `jsonapi:"attr,all_time_coverage,omitempty"` + SlackUserGroup string `jsonapi:"attr,slack_user_group,omitempty"` } func (c *Client) ListSchedules(params *rootlygo.ListSchedulesParams) ([]interface{}, error) { diff --git a/client/workflows.go b/client/workflows.go index f755f13..9d5b031 100644 --- a/client/workflows.go +++ b/client/workflows.go @@ -80,7 +80,7 @@ func (c *Client) CreateWorkflow(d *Workflow) (*Workflow, error) { } func (c *Client) GetWorkflow(id string) (*Workflow, error) { - req, err := rootlygo.NewGetWorkflowRequest(c.Rootly.Server, id) + req, err := rootlygo.NewGetWorkflowRequest(c.Rootly.Server, id, nil) if err != nil { return nil, errors.Errorf("Error building request: %s", err.Error()) } diff --git a/docs/data-sources/functionality.md b/docs/data-sources/functionality.md index 61eace6..c1e7332 100644 --- a/docs/data-sources/functionality.md +++ b/docs/data-sources/functionality.md @@ -22,6 +22,7 @@ data "rootly_functionality" "my-functionality" { ### Optional +- `backstage_id` (String) - `created_at` (Map of String) Filter by date range using 'lt' and 'gt'. - `name` (String) - `slug` (String) diff --git a/docs/resources/functionality.md b/docs/resources/functionality.md index 651cae9..a203bfd 100644 --- a/docs/resources/functionality.md +++ b/docs/resources/functionality.md @@ -58,15 +58,21 @@ resource "rootly_functionality" "logging_in" { ### Optional +- `backstage_id` (String) The Backstage entity id associated to this functionality. eg: :namespace/:kind/:entity_name - `color` (String) The hex color of the functionality +- `cortex_id` (String) The Cortex group id associated to this functionality - `description` (String) The description of the functionality - `environment_ids` (List of String) Environments associated with this functionality - `notify_emails` (List of String) Emails attached to the functionality +- `opsgenie_id` (String) The Opsgenie service id associated to this functionality +- `opsgenie_team_id` (String) The Opsgenie team id associated to this functionality - `owners_group_ids` (List of String) Owner Teams associated with this functionality - `owners_user_ids` (List of Number) Owner Users associated with this functionality +- `pagerduty_id` (String) The PagerDuty service id associated to this functionality - `position` (Number) Position of the functionality - `public_description` (String) The public description of the functionality - `service_ids` (List of String) Services associated with this functionality +- `service_now_ci_sys_id` (String) The Service Now CI sys id associated to this functionality - `slack_aliases` (Block List) Slack Aliases associated with this functionality (see [below for nested schema](#nestedblock--slack_aliases)) - `slack_channels` (Block List) Slack Channels associated with this functionality (see [below for nested schema](#nestedblock--slack_channels)) - `slug` (String) The slug of the functionality diff --git a/docs/resources/schedule.md b/docs/resources/schedule.md index 4f4edae..9360a0f 100644 --- a/docs/resources/schedule.md +++ b/docs/resources/schedule.md @@ -20,7 +20,9 @@ description: |- ### Optional +- `all_time_coverage` (Boolean) 24/7 coverage of the schedule. Value must be one of true or false - `description` (String) The description of the schedule +- `slack_user_group` (String) Synced slack group of the schedule ### Read-Only diff --git a/docs/resources/workflow_task_send_microsoft_teams_blocks.md b/docs/resources/workflow_task_send_microsoft_teams_blocks.md new file mode 100644 index 0000000..9dcf5f5 --- /dev/null +++ b/docs/resources/workflow_task_send_microsoft_teams_blocks.md @@ -0,0 +1,42 @@ +--- +page_title: "Resource rootly_workflow_task_send_microsoft_teams_blocks - terraform-provider-rootly" +subcategory: Workflow Tasks +description: |- + Manages workflow send_microsoft_teams_blocks task. +--- + +# Resource (rootly_workflow_task_send_microsoft_teams_blocks) + +Manages workflow send_microsoft_teams_blocks task. + + + + +## Schema + +### Required + +- `task_params` (Block List, Min: 1, Max: 1) The parameters for this workflow task. (see [below for nested schema](#nestedblock--task_params)) +- `workflow_id` (String) The ID of the parent workflow + +### Optional + +- `enabled` (Boolean) Enable/disable this workflow task +- `name` (String) Name of the workflow task +- `position` (Number) The position of the workflow task (1 being top of list) +- `skip_on_failure` (Boolean) Skip workflow task if any failures + +### Read-Only + +- `id` (String) The ID of this resource. + + +### Nested Schema for `task_params` + +Required: + +- `attachments` (String) Support liquid markup. Needs to be a valid JSON string after liquid is parsed + +Optional: + +- `task_type` (String) diff --git a/docs/resources/workflow_task_send_microsoft_teams_message.md b/docs/resources/workflow_task_send_microsoft_teams_message.md new file mode 100644 index 0000000..cdb4195 --- /dev/null +++ b/docs/resources/workflow_task_send_microsoft_teams_message.md @@ -0,0 +1,51 @@ +--- +page_title: "Resource rootly_workflow_task_send_microsoft_teams_message - terraform-provider-rootly" +subcategory: Workflow Tasks +description: |- + Manages workflow send_microsoft_teams_message task. +--- + +# Resource (rootly_workflow_task_send_microsoft_teams_message) + +Manages workflow send_microsoft_teams_message task. + + + + +## Schema + +### Required + +- `task_params` (Block List, Min: 1, Max: 1) The parameters for this workflow task. (see [below for nested schema](#nestedblock--task_params)) +- `workflow_id` (String) The ID of the parent workflow + +### Optional + +- `enabled` (Boolean) Enable/disable this workflow task +- `name` (String) Name of the workflow task +- `position` (Number) The position of the workflow task (1 being top of list) +- `skip_on_failure` (Boolean) Skip workflow task if any failures + +### Read-Only + +- `id` (String) The ID of this resource. + + +### Nested Schema for `task_params` + +Required: + +- `text` (String) The message text + +Optional: + +- `channels` (Block List) (see [below for nested schema](#nestedblock--task_params--channels)) +- `task_type` (String) + + +### Nested Schema for `task_params.channels` + +Required: + +- `id` (String) +- `name` (String) diff --git a/provider/data_source_functionality.go b/provider/data_source_functionality.go index 597d45d..b1070e6 100644 --- a/provider/data_source_functionality.go +++ b/provider/data_source_functionality.go @@ -32,6 +32,12 @@ func dataSourceFunctionality() *schema.Resource { Optional: true, }, + "backstage_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Optional: true, + }, + "created_at": &schema.Schema{ Type: schema.TypeMap, Description: "Filter by date range using 'lt' and 'gt'.", @@ -53,6 +59,11 @@ func dataSourceFunctionalityRead(ctx context.Context, d *schema.ResourceData, me params.FilterName = &name } + if value, ok := d.GetOkExists("backstage_id"); ok { + backstage_id := value.(string) + params.FilterBackstageId = &backstage_id + } + if value, ok := d.GetOkExists("slug"); ok { slug := value.(string) params.FilterSlug = &slug diff --git a/provider/provider.go b/provider/provider.go index 642a1e3..94bdde0 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -210,6 +210,8 @@ func New(version string) func() *schema.Provider { "rootly_workflow_task_rename_microsoft_teams_channel": resourceWorkflowTaskRenameMicrosoftTeamsChannel(), "rootly_workflow_task_invite_to_microsoft_teams_channel": resourceWorkflowTaskInviteToMicrosoftTeamsChannel(), "rootly_workflow_task_create_notion_page": resourceWorkflowTaskCreateNotionPage(), + "rootly_workflow_task_send_microsoft_teams_message": resourceWorkflowTaskSendMicrosoftTeamsMessage(), + "rootly_workflow_task_send_microsoft_teams_blocks": resourceWorkflowTaskSendMicrosoftTeamsBlocks(), "rootly_workflow_task_update_notion_page": resourceWorkflowTaskUpdateNotionPage(), "rootly_workflow_task_create_service_now_incident": resourceWorkflowTaskCreateServiceNowIncident(), "rootly_workflow_task_create_shortcut_story": resourceWorkflowTaskCreateShortcutStory(), diff --git a/provider/resource_functionality.go b/provider/resource_functionality.go index cb14381..244c888 100644 --- a/provider/resource_functionality.go +++ b/provider/resource_functionality.go @@ -81,6 +81,60 @@ func resourceFunctionality() *schema.Resource { Description: "The hex color of the functionality", }, + "backstage_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The Backstage entity id associated to this functionality. eg: :namespace/:kind/:entity_name", + }, + + "pagerduty_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The PagerDuty service id associated to this functionality", + }, + + "opsgenie_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The Opsgenie service id associated to this functionality", + }, + + "opsgenie_team_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The Opsgenie team id associated to this functionality", + }, + + "cortex_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The Cortex group id associated to this functionality", + }, + + "service_now_ci_sys_id": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "The Service Now CI sys id associated to this functionality", + }, + "position": &schema.Schema{ Type: schema.TypeInt, Computed: true, @@ -226,6 +280,24 @@ func resourceFunctionalityCreate(ctx context.Context, d *schema.ResourceData, me if value, ok := d.GetOkExists("color"); ok { s.Color = value.(string) } + if value, ok := d.GetOkExists("backstage_id"); ok { + s.BackstageId = value.(string) + } + if value, ok := d.GetOkExists("pagerduty_id"); ok { + s.PagerdutyId = value.(string) + } + if value, ok := d.GetOkExists("opsgenie_id"); ok { + s.OpsgenieId = value.(string) + } + if value, ok := d.GetOkExists("opsgenie_team_id"); ok { + s.OpsgenieTeamId = value.(string) + } + if value, ok := d.GetOkExists("cortex_id"); ok { + s.CortexId = value.(string) + } + if value, ok := d.GetOkExists("service_now_ci_sys_id"); ok { + s.ServiceNowCiSysId = value.(string) + } if value, ok := d.GetOkExists("position"); ok { s.Position = value.(int) } @@ -282,6 +354,12 @@ func resourceFunctionalityRead(ctx context.Context, d *schema.ResourceData, meta d.Set("public_description", item.PublicDescription) d.Set("notify_emails", item.NotifyEmails) d.Set("color", item.Color) + d.Set("backstage_id", item.BackstageId) + d.Set("pagerduty_id", item.PagerdutyId) + d.Set("opsgenie_id", item.OpsgenieId) + d.Set("opsgenie_team_id", item.OpsgenieTeamId) + d.Set("cortex_id", item.CortexId) + d.Set("service_now_ci_sys_id", item.ServiceNowCiSysId) d.Set("position", item.Position) d.Set("environment_ids", item.EnvironmentIds) d.Set("service_ids", item.ServiceIds) @@ -317,6 +395,24 @@ func resourceFunctionalityUpdate(ctx context.Context, d *schema.ResourceData, me if d.HasChange("color") { s.Color = d.Get("color").(string) } + if d.HasChange("backstage_id") { + s.BackstageId = d.Get("backstage_id").(string) + } + if d.HasChange("pagerduty_id") { + s.PagerdutyId = d.Get("pagerduty_id").(string) + } + if d.HasChange("opsgenie_id") { + s.OpsgenieId = d.Get("opsgenie_id").(string) + } + if d.HasChange("opsgenie_team_id") { + s.OpsgenieTeamId = d.Get("opsgenie_team_id").(string) + } + if d.HasChange("cortex_id") { + s.CortexId = d.Get("cortex_id").(string) + } + if d.HasChange("service_now_ci_sys_id") { + s.ServiceNowCiSysId = d.Get("service_now_ci_sys_id").(string) + } if d.HasChange("position") { s.Position = d.Get("position").(int) } diff --git a/provider/resource_schedule.go b/provider/resource_schedule.go index 83de3e1..aab896b 100644 --- a/provider/resource_schedule.go +++ b/provider/resource_schedule.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/rootlyhq/terraform-provider-rootly/v2/client" + "github.com/rootlyhq/terraform-provider-rootly/v2/tools" ) func resourceSchedule() *schema.Resource { @@ -40,6 +41,23 @@ func resourceSchedule() *schema.Resource { ForceNew: false, Description: "The description of the schedule", }, + + "all_time_coverage": &schema.Schema{ + Type: schema.TypeBool, + Computed: true, + Required: false, + Optional: true, + Description: "24/7 coverage of the schedule. Value must be one of true or false", + }, + + "slack_user_group": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + Required: false, + Optional: true, + ForceNew: false, + Description: "Synced slack group of the schedule", + }, }, } } @@ -57,6 +75,12 @@ func resourceScheduleCreate(ctx context.Context, d *schema.ResourceData, meta in if value, ok := d.GetOkExists("description"); ok { s.Description = value.(string) } + if value, ok := d.GetOkExists("all_time_coverage"); ok { + s.AllTimeCoverage = tools.Bool(value.(bool)) + } + if value, ok := d.GetOkExists("slack_user_group"); ok { + s.SlackUserGroup = value.(string) + } res, err := c.CreateSchedule(s) if err != nil { @@ -88,6 +112,8 @@ func resourceScheduleRead(ctx context.Context, d *schema.ResourceData, meta inte d.Set("name", item.Name) d.Set("description", item.Description) + d.Set("all_time_coverage", item.AllTimeCoverage) + d.Set("slack_user_group", item.SlackUserGroup) return nil } @@ -104,6 +130,12 @@ func resourceScheduleUpdate(ctx context.Context, d *schema.ResourceData, meta in if d.HasChange("description") { s.Description = d.Get("description").(string) } + if d.HasChange("all_time_coverage") { + s.AllTimeCoverage = tools.Bool(d.Get("all_time_coverage").(bool)) + } + if d.HasChange("slack_user_group") { + s.SlackUserGroup = d.Get("slack_user_group").(string) + } _, err := c.UpdateSchedule(d.Id(), s) if err != nil { diff --git a/provider/resource_workflow_task_send_microsoft_teams_blocks.go b/provider/resource_workflow_task_send_microsoft_teams_blocks.go new file mode 100644 index 0000000..b6a74e0 --- /dev/null +++ b/provider/resource_workflow_task_send_microsoft_teams_blocks.go @@ -0,0 +1,213 @@ +package provider + +// This file was auto-generated by tools/generate-tasks.js + +import ( + "context" + "fmt" + + "encoding/json" + "reflect" + + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/rootlyhq/terraform-provider-rootly/v2/client" + "github.com/rootlyhq/terraform-provider-rootly/v2/tools" +) + +func resourceWorkflowTaskSendMicrosoftTeamsBlocks() *schema.Resource { + return &schema.Resource{ + Description: "Manages workflow send_microsoft_teams_blocks task.", + + CreateContext: resourceWorkflowTaskSendMicrosoftTeamsBlocksCreate, + ReadContext: resourceWorkflowTaskSendMicrosoftTeamsBlocksRead, + UpdateContext: resourceWorkflowTaskSendMicrosoftTeamsBlocksUpdate, + DeleteContext: resourceWorkflowTaskSendMicrosoftTeamsBlocksDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + + Schema: map[string]*schema.Schema{ + "workflow_id": { + Description: "The ID of the parent workflow", + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "name": { + Description: "Name of the workflow task", + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "position": { + Description: "The position of the workflow task (1 being top of list)", + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "skip_on_failure": { + Description: "Skip workflow task if any failures", + Type: schema.TypeBool, + Optional: true, + Default: false, + }, + "enabled": { + Description: "Enable/disable this workflow task", + Type: schema.TypeBool, + Optional: true, + Default: true, + }, + "task_params": { + Description: "The parameters for this workflow task.", + Type: schema.TypeList, + Required: true, + MinItems: 1, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Default: "send_microsoft_teams_blocks", + ValidateFunc: validation.StringInSlice([]string{ + "send_microsoft_teams_blocks", + }, false), + }, + "attachments": &schema.Schema{ + Description: "Support liquid markup. Needs to be a valid JSON string after liquid is parsed", + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: func(k, old string, new string, d *schema.ResourceData) bool { + var oldJSONAsInterface, newJSONAsInterface interface{} + + if err := json.Unmarshal([]byte(old), &oldJSONAsInterface); err != nil { + return false + } + + if err := json.Unmarshal([]byte(new), &newJSONAsInterface); err != nil { + return false + } + + return reflect.DeepEqual(oldJSONAsInterface, newJSONAsInterface) + }, + }, + }, + }, + }, + }, + } +} + +func resourceWorkflowTaskSendMicrosoftTeamsBlocksCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + + workflowId := d.Get("workflow_id").(string) + name := d.Get("name").(string) + position := d.Get("position").(int) + skipOnFailure := tools.Bool(d.Get("skip_on_failure").(bool)) + enabled := tools.Bool(d.Get("enabled").(bool)) + taskParams := d.Get("task_params").([]interface{})[0].(map[string]interface{}) + + tflog.Trace(ctx, fmt.Sprintf("Creating workflow task: %s", workflowId)) + + s := &client.WorkflowTask{ + WorkflowId: workflowId, + Name: name, + Position: position, + SkipOnFailure: skipOnFailure, + Enabled: enabled, + TaskParams: taskParams, + } + + res, err := c.CreateWorkflowTask(s) + if err != nil { + return diag.Errorf("Error creating workflow task: %s", err.Error()) + } + + d.SetId(res.ID) + tflog.Trace(ctx, fmt.Sprintf("created an workflow task resource: %v (%s)", workflowId, d.Id())) + + return resourceWorkflowTaskSendMicrosoftTeamsBlocksRead(ctx, d, meta) +} + +func resourceWorkflowTaskSendMicrosoftTeamsBlocksRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Reading workflow task: %s", d.Id())) + + res, err := c.GetWorkflowTask(d.Id()) + if err != nil { + // In the case of a NotFoundError, it means the resource may have been removed upstream + // We just remove it from the state. + if _, ok := err.(client.NotFoundError); ok && !d.IsNewResource() { + tflog.Warn(ctx, fmt.Sprintf("WorkflowTaskSendMicrosoftTeamsBlocks (%s) not found, removing from state", d.Id())) + d.SetId("") + return nil + } + + return diag.Errorf("Error reading workflow task: %s", d.Id()) + } + + d.Set("workflow_id", res.WorkflowId) + d.Set("name", res.Name) + d.Set("position", res.Position) + d.Set("skip_on_failure", res.SkipOnFailure) + d.Set("enabled", res.Enabled) + tps := make([]interface{}, 1, 1) + tps[0] = res.TaskParams + d.Set("task_params", tps) + + return nil +} + +func resourceWorkflowTaskSendMicrosoftTeamsBlocksUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Updating workflow task: %s", d.Id())) + + workflowId := d.Get("workflow_id").(string) + name := d.Get("name").(string) + position := d.Get("position").(int) + skipOnFailure := tools.Bool(d.Get("skip_on_failure").(bool)) + enabled := tools.Bool(d.Get("enabled").(bool)) + taskParams := d.Get("task_params").([]interface{})[0].(map[string]interface{}) + + s := &client.WorkflowTask{ + WorkflowId: workflowId, + Name: name, + Position: position, + SkipOnFailure: skipOnFailure, + Enabled: enabled, + TaskParams: taskParams, + } + + tflog.Debug(ctx, fmt.Sprintf("adding value: %#v", s)) + _, err := c.UpdateWorkflowTask(d.Id(), s) + if err != nil { + return diag.Errorf("Error updating workflow task: %s", err.Error()) + } + + return resourceWorkflowTaskSendMicrosoftTeamsBlocksRead(ctx, d, meta) +} + +func resourceWorkflowTaskSendMicrosoftTeamsBlocksDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Deleting workflow task: %s", d.Id())) + + err := c.DeleteWorkflowTask(d.Id()) + if err != nil { + // In the case of a NotFoundError, it means the resource may have been removed upstream. + // We just remove it from the state. + if _, ok := err.(client.NotFoundError); ok && !d.IsNewResource() { + tflog.Warn(ctx, fmt.Sprintf("WorkflowTaskSendMicrosoftTeamsBlocks (%s) not found, removing from state", d.Id())) + d.SetId("") + return nil + } + return diag.Errorf("Error deleting workflow task: %s", err.Error()) + } + + d.SetId("") + + return nil +} diff --git a/provider/resource_workflow_task_send_microsoft_teams_message.go b/provider/resource_workflow_task_send_microsoft_teams_message.go new file mode 100644 index 0000000..63449bc --- /dev/null +++ b/provider/resource_workflow_task_send_microsoft_teams_message.go @@ -0,0 +1,214 @@ +package provider + +// This file was auto-generated by tools/generate-tasks.js + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/rootlyhq/terraform-provider-rootly/v2/client" + "github.com/rootlyhq/terraform-provider-rootly/v2/tools" +) + +func resourceWorkflowTaskSendMicrosoftTeamsMessage() *schema.Resource { + return &schema.Resource{ + Description: "Manages workflow send_microsoft_teams_message task.", + + CreateContext: resourceWorkflowTaskSendMicrosoftTeamsMessageCreate, + ReadContext: resourceWorkflowTaskSendMicrosoftTeamsMessageRead, + UpdateContext: resourceWorkflowTaskSendMicrosoftTeamsMessageUpdate, + DeleteContext: resourceWorkflowTaskSendMicrosoftTeamsMessageDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + + Schema: map[string]*schema.Schema{ + "workflow_id": { + Description: "The ID of the parent workflow", + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "name": { + Description: "Name of the workflow task", + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "position": { + Description: "The position of the workflow task (1 being top of list)", + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "skip_on_failure": { + Description: "Skip workflow task if any failures", + Type: schema.TypeBool, + Optional: true, + Default: false, + }, + "enabled": { + Description: "Enable/disable this workflow task", + Type: schema.TypeBool, + Optional: true, + Default: true, + }, + "task_params": { + Description: "The parameters for this workflow task.", + Type: schema.TypeList, + Required: true, + MinItems: 1, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Default: "send_microsoft_teams_message", + ValidateFunc: validation.StringInSlice([]string{ + "send_microsoft_teams_message", + }, false), + }, + "channels": &schema.Schema{ + Description: "", + Type: schema.TypeList, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": &schema.Schema{ + Type: schema.TypeString, + Required: true, + }, + "name": &schema.Schema{ + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + "text": &schema.Schema{ + Description: "The message text", + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + }, + } +} + +func resourceWorkflowTaskSendMicrosoftTeamsMessageCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + + workflowId := d.Get("workflow_id").(string) + name := d.Get("name").(string) + position := d.Get("position").(int) + skipOnFailure := tools.Bool(d.Get("skip_on_failure").(bool)) + enabled := tools.Bool(d.Get("enabled").(bool)) + taskParams := d.Get("task_params").([]interface{})[0].(map[string]interface{}) + + tflog.Trace(ctx, fmt.Sprintf("Creating workflow task: %s", workflowId)) + + s := &client.WorkflowTask{ + WorkflowId: workflowId, + Name: name, + Position: position, + SkipOnFailure: skipOnFailure, + Enabled: enabled, + TaskParams: taskParams, + } + + res, err := c.CreateWorkflowTask(s) + if err != nil { + return diag.Errorf("Error creating workflow task: %s", err.Error()) + } + + d.SetId(res.ID) + tflog.Trace(ctx, fmt.Sprintf("created an workflow task resource: %v (%s)", workflowId, d.Id())) + + return resourceWorkflowTaskSendMicrosoftTeamsMessageRead(ctx, d, meta) +} + +func resourceWorkflowTaskSendMicrosoftTeamsMessageRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Reading workflow task: %s", d.Id())) + + res, err := c.GetWorkflowTask(d.Id()) + if err != nil { + // In the case of a NotFoundError, it means the resource may have been removed upstream + // We just remove it from the state. + if _, ok := err.(client.NotFoundError); ok && !d.IsNewResource() { + tflog.Warn(ctx, fmt.Sprintf("WorkflowTaskSendMicrosoftTeamsMessage (%s) not found, removing from state", d.Id())) + d.SetId("") + return nil + } + + return diag.Errorf("Error reading workflow task: %s", d.Id()) + } + + d.Set("workflow_id", res.WorkflowId) + d.Set("name", res.Name) + d.Set("position", res.Position) + d.Set("skip_on_failure", res.SkipOnFailure) + d.Set("enabled", res.Enabled) + tps := make([]interface{}, 1, 1) + tps[0] = res.TaskParams + d.Set("task_params", tps) + + return nil +} + +func resourceWorkflowTaskSendMicrosoftTeamsMessageUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Updating workflow task: %s", d.Id())) + + workflowId := d.Get("workflow_id").(string) + name := d.Get("name").(string) + position := d.Get("position").(int) + skipOnFailure := tools.Bool(d.Get("skip_on_failure").(bool)) + enabled := tools.Bool(d.Get("enabled").(bool)) + taskParams := d.Get("task_params").([]interface{})[0].(map[string]interface{}) + + s := &client.WorkflowTask{ + WorkflowId: workflowId, + Name: name, + Position: position, + SkipOnFailure: skipOnFailure, + Enabled: enabled, + TaskParams: taskParams, + } + + tflog.Debug(ctx, fmt.Sprintf("adding value: %#v", s)) + _, err := c.UpdateWorkflowTask(d.Id(), s) + if err != nil { + return diag.Errorf("Error updating workflow task: %s", err.Error()) + } + + return resourceWorkflowTaskSendMicrosoftTeamsMessageRead(ctx, d, meta) +} + +func resourceWorkflowTaskSendMicrosoftTeamsMessageDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + c := meta.(*client.Client) + tflog.Trace(ctx, fmt.Sprintf("Deleting workflow task: %s", d.Id())) + + err := c.DeleteWorkflowTask(d.Id()) + if err != nil { + // In the case of a NotFoundError, it means the resource may have been removed upstream. + // We just remove it from the state. + if _, ok := err.(client.NotFoundError); ok && !d.IsNewResource() { + tflog.Warn(ctx, fmt.Sprintf("WorkflowTaskSendMicrosoftTeamsMessage (%s) not found, removing from state", d.Id())) + d.SetId("") + return nil + } + return diag.Errorf("Error deleting workflow task: %s", err.Error()) + } + + d.SetId("") + + return nil +} diff --git a/schema/rootly-schema.gen.go b/schema/rootly-schema.gen.go index 691ce7c..a88864c 100644 --- a/schema/rootly-schema.gen.go +++ b/schema/rootly-schema.gen.go @@ -3846,6 +3846,16 @@ const ( SendEmail SendEmailTaskParamsTaskType = "send_email" ) +// Defines values for SendMicrosoftTeamsBlocksTaskParamsTaskType. +const ( + SendMicrosoftTeamsBlocks SendMicrosoftTeamsBlocksTaskParamsTaskType = "send_microsoft_teams_blocks" +) + +// Defines values for SendMicrosoftTeamsMessageTaskParamsTaskType. +const ( + SendMicrosoftTeamsMessage SendMicrosoftTeamsMessageTaskParamsTaskType = "send_microsoft_teams_message" +) + // Defines values for SendSlackBlocksTaskParamsTaskType. const ( SendSlackBlocks SendSlackBlocksTaskParamsTaskType = "send_slack_blocks" @@ -4364,7 +4374,7 @@ const ( // Defines values for UpdateEscalationPathDataType. const ( - EscalationPaths UpdateEscalationPathDataType = "escalation_paths" + UpdateEscalationPathDataTypeEscalationPaths UpdateEscalationPathDataType = "escalation_paths" ) // Defines values for UpdateEscalationPolicyDataType. @@ -4504,7 +4514,7 @@ const ( // Defines values for UpdateFunctionalityDataType. const ( - Functionalities UpdateFunctionalityDataType = "functionalities" + UpdateFunctionalityDataTypeFunctionalities UpdateFunctionalityDataType = "functionalities" ) // Defines values for UpdateGithubIssueTaskParamsTaskType. @@ -4821,7 +4831,7 @@ const ( // Defines values for UpdateIncidentTypeDataType. const ( - IncidentTypes UpdateIncidentTypeDataType = "incident_types" + UpdateIncidentTypeDataTypeIncidentTypes UpdateIncidentTypeDataType = "incident_types" ) // Defines values for UpdateJiraIssueTaskParamsTaskType. @@ -5647,11 +5657,12 @@ const ( // Defines values for WorkflowRunStatus. const ( - WorkflowRunStatusCanceled WorkflowRunStatus = "canceled" - WorkflowRunStatusCompleted WorkflowRunStatus = "completed" - WorkflowRunStatusFailed WorkflowRunStatus = "failed" - WorkflowRunStatusQueued WorkflowRunStatus = "queued" - WorkflowRunStatusStarted WorkflowRunStatus = "started" + WorkflowRunStatusCanceled WorkflowRunStatus = "canceled" + WorkflowRunStatusCompleted WorkflowRunStatus = "completed" + WorkflowRunStatusCompletedWithErrors WorkflowRunStatus = "completed_with_errors" + WorkflowRunStatusFailed WorkflowRunStatus = "failed" + WorkflowRunStatusQueued WorkflowRunStatus = "queued" + WorkflowRunStatusStarted WorkflowRunStatus = "started" ) // Defines values for WorkflowRunTriggeredBy. @@ -5680,6 +5691,218 @@ const ( WorkflowTaskResponseDataTypeWorkflowTasks WorkflowTaskResponseDataType = "workflow_tasks" ) +// Defines values for ListCatalogEntityPropertiesParamsInclude. +const ( + ListCatalogEntityPropertiesParamsIncludeCatalogEntity ListCatalogEntityPropertiesParamsInclude = "catalog_entity" + ListCatalogEntityPropertiesParamsIncludeCatalogField ListCatalogEntityPropertiesParamsInclude = "catalog_field" +) + +// Defines values for ListCatalogEntityPropertiesParamsSort. +const ( + ListCatalogEntityPropertiesParamsSortCreatedAt ListCatalogEntityPropertiesParamsSort = "created_at" + ListCatalogEntityPropertiesParamsSortMinusCreatedAt ListCatalogEntityPropertiesParamsSort = "-created_at" + ListCatalogEntityPropertiesParamsSortMinusUpdatedAt ListCatalogEntityPropertiesParamsSort = "-updated_at" + ListCatalogEntityPropertiesParamsSortUpdatedAt ListCatalogEntityPropertiesParamsSort = "updated_at" +) + +// Defines values for GetCatalogEntityParamsInclude. +const ( + GetCatalogEntityParamsIncludeCatalog GetCatalogEntityParamsInclude = "catalog" + GetCatalogEntityParamsIncludeProperties GetCatalogEntityParamsInclude = "properties" +) + +// Defines values for GetCatalogEntityPropertyParamsInclude. +const ( + GetCatalogEntityPropertyParamsIncludeCatalogEntity GetCatalogEntityPropertyParamsInclude = "catalog_entity" + GetCatalogEntityPropertyParamsIncludeCatalogField GetCatalogEntityPropertyParamsInclude = "catalog_field" +) + +// Defines values for GetCatalogFieldParamsInclude. +const ( + GetCatalogFieldParamsIncludeCatalog GetCatalogFieldParamsInclude = "catalog" +) + +// Defines values for ListCatalogsParamsInclude. +const ( + Entities ListCatalogsParamsInclude = "entities" + Fields ListCatalogsParamsInclude = "fields" +) + +// Defines values for ListCatalogsParamsSort. +const ( + ListCatalogsParamsSortCreatedAt ListCatalogsParamsSort = "created_at" + ListCatalogsParamsSortMinusCreatedAt ListCatalogsParamsSort = "-created_at" + ListCatalogsParamsSortMinusPosition ListCatalogsParamsSort = "-position" + ListCatalogsParamsSortMinusUpdatedAt ListCatalogsParamsSort = "-updated_at" + ListCatalogsParamsSortPosition ListCatalogsParamsSort = "position" + ListCatalogsParamsSortUpdatedAt ListCatalogsParamsSort = "updated_at" +) + +// Defines values for ListCatalogEntitiesParamsInclude. +const ( + ListCatalogEntitiesParamsIncludeCatalog ListCatalogEntitiesParamsInclude = "catalog" + ListCatalogEntitiesParamsIncludeProperties ListCatalogEntitiesParamsInclude = "properties" +) + +// Defines values for ListCatalogEntitiesParamsSort. +const ( + ListCatalogEntitiesParamsSortCreatedAt ListCatalogEntitiesParamsSort = "created_at" + ListCatalogEntitiesParamsSortMinusCreatedAt ListCatalogEntitiesParamsSort = "-created_at" + ListCatalogEntitiesParamsSortMinusPosition ListCatalogEntitiesParamsSort = "-position" + ListCatalogEntitiesParamsSortMinusUpdatedAt ListCatalogEntitiesParamsSort = "-updated_at" + ListCatalogEntitiesParamsSortPosition ListCatalogEntitiesParamsSort = "position" + ListCatalogEntitiesParamsSortUpdatedAt ListCatalogEntitiesParamsSort = "updated_at" +) + +// Defines values for ListCatalogFieldsParamsInclude. +const ( + ListCatalogFieldsParamsIncludeCatalog ListCatalogFieldsParamsInclude = "catalog" +) + +// Defines values for ListCatalogFieldsParamsSort. +const ( + ListCatalogFieldsParamsSortCreatedAt ListCatalogFieldsParamsSort = "created_at" + ListCatalogFieldsParamsSortMinusCreatedAt ListCatalogFieldsParamsSort = "-created_at" + ListCatalogFieldsParamsSortMinusPosition ListCatalogFieldsParamsSort = "-position" + ListCatalogFieldsParamsSortMinusUpdatedAt ListCatalogFieldsParamsSort = "-updated_at" + ListCatalogFieldsParamsSortPosition ListCatalogFieldsParamsSort = "position" + ListCatalogFieldsParamsSortUpdatedAt ListCatalogFieldsParamsSort = "updated_at" +) + +// Defines values for ListCustomFieldsParamsInclude. +const ( + ListCustomFieldsParamsIncludeOptions ListCustomFieldsParamsInclude = "options" +) + +// Defines values for ListCustomFieldsParamsSort. +const ( + ListCustomFieldsParamsSortCreatedAt ListCustomFieldsParamsSort = "created_at" + ListCustomFieldsParamsSortMinusCreatedAt ListCustomFieldsParamsSort = "-created_at" + ListCustomFieldsParamsSortMinusPosition ListCustomFieldsParamsSort = "-position" + ListCustomFieldsParamsSortMinusUpdatedAt ListCustomFieldsParamsSort = "-updated_at" + ListCustomFieldsParamsSortPosition ListCustomFieldsParamsSort = "position" + ListCustomFieldsParamsSortUpdatedAt ListCustomFieldsParamsSort = "updated_at" +) + +// Defines values for GetCustomFieldParamsInclude. +const ( + GetCustomFieldParamsIncludeOptions GetCustomFieldParamsInclude = "options" +) + +// Defines values for ListDashboardsParamsInclude. +const ( + ListDashboardsParamsIncludePanels ListDashboardsParamsInclude = "panels" +) + +// Defines values for GetDashboardParamsInclude. +const ( + GetDashboardParamsIncludePanels GetDashboardParamsInclude = "panels" +) + +// Defines values for GetEscalationPathParamsInclude. +const ( + GetEscalationPathParamsIncludeEscalationPolicyLevels GetEscalationPathParamsInclude = "escalation_policy_levels" +) + +// Defines values for ListEscalationPoliciesParamsInclude. +const ( + ListEscalationPoliciesParamsIncludeEscalationPaths ListEscalationPoliciesParamsInclude = "escalation_paths" + ListEscalationPoliciesParamsIncludeEscalationPolicyLevels ListEscalationPoliciesParamsInclude = "escalation_policy_levels" + ListEscalationPoliciesParamsIncludeGroups ListEscalationPoliciesParamsInclude = "groups" + ListEscalationPoliciesParamsIncludeServices ListEscalationPoliciesParamsInclude = "services" +) + +// Defines values for ListEscalationPathsParamsInclude. +const ( + ListEscalationPathsParamsIncludeEscalationPolicyLevels ListEscalationPathsParamsInclude = "escalation_policy_levels" +) + +// Defines values for GetEscalationPolicyParamsInclude. +const ( + GetEscalationPolicyParamsIncludeEscalationPaths GetEscalationPolicyParamsInclude = "escalation_paths" + GetEscalationPolicyParamsIncludeEscalationPolicyLevels GetEscalationPolicyParamsInclude = "escalation_policy_levels" + GetEscalationPolicyParamsIncludeGroups GetEscalationPolicyParamsInclude = "groups" + GetEscalationPolicyParamsIncludeServices GetEscalationPolicyParamsInclude = "services" +) + +// Defines values for ListFormFieldsParamsInclude. +const ( + ListFormFieldsParamsIncludeOptions ListFormFieldsParamsInclude = "options" + ListFormFieldsParamsIncludePositions ListFormFieldsParamsInclude = "positions" +) + +// Defines values for GetFormFieldParamsInclude. +const ( + GetFormFieldParamsIncludeOptions GetFormFieldParamsInclude = "options" + GetFormFieldParamsIncludePositions GetFormFieldParamsInclude = "positions" +) + +// Defines values for GetIncidentSubStatusParamsInclude. +const ( + GetIncidentSubStatusParamsIncludeAssignedByUser GetIncidentSubStatusParamsInclude = "assigned_by_user" + GetIncidentSubStatusParamsIncludeSubStatus GetIncidentSubStatusParamsInclude = "sub_status" +) + +// Defines values for ListIncidentsParamsSort. +const ( + ListIncidentsParamsSortCreatedAt ListIncidentsParamsSort = "created_at" + ListIncidentsParamsSortMinusCreatedAt ListIncidentsParamsSort = "-created_at" + ListIncidentsParamsSortMinusUpdatedAt ListIncidentsParamsSort = "-updated_at" + ListIncidentsParamsSortUpdatedAt ListIncidentsParamsSort = "updated_at" +) + +// Defines values for ListIncidentsParamsInclude. +const ( + ListIncidentsParamsIncludeActionItems ListIncidentsParamsInclude = "action_items" + ListIncidentsParamsIncludeCauses ListIncidentsParamsInclude = "causes" + ListIncidentsParamsIncludeEnvironments ListIncidentsParamsInclude = "environments" + ListIncidentsParamsIncludeEvents ListIncidentsParamsInclude = "events" + ListIncidentsParamsIncludeFeedbacks ListIncidentsParamsInclude = "feedbacks" + ListIncidentsParamsIncludeFormFieldSelections ListIncidentsParamsInclude = "form_field_selections" + ListIncidentsParamsIncludeFunctionalities ListIncidentsParamsInclude = "functionalities" + ListIncidentsParamsIncludeGroups ListIncidentsParamsInclude = "groups" + ListIncidentsParamsIncludeIncidentPostMortem ListIncidentsParamsInclude = "incident_post_mortem" + ListIncidentsParamsIncludeIncidentRoleAssignments ListIncidentsParamsInclude = "incident_role_assignments" + ListIncidentsParamsIncludeIncidentTypes ListIncidentsParamsInclude = "incident_types" + ListIncidentsParamsIncludeServices ListIncidentsParamsInclude = "services" + ListIncidentsParamsIncludeSubStatuses ListIncidentsParamsInclude = "sub_statuses" + ListIncidentsParamsIncludeSubscribers ListIncidentsParamsInclude = "subscribers" +) + +// Defines values for GetIncidentParamsInclude. +const ( + GetIncidentParamsIncludeActionItems GetIncidentParamsInclude = "action_items" + GetIncidentParamsIncludeCauses GetIncidentParamsInclude = "causes" + GetIncidentParamsIncludeEnvironments GetIncidentParamsInclude = "environments" + GetIncidentParamsIncludeEvents GetIncidentParamsInclude = "events" + GetIncidentParamsIncludeFeedbacks GetIncidentParamsInclude = "feedbacks" + GetIncidentParamsIncludeFormFieldSelections GetIncidentParamsInclude = "form_field_selections" + GetIncidentParamsIncludeFunctionalities GetIncidentParamsInclude = "functionalities" + GetIncidentParamsIncludeGroups GetIncidentParamsInclude = "groups" + GetIncidentParamsIncludeIncidentPostMortem GetIncidentParamsInclude = "incident_post_mortem" + GetIncidentParamsIncludeIncidentRoleAssignments GetIncidentParamsInclude = "incident_role_assignments" + GetIncidentParamsIncludeIncidentTypes GetIncidentParamsInclude = "incident_types" + GetIncidentParamsIncludeServices GetIncidentParamsInclude = "services" + GetIncidentParamsIncludeSubStatuses GetIncidentParamsInclude = "sub_statuses" + GetIncidentParamsIncludeSubscribers GetIncidentParamsInclude = "subscribers" +) + +// Defines values for ListIncidentSubStatusesParamsInclude. +const ( + ListIncidentSubStatusesParamsIncludeAssignedByUser ListIncidentSubStatusesParamsInclude = "assigned_by_user" + ListIncidentSubStatusesParamsIncludeSubStatus ListIncidentSubStatusesParamsInclude = "sub_status" +) + +// Defines values for ListIncidentSubStatusesParamsSort. +const ( + ListIncidentSubStatusesParamsSortAssignedAt ListIncidentSubStatusesParamsSort = "assigned_at" + ListIncidentSubStatusesParamsSortCreatedAt ListIncidentSubStatusesParamsSort = "created_at" + ListIncidentSubStatusesParamsSortMinusAssignedAt ListIncidentSubStatusesParamsSort = "-assigned_at" + ListIncidentSubStatusesParamsSortMinusCreatedAt ListIncidentSubStatusesParamsSort = "-created_at" + ListIncidentSubStatusesParamsSortMinusUpdatedAt ListIncidentSubStatusesParamsSort = "-updated_at" + ListIncidentSubStatusesParamsSortUpdatedAt ListIncidentSubStatusesParamsSort = "updated_at" +) + // Defines values for GeneratePhoneNumberLiveCallRouterParamsCountryCode. const ( GeneratePhoneNumberLiveCallRouterParamsCountryCodeAU GeneratePhoneNumberLiveCallRouterParamsCountryCode = "AU" @@ -5695,6 +5918,135 @@ const ( TollFree GeneratePhoneNumberLiveCallRouterParamsPhoneType = "toll_free" ) +// Defines values for ListPlaybooksParamsInclude. +const ( + ListPlaybooksParamsIncludeCauses ListPlaybooksParamsInclude = "causes" + ListPlaybooksParamsIncludeEnvironments ListPlaybooksParamsInclude = "environments" + ListPlaybooksParamsIncludeFunctionalities ListPlaybooksParamsInclude = "functionalities" + ListPlaybooksParamsIncludeGroups ListPlaybooksParamsInclude = "groups" + ListPlaybooksParamsIncludeIncidentTypes ListPlaybooksParamsInclude = "incident_types" + ListPlaybooksParamsIncludeServices ListPlaybooksParamsInclude = "services" + ListPlaybooksParamsIncludeSeverities ListPlaybooksParamsInclude = "severities" +) + +// Defines values for GetPlaybookParamsInclude. +const ( + GetPlaybookParamsIncludeCauses GetPlaybookParamsInclude = "causes" + GetPlaybookParamsIncludeEnvironments GetPlaybookParamsInclude = "environments" + GetPlaybookParamsIncludeFunctionalities GetPlaybookParamsInclude = "functionalities" + GetPlaybookParamsIncludeGroups GetPlaybookParamsInclude = "groups" + GetPlaybookParamsIncludeIncidentTypes GetPlaybookParamsInclude = "incident_types" + GetPlaybookParamsIncludeServices GetPlaybookParamsInclude = "services" + GetPlaybookParamsIncludeSeverities GetPlaybookParamsInclude = "severities" +) + +// Defines values for ListRetrospectiveConfigurationsParamsInclude. +const ( + ListRetrospectiveConfigurationsParamsIncludeGroups ListRetrospectiveConfigurationsParamsInclude = "groups" + ListRetrospectiveConfigurationsParamsIncludeIncidentTypes ListRetrospectiveConfigurationsParamsInclude = "incident_types" + ListRetrospectiveConfigurationsParamsIncludeSeverities ListRetrospectiveConfigurationsParamsInclude = "severities" +) + +// Defines values for GetRetrospectiveConfigurationParamsInclude. +const ( + GetRetrospectiveConfigurationParamsIncludeGroups GetRetrospectiveConfigurationParamsInclude = "groups" + GetRetrospectiveConfigurationParamsIncludeIncidentTypes GetRetrospectiveConfigurationParamsInclude = "incident_types" + GetRetrospectiveConfigurationParamsIncludeSeverities GetRetrospectiveConfigurationParamsInclude = "severities" +) + +// Defines values for GetRetrospectiveProcessGroupParamsInclude. +const ( + GetRetrospectiveProcessGroupParamsIncludeRetrospectiveProcessGroupSteps GetRetrospectiveProcessGroupParamsInclude = "retrospective_process_group_steps" +) + +// Defines values for ListRetrospectiveProcessesParamsInclude. +const ( + ListRetrospectiveProcessesParamsIncludeGroups ListRetrospectiveProcessesParamsInclude = "groups" + ListRetrospectiveProcessesParamsIncludeIncidentTypes ListRetrospectiveProcessesParamsInclude = "incident_types" + ListRetrospectiveProcessesParamsIncludeRetrospectiveSteps ListRetrospectiveProcessesParamsInclude = "retrospective_steps" + ListRetrospectiveProcessesParamsIncludeSeverities ListRetrospectiveProcessesParamsInclude = "severities" +) + +// Defines values for GetRetrospectiveProcessParamsInclude. +const ( + GetRetrospectiveProcessParamsIncludeGroups GetRetrospectiveProcessParamsInclude = "groups" + GetRetrospectiveProcessParamsIncludeIncidentTypes GetRetrospectiveProcessParamsInclude = "incident_types" + GetRetrospectiveProcessParamsIncludeRetrospectiveSteps GetRetrospectiveProcessParamsInclude = "retrospective_steps" + GetRetrospectiveProcessParamsIncludeSeverities GetRetrospectiveProcessParamsInclude = "severities" +) + +// Defines values for ListRetrospectiveProcessGroupsParamsInclude. +const ( + ListRetrospectiveProcessGroupsParamsIncludeRetrospectiveProcessGroupSteps ListRetrospectiveProcessGroupsParamsInclude = "retrospective_process_group_steps" +) + +// Defines values for ListRetrospectiveProcessGroupsParamsSort. +const ( + ListRetrospectiveProcessGroupsParamsSortCreatedAt ListRetrospectiveProcessGroupsParamsSort = "created_at" + ListRetrospectiveProcessGroupsParamsSortMinusCreatedAt ListRetrospectiveProcessGroupsParamsSort = "-created_at" + ListRetrospectiveProcessGroupsParamsSortMinusPosition ListRetrospectiveProcessGroupsParamsSort = "-position" + ListRetrospectiveProcessGroupsParamsSortMinusUpdatedAt ListRetrospectiveProcessGroupsParamsSort = "-updated_at" + ListRetrospectiveProcessGroupsParamsSortPosition ListRetrospectiveProcessGroupsParamsSort = "position" + ListRetrospectiveProcessGroupsParamsSortUpdatedAt ListRetrospectiveProcessGroupsParamsSort = "updated_at" +) + +// Defines values for ListShiftsParamsInclude. +const ( + ListShiftsParamsIncludeShiftOverride ListShiftsParamsInclude = "shift_override" + ListShiftsParamsIncludeUser ListShiftsParamsInclude = "user" +) + +// Defines values for ListUsersParamsSort. +const ( + ListUsersParamsSortCreatedAt ListUsersParamsSort = "created_at" + ListUsersParamsSortMinusCreatedAt ListUsersParamsSort = "-created_at" + ListUsersParamsSortMinusUpdatedAt ListUsersParamsSort = "-updated_at" + ListUsersParamsSortUpdatedAt ListUsersParamsSort = "updated_at" +) + +// Defines values for ListUsersParamsInclude. +const ( + ListUsersParamsIncludeDevices ListUsersParamsInclude = "devices" + ListUsersParamsIncludeEmailAddresses ListUsersParamsInclude = "email_addresses" + ListUsersParamsIncludePhoneNumbers ListUsersParamsInclude = "phone_numbers" +) + +// Defines values for GetUserParamsInclude. +const ( + GetUserParamsIncludeDevices GetUserParamsInclude = "devices" + GetUserParamsIncludeEmailAddresses GetUserParamsInclude = "email_addresses" + GetUserParamsIncludePhoneNumbers GetUserParamsInclude = "phone_numbers" +) + +// Defines values for ListWorkflowsParamsInclude. +const ( + ListWorkflowsParamsIncludeFormFieldConditions ListWorkflowsParamsInclude = "form_field_conditions" + ListWorkflowsParamsIncludeGeniusTasks ListWorkflowsParamsInclude = "genius_tasks" + ListWorkflowsParamsIncludeGeniusWorkflowRuns ListWorkflowsParamsInclude = "genius_workflow_runs" +) + +// Defines values for ListWorkflowsParamsSort. +const ( + ListWorkflowsParamsSortCreatedAt ListWorkflowsParamsSort = "created_at" + ListWorkflowsParamsSortMinusCreatedAt ListWorkflowsParamsSort = "-created_at" + ListWorkflowsParamsSortMinusPosition ListWorkflowsParamsSort = "-position" + ListWorkflowsParamsSortMinusUpdatedAt ListWorkflowsParamsSort = "-updated_at" + ListWorkflowsParamsSortPosition ListWorkflowsParamsSort = "position" + ListWorkflowsParamsSortUpdatedAt ListWorkflowsParamsSort = "updated_at" +) + +// Defines values for GetWorkflowParamsInclude. +const ( + GetWorkflowParamsIncludeFormFieldConditions GetWorkflowParamsInclude = "form_field_conditions" + GetWorkflowParamsIncludeGeniusTasks GetWorkflowParamsInclude = "genius_tasks" + GetWorkflowParamsIncludeGeniusWorkflowRuns GetWorkflowParamsInclude = "genius_workflow_runs" +) + +// Defines values for ListWorkflowRunsParamsInclude. +const ( + GeniusTaskRuns ListWorkflowRunsParamsInclude = "genius_task_runs" +) + // ActionItemTriggerParams defines model for action_item_trigger_params. type ActionItemTriggerParams struct { IncidentActionItemCondition *ActionItemTriggerParamsIncidentActionItemCondition `json:"incident_action_item_condition,omitempty"` @@ -6080,6 +6432,9 @@ type Alert struct { // Data Additional data Data *map[string]interface{} `json:"data"` + // Description The description of the alert + Description *string `json:"description"` + // Environments Environments attached to the alert Environments *[]Environment `json:"environments,omitempty"` @@ -8900,9 +9255,15 @@ type FormSetResponseDataType string // Functionality defines model for functionality. type Functionality struct { + // BackstageId The Backstage entity id associated to this functionality. eg: :namespace/:kind/:entity_name + BackstageId *string `json:"backstage_id"` + // Color The hex color of the functionality Color *string `json:"color"` + // CortexId The Cortex group id associated to this functionality + CortexId *string `json:"cortex_id"` + // CreatedAt Date of creation CreatedAt string `json:"created_at"` @@ -8918,12 +9279,21 @@ type Functionality struct { // NotifyEmails Emails attached to the functionality NotifyEmails *[]string `json:"notify_emails"` + // OpsgenieId The Opsgenie service id associated to this functionality + OpsgenieId *string `json:"opsgenie_id"` + + // OpsgenieTeamId The Opsgenie team id associated to this functionality + OpsgenieTeamId *string `json:"opsgenie_team_id"` + // OwnersGroupIds Owner Teams associated with this functionality OwnersGroupIds *[]string `json:"owners_group_ids"` // OwnersUserIds Owner Users associated with this functionality OwnersUserIds *[]int `json:"owners_user_ids"` + // PagerdutyId The PagerDuty service id associated to this functionality + PagerdutyId *string `json:"pagerduty_id"` + // Position Position of the functionality Position *int `json:"position"` @@ -8933,6 +9303,9 @@ type Functionality struct { // ServiceIds Services associated with this functionality ServiceIds *[]string `json:"service_ids"` + // ServiceNowCiSysId The Service Now CI sys id associated to this functionality + ServiceNowCiSysId *string `json:"service_now_ci_sys_id"` + // SlackAliases Slack Aliases associated with this functionality SlackAliases *[]struct { // Id Slack alias ID @@ -10666,6 +11039,9 @@ type NewAlert struct { // Data Additional data Data *map[string]interface{} `json:"data"` + // Description The description of the alert + Description *string `json:"description"` + // EndedAt Alert end datetime EndedAt *time.Time `json:"ended_at"` @@ -11422,6 +11798,9 @@ type NewFunctionality struct { // OpsgenieId The Opsgenie service id associated to this functionality OpsgenieId *string `json:"opsgenie_id"` + // OpsgenieTeamId The Opsgenie team id associated to this functionality + OpsgenieTeamId *string `json:"opsgenie_team_id"` + // OwnersGroupIds Owner Teams associated with this functionality OwnersGroupIds *[]string `json:"owners_group_ids"` @@ -12453,6 +12832,9 @@ type NewRoleDataType string type NewSchedule struct { Data struct { Attributes struct { + // AllTimeCoverage 24/7 coverage of the schedule + AllTimeCoverage *bool `json:"all_time_coverage"` + // Description The description of the schedule Description *string `json:"description"` @@ -12643,6 +13025,9 @@ type NewService struct { // OpsgenieId The Opsgenie service id associated to this service OpsgenieId *string `json:"opsgenie_id"` + // OpsgenieTeamId The Opsgenie team id associated to this service + OpsgenieTeamId *string `json:"opsgenie_team_id"` + // OwnersGroupIds Owner Teams associated with this service OwnersGroupIds *[]string `json:"owners_group_ids"` @@ -12870,6 +13255,9 @@ type NewTeam struct { // OpsgenieId The Opsgenie group id associated to this team OpsgenieId *string `json:"opsgenie_id"` + // OpsgenieTeamId The Opsgenie team id associated to this team + OpsgenieTeamId *string `json:"opsgenie_team_id"` + // PagerdutyId The PagerDuty group id associated to this team PagerdutyId *string `json:"pagerduty_id"` @@ -14323,6 +14711,9 @@ type RunCommandHerokuTaskParamsTaskType string // Schedule defines model for schedule. type Schedule struct { + // AllTimeCoverage 24/7 coverage of the schedule + AllTimeCoverage *bool `json:"all_time_coverage"` + // CreatedAt Date of creation CreatedAt string `json:"created_at"` @@ -14332,6 +14723,9 @@ type Schedule struct { // Name The name of the schedule Name string `json:"name"` + // SlackUserGroup Synced slack group of the schedule + SlackUserGroup *string `json:"slack_user_group"` + // UpdatedAt Date of last update UpdatedAt string `json:"updated_at"` } @@ -14652,6 +15046,39 @@ type SendEmailTaskParams struct { // SendEmailTaskParamsTaskType defines model for SendEmailTaskParams.TaskType. type SendEmailTaskParamsTaskType string +// SendMicrosoftTeamsBlocksTaskParams defines model for send_microsoft_teams_blocks_task_params. +type SendMicrosoftTeamsBlocksTaskParams struct { + // Attachments Support liquid markup. Needs to be a valid JSON string after liquid is parsed + Attachments string `json:"attachments"` + TaskType *SendMicrosoftTeamsBlocksTaskParamsTaskType `json:"task_type,omitempty"` + union json.RawMessage +} + +// SendMicrosoftTeamsBlocksTaskParamsTaskType defines model for SendMicrosoftTeamsBlocksTaskParams.TaskType. +type SendMicrosoftTeamsBlocksTaskParamsTaskType string + +// SendMicrosoftTeamsBlocksTaskParams0 defines model for . +type SendMicrosoftTeamsBlocksTaskParams0 = interface{} + +// SendMicrosoftTeamsMessageTaskParams defines model for send_microsoft_teams_message_task_params. +type SendMicrosoftTeamsMessageTaskParams struct { + Channels *[]struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"channels,omitempty"` + TaskType *SendMicrosoftTeamsMessageTaskParamsTaskType `json:"task_type,omitempty"` + + // Text The message text + Text string `json:"text"` + union json.RawMessage +} + +// SendMicrosoftTeamsMessageTaskParamsTaskType defines model for SendMicrosoftTeamsMessageTaskParams.TaskType. +type SendMicrosoftTeamsMessageTaskParamsTaskType string + +// SendMicrosoftTeamsMessageTaskParams0 defines model for . +type SendMicrosoftTeamsMessageTaskParams0 = interface{} + // SendSlackBlocksTaskParams defines model for send_slack_blocks_task_params. type SendSlackBlocksTaskParams struct { // Attachments Support liquid markup. Needs to be a valid JSON string after liquid is parsed @@ -16290,9 +16717,15 @@ type UpdateFormSetConditionDataType string type UpdateFunctionality struct { Data struct { Attributes struct { + // BackstageId The Backstage entity id associated to this functionality. eg: :namespace/:kind/:entity_name + BackstageId *string `json:"backstage_id"` + // Color The hex color of the functionality Color *string `json:"color"` + // CortexId The Cortex group id associated to this functionality + CortexId *string `json:"cortex_id"` + // Description The description of the functionality Description *string `json:"description"` @@ -16305,12 +16738,21 @@ type UpdateFunctionality struct { // NotifyEmails Emails to attach to the functionality NotifyEmails *[]string `json:"notify_emails"` + // OpsgenieId The Opsgenie service id associated to this functionality + OpsgenieId *string `json:"opsgenie_id"` + + // OpsgenieTeamId The Opsgenie team id associated to this functionality + OpsgenieTeamId *string `json:"opsgenie_team_id"` + // OwnersGroupIds Owner Teams associated with this functionality OwnersGroupIds *[]string `json:"owners_group_ids"` // OwnersUserIds Owner Users associated with this functionality OwnersUserIds *[]int `json:"owners_user_ids"` + // PagerdutyId The PagerDuty service id associated to this functionality + PagerdutyId *string `json:"pagerduty_id"` + // Position Position of the functionality Position *int `json:"position"` @@ -16320,6 +16762,9 @@ type UpdateFunctionality struct { // ServiceIds Services associated with this functionality ServiceIds *[]string `json:"service_ids"` + // ServiceNowCiSysId The Service Now CI sys id associated to this functionality + ServiceNowCiSysId *string `json:"service_now_ci_sys_id"` + // SlackAliases Slack Aliases associated with this functionality SlackAliases *[]struct { // Id Slack alias ID @@ -17799,6 +18244,9 @@ type UpdateRoleDataType string type UpdateSchedule struct { Data struct { Attributes struct { + // AllTimeCoverage 24/7 coverage of the schedule + AllTimeCoverage *bool `json:"all_time_coverage"` + // Description The description of the schedule Description *string `json:"description"` @@ -19308,57 +19756,124 @@ type ListAuthorizationsParams struct { // ListCatalogEntityPropertiesParams defines parameters for ListCatalogEntityProperties. type ListCatalogEntityPropertiesParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterCatalogFieldId *string `form:"filter[catalog_field_id],omitempty" json:"filter[catalog_field_id],omitempty"` - FilterKey *string `form:"filter[key],omitempty" json:"filter[key],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: catalog_entity,catalog_field + Include *ListCatalogEntityPropertiesParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListCatalogEntityPropertiesParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterCatalogFieldId *string `form:"filter[catalog_field_id],omitempty" json:"filter[catalog_field_id],omitempty"` + FilterKey *string `form:"filter[key],omitempty" json:"filter[key],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` +} + +// ListCatalogEntityPropertiesParamsInclude defines parameters for ListCatalogEntityProperties. +type ListCatalogEntityPropertiesParamsInclude string + +// ListCatalogEntityPropertiesParamsSort defines parameters for ListCatalogEntityProperties. +type ListCatalogEntityPropertiesParamsSort string + +// GetCatalogEntityParams defines parameters for GetCatalogEntity. +type GetCatalogEntityParams struct { + // Include comma separated if needed. eg: catalog,properties + Include *GetCatalogEntityParamsInclude `form:"include,omitempty" json:"include,omitempty"` } +// GetCatalogEntityParamsInclude defines parameters for GetCatalogEntity. +type GetCatalogEntityParamsInclude string + +// GetCatalogEntityPropertyParams defines parameters for GetCatalogEntityProperty. +type GetCatalogEntityPropertyParams struct { + // Include comma separated if needed. eg: catalog_entity,catalog_field + Include *GetCatalogEntityPropertyParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetCatalogEntityPropertyParamsInclude defines parameters for GetCatalogEntityProperty. +type GetCatalogEntityPropertyParamsInclude string + +// GetCatalogFieldParams defines parameters for GetCatalogField. +type GetCatalogFieldParams struct { + // Include comma separated if needed. eg: catalog + Include *GetCatalogFieldParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetCatalogFieldParamsInclude defines parameters for GetCatalogField. +type GetCatalogFieldParamsInclude string + // ListCatalogsParams defines parameters for ListCatalogs. type ListCatalogsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: fields,entities + Include *ListCatalogsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListCatalogsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListCatalogsParamsInclude defines parameters for ListCatalogs. +type ListCatalogsParamsInclude string + +// ListCatalogsParamsSort defines parameters for ListCatalogs. +type ListCatalogsParamsSort string + // ListCatalogEntitiesParams defines parameters for ListCatalogEntities. type ListCatalogEntitiesParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: catalog,properties + Include *ListCatalogEntitiesParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListCatalogEntitiesParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListCatalogEntitiesParamsInclude defines parameters for ListCatalogEntities. +type ListCatalogEntitiesParamsInclude string + +// ListCatalogEntitiesParamsSort defines parameters for ListCatalogEntities. +type ListCatalogEntitiesParamsSort string + // ListCatalogFieldsParams defines parameters for ListCatalogFields. type ListCatalogFieldsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` - FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: catalog + Include *ListCatalogFieldsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListCatalogFieldsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` + FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListCatalogFieldsParamsInclude defines parameters for ListCatalogFields. +type ListCatalogFieldsParamsInclude string + +// ListCatalogFieldsParamsSort defines parameters for ListCatalogFields. +type ListCatalogFieldsParamsSort string + // ListCausesParams defines parameters for ListCauses. type ListCausesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19375,19 +19890,29 @@ type ListCausesParams struct { // ListCustomFieldsParams defines parameters for ListCustomFields. type ListCustomFieldsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterLabel *string `form:"filter[label],omitempty" json:"filter[label],omitempty"` - FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` - FilterEnabled *bool `form:"filter[enabled],omitempty" json:"filter[enabled],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: options + Include *ListCustomFieldsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListCustomFieldsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterLabel *string `form:"filter[label],omitempty" json:"filter[label],omitempty"` + FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` + FilterEnabled *bool `form:"filter[enabled],omitempty" json:"filter[enabled],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListCustomFieldsParamsInclude defines parameters for ListCustomFields. +type ListCustomFieldsParamsInclude string + +// ListCustomFieldsParamsSort defines parameters for ListCustomFields. +type ListCustomFieldsParamsSort string + // ListCustomFieldOptionsParams defines parameters for ListCustomFieldOptions. type ListCustomFieldOptionsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19397,6 +19922,15 @@ type ListCustomFieldOptionsParams struct { FilterColor *string `form:"filter[color],omitempty" json:"filter[color],omitempty"` } +// GetCustomFieldParams defines parameters for GetCustomField. +type GetCustomFieldParams struct { + // Include comma separated if needed. eg: options + Include *GetCustomFieldParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetCustomFieldParamsInclude defines parameters for GetCustomField. +type GetCustomFieldParamsInclude string + // ListCustomFormsParams defines parameters for ListCustomForms. type ListCustomFormsParams struct { PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` @@ -19426,11 +19960,15 @@ type GetDashboardPanelParams struct { // ListDashboardsParams defines parameters for ListDashboards. type ListDashboardsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + // Include comma separated if needed. eg: panels + Include *ListDashboardsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// ListDashboardsParamsInclude defines parameters for ListDashboards. +type ListDashboardsParamsInclude string + // ListDashboardPanelsParams defines parameters for ListDashboardPanels. type ListDashboardPanelsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19438,6 +19976,15 @@ type ListDashboardPanelsParams struct { PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// GetDashboardParams defines parameters for GetDashboard. +type GetDashboardParams struct { + // Include comma separated if needed. eg: panels + Include *GetDashboardParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetDashboardParamsInclude defines parameters for GetDashboard. +type GetDashboardParamsInclude string + // ListEnvironmentsParams defines parameters for ListEnvironments. type ListEnvironmentsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19461,13 +20008,26 @@ type ListEscalationLevelsPathsParams struct { PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// GetEscalationPathParams defines parameters for GetEscalationPath. +type GetEscalationPathParams struct { + // Include comma separated if needed. eg: escalation_policy_levels + Include *GetEscalationPathParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetEscalationPathParamsInclude defines parameters for GetEscalationPath. +type GetEscalationPathParamsInclude string + // ListEscalationPoliciesParams defines parameters for ListEscalationPolicies. type ListEscalationPoliciesParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + // Include comma separated if needed. eg: escalation_policy_levels,escalation_paths + Include *ListEscalationPoliciesParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// ListEscalationPoliciesParamsInclude defines parameters for ListEscalationPolicies. +type ListEscalationPoliciesParamsInclude string + // ListEscalationLevelsPoliciesParams defines parameters for ListEscalationLevelsPolicies. type ListEscalationLevelsPoliciesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19477,11 +20037,24 @@ type ListEscalationLevelsPoliciesParams struct { // ListEscalationPathsParams defines parameters for ListEscalationPaths. type ListEscalationPathsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + // Include comma separated if needed. eg: escalation_policy_levels + Include *ListEscalationPathsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// ListEscalationPathsParamsInclude defines parameters for ListEscalationPaths. +type ListEscalationPathsParamsInclude string + +// GetEscalationPolicyParams defines parameters for GetEscalationPolicy. +type GetEscalationPolicyParams struct { + // Include comma separated if needed. eg: escalation_policy_levels,escalation_paths + Include *GetEscalationPolicyParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetEscalationPolicyParamsInclude defines parameters for GetEscalationPolicy. +type GetEscalationPolicyParamsInclude string + // ListIncidentEventFunctionalitiesParams defines parameters for ListIncidentEventFunctionalities. type ListIncidentEventFunctionalitiesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19506,19 +20079,23 @@ type ListFormFieldPlacementConditionsParams struct { // ListFormFieldsParams defines parameters for ListFormFields. type ListFormFieldsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` - FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` - FilterEnabled *bool `form:"filter[enabled],omitempty" json:"filter[enabled],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` -} + // Include comma separated if needed. eg: options,positions + Include *ListFormFieldsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` + FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` + FilterEnabled *bool `form:"filter[enabled],omitempty" json:"filter[enabled],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` +} + +// ListFormFieldsParamsInclude defines parameters for ListFormFields. +type ListFormFieldsParamsInclude string // ListFormFieldOptionsParams defines parameters for ListFormFieldOptions. type ListFormFieldOptionsParams struct { @@ -19545,6 +20122,15 @@ type ListFormFieldPositionsParams struct { FilterForm *string `form:"filter[form],omitempty" json:"filter[form],omitempty"` } +// GetFormFieldParams defines parameters for GetFormField. +type GetFormFieldParams struct { + // Include comma separated if needed. eg: options,positions + Include *GetFormFieldParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetFormFieldParamsInclude defines parameters for GetFormField. +type GetFormFieldParamsInclude string + // ListFormSetsParams defines parameters for ListFormSets. type ListFormSetsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19670,6 +20256,15 @@ type ListIncidentRoleTasksParams struct { PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` } +// GetIncidentSubStatusParams defines parameters for GetIncidentSubStatus. +type GetIncidentSubStatusParams struct { + // Include comma separated if needed. eg: sub_status,assigned_by_user + Include *GetIncidentSubStatusParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetIncidentSubStatusParamsInclude defines parameters for GetIncidentSubStatus. +type GetIncidentSubStatusParamsInclude string + // ListIncidentTypesParams defines parameters for ListIncidentTypes. type ListIncidentTypesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19687,7 +20282,6 @@ type ListIncidentTypesParams struct { // ListIncidentsParams defines parameters for ListIncidents. type ListIncidentsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"` @@ -19743,9 +20337,29 @@ type ListIncidentsParams struct { FilterInTriageAtGte *string `form:"filter[in_triage_at][gte],omitempty" json:"filter[in_triage_at][gte],omitempty"` FilterInTriageAtLt *string `form:"filter[in_triage_at][lt],omitempty" json:"filter[in_triage_at][lt],omitempty"` FilterInTriageAtLte *string `form:"filter[in_triage_at][lte],omitempty" json:"filter[in_triage_at][lte],omitempty"` - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListIncidentsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + + // Include comma separated if needed. eg: sub_statuses,causes,subscribers + Include *ListIncidentsParamsInclude `form:"include,omitempty" json:"include,omitempty"` } +// ListIncidentsParamsSort defines parameters for ListIncidents. +type ListIncidentsParamsSort string + +// ListIncidentsParamsInclude defines parameters for ListIncidents. +type ListIncidentsParamsInclude string + +// GetIncidentParams defines parameters for GetIncident. +type GetIncidentParams struct { + // Include comma separated if needed. eg: sub_statuses,causes,subscribers + Include *GetIncidentParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetIncidentParamsInclude defines parameters for GetIncident. +type GetIncidentParamsInclude string + // ListIncidentActionItemsParams defines parameters for ListIncidentActionItems. type ListIncidentActionItemsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19814,16 +20428,26 @@ type ListIncidentStatusPagesParams struct { // ListIncidentSubStatusesParams defines parameters for ListIncidentSubStatuses. type ListIncidentSubStatusesParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSubStatusId *string `form:"filter[sub_status_id],omitempty" json:"filter[sub_status_id],omitempty"` - FilterAssignedAtGt *string `form:"filter[assigned_at][gt],omitempty" json:"filter[assigned_at][gt],omitempty"` - FilterAssignedAtGte *string `form:"filter[assigned_at][gte],omitempty" json:"filter[assigned_at][gte],omitempty"` - FilterAssignedAtLt *string `form:"filter[assigned_at][lt],omitempty" json:"filter[assigned_at][lt],omitempty"` - FilterAssignedAtLte *string `form:"filter[assigned_at][lte],omitempty" json:"filter[assigned_at][lte],omitempty"` + // Include comma separated if needed. eg: sub_status,assigned_by_user + Include *ListIncidentSubStatusesParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListIncidentSubStatusesParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSubStatusId *string `form:"filter[sub_status_id],omitempty" json:"filter[sub_status_id],omitempty"` + FilterAssignedAtGt *string `form:"filter[assigned_at][gt],omitempty" json:"filter[assigned_at][gt],omitempty"` + FilterAssignedAtGte *string `form:"filter[assigned_at][gte],omitempty" json:"filter[assigned_at][gte],omitempty"` + FilterAssignedAtLt *string `form:"filter[assigned_at][lt],omitempty" json:"filter[assigned_at][lt],omitempty"` + FilterAssignedAtLte *string `form:"filter[assigned_at][lte],omitempty" json:"filter[assigned_at][lte],omitempty"` } +// ListIncidentSubStatusesParamsInclude defines parameters for ListIncidentSubStatuses. +type ListIncidentSubStatusesParamsInclude string + +// ListIncidentSubStatusesParamsSort defines parameters for ListIncidentSubStatuses. +type ListIncidentSubStatusesParamsSort string + // ListLiveCallRoutersParams defines parameters for ListLiveCallRouters. type ListLiveCallRoutersParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19853,11 +20477,24 @@ type GeneratePhoneNumberLiveCallRouterParamsPhoneType string // ListPlaybooksParams defines parameters for ListPlaybooks. type ListPlaybooksParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + // Include comma separated if needed. eg: severities,environments,services + Include *ListPlaybooksParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` +} + +// ListPlaybooksParamsInclude defines parameters for ListPlaybooks. +type ListPlaybooksParamsInclude string + +// GetPlaybookParams defines parameters for GetPlaybook. +type GetPlaybookParams struct { + // Include comma separated if needed. eg: severities,environments,services + Include *GetPlaybookParamsInclude `form:"include,omitempty" json:"include,omitempty"` } +// GetPlaybookParamsInclude defines parameters for GetPlaybook. +type GetPlaybookParamsInclude string + // ListPlaybookTasksParams defines parameters for ListPlaybookTasks. type ListPlaybookTasksParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19931,12 +20568,34 @@ type ListPulsesParams struct { // ListRetrospectiveConfigurationsParams defines parameters for ListRetrospectiveConfigurations. type ListRetrospectiveConfigurationsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` + // Include comma separated if needed. eg: severities,groups + Include *ListRetrospectiveConfigurationsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterKind *string `form:"filter[kind],omitempty" json:"filter[kind],omitempty"` } +// ListRetrospectiveConfigurationsParamsInclude defines parameters for ListRetrospectiveConfigurations. +type ListRetrospectiveConfigurationsParamsInclude string + +// GetRetrospectiveConfigurationParams defines parameters for GetRetrospectiveConfiguration. +type GetRetrospectiveConfigurationParams struct { + // Include comma separated if needed. eg: severities,groups + Include *GetRetrospectiveConfigurationParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetRetrospectiveConfigurationParamsInclude defines parameters for GetRetrospectiveConfiguration. +type GetRetrospectiveConfigurationParamsInclude string + +// GetRetrospectiveProcessGroupParams defines parameters for GetRetrospectiveProcessGroup. +type GetRetrospectiveProcessGroupParams struct { + // Include comma separated if needed. eg: retrospective_process_group_steps + Include *GetRetrospectiveProcessGroupParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetRetrospectiveProcessGroupParamsInclude defines parameters for GetRetrospectiveProcessGroup. +type GetRetrospectiveProcessGroupParamsInclude string + // ListRetrospectiveProcessGroupStepsParams defines parameters for ListRetrospectiveProcessGroupSteps. type ListRetrospectiveProcessGroupStepsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -19951,23 +20610,46 @@ type ListRetrospectiveProcessGroupStepsParams struct { // ListRetrospectiveProcessesParams defines parameters for ListRetrospectiveProcesses. type ListRetrospectiveProcessesParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + // Include comma separated if needed. eg: retrospective_steps,severities + Include *ListRetrospectiveProcessesParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` +} + +// ListRetrospectiveProcessesParamsInclude defines parameters for ListRetrospectiveProcesses. +type ListRetrospectiveProcessesParamsInclude string + +// GetRetrospectiveProcessParams defines parameters for GetRetrospectiveProcess. +type GetRetrospectiveProcessParams struct { + // Include comma separated if needed. eg: retrospective_steps,severities + Include *GetRetrospectiveProcessParamsInclude `form:"include,omitempty" json:"include,omitempty"` } +// GetRetrospectiveProcessParamsInclude defines parameters for GetRetrospectiveProcess. +type GetRetrospectiveProcessParamsInclude string + // ListRetrospectiveProcessGroupsParams defines parameters for ListRetrospectiveProcessGroups. type ListRetrospectiveProcessGroupsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSubStatusId *string `form:"filter[sub_status_id],omitempty" json:"filter[sub_status_id],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: retrospective_process_group_steps + Include *ListRetrospectiveProcessGroupsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListRetrospectiveProcessGroupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSubStatusId *string `form:"filter[sub_status_id],omitempty" json:"filter[sub_status_id],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListRetrospectiveProcessGroupsParamsInclude defines parameters for ListRetrospectiveProcessGroups. +type ListRetrospectiveProcessGroupsParamsInclude string + +// ListRetrospectiveProcessGroupsParamsSort defines parameters for ListRetrospectiveProcessGroups. +type ListRetrospectiveProcessGroupsParamsSort string + // ListRetrospectiveStepsParams defines parameters for ListRetrospectiveSteps. type ListRetrospectiveStepsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -20092,17 +20774,21 @@ type ListSeveritiesParams struct { // ListShiftsParams defines parameters for ListShifts. type ListShiftsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` + // Include comma separated if needed. eg: shift_override,user + Include *ListShiftsParamsInclude `form:"include,omitempty" json:"include,omitempty"` // To Start range for shifts To *string `form:"to,omitempty" json:"to,omitempty"` // From End range for shifts From *string `form:"from,omitempty" json:"from,omitempty"` - UserIds *[]string `form:"user_ids[],omitempty" json:"user_ids[],omitempty"` + UserIds *[]int `form:"user_ids[],omitempty" json:"user_ids[],omitempty"` ScheduleIds *[]string `form:"schedule_ids[],omitempty" json:"schedule_ids[],omitempty"` } +// ListShiftsParamsInclude defines parameters for ListShifts. +type ListShiftsParamsInclude string + // ListStatusPagesParams defines parameters for ListStatusPages. type ListStatusPagesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -20171,9 +20857,29 @@ type ListUsersParams struct { FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListUsersParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + + // Include comma separated if needed. eg: email_addresses,phone_numbers + Include *ListUsersParamsInclude `form:"include,omitempty" json:"include,omitempty"` } +// ListUsersParamsSort defines parameters for ListUsers. +type ListUsersParamsSort string + +// ListUsersParamsInclude defines parameters for ListUsers. +type ListUsersParamsInclude string + +// GetUserParams defines parameters for GetUser. +type GetUserParams struct { + // Include comma separated if needed. eg: email_addresses,phone_numbers + Include *GetUserParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetUserParamsInclude defines parameters for GetUser. +type GetUserParamsInclude string + // ListUserNotificationRulesParams defines parameters for ListUserNotificationRules. type ListUserNotificationRulesParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -20213,18 +20919,37 @@ type ListWorkflowGroupsParams struct { // ListWorkflowsParams defines parameters for ListWorkflows. type ListWorkflowsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"` - FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` - FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: form_field_conditions,genius_tasks + Include *ListWorkflowsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + + // Sort comma separated if needed. eg: created_at,updated_at + Sort *ListWorkflowsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"` + FilterName *string `form:"filter[name],omitempty" json:"filter[name],omitempty"` + FilterSlug *string `form:"filter[slug],omitempty" json:"filter[slug],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListWorkflowsParamsInclude defines parameters for ListWorkflows. +type ListWorkflowsParamsInclude string + +// ListWorkflowsParamsSort defines parameters for ListWorkflows. +type ListWorkflowsParamsSort string + +// GetWorkflowParams defines parameters for GetWorkflow. +type GetWorkflowParams struct { + // Include comma separated if needed. eg: form_field_conditions,genius_tasks + Include *GetWorkflowParamsInclude `form:"include,omitempty" json:"include,omitempty"` +} + +// GetWorkflowParamsInclude defines parameters for GetWorkflow. +type GetWorkflowParamsInclude string + // ListWorkflowCustomFieldSelectionsParams defines parameters for ListWorkflowCustomFieldSelections. type ListWorkflowCustomFieldSelectionsParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -20241,15 +20966,19 @@ type ListWorkflowFormFieldConditionsParams struct { // ListWorkflowRunsParams defines parameters for ListWorkflowRuns. type ListWorkflowRunsParams struct { - Include *string `form:"include,omitempty" json:"include,omitempty"` - PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` - PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` - FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` - FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` - FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` - FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` + // Include comma separated if needed. eg: genius_task_runs + Include *ListWorkflowRunsParamsInclude `form:"include,omitempty" json:"include,omitempty"` + PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"` + PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"` + FilterCreatedAtGt *string `form:"filter[created_at][gt],omitempty" json:"filter[created_at][gt],omitempty"` + FilterCreatedAtGte *string `form:"filter[created_at][gte],omitempty" json:"filter[created_at][gte],omitempty"` + FilterCreatedAtLt *string `form:"filter[created_at][lt],omitempty" json:"filter[created_at][lt],omitempty"` + FilterCreatedAtLte *string `form:"filter[created_at][lte],omitempty" json:"filter[created_at][lte],omitempty"` } +// ListWorkflowRunsParamsInclude defines parameters for ListWorkflowRuns. +type ListWorkflowRunsParamsInclude string + // ListWorkflowTasksParams defines parameters for ListWorkflowTasks. type ListWorkflowTasksParams struct { Include *string `form:"include,omitempty" json:"include,omitempty"` @@ -24485,6 +25214,58 @@ func (t *NewWorkflowTask_Data_Attributes_TaskParams) MergeCreateNotionPageTaskPa return err } +// AsSendMicrosoftTeamsMessageTaskParams returns the union data inside the NewWorkflowTask_Data_Attributes_TaskParams as a SendMicrosoftTeamsMessageTaskParams +func (t NewWorkflowTask_Data_Attributes_TaskParams) AsSendMicrosoftTeamsMessageTaskParams() (SendMicrosoftTeamsMessageTaskParams, error) { + var body SendMicrosoftTeamsMessageTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsMessageTaskParams overwrites any union data inside the NewWorkflowTask_Data_Attributes_TaskParams as the provided SendMicrosoftTeamsMessageTaskParams +func (t *NewWorkflowTask_Data_Attributes_TaskParams) FromSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsMessageTaskParams performs a merge with any union data inside the NewWorkflowTask_Data_Attributes_TaskParams, using the provided SendMicrosoftTeamsMessageTaskParams +func (t *NewWorkflowTask_Data_Attributes_TaskParams) MergeSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSendMicrosoftTeamsBlocksTaskParams returns the union data inside the NewWorkflowTask_Data_Attributes_TaskParams as a SendMicrosoftTeamsBlocksTaskParams +func (t NewWorkflowTask_Data_Attributes_TaskParams) AsSendMicrosoftTeamsBlocksTaskParams() (SendMicrosoftTeamsBlocksTaskParams, error) { + var body SendMicrosoftTeamsBlocksTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsBlocksTaskParams overwrites any union data inside the NewWorkflowTask_Data_Attributes_TaskParams as the provided SendMicrosoftTeamsBlocksTaskParams +func (t *NewWorkflowTask_Data_Attributes_TaskParams) FromSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsBlocksTaskParams performs a merge with any union data inside the NewWorkflowTask_Data_Attributes_TaskParams, using the provided SendMicrosoftTeamsBlocksTaskParams +func (t *NewWorkflowTask_Data_Attributes_TaskParams) MergeSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + // AsUpdateNotionPageTaskParams returns the union data inside the NewWorkflowTask_Data_Attributes_TaskParams as a UpdateNotionPageTaskParams func (t NewWorkflowTask_Data_Attributes_TaskParams) AsUpdateNotionPageTaskParams() (UpdateNotionPageTaskParams, error) { var body UpdateNotionPageTaskParams @@ -26375,6 +27156,185 @@ func (t *PageVictorOpsOnCallRespondersTaskParams) UnmarshalJSON(b []byte) error return err } +// AsSendMicrosoftTeamsBlocksTaskParams0 returns the union data inside the SendMicrosoftTeamsBlocksTaskParams as a SendMicrosoftTeamsBlocksTaskParams0 +func (t SendMicrosoftTeamsBlocksTaskParams) AsSendMicrosoftTeamsBlocksTaskParams0() (SendMicrosoftTeamsBlocksTaskParams0, error) { + var body SendMicrosoftTeamsBlocksTaskParams0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsBlocksTaskParams0 overwrites any union data inside the SendMicrosoftTeamsBlocksTaskParams as the provided SendMicrosoftTeamsBlocksTaskParams0 +func (t *SendMicrosoftTeamsBlocksTaskParams) FromSendMicrosoftTeamsBlocksTaskParams0(v SendMicrosoftTeamsBlocksTaskParams0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsBlocksTaskParams0 performs a merge with any union data inside the SendMicrosoftTeamsBlocksTaskParams, using the provided SendMicrosoftTeamsBlocksTaskParams0 +func (t *SendMicrosoftTeamsBlocksTaskParams) MergeSendMicrosoftTeamsBlocksTaskParams0(v SendMicrosoftTeamsBlocksTaskParams0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SendMicrosoftTeamsBlocksTaskParams) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + if err != nil { + return nil, err + } + object := make(map[string]json.RawMessage) + if t.union != nil { + err = json.Unmarshal(b, &object) + if err != nil { + return nil, err + } + } + + object["attachments"], err = json.Marshal(t.Attachments) + if err != nil { + return nil, fmt.Errorf("error marshaling 'attachments': %w", err) + } + + if t.TaskType != nil { + object["task_type"], err = json.Marshal(t.TaskType) + if err != nil { + return nil, fmt.Errorf("error marshaling 'task_type': %w", err) + } + } + b, err = json.Marshal(object) + return b, err +} + +func (t *SendMicrosoftTeamsBlocksTaskParams) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + if err != nil { + return err + } + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["attachments"]; found { + err = json.Unmarshal(raw, &t.Attachments) + if err != nil { + return fmt.Errorf("error reading 'attachments': %w", err) + } + } + + if raw, found := object["task_type"]; found { + err = json.Unmarshal(raw, &t.TaskType) + if err != nil { + return fmt.Errorf("error reading 'task_type': %w", err) + } + } + + return err +} + +// AsSendMicrosoftTeamsMessageTaskParams0 returns the union data inside the SendMicrosoftTeamsMessageTaskParams as a SendMicrosoftTeamsMessageTaskParams0 +func (t SendMicrosoftTeamsMessageTaskParams) AsSendMicrosoftTeamsMessageTaskParams0() (SendMicrosoftTeamsMessageTaskParams0, error) { + var body SendMicrosoftTeamsMessageTaskParams0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsMessageTaskParams0 overwrites any union data inside the SendMicrosoftTeamsMessageTaskParams as the provided SendMicrosoftTeamsMessageTaskParams0 +func (t *SendMicrosoftTeamsMessageTaskParams) FromSendMicrosoftTeamsMessageTaskParams0(v SendMicrosoftTeamsMessageTaskParams0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsMessageTaskParams0 performs a merge with any union data inside the SendMicrosoftTeamsMessageTaskParams, using the provided SendMicrosoftTeamsMessageTaskParams0 +func (t *SendMicrosoftTeamsMessageTaskParams) MergeSendMicrosoftTeamsMessageTaskParams0(v SendMicrosoftTeamsMessageTaskParams0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SendMicrosoftTeamsMessageTaskParams) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + if err != nil { + return nil, err + } + object := make(map[string]json.RawMessage) + if t.union != nil { + err = json.Unmarshal(b, &object) + if err != nil { + return nil, err + } + } + + if t.Channels != nil { + object["channels"], err = json.Marshal(t.Channels) + if err != nil { + return nil, fmt.Errorf("error marshaling 'channels': %w", err) + } + } + + if t.TaskType != nil { + object["task_type"], err = json.Marshal(t.TaskType) + if err != nil { + return nil, fmt.Errorf("error marshaling 'task_type': %w", err) + } + } + + object["text"], err = json.Marshal(t.Text) + if err != nil { + return nil, fmt.Errorf("error marshaling 'text': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *SendMicrosoftTeamsMessageTaskParams) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + if err != nil { + return err + } + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["channels"]; found { + err = json.Unmarshal(raw, &t.Channels) + if err != nil { + return fmt.Errorf("error reading 'channels': %w", err) + } + } + + if raw, found := object["task_type"]; found { + err = json.Unmarshal(raw, &t.TaskType) + if err != nil { + return fmt.Errorf("error reading 'task_type': %w", err) + } + } + + if raw, found := object["text"]; found { + err = json.Unmarshal(raw, &t.Text) + if err != nil { + return fmt.Errorf("error reading 'text': %w", err) + } + } + + return err +} + // AsSendSlackBlocksTaskParams0 returns the union data inside the SendSlackBlocksTaskParams as a SendSlackBlocksTaskParams0 func (t SendSlackBlocksTaskParams) AsSendSlackBlocksTaskParams0() (SendSlackBlocksTaskParams0, error) { var body SendSlackBlocksTaskParams0 @@ -28391,6 +29351,58 @@ func (t *UpdateWorkflowTask_Data_Attributes_TaskParams) MergeCreateNotionPageTas return err } +// AsSendMicrosoftTeamsMessageTaskParams returns the union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams as a SendMicrosoftTeamsMessageTaskParams +func (t UpdateWorkflowTask_Data_Attributes_TaskParams) AsSendMicrosoftTeamsMessageTaskParams() (SendMicrosoftTeamsMessageTaskParams, error) { + var body SendMicrosoftTeamsMessageTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsMessageTaskParams overwrites any union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams as the provided SendMicrosoftTeamsMessageTaskParams +func (t *UpdateWorkflowTask_Data_Attributes_TaskParams) FromSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsMessageTaskParams performs a merge with any union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams, using the provided SendMicrosoftTeamsMessageTaskParams +func (t *UpdateWorkflowTask_Data_Attributes_TaskParams) MergeSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSendMicrosoftTeamsBlocksTaskParams returns the union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams as a SendMicrosoftTeamsBlocksTaskParams +func (t UpdateWorkflowTask_Data_Attributes_TaskParams) AsSendMicrosoftTeamsBlocksTaskParams() (SendMicrosoftTeamsBlocksTaskParams, error) { + var body SendMicrosoftTeamsBlocksTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsBlocksTaskParams overwrites any union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams as the provided SendMicrosoftTeamsBlocksTaskParams +func (t *UpdateWorkflowTask_Data_Attributes_TaskParams) FromSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsBlocksTaskParams performs a merge with any union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams, using the provided SendMicrosoftTeamsBlocksTaskParams +func (t *UpdateWorkflowTask_Data_Attributes_TaskParams) MergeSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + // AsUpdateNotionPageTaskParams returns the union data inside the UpdateWorkflowTask_Data_Attributes_TaskParams as a UpdateNotionPageTaskParams func (t UpdateWorkflowTask_Data_Attributes_TaskParams) AsUpdateNotionPageTaskParams() (UpdateNotionPageTaskParams, error) { var body UpdateNotionPageTaskParams @@ -31583,6 +32595,58 @@ func (t *WorkflowTask_TaskParams) MergeCreateNotionPageTaskParams(v CreateNotion return err } +// AsSendMicrosoftTeamsMessageTaskParams returns the union data inside the WorkflowTask_TaskParams as a SendMicrosoftTeamsMessageTaskParams +func (t WorkflowTask_TaskParams) AsSendMicrosoftTeamsMessageTaskParams() (SendMicrosoftTeamsMessageTaskParams, error) { + var body SendMicrosoftTeamsMessageTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsMessageTaskParams overwrites any union data inside the WorkflowTask_TaskParams as the provided SendMicrosoftTeamsMessageTaskParams +func (t *WorkflowTask_TaskParams) FromSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsMessageTaskParams performs a merge with any union data inside the WorkflowTask_TaskParams, using the provided SendMicrosoftTeamsMessageTaskParams +func (t *WorkflowTask_TaskParams) MergeSendMicrosoftTeamsMessageTaskParams(v SendMicrosoftTeamsMessageTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSendMicrosoftTeamsBlocksTaskParams returns the union data inside the WorkflowTask_TaskParams as a SendMicrosoftTeamsBlocksTaskParams +func (t WorkflowTask_TaskParams) AsSendMicrosoftTeamsBlocksTaskParams() (SendMicrosoftTeamsBlocksTaskParams, error) { + var body SendMicrosoftTeamsBlocksTaskParams + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSendMicrosoftTeamsBlocksTaskParams overwrites any union data inside the WorkflowTask_TaskParams as the provided SendMicrosoftTeamsBlocksTaskParams +func (t *WorkflowTask_TaskParams) FromSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSendMicrosoftTeamsBlocksTaskParams performs a merge with any union data inside the WorkflowTask_TaskParams, using the provided SendMicrosoftTeamsBlocksTaskParams +func (t *WorkflowTask_TaskParams) MergeSendMicrosoftTeamsBlocksTaskParams(v SendMicrosoftTeamsBlocksTaskParams) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + // AsUpdateNotionPageTaskParams returns the union data inside the WorkflowTask_TaskParams as a UpdateNotionPageTaskParams func (t WorkflowTask_TaskParams) AsUpdateNotionPageTaskParams() (UpdateNotionPageTaskParams, error) { var body UpdateNotionPageTaskParams @@ -33513,7 +34577,7 @@ type ClientInterface interface { DeleteCatalogEntity(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCatalogEntity request - GetCatalogEntity(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCatalogEntity(ctx context.Context, id string, params *GetCatalogEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCatalogEntityWithBody request with any body UpdateCatalogEntityWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33524,7 +34588,7 @@ type ClientInterface interface { DeleteCatalogEntityProperty(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCatalogEntityProperty request - GetCatalogEntityProperty(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCatalogEntityProperty(ctx context.Context, id string, params *GetCatalogEntityPropertyParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCatalogEntityPropertyWithBody request with any body UpdateCatalogEntityPropertyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33535,7 +34599,7 @@ type ClientInterface interface { DeleteCatalogField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCatalogField request - GetCatalogField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCatalogField(ctx context.Context, id string, params *GetCatalogFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCatalogFieldWithBody request with any body UpdateCatalogFieldWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33627,7 +34691,7 @@ type ClientInterface interface { DeleteCustomField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomField request - GetCustomField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCustomField(ctx context.Context, id string, params *GetCustomFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCustomFieldWithBody request with any body UpdateCustomFieldWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33687,7 +34751,7 @@ type ClientInterface interface { DeleteDashboard(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDashboard request - GetDashboard(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetDashboard(ctx context.Context, id string, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateDashboardWithBody request with any body UpdateDashboardWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33742,7 +34806,7 @@ type ClientInterface interface { DeleteEscalationPath(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEscalationPath request - GetEscalationPath(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetEscalationPath(ctx context.Context, id string, params *GetEscalationPathParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateEscalationPathWithBody request with any body UpdateEscalationPathWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33777,7 +34841,7 @@ type ClientInterface interface { DeleteEscalationPolicy(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEscalationPolicy request - GetEscalationPolicy(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetEscalationPolicy(ctx context.Context, id string, params *GetEscalationPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateEscalationPolicyWithBody request with any body UpdateEscalationPolicyWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -33907,7 +34971,7 @@ type ClientInterface interface { DeleteFormField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetFormField request - GetFormField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetFormField(ctx context.Context, id string, params *GetFormFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateFormFieldWithBody request with any body UpdateFormFieldWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34142,7 +35206,7 @@ type ClientInterface interface { DeleteIncidentSubStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIncidentSubStatus request - GetIncidentSubStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetIncidentSubStatus(ctx context.Context, id string, params *GetIncidentSubStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateIncidentSubStatusWithBody request with any body UpdateIncidentSubStatusWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34180,7 +35244,7 @@ type ClientInterface interface { DeleteIncident(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIncident request - GetIncident(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetIncident(ctx context.Context, id string, params *GetIncidentParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateIncidentWithBody request with any body UpdateIncidentWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34382,7 +35446,7 @@ type ClientInterface interface { DeletePlaybook(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPlaybook request - GetPlaybook(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetPlaybook(ctx context.Context, id string, params *GetPlaybookParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdatePlaybookWithBody request with any body UpdatePlaybookWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34447,7 +35511,7 @@ type ClientInterface interface { ListRetrospectiveConfigurations(ctx context.Context, params *ListRetrospectiveConfigurationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRetrospectiveConfiguration request - GetRetrospectiveConfiguration(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetRetrospectiveConfiguration(ctx context.Context, id string, params *GetRetrospectiveConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRetrospectiveConfigurationWithBody request with any body UpdateRetrospectiveConfigurationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34469,7 +35533,7 @@ type ClientInterface interface { DeleteRetrospectiveProcessGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRetrospectiveProcessGroup request - GetRetrospectiveProcessGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetRetrospectiveProcessGroup(ctx context.Context, id string, params *GetRetrospectiveProcessGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRetrospectiveProcessGroupWithBody request with any body UpdateRetrospectiveProcessGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34496,7 +35560,7 @@ type ClientInterface interface { DeleteRetrospectiveProcess(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRetrospectiveProcess request - GetRetrospectiveProcess(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetRetrospectiveProcess(ctx context.Context, id string, params *GetRetrospectiveProcessParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRetrospectiveProcessWithBody request with any body UpdateRetrospectiveProcessWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34810,7 +35874,7 @@ type ClientInterface interface { DeleteUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUser request - GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetUser(ctx context.Context, id string, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListUserNotificationRules request ListUserNotificationRules(ctx context.Context, userId string, params *ListUserNotificationRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -34912,7 +35976,7 @@ type ClientInterface interface { DeleteWorkflow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWorkflow request - GetWorkflow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetWorkflow(ctx context.Context, id string, params *GetWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateWorkflowWithBody request with any body UpdateWorkflowWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -35408,8 +36472,8 @@ func (c *Client) DeleteCatalogEntity(ctx context.Context, id string, reqEditors return c.Client.Do(req) } -func (c *Client) GetCatalogEntity(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCatalogEntityRequest(c.Server, id) +func (c *Client) GetCatalogEntity(ctx context.Context, id string, params *GetCatalogEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCatalogEntityRequest(c.Server, id, params) if err != nil { return nil, err } @@ -35456,8 +36520,8 @@ func (c *Client) DeleteCatalogEntityProperty(ctx context.Context, id string, req return c.Client.Do(req) } -func (c *Client) GetCatalogEntityProperty(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCatalogEntityPropertyRequest(c.Server, id) +func (c *Client) GetCatalogEntityProperty(ctx context.Context, id string, params *GetCatalogEntityPropertyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCatalogEntityPropertyRequest(c.Server, id, params) if err != nil { return nil, err } @@ -35504,8 +36568,8 @@ func (c *Client) DeleteCatalogField(ctx context.Context, id string, reqEditors . return c.Client.Do(req) } -func (c *Client) GetCatalogField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCatalogFieldRequest(c.Server, id) +func (c *Client) GetCatalogField(ctx context.Context, id string, params *GetCatalogFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCatalogFieldRequest(c.Server, id, params) if err != nil { return nil, err } @@ -35912,8 +36976,8 @@ func (c *Client) DeleteCustomField(ctx context.Context, id string, reqEditors .. return c.Client.Do(req) } -func (c *Client) GetCustomField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCustomFieldRequest(c.Server, id) +func (c *Client) GetCustomField(ctx context.Context, id string, params *GetCustomFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCustomFieldRequest(c.Server, id, params) if err != nil { return nil, err } @@ -36176,8 +37240,8 @@ func (c *Client) DeleteDashboard(ctx context.Context, id string, reqEditors ...R return c.Client.Do(req) } -func (c *Client) GetDashboard(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDashboardRequest(c.Server, id) +func (c *Client) GetDashboard(ctx context.Context, id string, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDashboardRequest(c.Server, id, params) if err != nil { return nil, err } @@ -36416,8 +37480,8 @@ func (c *Client) DeleteEscalationPath(ctx context.Context, id string, reqEditors return c.Client.Do(req) } -func (c *Client) GetEscalationPath(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetEscalationPathRequest(c.Server, id) +func (c *Client) GetEscalationPath(ctx context.Context, id string, params *GetEscalationPathParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetEscalationPathRequest(c.Server, id, params) if err != nil { return nil, err } @@ -36572,8 +37636,8 @@ func (c *Client) DeleteEscalationPolicy(ctx context.Context, id string, reqEdito return c.Client.Do(req) } -func (c *Client) GetEscalationPolicy(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetEscalationPolicyRequest(c.Server, id) +func (c *Client) GetEscalationPolicy(ctx context.Context, id string, params *GetEscalationPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetEscalationPolicyRequest(c.Server, id, params) if err != nil { return nil, err } @@ -37148,8 +38212,8 @@ func (c *Client) DeleteFormField(ctx context.Context, id string, reqEditors ...R return c.Client.Do(req) } -func (c *Client) GetFormField(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetFormFieldRequest(c.Server, id) +func (c *Client) GetFormField(ctx context.Context, id string, params *GetFormFieldParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFormFieldRequest(c.Server, id, params) if err != nil { return nil, err } @@ -38180,8 +39244,8 @@ func (c *Client) DeleteIncidentSubStatus(ctx context.Context, id string, reqEdit return c.Client.Do(req) } -func (c *Client) GetIncidentSubStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIncidentSubStatusRequest(c.Server, id) +func (c *Client) GetIncidentSubStatus(ctx context.Context, id string, params *GetIncidentSubStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetIncidentSubStatusRequest(c.Server, id, params) if err != nil { return nil, err } @@ -38348,8 +39412,8 @@ func (c *Client) DeleteIncident(ctx context.Context, id string, reqEditors ...Re return c.Client.Do(req) } -func (c *Client) GetIncident(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIncidentRequest(c.Server, id) +func (c *Client) GetIncident(ctx context.Context, id string, params *GetIncidentParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetIncidentRequest(c.Server, id, params) if err != nil { return nil, err } @@ -39260,8 +40324,8 @@ func (c *Client) DeletePlaybook(ctx context.Context, id string, reqEditors ...Re return c.Client.Do(req) } -func (c *Client) GetPlaybook(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPlaybookRequest(c.Server, id) +func (c *Client) GetPlaybook(ctx context.Context, id string, params *GetPlaybookParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlaybookRequest(c.Server, id, params) if err != nil { return nil, err } @@ -39548,8 +40612,8 @@ func (c *Client) ListRetrospectiveConfigurations(ctx context.Context, params *Li return c.Client.Do(req) } -func (c *Client) GetRetrospectiveConfiguration(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRetrospectiveConfigurationRequest(c.Server, id) +func (c *Client) GetRetrospectiveConfiguration(ctx context.Context, id string, params *GetRetrospectiveConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRetrospectiveConfigurationRequest(c.Server, id, params) if err != nil { return nil, err } @@ -39644,8 +40708,8 @@ func (c *Client) DeleteRetrospectiveProcessGroup(ctx context.Context, id string, return c.Client.Do(req) } -func (c *Client) GetRetrospectiveProcessGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRetrospectiveProcessGroupRequest(c.Server, id) +func (c *Client) GetRetrospectiveProcessGroup(ctx context.Context, id string, params *GetRetrospectiveProcessGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRetrospectiveProcessGroupRequest(c.Server, id, params) if err != nil { return nil, err } @@ -39764,8 +40828,8 @@ func (c *Client) DeleteRetrospectiveProcess(ctx context.Context, id string, reqE return c.Client.Do(req) } -func (c *Client) GetRetrospectiveProcess(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRetrospectiveProcessRequest(c.Server, id) +func (c *Client) GetRetrospectiveProcess(ctx context.Context, id string, params *GetRetrospectiveProcessParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRetrospectiveProcessRequest(c.Server, id, params) if err != nil { return nil, err } @@ -41144,8 +42208,8 @@ func (c *Client) DeleteUser(ctx context.Context, id string, reqEditors ...Reques return c.Client.Do(req) } -func (c *Client) GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUserRequest(c.Server, id) +func (c *Client) GetUser(ctx context.Context, id string, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRequest(c.Server, id, params) if err != nil { return nil, err } @@ -41588,8 +42652,8 @@ func (c *Client) DeleteWorkflow(ctx context.Context, id string, reqEditors ...Re return c.Client.Do(req) } -func (c *Client) GetWorkflow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRequest(c.Server, id) +func (c *Client) GetWorkflow(ctx context.Context, id string, params *GetWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRequest(c.Server, id, params) if err != nil { return nil, err } @@ -43674,6 +44738,22 @@ func NewListCatalogEntityPropertiesRequest(server string, catalogEntityId string } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -43895,7 +44975,7 @@ func NewDeleteCatalogEntityRequest(server string, id string) (*http.Request, err } // NewGetCatalogEntityRequest generates requests for GetCatalogEntity -func NewGetCatalogEntityRequest(server string, id string) (*http.Request, error) { +func NewGetCatalogEntityRequest(server string, id string, params *GetCatalogEntityParams) (*http.Request, error) { var err error var pathParam0 string @@ -43920,6 +45000,28 @@ func NewGetCatalogEntityRequest(server string, id string) (*http.Request, error) return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -44010,7 +45112,7 @@ func NewDeleteCatalogEntityPropertyRequest(server string, id string) (*http.Requ } // NewGetCatalogEntityPropertyRequest generates requests for GetCatalogEntityProperty -func NewGetCatalogEntityPropertyRequest(server string, id string) (*http.Request, error) { +func NewGetCatalogEntityPropertyRequest(server string, id string, params *GetCatalogEntityPropertyParams) (*http.Request, error) { var err error var pathParam0 string @@ -44035,6 +45137,28 @@ func NewGetCatalogEntityPropertyRequest(server string, id string) (*http.Request return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -44125,7 +45249,7 @@ func NewDeleteCatalogFieldRequest(server string, id string) (*http.Request, erro } // NewGetCatalogFieldRequest generates requests for GetCatalogField -func NewGetCatalogFieldRequest(server string, id string) (*http.Request, error) { +func NewGetCatalogFieldRequest(server string, id string, params *GetCatalogFieldParams) (*http.Request, error) { var err error var pathParam0 string @@ -44150,6 +45274,28 @@ func NewGetCatalogFieldRequest(server string, id string) (*http.Request, error) return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -44243,6 +45389,22 @@ func NewListCatalogsRequest(server string, params *ListCatalogsParams) (*http.Re } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -44467,6 +45629,22 @@ func NewListCatalogEntitiesRequest(server string, catalogId string, params *List } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -44698,6 +45876,22 @@ func NewListCatalogFieldsRequest(server string, catalogId string, params *ListCa } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -45516,6 +46710,22 @@ func NewListCustomFieldsRequest(server string, params *ListCustomFieldsParams) ( } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -45929,7 +47139,7 @@ func NewDeleteCustomFieldRequest(server string, id string) (*http.Request, error } // NewGetCustomFieldRequest generates requests for GetCustomField -func NewGetCustomFieldRequest(server string, id string) (*http.Request, error) { +func NewGetCustomFieldRequest(server string, id string, params *GetCustomFieldParams) (*http.Request, error) { var err error var pathParam0 string @@ -45954,6 +47164,28 @@ func NewGetCustomFieldRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -46867,7 +48099,7 @@ func NewDeleteDashboardRequest(server string, id string) (*http.Request, error) } // NewGetDashboardRequest generates requests for GetDashboard -func NewGetDashboardRequest(server string, id string) (*http.Request, error) { +func NewGetDashboardRequest(server string, id string, params *GetDashboardParams) (*http.Request, error) { var err error var pathParam0 string @@ -46892,6 +48124,28 @@ func NewGetDashboardRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -47680,7 +48934,7 @@ func NewDeleteEscalationPathRequest(server string, id string) (*http.Request, er } // NewGetEscalationPathRequest generates requests for GetEscalationPath -func NewGetEscalationPathRequest(server string, id string) (*http.Request, error) { +func NewGetEscalationPathRequest(server string, id string, params *GetEscalationPathParams) (*http.Request, error) { var err error var pathParam0 string @@ -47705,6 +48959,28 @@ func NewGetEscalationPathRequest(server string, id string) (*http.Request, error return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -48186,7 +49462,7 @@ func NewDeleteEscalationPolicyRequest(server string, id string) (*http.Request, } // NewGetEscalationPolicyRequest generates requests for GetEscalationPolicy -func NewGetEscalationPolicyRequest(server string, id string) (*http.Request, error) { +func NewGetEscalationPolicyRequest(server string, id string, params *GetEscalationPolicyParams) (*http.Request, error) { var err error var pathParam0 string @@ -48211,6 +49487,28 @@ func NewGetEscalationPolicyRequest(server string, id string) (*http.Request, err return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -50112,7 +51410,7 @@ func NewDeleteFormFieldRequest(server string, id string) (*http.Request, error) } // NewGetFormFieldRequest generates requests for GetFormField -func NewGetFormFieldRequest(server string, id string) (*http.Request, error) { +func NewGetFormFieldRequest(server string, id string, params *GetFormFieldParams) (*http.Request, error) { var err error var pathParam0 string @@ -50137,6 +51435,28 @@ func NewGetFormFieldRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -53841,7 +55161,7 @@ func NewDeleteIncidentSubStatusRequest(server string, id string) (*http.Request, } // NewGetIncidentSubStatusRequest generates requests for GetIncidentSubStatus -func NewGetIncidentSubStatusRequest(server string, id string) (*http.Request, error) { +func NewGetIncidentSubStatusRequest(server string, id string, params *GetIncidentSubStatusParams) (*http.Request, error) { var err error var pathParam0 string @@ -53866,6 +55186,28 @@ func NewGetIncidentSubStatusRequest(server string, id string) (*http.Request, er return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -54307,22 +55649,6 @@ func NewListIncidentsRequest(server string, params *ListIncidentsParams) (*http. if params != nil { queryValues := queryURL.Query() - if params.Include != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -55219,6 +56545,22 @@ func NewListIncidentsRequest(server string, params *ListIncidentsParams) (*http. } + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -55305,7 +56647,7 @@ func NewDeleteIncidentRequest(server string, id string) (*http.Request, error) { } // NewGetIncidentRequest generates requests for GetIncident -func NewGetIncidentRequest(server string, id string) (*http.Request, error) { +func NewGetIncidentRequest(server string, id string, params *GetIncidentParams) (*http.Request, error) { var err error var pathParam0 string @@ -55330,6 +56672,28 @@ func NewGetIncidentRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -57117,6 +58481,22 @@ func NewListIncidentSubStatusesRequest(server string, incidentId string, params } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -58351,7 +59731,7 @@ func NewDeletePlaybookRequest(server string, id string) (*http.Request, error) { } // NewGetPlaybookRequest generates requests for GetPlaybook -func NewGetPlaybookRequest(server string, id string) (*http.Request, error) { +func NewGetPlaybookRequest(server string, id string, params *GetPlaybookParams) (*http.Request, error) { var err error var pathParam0 string @@ -58376,6 +59756,28 @@ func NewGetPlaybookRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -59952,7 +61354,7 @@ func NewListRetrospectiveConfigurationsRequest(server string, params *ListRetros } // NewGetRetrospectiveConfigurationRequest generates requests for GetRetrospectiveConfiguration -func NewGetRetrospectiveConfigurationRequest(server string, id string) (*http.Request, error) { +func NewGetRetrospectiveConfigurationRequest(server string, id string, params *GetRetrospectiveConfigurationParams) (*http.Request, error) { var err error var pathParam0 string @@ -59977,6 +61379,28 @@ func NewGetRetrospectiveConfigurationRequest(server string, id string) (*http.Re return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -60182,7 +61606,7 @@ func NewDeleteRetrospectiveProcessGroupRequest(server string, id string) (*http. } // NewGetRetrospectiveProcessGroupRequest generates requests for GetRetrospectiveProcessGroup -func NewGetRetrospectiveProcessGroupRequest(server string, id string) (*http.Request, error) { +func NewGetRetrospectiveProcessGroupRequest(server string, id string, params *GetRetrospectiveProcessGroupParams) (*http.Request, error) { var err error var pathParam0 string @@ -60207,6 +61631,28 @@ func NewGetRetrospectiveProcessGroupRequest(server string, id string) (*http.Req return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -60633,7 +62079,7 @@ func NewDeleteRetrospectiveProcessRequest(server string, id string) (*http.Reque } // NewGetRetrospectiveProcessRequest generates requests for GetRetrospectiveProcess -func NewGetRetrospectiveProcessRequest(server string, id string) (*http.Request, error) { +func NewGetRetrospectiveProcessRequest(server string, id string, params *GetRetrospectiveProcessParams) (*http.Request, error) { var err error var pathParam0 string @@ -60658,6 +62104,28 @@ func NewGetRetrospectiveProcessRequest(server string, id string) (*http.Request, return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -60758,6 +62226,22 @@ func NewListRetrospectiveProcessGroupsRequest(server string, retrospectiveProces } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -65826,6 +67310,22 @@ func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, } + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -65899,7 +67399,7 @@ func NewDeleteUserRequest(server string, id string) (*http.Request, error) { } // NewGetUserRequest generates requests for GetUser -func NewGetUserRequest(server string, id string) (*http.Request, error) { +func NewGetUserRequest(server string, id string, params *GetUserParams) (*http.Request, error) { var err error var pathParam0 string @@ -65924,6 +67424,28 @@ func NewGetUserRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -67222,6 +68744,22 @@ func NewListWorkflowsRequest(server string, params *ListWorkflowsParams) (*http. } + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.PageNumber != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page[number]", runtime.ParamLocationQuery, *params.PageNumber); err != nil { @@ -67452,7 +68990,7 @@ func NewDeleteWorkflowRequest(server string, id string) (*http.Request, error) { } // NewGetWorkflowRequest generates requests for GetWorkflow -func NewGetWorkflowRequest(server string, id string) (*http.Request, error) { +func NewGetWorkflowRequest(server string, id string, params *GetWorkflowParams) (*http.Request, error) { var err error var pathParam0 string @@ -67477,6 +69015,28 @@ func NewGetWorkflowRequest(server string, id string) (*http.Request, error) { return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include", runtime.ParamLocationQuery, *params.Include); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -68332,7 +69892,7 @@ type ClientWithResponsesInterface interface { DeleteCatalogEntityWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteCatalogEntityResponse, error) // GetCatalogEntityWithResponse request - GetCatalogEntityWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogEntityResponse, error) + GetCatalogEntityWithResponse(ctx context.Context, id string, params *GetCatalogEntityParams, reqEditors ...RequestEditorFn) (*GetCatalogEntityResponse, error) // UpdateCatalogEntityWithBodyWithResponse request with any body UpdateCatalogEntityWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogEntityResponse, error) @@ -68343,7 +69903,7 @@ type ClientWithResponsesInterface interface { DeleteCatalogEntityPropertyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteCatalogEntityPropertyResponse, error) // GetCatalogEntityPropertyWithResponse request - GetCatalogEntityPropertyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogEntityPropertyResponse, error) + GetCatalogEntityPropertyWithResponse(ctx context.Context, id string, params *GetCatalogEntityPropertyParams, reqEditors ...RequestEditorFn) (*GetCatalogEntityPropertyResponse, error) // UpdateCatalogEntityPropertyWithBodyWithResponse request with any body UpdateCatalogEntityPropertyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogEntityPropertyResponse, error) @@ -68354,7 +69914,7 @@ type ClientWithResponsesInterface interface { DeleteCatalogFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteCatalogFieldResponse, error) // GetCatalogFieldWithResponse request - GetCatalogFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogFieldResponse, error) + GetCatalogFieldWithResponse(ctx context.Context, id string, params *GetCatalogFieldParams, reqEditors ...RequestEditorFn) (*GetCatalogFieldResponse, error) // UpdateCatalogFieldWithBodyWithResponse request with any body UpdateCatalogFieldWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogFieldResponse, error) @@ -68446,7 +70006,7 @@ type ClientWithResponsesInterface interface { DeleteCustomFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteCustomFieldResponse, error) // GetCustomFieldWithResponse request - GetCustomFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCustomFieldResponse, error) + GetCustomFieldWithResponse(ctx context.Context, id string, params *GetCustomFieldParams, reqEditors ...RequestEditorFn) (*GetCustomFieldResponse, error) // UpdateCustomFieldWithBodyWithResponse request with any body UpdateCustomFieldWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) @@ -68506,7 +70066,7 @@ type ClientWithResponsesInterface interface { DeleteDashboardWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteDashboardResponse, error) // GetDashboardWithResponse request - GetDashboardWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) + GetDashboardWithResponse(ctx context.Context, id string, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) // UpdateDashboardWithBodyWithResponse request with any body UpdateDashboardWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDashboardResponse, error) @@ -68561,7 +70121,7 @@ type ClientWithResponsesInterface interface { DeleteEscalationPathWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteEscalationPathResponse, error) // GetEscalationPathWithResponse request - GetEscalationPathWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEscalationPathResponse, error) + GetEscalationPathWithResponse(ctx context.Context, id string, params *GetEscalationPathParams, reqEditors ...RequestEditorFn) (*GetEscalationPathResponse, error) // UpdateEscalationPathWithBodyWithResponse request with any body UpdateEscalationPathWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEscalationPathResponse, error) @@ -68596,7 +70156,7 @@ type ClientWithResponsesInterface interface { DeleteEscalationPolicyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteEscalationPolicyResponse, error) // GetEscalationPolicyWithResponse request - GetEscalationPolicyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEscalationPolicyResponse, error) + GetEscalationPolicyWithResponse(ctx context.Context, id string, params *GetEscalationPolicyParams, reqEditors ...RequestEditorFn) (*GetEscalationPolicyResponse, error) // UpdateEscalationPolicyWithBodyWithResponse request with any body UpdateEscalationPolicyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEscalationPolicyResponse, error) @@ -68726,7 +70286,7 @@ type ClientWithResponsesInterface interface { DeleteFormFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFormFieldResponse, error) // GetFormFieldWithResponse request - GetFormFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFormFieldResponse, error) + GetFormFieldWithResponse(ctx context.Context, id string, params *GetFormFieldParams, reqEditors ...RequestEditorFn) (*GetFormFieldResponse, error) // UpdateFormFieldWithBodyWithResponse request with any body UpdateFormFieldWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFormFieldResponse, error) @@ -68961,7 +70521,7 @@ type ClientWithResponsesInterface interface { DeleteIncidentSubStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIncidentSubStatusResponse, error) // GetIncidentSubStatusWithResponse request - GetIncidentSubStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIncidentSubStatusResponse, error) + GetIncidentSubStatusWithResponse(ctx context.Context, id string, params *GetIncidentSubStatusParams, reqEditors ...RequestEditorFn) (*GetIncidentSubStatusResponse, error) // UpdateIncidentSubStatusWithBodyWithResponse request with any body UpdateIncidentSubStatusWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIncidentSubStatusResponse, error) @@ -68999,7 +70559,7 @@ type ClientWithResponsesInterface interface { DeleteIncidentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIncidentResponse, error) // GetIncidentWithResponse request - GetIncidentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error) + GetIncidentWithResponse(ctx context.Context, id string, params *GetIncidentParams, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error) // UpdateIncidentWithBodyWithResponse request with any body UpdateIncidentWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIncidentResponse, error) @@ -69201,7 +70761,7 @@ type ClientWithResponsesInterface interface { DeletePlaybookWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeletePlaybookResponse, error) // GetPlaybookWithResponse request - GetPlaybookWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPlaybookResponse, error) + GetPlaybookWithResponse(ctx context.Context, id string, params *GetPlaybookParams, reqEditors ...RequestEditorFn) (*GetPlaybookResponse, error) // UpdatePlaybookWithBodyWithResponse request with any body UpdatePlaybookWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePlaybookResponse, error) @@ -69266,7 +70826,7 @@ type ClientWithResponsesInterface interface { ListRetrospectiveConfigurationsWithResponse(ctx context.Context, params *ListRetrospectiveConfigurationsParams, reqEditors ...RequestEditorFn) (*ListRetrospectiveConfigurationsResponse, error) // GetRetrospectiveConfigurationWithResponse request - GetRetrospectiveConfigurationWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveConfigurationResponse, error) + GetRetrospectiveConfigurationWithResponse(ctx context.Context, id string, params *GetRetrospectiveConfigurationParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveConfigurationResponse, error) // UpdateRetrospectiveConfigurationWithBodyWithResponse request with any body UpdateRetrospectiveConfigurationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRetrospectiveConfigurationResponse, error) @@ -69288,7 +70848,7 @@ type ClientWithResponsesInterface interface { DeleteRetrospectiveProcessGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteRetrospectiveProcessGroupResponse, error) // GetRetrospectiveProcessGroupWithResponse request - GetRetrospectiveProcessGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessGroupResponse, error) + GetRetrospectiveProcessGroupWithResponse(ctx context.Context, id string, params *GetRetrospectiveProcessGroupParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessGroupResponse, error) // UpdateRetrospectiveProcessGroupWithBodyWithResponse request with any body UpdateRetrospectiveProcessGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRetrospectiveProcessGroupResponse, error) @@ -69315,7 +70875,7 @@ type ClientWithResponsesInterface interface { DeleteRetrospectiveProcessWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteRetrospectiveProcessResponse, error) // GetRetrospectiveProcessWithResponse request - GetRetrospectiveProcessWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessResponse, error) + GetRetrospectiveProcessWithResponse(ctx context.Context, id string, params *GetRetrospectiveProcessParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessResponse, error) // UpdateRetrospectiveProcessWithBodyWithResponse request with any body UpdateRetrospectiveProcessWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRetrospectiveProcessResponse, error) @@ -69629,7 +71189,7 @@ type ClientWithResponsesInterface interface { DeleteUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) // GetUserWithResponse request - GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + GetUserWithResponse(ctx context.Context, id string, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error) // ListUserNotificationRulesWithResponse request ListUserNotificationRulesWithResponse(ctx context.Context, userId string, params *ListUserNotificationRulesParams, reqEditors ...RequestEditorFn) (*ListUserNotificationRulesResponse, error) @@ -69731,7 +71291,7 @@ type ClientWithResponsesInterface interface { DeleteWorkflowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteWorkflowResponse, error) // GetWorkflowWithResponse request - GetWorkflowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetWorkflowResponse, error) + GetWorkflowWithResponse(ctx context.Context, id string, params *GetWorkflowParams, reqEditors ...RequestEditorFn) (*GetWorkflowResponse, error) // UpdateWorkflowWithBodyWithResponse request with any body UpdateWorkflowWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowResponse, error) @@ -79442,8 +81002,8 @@ func (c *ClientWithResponses) DeleteCatalogEntityWithResponse(ctx context.Contex } // GetCatalogEntityWithResponse request returning *GetCatalogEntityResponse -func (c *ClientWithResponses) GetCatalogEntityWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogEntityResponse, error) { - rsp, err := c.GetCatalogEntity(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetCatalogEntityWithResponse(ctx context.Context, id string, params *GetCatalogEntityParams, reqEditors ...RequestEditorFn) (*GetCatalogEntityResponse, error) { + rsp, err := c.GetCatalogEntity(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -79477,8 +81037,8 @@ func (c *ClientWithResponses) DeleteCatalogEntityPropertyWithResponse(ctx contex } // GetCatalogEntityPropertyWithResponse request returning *GetCatalogEntityPropertyResponse -func (c *ClientWithResponses) GetCatalogEntityPropertyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogEntityPropertyResponse, error) { - rsp, err := c.GetCatalogEntityProperty(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetCatalogEntityPropertyWithResponse(ctx context.Context, id string, params *GetCatalogEntityPropertyParams, reqEditors ...RequestEditorFn) (*GetCatalogEntityPropertyResponse, error) { + rsp, err := c.GetCatalogEntityProperty(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -79512,8 +81072,8 @@ func (c *ClientWithResponses) DeleteCatalogFieldWithResponse(ctx context.Context } // GetCatalogFieldWithResponse request returning *GetCatalogFieldResponse -func (c *ClientWithResponses) GetCatalogFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCatalogFieldResponse, error) { - rsp, err := c.GetCatalogField(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetCatalogFieldWithResponse(ctx context.Context, id string, params *GetCatalogFieldParams, reqEditors ...RequestEditorFn) (*GetCatalogFieldResponse, error) { + rsp, err := c.GetCatalogField(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -79808,8 +81368,8 @@ func (c *ClientWithResponses) DeleteCustomFieldWithResponse(ctx context.Context, } // GetCustomFieldWithResponse request returning *GetCustomFieldResponse -func (c *ClientWithResponses) GetCustomFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCustomFieldResponse, error) { - rsp, err := c.GetCustomField(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetCustomFieldWithResponse(ctx context.Context, id string, params *GetCustomFieldParams, reqEditors ...RequestEditorFn) (*GetCustomFieldResponse, error) { + rsp, err := c.GetCustomField(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -80000,8 +81560,8 @@ func (c *ClientWithResponses) DeleteDashboardWithResponse(ctx context.Context, i } // GetDashboardWithResponse request returning *GetDashboardResponse -func (c *ClientWithResponses) GetDashboardWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) { - rsp, err := c.GetDashboard(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetDashboardWithResponse(ctx context.Context, id string, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) { + rsp, err := c.GetDashboard(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -80175,8 +81735,8 @@ func (c *ClientWithResponses) DeleteEscalationPathWithResponse(ctx context.Conte } // GetEscalationPathWithResponse request returning *GetEscalationPathResponse -func (c *ClientWithResponses) GetEscalationPathWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEscalationPathResponse, error) { - rsp, err := c.GetEscalationPath(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetEscalationPathWithResponse(ctx context.Context, id string, params *GetEscalationPathParams, reqEditors ...RequestEditorFn) (*GetEscalationPathResponse, error) { + rsp, err := c.GetEscalationPath(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -80288,8 +81848,8 @@ func (c *ClientWithResponses) DeleteEscalationPolicyWithResponse(ctx context.Con } // GetEscalationPolicyWithResponse request returning *GetEscalationPolicyResponse -func (c *ClientWithResponses) GetEscalationPolicyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEscalationPolicyResponse, error) { - rsp, err := c.GetEscalationPolicy(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetEscalationPolicyWithResponse(ctx context.Context, id string, params *GetEscalationPolicyParams, reqEditors ...RequestEditorFn) (*GetEscalationPolicyResponse, error) { + rsp, err := c.GetEscalationPolicy(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -80706,8 +82266,8 @@ func (c *ClientWithResponses) DeleteFormFieldWithResponse(ctx context.Context, i } // GetFormFieldWithResponse request returning *GetFormFieldResponse -func (c *ClientWithResponses) GetFormFieldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFormFieldResponse, error) { - rsp, err := c.GetFormField(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetFormFieldWithResponse(ctx context.Context, id string, params *GetFormFieldParams, reqEditors ...RequestEditorFn) (*GetFormFieldResponse, error) { + rsp, err := c.GetFormField(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -81457,8 +83017,8 @@ func (c *ClientWithResponses) DeleteIncidentSubStatusWithResponse(ctx context.Co } // GetIncidentSubStatusWithResponse request returning *GetIncidentSubStatusResponse -func (c *ClientWithResponses) GetIncidentSubStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIncidentSubStatusResponse, error) { - rsp, err := c.GetIncidentSubStatus(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetIncidentSubStatusWithResponse(ctx context.Context, id string, params *GetIncidentSubStatusParams, reqEditors ...RequestEditorFn) (*GetIncidentSubStatusResponse, error) { + rsp, err := c.GetIncidentSubStatus(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -81579,8 +83139,8 @@ func (c *ClientWithResponses) DeleteIncidentWithResponse(ctx context.Context, id } // GetIncidentWithResponse request returning *GetIncidentResponse -func (c *ClientWithResponses) GetIncidentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error) { - rsp, err := c.GetIncident(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetIncidentWithResponse(ctx context.Context, id string, params *GetIncidentParams, reqEditors ...RequestEditorFn) (*GetIncidentResponse, error) { + rsp, err := c.GetIncident(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -82237,8 +83797,8 @@ func (c *ClientWithResponses) DeletePlaybookWithResponse(ctx context.Context, id } // GetPlaybookWithResponse request returning *GetPlaybookResponse -func (c *ClientWithResponses) GetPlaybookWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPlaybookResponse, error) { - rsp, err := c.GetPlaybook(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetPlaybookWithResponse(ctx context.Context, id string, params *GetPlaybookParams, reqEditors ...RequestEditorFn) (*GetPlaybookResponse, error) { + rsp, err := c.GetPlaybook(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -82446,8 +84006,8 @@ func (c *ClientWithResponses) ListRetrospectiveConfigurationsWithResponse(ctx co } // GetRetrospectiveConfigurationWithResponse request returning *GetRetrospectiveConfigurationResponse -func (c *ClientWithResponses) GetRetrospectiveConfigurationWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveConfigurationResponse, error) { - rsp, err := c.GetRetrospectiveConfiguration(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetRetrospectiveConfigurationWithResponse(ctx context.Context, id string, params *GetRetrospectiveConfigurationParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveConfigurationResponse, error) { + rsp, err := c.GetRetrospectiveConfiguration(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -82516,8 +84076,8 @@ func (c *ClientWithResponses) DeleteRetrospectiveProcessGroupWithResponse(ctx co } // GetRetrospectiveProcessGroupWithResponse request returning *GetRetrospectiveProcessGroupResponse -func (c *ClientWithResponses) GetRetrospectiveProcessGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessGroupResponse, error) { - rsp, err := c.GetRetrospectiveProcessGroup(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetRetrospectiveProcessGroupWithResponse(ctx context.Context, id string, params *GetRetrospectiveProcessGroupParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessGroupResponse, error) { + rsp, err := c.GetRetrospectiveProcessGroup(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -82603,8 +84163,8 @@ func (c *ClientWithResponses) DeleteRetrospectiveProcessWithResponse(ctx context } // GetRetrospectiveProcessWithResponse request returning *GetRetrospectiveProcessResponse -func (c *ClientWithResponses) GetRetrospectiveProcessWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessResponse, error) { - rsp, err := c.GetRetrospectiveProcess(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetRetrospectiveProcessWithResponse(ctx context.Context, id string, params *GetRetrospectiveProcessParams, reqEditors ...RequestEditorFn) (*GetRetrospectiveProcessResponse, error) { + rsp, err := c.GetRetrospectiveProcess(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -83607,8 +85167,8 @@ func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, id str } // GetUserWithResponse request returning *GetUserResponse -func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { - rsp, err := c.GetUser(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, id, params, reqEditors...) if err != nil { return nil, err } @@ -83931,8 +85491,8 @@ func (c *ClientWithResponses) DeleteWorkflowWithResponse(ctx context.Context, id } // GetWorkflowWithResponse request returning *GetWorkflowResponse -func (c *ClientWithResponses) GetWorkflowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetWorkflowResponse, error) { - rsp, err := c.GetWorkflow(ctx, id, reqEditors...) +func (c *ClientWithResponses) GetWorkflowWithResponse(ctx context.Context, id string, params *GetWorkflowParams, reqEditors ...RequestEditorFn) (*GetWorkflowResponse, error) { + rsp, err := c.GetWorkflow(ctx, id, params, reqEditors...) if err != nil { return nil, err }