Skip to content

Commit 4d3c3e5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add on-call restriction policies (#2572)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 45986ed commit 4d3c3e5

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
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:33:11.707"
2+
"spec_repo_commit": "35630f3",
3+
"generated": "2025-08-01 18:18:32.897"
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'

packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,23 +337,23 @@ export class RestrictionPoliciesApiResponseProcessor {
337337

338338
export interface RestrictionPoliciesApiDeleteRestrictionPolicyRequest {
339339
/**
340-
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
340+
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules.
341341
* @type string
342342
*/
343343
resourceId: string;
344344
}
345345

346346
export interface RestrictionPoliciesApiGetRestrictionPolicyRequest {
347347
/**
348-
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
348+
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules.
349349
* @type string
350350
*/
351351
resourceId: string;
352352
}
353353

354354
export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
355355
/**
356-
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
356+
* Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules.
357357
* @type string
358358
*/
359359
resourceId: string;
@@ -454,6 +454,9 @@ export class RestrictionPoliciesApi {
454454
* - RUM Applications: `rum-application`
455455
* - Cross Org Connections: `cross-org-connection`
456456
* - Spreadsheets: `spreadsheet`
457+
* - On-Call Schedules: `on-call-schedule`
458+
* - On-Call Escalation Policies: `on-call-escalation-policy`
459+
* - On-Call Team Routing Rules: `on-call-team-routing-rules`
457460
*
458461
* #### Supported relations for resources
459462
* Resource Type | Supported Relations
@@ -477,6 +480,9 @@ export class RestrictionPoliciesApi {
477480
* RUM Application | `viewer`, `editor`
478481
* Cross Org Connections | `viewer`, `editor`
479482
* Spreadsheets | `viewer`, `editor`
483+
* On-Call Schedules | `viewer`, `overrider`, `editor`
484+
* On-Call Escalation Policies | `viewer`, `editor`
485+
* On-Call Team Routing Rules | `viewer`, `editor`
480486
* @param param The request object
481487
*/
482488
public updateRestrictionPolicy(

0 commit comments

Comments
 (0)