Skip to content

Commit 8f84d47

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add on-call restriction policies (#810)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 987dda3 commit 8f84d47

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "0f70319",
3-
"generated": "2025-08-01 15:36:54.364"
2+
"spec_repo_commit": "35630f3",
3+
"generated": "2025-08-01 18:22:37.503"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,8 @@ components:
766766
description: 'Identifier, formatted as `type:id`. Supported types: `dashboard`,
767767
`integration-service`, `integration-webhook`, `notebook`, `reference-table`,
768768
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`,
769-
`rum-application`, `cross-org-connection`, `spreadsheet`.'
769+
`rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`,
770+
`on-call-escalation-policy`, `on-call-team-routing-rules.'
770771
example: dashboard:abc-def-ghi
771772
in: path
772773
name: resource_id
@@ -59320,6 +59321,12 @@ paths:
5932059321

5932159322
- Spreadsheets: `spreadsheet`
5932259323

59324+
- On-Call Schedules: `on-call-schedule`
59325+
59326+
- On-Call Escalation Policies: `on-call-escalation-policy`
59327+
59328+
- On-Call Team Routing Rules: `on-call-team-routing-rules`
59329+
5932359330

5932459331
#### Supported relations for resources
5932559332

@@ -59363,7 +59370,13 @@ paths:
5936359370

5936459371
Cross Org Connections | `viewer`, `editor`
5936559372

59366-
Spreadsheets | `viewer`, `editor`'
59373+
Spreadsheets | `viewer`, `editor`
59374+
59375+
On-Call Schedules | `viewer`, `overrider`, `editor`
59376+
59377+
On-Call Escalation Policies | `viewer`, `editor`
59378+
59379+
On-Call Team Routing Rules | `viewer`, `editor`'
5936759380
operationId: UpdateRestrictionPolicy
5936859381
parameters:
5936959382
- $ref: '#/components/parameters/ResourceID'

src/datadogV2/api/api_restriction_policies.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ impl RestrictionPoliciesAPI {
343343
/// - RUM Applications: `rum-application`
344344
/// - Cross Org Connections: `cross-org-connection`
345345
/// - Spreadsheets: `spreadsheet`
346+
/// - On-Call Schedules: `on-call-schedule`
347+
/// - On-Call Escalation Policies: `on-call-escalation-policy`
348+
/// - On-Call Team Routing Rules: `on-call-team-routing-rules`
346349
///
347350
/// #### Supported relations for resources
348351
/// Resource Type | Supported Relations
@@ -366,6 +369,9 @@ impl RestrictionPoliciesAPI {
366369
/// RUM Application | `viewer`, `editor`
367370
/// Cross Org Connections | `viewer`, `editor`
368371
/// Spreadsheets | `viewer`, `editor`
372+
/// On-Call Schedules | `viewer`, `overrider`, `editor`
373+
/// On-Call Escalation Policies | `viewer`, `editor`
374+
/// On-Call Team Routing Rules | `viewer`, `editor`
369375
pub async fn update_restriction_policy(
370376
&self,
371377
resource_id: String,
@@ -415,6 +421,9 @@ impl RestrictionPoliciesAPI {
415421
/// - RUM Applications: `rum-application`
416422
/// - Cross Org Connections: `cross-org-connection`
417423
/// - Spreadsheets: `spreadsheet`
424+
/// - On-Call Schedules: `on-call-schedule`
425+
/// - On-Call Escalation Policies: `on-call-escalation-policy`
426+
/// - On-Call Team Routing Rules: `on-call-team-routing-rules`
418427
///
419428
/// #### Supported relations for resources
420429
/// Resource Type | Supported Relations
@@ -438,6 +447,9 @@ impl RestrictionPoliciesAPI {
438447
/// RUM Application | `viewer`, `editor`
439448
/// Cross Org Connections | `viewer`, `editor`
440449
/// Spreadsheets | `viewer`, `editor`
450+
/// On-Call Schedules | `viewer`, `overrider`, `editor`
451+
/// On-Call Escalation Policies | `viewer`, `editor`
452+
/// On-Call Team Routing Rules | `viewer`, `editor`
441453
pub async fn update_restriction_policy_with_http_info(
442454
&self,
443455
resource_id: String,

0 commit comments

Comments
 (0)