Skip to content

Commit 6ed141b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update rotation interval (#3198)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 0c8532d commit 6ed141b

11 files changed

Lines changed: 35 additions & 29 deletions

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-07 12:19:31.910819",
8-
"spec_repo_commit": "fa2473ca"
7+
"regenerated": "2025-07-08 07:29:03.093450",
8+
"spec_repo_commit": "d9879085"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-07 12:19:31.926917",
13-
"spec_repo_commit": "fa2473ca"
12+
"regenerated": "2025-07-08 07:29:03.110023",
13+
"spec_repo_commit": "d9879085"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ components:
758758
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
759759
`dashboard`, `integration-account`, `integration-service`, `integration-webhook`,
760760
`notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`,
761-
`connection`, `connection-group`, `rum-application`.'
761+
`connection`, `connection-group`, `rum-application`, `cross-org-connection`.'
762762
example: dashboard:abc-def-ghi
763763
in: path
764764
name: resource_id
@@ -20008,7 +20008,7 @@ components:
2000820008
type: object
2000920009
LayerAttributesInterval:
2001020010
description: Defines how often the rotation repeats, using a combination of
20011-
days and optional seconds.
20011+
days and optional seconds. Should be at least 1 hour.
2001220012
properties:
2001320013
days:
2001420014
description: The number of days in each rotation cycle.
@@ -33143,7 +33143,7 @@ components:
3314333143
- effective_date: '2025-02-03T05:00:00Z'
3314433144
end_date: '2025-12-31T00:00:00Z'
3314533145
interval:
33146-
seconds: 300
33146+
seconds: 3600
3314733147
members:
3314833148
- user:
3314933149
id: 00000000-aba1-0000-0000-000000000000
@@ -56502,6 +56502,8 @@ paths:
5650256502

5650356503
- RUM Applications: `rum-application`
5650456504

56505+
- Cross Org Connections: `cross-org-connection`
56506+
5650556507

5650656508
#### Supported relations for resources
5650756509

@@ -56543,7 +56545,9 @@ paths:
5654356545

5654456546
Connection Groups | `viewer`, `editor`
5654556547

56546-
RUM Application | `viewer`, `editor`'
56548+
RUM Application | `viewer`, `editor`
56549+
56550+
Cross Org Connections | `viewer`, `editor`'
5654756551
operationId: UpdateRestrictionPolicy
5654856552
parameters:
5654956553
- $ref: '#/components/parameters/ResourceID'

api/datadogV2/api_restriction_policies.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe
187187
// - Connections: `connection`
188188
// - Connection Groups: `connection-group`
189189
// - RUM Applications: `rum-application`
190+
// - Cross Org Connections: `cross-org-connection`
190191
//
191192
// #### Supported relations for resources
192193
// Resource Type | Supported Relations
@@ -209,6 +210,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe
209210
// Connections | `viewer`, `resolver`, `editor`
210211
// Connection Groups | `viewer`, `editor`
211212
// RUM Application | `viewer`, `editor`
213+
// Cross Org Connections | `viewer`, `editor`
212214
func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest, o ...UpdateRestrictionPolicyOptionalParameters) (RestrictionPolicyResponse, *_nethttp.Response, error) {
213215
var (
214216
localVarHTTPMethod = _nethttp.MethodPost

api/datadogV2/model_layer_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type LayerAttributes struct {
1616
EffectiveDate *time.Time `json:"effective_date,omitempty"`
1717
// When the layer ceases to be active (ISO 8601).
1818
EndDate *time.Time `json:"end_date,omitempty"`
19-
// Defines how often the rotation repeats, using a combination of days and optional seconds.
19+
// Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.
2020
Interval *LayerAttributesInterval `json:"interval,omitempty"`
2121
// The name of this layer.
2222
Name *string `json:"name,omitempty"`

api/datadogV2/model_layer_attributes_interval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// LayerAttributesInterval Defines how often the rotation repeats, using a combination of days and optional seconds.
11+
// LayerAttributesInterval Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.
1212
type LayerAttributesInterval struct {
1313
// The number of days in each rotation cycle.
1414
Days *int32 `json:"days,omitempty"`

api/datadogV2/model_schedule_create_request_data_attributes_layers_items.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type ScheduleCreateRequestDataAttributesLayersItems struct {
1717
EffectiveDate time.Time `json:"effective_date"`
1818
// The date/time after which this layer no longer applies (in ISO 8601).
1919
EndDate *time.Time `json:"end_date,omitempty"`
20-
// Defines how often the rotation repeats, using a combination of days and optional seconds.
20+
// Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.
2121
Interval LayerAttributesInterval `json:"interval"`
2222
// A list of members who participate in this layer's rotation.
2323
Members []ScheduleRequestDataAttributesLayersItemsMembersItems `json:"members"`

api/datadogV2/model_schedule_update_request_data_attributes_layers_items.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type ScheduleUpdateRequestDataAttributesLayersItems struct {
2020
EndDate *time.Time `json:"end_date,omitempty"`
2121
// A unique identifier for the layer being updated.
2222
Id *string `json:"id,omitempty"`
23-
// Defines how often the rotation repeats, using a combination of days and optional seconds.
23+
// Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.
2424
Interval LayerAttributesInterval `json:"interval"`
2525
// The members assigned to this layer.
2626
Members []ScheduleRequestDataAttributesLayersItemsMembersItems `json:"members"`

examples/v2/on-call/UpdateOnCallSchedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
EffectiveDate: time.Now().AddDate(0, 0, -10),
3535
EndDate: datadog.PtrTime(time.Now().AddDate(0, 0, 10)),
3636
Interval: datadogV2.LayerAttributesInterval{
37-
Seconds: datadog.PtrInt64(300),
37+
Seconds: datadog.PtrInt64(3600),
3838
},
3939
Members: []datadogV2.ScheduleRequestDataAttributesLayersItemsMembersItems{
4040
{
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-29T04:54:24.605Z
1+
2025-07-03T14:30:45.232Z

tests/scenarios/cassettes/TestScenarios/v2/Feature_On-Call/Scenario_Update_On-Call_schedule_returns_OK_response.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"data":{"attributes":{"email":"Test-Update_On_Call_schedule_returns_OK_response-1748494464@datadoghq.com","title":"user title"},"type":"users"}}
4+
{"data":{"attributes":{"email":"Test-Update_On_Call_schedule_returns_OK_response-1751553045@datadoghq.com","title":"user title"},"type":"users"}}
55
form: {}
66
headers:
77
Accept:
@@ -12,7 +12,7 @@ interactions:
1212
method: POST
1313
url: https://api.datadoghq.com/api/v2/users
1414
response:
15-
body: '{"data":{"type":"users","id":"fe6b1fbd-3c48-11f0-90c9-4ad2f0f8c382","attributes":{"name":null,"handle":"test-update_on_call_schedule_returns_ok_response-1748494464@datadoghq.com","created_at":"2025-05-29T04:54:25.223093+00:00","modified_at":"2025-05-29T04:54:25.223093+00:00","email":"test-update_on_call_schedule_returns_ok_response-1748494464@datadoghq.com","icon":"https://secure.gravatar.com/avatar/6bc23e301121dc7a0a2d1adc71bbbc54?s=48&d=retro","title":"user
15+
body: '{"data":{"type":"users","id":"4ea279a2-581a-11f0-bb4d-bed6e06a25e4","attributes":{"name":null,"handle":"test-update_on_call_schedule_returns_ok_response-1751553045@datadoghq.com","created_at":"2025-07-03T14:30:46.015046+00:00","modified_at":"2025-07-03T14:30:46.015046+00:00","email":"test-update_on_call_schedule_returns_ok_response-1751553045@datadoghq.com","icon":"https://secure.gravatar.com/avatar/8c4a38455f71bb12d82add5157f105a0?s=48&d=retro","title":"user
1616
title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}
1717
1818
'
@@ -24,7 +24,7 @@ interactions:
2424
status: 201 Created
2525
- request:
2626
body: |
27-
{"data":{"attributes":{"layers":[{"effective_date":"2025-05-19T04:54:24.605Z","end_date":"2025-06-08T04:54:24.605Z","interval":{"days":1},"members":[{"user":{"id":"fe6b1fbd-3c48-11f0-90c9-4ad2f0f8c382"}}],"name":"Layer 1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-05-24T04:54:24.605Z"}],"name":"Test-Update_On_Call_schedule_returns_OK_response-1748494464","time_zone":"America/New_York"},"relationships":{"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}},"type":"schedules"}}
27+
{"data":{"attributes":{"layers":[{"effective_date":"2025-06-23T14:30:45.232Z","end_date":"2025-07-13T14:30:45.232Z","interval":{"days":1},"members":[{"user":{"id":"4ea279a2-581a-11f0-bb4d-bed6e06a25e4"}}],"name":"Layer 1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-06-28T14:30:45.232Z"}],"name":"Test-Update_On_Call_schedule_returns_OK_response-1751553045","time_zone":"America/New_York"},"relationships":{"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}},"type":"schedules"}}
2828
form: {}
2929
headers:
3030
Accept:
@@ -35,7 +35,7 @@ interactions:
3535
method: POST
3636
url: https://api.datadoghq.com/api/v2/on-call/schedules
3737
response:
38-
body: '{"data":{"id":"f12650c6-beae-40fd-a686-7e57d72216c6","type":"schedules","attributes":{"name":"Test-Update_On_Call_schedule_returns_OK_response-1748494464","time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"b9dca7b6-b083-44d3-9971-6c2c796fb352","type":"layers"}]},"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}}}}'
38+
body: '{"data":{"id":"3cb80fa4-f506-4b2f-9187-2af6c2253698","type":"schedules","attributes":{"name":"Test-Update_On_Call_schedule_returns_OK_response-1751553045","time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"70f75d0e-19d0-46a1-9c1c-19d2de171744","type":"layers"}]},"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}}}}'
3939
code: 201
4040
duration: 0ms
4141
headers:
@@ -44,7 +44,7 @@ interactions:
4444
status: 201 Created
4545
- request:
4646
body: |
47-
{"data":{"attributes":{"handle":"test-handle-ed2e958dacae5dbc","name":"test-name-ed2e958dacae5dbc"},"type":"team"}}
47+
{"data":{"attributes":{"handle":"test-handle-001d7ca9284aa632","name":"test-name-001d7ca9284aa632"},"type":"team"}}
4848
form: {}
4949
headers:
5050
Accept:
@@ -55,7 +55,7 @@ interactions:
5555
method: POST
5656
url: https://api.datadoghq.com/api/v2/team
5757
response:
58-
body: '{"data":{"type":"team","id":"522c3ff2-76b4-41db-8cfa-9bb9876145e4","attributes":{"name":"test-name-ed2e958dacae5dbc","handle":"test-handle-ed2e958dacae5dbc","summary":null,"description":null,"avatar":null,"banner":13,"visible_modules":[],"hidden_modules":[],"created_at":"2025-05-29T04:54:26.535052+00:00","modified_at":"2025-05-29T04:54:26.535061+00:00","user_count":0,"link_count":0},"relationships":{"team_links":{"links":{"related":"/api/v2/team/522c3ff2-76b4-41db-8cfa-9bb9876145e4/links"}},"user_team_permissions":{"links":{"related":"/api/v2/team/522c3ff2-76b4-41db-8cfa-9bb9876145e4/permission-settings"}}}}}
58+
body: '{"data":{"type":"team","id":"9ca20f11-ede5-4147-addb-25b7f91ce508","attributes":{"name":"test-name-001d7ca9284aa632","handle":"test-handle-001d7ca9284aa632","summary":null,"description":null,"avatar":null,"banner":13,"visible_modules":[],"hidden_modules":[],"created_at":"2025-07-03T14:30:46.275583+00:00","modified_at":"2025-07-03T14:30:46.275594+00:00","user_count":0,"link_count":0},"relationships":{"team_links":{"links":{"related":"/api/v2/team/9ca20f11-ede5-4147-addb-25b7f91ce508/links"}},"user_team_permissions":{"links":{"related":"/api/v2/team/9ca20f11-ede5-4147-addb-25b7f91ce508/permission-settings"}}}}}
5959
6060
'
6161
code: 201
@@ -66,7 +66,7 @@ interactions:
6666
status: 201 Created
6767
- request:
6868
body: |
69-
{"data":{"attributes":{"layers":[{"effective_date":"2025-05-19T04:54:24.605Z","end_date":"2025-06-08T04:54:24.605Z","id":"b9dca7b6-b083-44d3-9971-6c2c796fb352","interval":{"seconds":300},"members":[{"user":{"id":"fe6b1fbd-3c48-11f0-90c9-4ad2f0f8c382"}}],"name":"Layer 1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-05-24T04:54:24.605Z"}],"name":"Test-Update_On_Call_schedule_returns_OK_response-1748494464","time_zone":"America/New_York"},"id":"f12650c6-beae-40fd-a686-7e57d72216c6","relationships":{"teams":{"data":[{"id":"522c3ff2-76b4-41db-8cfa-9bb9876145e4","type":"teams"}]}},"type":"schedules"}}
69+
{"data":{"attributes":{"layers":[{"effective_date":"2025-06-23T14:30:45.232Z","end_date":"2025-07-13T14:30:45.232Z","id":"70f75d0e-19d0-46a1-9c1c-19d2de171744","interval":{"seconds":3600},"members":[{"user":{"id":"4ea279a2-581a-11f0-bb4d-bed6e06a25e4"}}],"name":"Layer 1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-06-28T14:30:45.232Z"}],"name":"Test-Update_On_Call_schedule_returns_OK_response-1751553045","time_zone":"America/New_York"},"id":"3cb80fa4-f506-4b2f-9187-2af6c2253698","relationships":{"teams":{"data":[{"id":"9ca20f11-ede5-4147-addb-25b7f91ce508","type":"teams"}]}},"type":"schedules"}}
7070
form: {}
7171
headers:
7272
Accept:
@@ -75,9 +75,9 @@ interactions:
7575
- application/json
7676
id: 3
7777
method: PUT
78-
url: https://api.datadoghq.com/api/v2/on-call/schedules/f12650c6-beae-40fd-a686-7e57d72216c6
78+
url: https://api.datadoghq.com/api/v2/on-call/schedules/3cb80fa4-f506-4b2f-9187-2af6c2253698
7979
response:
80-
body: '{"data":{"id":"f12650c6-beae-40fd-a686-7e57d72216c6","type":"schedules","attributes":{"name":"Test-Update_On_Call_schedule_returns_OK_response-1748494464","time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"b9dca7b6-b083-44d3-9971-6c2c796fb352","type":"layers"}]},"teams":{"data":[{"id":"522c3ff2-76b4-41db-8cfa-9bb9876145e4","type":"teams"}]}}}}'
80+
body: '{"data":{"id":"3cb80fa4-f506-4b2f-9187-2af6c2253698","type":"schedules","attributes":{"name":"Test-Update_On_Call_schedule_returns_OK_response-1751553045","time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"70f75d0e-19d0-46a1-9c1c-19d2de171744","type":"layers"}]},"teams":{"data":[{"id":"9ca20f11-ede5-4147-addb-25b7f91ce508","type":"teams"}]}}}}'
8181
code: 200
8282
duration: 0ms
8383
headers:
@@ -92,7 +92,7 @@ interactions:
9292
- '*/*'
9393
id: 4
9494
method: DELETE
95-
url: https://api.datadoghq.com/api/v2/team/522c3ff2-76b4-41db-8cfa-9bb9876145e4
95+
url: https://api.datadoghq.com/api/v2/team/9ca20f11-ede5-4147-addb-25b7f91ce508
9696
response:
9797
body: ''
9898
code: 204
@@ -107,7 +107,7 @@ interactions:
107107
- '*/*'
108108
id: 5
109109
method: DELETE
110-
url: https://api.datadoghq.com/api/v2/on-call/schedules/f12650c6-beae-40fd-a686-7e57d72216c6
110+
url: https://api.datadoghq.com/api/v2/on-call/schedules/3cb80fa4-f506-4b2f-9187-2af6c2253698
111111
response:
112112
body: ''
113113
code: 204
@@ -122,7 +122,7 @@ interactions:
122122
- '*/*'
123123
id: 6
124124
method: DELETE
125-
url: https://api.datadoghq.com/api/v2/users/fe6b1fbd-3c48-11f0-90c9-4ad2f0f8c382
125+
url: https://api.datadoghq.com/api/v2/users/4ea279a2-581a-11f0-bb4d-bed6e06a25e4
126126
response:
127127
body: ''
128128
code: 204

0 commit comments

Comments
 (0)