From 2c915640cec307c20238a98a4b878410669abdfc Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 1 Aug 2025 18:17:32 +0000 Subject: [PATCH] Regenerate client from commit 35630f3 of spec repo --- .generated-info | 4 ++-- .generator/schemas/v2/openapi.yaml | 17 +++++++++++++++-- .../v2/api/restriction_policies_api.py | 15 ++++++++++++--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.generated-info b/.generated-info index 18b02812ba..6c765d778e 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "0f70319", - "generated": "2025-08-01 15:32:13.808" + "spec_repo_commit": "35630f3", + "generated": "2025-08-01 18:17:32.476" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea57695f05..65f05ab5f7 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/src/datadog_api_client/v2/api/restriction_policies_api.py b/src/datadog_api_client/v2/api/restriction_policies_api.py index 51b9d0eb80..f188c069ef 100644 --- a/src/datadog_api_client/v2/api/restriction_policies_api.py +++ b/src/datadog_api_client/v2/api/restriction_policies_api.py @@ -112,7 +112,7 @@ def delete_restriction_policy( Deletes the restriction policy associated with a specified resource. - :param resource_id: 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``. + :param resource_id: 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. :type resource_id: str :rtype: None """ @@ -129,7 +129,7 @@ def get_restriction_policy( Retrieves the restriction policy associated with a specified resource. - :param resource_id: 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``. + :param resource_id: 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. :type resource_id: str :rtype: RestrictionPolicyResponse """ @@ -172,6 +172,9 @@ def update_restriction_policy( * 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** @@ -218,9 +221,15 @@ def update_restriction_policy( - ``viewer`` , ``editor`` * - Spreadsheets - ``viewer`` , ``editor`` + * - On-Call Schedules + - ``viewer`` , ``overrider`` , ``editor`` + * - On-Call Escalation Policies + - ``viewer`` , ``editor`` + * - On-Call Team Routing Rules + - ``viewer`` , ``editor`` - :param resource_id: 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``. + :param resource_id: 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. :type resource_id: str :param body: Restriction policy payload :type body: RestrictionPolicyUpdateRequest