From 960068b485a19916bb2beaecfba78a002b1ec7f2 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 20:01:29 +0000 Subject: [PATCH] Add on-call restriction policies (#3243) Co-authored-by: ci.datadog-api-spec --- .generated-info | 4 ++-- .generator/schemas/v2/openapi.yaml | 17 +++++++++++++++-- api/datadogV2/api_restriction_policies.go | 6 ++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.generated-info b/.generated-info index 94117f58aba..08a7dc1bbe4 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "0f70319", - "generated": "2025-08-01 15:33:36.510" + "spec_repo_commit": "35630f3", + "generated": "2025-08-01 18:18:57.804" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea57695f053..65f05ab5f71 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -766,7 +766,8 @@ components: description: '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`.' + `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, + `on-call-escalation-policy`, `on-call-team-routing-rules.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -59320,6 +59321,12 @@ paths: - Spreadsheets: `spreadsheet` + - On-Call Schedules: `on-call-schedule` + + - On-Call Escalation Policies: `on-call-escalation-policy` + + - On-Call Team Routing Rules: `on-call-team-routing-rules` + #### Supported relations for resources @@ -59363,7 +59370,13 @@ paths: Cross Org Connections | `viewer`, `editor` - Spreadsheets | `viewer`, `editor`' + Spreadsheets | `viewer`, `editor` + + On-Call Schedules | `viewer`, `overrider`, `editor` + + On-Call Escalation Policies | `viewer`, `editor` + + On-Call Team Routing Rules | `viewer`, `editor`' operationId: UpdateRestrictionPolicy parameters: - $ref: '#/components/parameters/ResourceID' diff --git a/api/datadogV2/api_restriction_policies.go b/api/datadogV2/api_restriction_policies.go index 8945a55746b..97ecb00aca6 100644 --- a/api/datadogV2/api_restriction_policies.go +++ b/api/datadogV2/api_restriction_policies.go @@ -202,6 +202,9 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe // - RUM Applications: `rum-application` // - Cross Org Connections: `cross-org-connection` // - Spreadsheets: `spreadsheet` +// - On-Call Schedules: `on-call-schedule` +// - On-Call Escalation Policies: `on-call-escalation-policy` +// - On-Call Team Routing Rules: `on-call-team-routing-rules` // // #### Supported relations for resources // Resource Type | Supported Relations @@ -225,6 +228,9 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe // RUM Application | `viewer`, `editor` // Cross Org Connections | `viewer`, `editor` // Spreadsheets | `viewer`, `editor` +// On-Call Schedules | `viewer`, `overrider`, `editor` +// On-Call Escalation Policies | `viewer`, `editor` +// On-Call Team Routing Rules | `viewer`, `editor` func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest, o ...UpdateRestrictionPolicyOptionalParameters) (RestrictionPolicyResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost