diff --git a/.generated-info b/.generated-info index ebae08f9cda5..2886469cbfff 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "0f70319", - "generated": "2025-08-01 15:31:56.006" + "spec_repo_commit": "35630f3", + "generated": "2025-08-01 18:17:22.417" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea57695f0533..65f05ab5f71a 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/lib/datadog_api_client/v2/api/restriction_policies_api.rb b/lib/datadog_api_client/v2/api/restriction_policies_api.rb index b5ccc5250858..a27242cacf28 100644 --- a/lib/datadog_api_client/v2/api/restriction_policies_api.rb +++ b/lib/datadog_api_client/v2/api/restriction_policies_api.rb @@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {}) # # Deletes the restriction policy associated with a specified resource. # - # @param resource_id [String] 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 [String] 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. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_restriction_policy_with_http_info(resource_id, opts = {}) @@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {}) # # Retrieves the restriction policy associated with a specified resource. # - # @param resource_id [String] 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 [String] 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. # @param opts [Hash] the optional parameters # @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers def get_restriction_policy_with_http_info(resource_id, opts = {}) @@ -186,6 +186,9 @@ def update_restriction_policy(resource_id, body, opts = {}) # - 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 @@ -209,8 +212,11 @@ def update_restriction_policy(resource_id, body, opts = {}) # 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` # - # @param resource_id [String] 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 [String] 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. # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload # @param opts [Hash] the optional parameters # @option opts [Boolean] :allow_self_lockout Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out.