Skip to content

Commit 29f1e97

Browse files
chore: update Terraform provider and generated code (#147)
- Ran `make codegen` to regenerate resources and data sources. - Updated documentation via `make docs`. - Automated update to keep provider and generated documentation in sync. Co-authored-by: kwent <[email protected]>
1 parent e0dce3e commit 29f1e97

20 files changed

+421
-103
lines changed

client/override_shifts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type OverrideShift struct {
1818
EndsAt string `jsonapi:"attr,ends_at,omitempty"`
1919
IsOverride *bool `jsonapi:"attr,is_override,omitempty"`
2020
ShiftOverride map[string]interface{} `jsonapi:"attr,shift_override,omitempty"`
21-
User map[string]interface{} `jsonapi:"attr,user,omitempty"`
21+
UserId int `jsonapi:"attr,user_id,omitempty"`
2222
}
2323

2424
func (c *Client) ListOverrideShifts(id string, params *rootlygo.ListOverrideShiftsParams) ([]interface{}, error) {

docs/resources/alert_routing_rule.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ description: |-
3737
<a id="nestedblock--destination"></a>
3838
### Nested Schema for `destination`
3939

40-
Optional:
40+
Required:
4141

4242
- `target_id` (String) The ID of the target
43+
44+
Optional:
45+
4346
- `target_type` (String) The type of the target. Value must be one of `Service`, `Group`, `EscalationPolicy`.
4447

4548

docs/resources/override_shift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ description: |-
1818

1919
- `ends_at` (String) End datetime of shift
2020
- `starts_at` (String) Start datetime of shift
21+
- `user_id` (Number) Override shift user
2122

2223
### Optional
2324

2425
- `is_override` (Boolean) Denotes shift is an override shift. Value must be one of true or false
2526
- `rotation_id` (String) ID of rotation
2627
- `schedule_id` (String) ID of schedule
2728
- `shift_override` (Map of String) Override metadata
28-
- `user` (Map of String) User metadata
2929

3030
### Read-Only
3131

docs/resources/workflow_action_item.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Optional:
8383
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
8484
- `incident_conditional_inactivity` (String)
8585
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
86-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
87-
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `planning`, `scheduled`, `in_progress`, `verifying`, `completed`.
86+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
87+
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `scheduled`, `in_progress`, `completed`.
8888
- `incident_visibilities` (List of String)
8989
- `trigger_type` (String) Value must be one off `action_item`.
9090
- `triggers` (List of String) Actions that trigger the workflow. One of custom_fields.<slug>.updated, incident_updated, action_item_created, action_item_updated, assigned_user_updated, summary_updated, description_updated, status_updated, priority_updated, due_date_updated, teams_updated, slack_command

docs/resources/workflow_incident.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ Optional:
9696
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
9797
- `incident_conditional_inactivity` (String)
9898
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
99-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
99+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
100100
- `incident_post_mortem_condition_cause` (String) [DEPRECATED] Use incident_condition_cause instead. Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
101-
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `planning`, `scheduled`, `in_progress`, `verifying`, `completed`.
101+
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `scheduled`, `in_progress`, `completed`.
102102
- `incident_visibilities` (List of String)
103103
- `trigger_type` (String) Value must be one off `incident`.
104104
- `triggers` (List of String) Actions that trigger the workflow. One of custom_fields.<slug>.updated, incident_in_triage, incident_created, incident_started, incident_updated, title_updated, summary_updated, status_updated, severity_updated, environments_added, environments_removed, environments_updated, incident_types_added, incident_types_removed, incident_types_updated, services_added, services_removed, services_updated, visibility_updated, functionalities_added, functionalities_removed, functionalities_updated, teams_added, teams_removed, teams_updated, causes_added, causes_removed, causes_updated, timeline_updated, status_page_timeline_updated, role_assignments_updated, role_assignments_added, role_assignments_removed, slack_command, slack_channel_created, slack_channel_converted, microsoft_teams_channel_created, subscribers_updated, subscribers_added, subscribers_removed, user_joined_slack_channel, user_left_slack_channel

docs/resources/workflow_post_mortem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ Optional:
7575
- `incident_condition_visibility` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
7676
- `incident_conditional_inactivity` (String)
7777
- `incident_inactivity_duration` (String) ex. 10 min, 1h, 3 days, 2 weeks
78-
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`.
78+
- `incident_kinds` (List of String) Value must be one of `test`, `test_sub`, `example`, `example_sub`, `normal`, `normal_sub`, `backfilled`, `scheduled`, `scheduled_sub`.
7979
- `incident_post_mortem_condition` (String) Value must be one off `ALL`, `ANY`, `NONE`.
8080
- `incident_post_mortem_condition_cause` (String) [DEPRECATED] Use incident_condition_cause instead. Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
8181
- `incident_post_mortem_condition_status` (String) Value must be one off `IS`, `ANY`, `CONTAINS`, `CONTAINS_ALL`, `CONTAINS_NONE`, `NONE`, `SET`, `UNSET`.
8282
- `incident_post_mortem_statuses` (List of String) Value must be one of `draft`, `published`.
83-
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `planning`, `scheduled`, `in_progress`, `verifying`, `completed`.
83+
- `incident_statuses` (List of String) Value must be one of `in_triage`, `started`, `detected`, `acknowledged`, `mitigated`, `resolved`, `closed`, `cancelled`, `scheduled`, `in_progress`, `completed`.
8484
- `incident_visibilities` (List of String)
8585
- `trigger_type` (String) Value must be one off `post_mortem`.
8686
- `triggers` (List of String) Actions that trigger the workflow. One of custom_fields.<slug>.updated, post_mortem_created, post_mortem_updated, status_updated, slack_command

docs/resources/workflow_task_create_openai_chat_completion.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ Required:
4040

4141
Optional:
4242

43+
- `max_tokens` (String) Maximum number of tokens to generate in the response
44+
- `reasoning_effort` (String) Constrains effort on reasoning for GPT-5 and o-series models. Value must be one of `minimal`, `low`, `medium`, `high`.
45+
- `reasoning_summary` (String) Summary of the reasoning performed by the model for GPT-5 and o-series models. Value must be one of `auto`, `concise`, `detailed`.
4346
- `system_prompt` (String) The system prompt to send to OpenAI (optional)
4447
- `task_type` (String)
48+
- `temperature` (Number) Controls randomness in the response. Higher values make output more random
49+
- `top_p` (Number) Controls diversity via nucleus sampling. Lower values make output more focused
4550

4651
## Import
4752

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
page_title: "Resource rootly_workflow_task_create_sub_incident - terraform-provider-rootly"
3+
subcategory: Workflow Tasks
4+
description: |-
5+
Manages workflow create_sub_incident task.
6+
---
7+
8+
# Resource (rootly_workflow_task_create_sub_incident)
9+
10+
Manages workflow create_sub_incident task.
11+
12+
13+
14+
<!-- schema generated by tfplugindocs -->
15+
## Schema
16+
17+
### Required
18+
19+
- `task_params` (Block List, Min: 1, Max: 1) The parameters for this workflow task. (see [below for nested schema](#nestedblock--task_params))
20+
- `workflow_id` (String) The ID of the parent workflow
21+
22+
### Optional
23+
24+
- `enabled` (Boolean) Enable/disable this workflow task
25+
- `name` (String) Name of the workflow task
26+
- `position` (Number) The position of the workflow task (1 being top of list)
27+
- `skip_on_failure` (Boolean) Skip workflow task if any failures
28+
29+
### Read-Only
30+
31+
- `id` (String) The ID of this resource.
32+
33+
<a id="nestedblock--task_params"></a>
34+
### Nested Schema for `task_params`
35+
36+
Required:
37+
38+
- `title` (String) The sub incident title
39+
40+
Optional:
41+
42+
- `summary` (String) The sub incident summary
43+
- `task_type` (String)
44+
45+
## Import
46+
47+
rootly_workflow_task_create_sub_incident can be imported using the [`import` command](https://developer.hashicorp.com/terraform/cli/commands/import).
48+
49+
```sh
50+
terraform import rootly_workflow_task_create_sub_incident.primary a816421c-6ceb-481a-87c4-585e47451f24
51+
```
52+
53+
Or using an [`import` block](https://developer.hashicorp.com/terraform/language/import).
54+
55+
```terraform
56+
import {
57+
to = rootly_workflow_task_create_sub_incident.primary
58+
id = "a816421c-6ceb-481a-87c4-585e47451f24"
59+
}
60+
```
61+
62+
Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app.
63+
64+
HCL can be generated from the import block using the `-generate-config-out` flag.
65+
66+
```sh
67+
terraform plan -generate-config-out=generated.tf
68+
```

docs/resources/workflow_task_publish_incident.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Required:
7272

7373
- `incident` (Map of String) Map must contain two fields, `id` and `name`.
7474
- `public_title` (String)
75-
- `status` (String) Value must be one of `investigating`, `identified`, `monitoring`, `resolved`, `planning`, `scheduled`, `in_progress`, `verifying`, `completed`, `cancelled`.
75+
- `status` (String) Value must be one of `investigating`, `identified`, `monitoring`, `resolved`, `scheduled`, `in_progress`, `completed`.
7676
- `status_page_id` (String)
7777

7878
Optional:

provider/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func New(version string) func() *schema.Provider {
220220
"rootly_workflow_task_create_google_meeting": resourceWorkflowTaskCreateGoogleMeeting(),
221221
"rootly_workflow_task_create_go_to_meeting": resourceWorkflowTaskCreateGoToMeeting(),
222222
"rootly_workflow_task_create_incident": resourceWorkflowTaskCreateIncident(),
223+
"rootly_workflow_task_create_sub_incident": resourceWorkflowTaskCreateSubIncident(),
223224
"rootly_workflow_task_create_incident_postmortem": resourceWorkflowTaskCreateIncidentPostmortem(),
224225
"rootly_workflow_task_create_jira_issue": resourceWorkflowTaskCreateJiraIssue(),
225226
"rootly_workflow_task_create_jira_subtask": resourceWorkflowTaskCreateJiraSubtask(),

0 commit comments

Comments
 (0)