Skip to content

Commit c4da40e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add on-call restriction policies (#2562)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fd41572 commit c4da40e

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:31:56.006"
2+
"spec_repo_commit": "35630f3",
3+
"generated": "2025-08-01 18:17:22.417"
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'

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {})
3535
#
3636
# Deletes the restriction policy associated with a specified resource.
3737
#
38-
# @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`.
38+
# @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.
3939
# @param opts [Hash] the optional parameters
4040
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4141
def delete_restriction_policy_with_http_info(resource_id, opts = {})
@@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {})
100100
#
101101
# Retrieves the restriction policy associated with a specified resource.
102102
#
103-
# @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`.
103+
# @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.
104104
# @param opts [Hash] the optional parameters
105105
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
106106
def get_restriction_policy_with_http_info(resource_id, opts = {})
@@ -186,6 +186,9 @@ def update_restriction_policy(resource_id, body, opts = {})
186186
# - RUM Applications: `rum-application`
187187
# - Cross Org Connections: `cross-org-connection`
188188
# - Spreadsheets: `spreadsheet`
189+
# - On-Call Schedules: `on-call-schedule`
190+
# - On-Call Escalation Policies: `on-call-escalation-policy`
191+
# - On-Call Team Routing Rules: `on-call-team-routing-rules`
189192
#
190193
# #### Supported relations for resources
191194
# Resource Type | Supported Relations
@@ -209,8 +212,11 @@ def update_restriction_policy(resource_id, body, opts = {})
209212
# RUM Application | `viewer`, `editor`
210213
# Cross Org Connections | `viewer`, `editor`
211214
# Spreadsheets | `viewer`, `editor`
215+
# On-Call Schedules | `viewer`, `overrider`, `editor`
216+
# On-Call Escalation Policies | `viewer`, `editor`
217+
# On-Call Team Routing Rules | `viewer`, `editor`
212218
#
213-
# @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`.
219+
# @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.
214220
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
215221
# @param opts [Hash] the optional parameters
216222
# @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.

0 commit comments

Comments
 (0)