Skip to content

Commit b982523

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2ccb7d3 of spec repo
1 parent d450e79 commit b982523

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-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": "4727afe",
3-
"generated": "2025-07-23 15:37:01.942"
2+
"spec_repo_commit": "2ccb7d3",
3+
"generated": "2025-07-24 02:23:34.652"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ components:
767767
`dashboard`, `integration-account`, `integration-service`, `integration-webhook`,
768768
`notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`,
769769
`connection`, `connection-group`, `rum-application`, `cross-org-connection`,
770-
`spreadsheet`.'
770+
`spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`.'
771771
example: dashboard:abc-def-ghi
772772
in: path
773773
name: resource_id
@@ -57478,6 +57478,12 @@ paths:
5747857478

5747957479
- Spreadsheets: `spreadsheet`
5748057480

57481+
- On-Call Schedules: `on-call-schedule`
57482+
57483+
- On-Call Escalation Policies: `on-call-escalation-policy`
57484+
57485+
- On-Call Team Routing Rules: `on-call-team-routing-rules`
57486+
5748157487

5748257488
#### Supported relations for resources
5748357489

@@ -57523,7 +57529,13 @@ paths:
5752357529

5752457530
Cross Org Connections | `viewer`, `editor`
5752557531

57526-
Spreadsheets | `viewer`, `editor`'
57532+
Spreadsheets | `viewer`, `editor`
57533+
57534+
On-Call Schedules | `viewer`, `overrider`, `editor`
57535+
57536+
On-Call Escalation Policies | `viewer`, `editor`
57537+
57538+
On-Call Team Routing Rules | `viewer`, `editor`'
5752757539
operationId: UpdateRestrictionPolicy
5752857540
parameters:
5752957541
- $ref: '#/components/parameters/ResourceID'

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def delete_restriction_policy(
112112
113113
Deletes the restriction policy associated with a specified resource.
114114
115-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet``.
115+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``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``.
116116
:type resource_id: str
117117
:rtype: None
118118
"""
@@ -129,7 +129,7 @@ def get_restriction_policy(
129129
130130
Retrieves the restriction policy associated with a specified resource.
131131
132-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet``.
132+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``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``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -173,6 +173,9 @@ def update_restriction_policy(
173173
* RUM Applications: ``rum-application``
174174
* Cross Org Connections: ``cross-org-connection``
175175
* Spreadsheets: ``spreadsheet``
176+
* On-Call Schedules: ``on-call-schedule``
177+
* On-Call Escalation Policies: ``on-call-escalation-policy``
178+
* On-Call Team Routing Rules: ``on-call-team-routing-rules``
176179
177180
**Supported relations for resources**
178181
@@ -221,9 +224,15 @@ def update_restriction_policy(
221224
- ``viewer`` , ``editor``
222225
* - Spreadsheets
223226
- ``viewer`` , ``editor``
227+
* - On-Call Schedules
228+
- ``viewer`` , ``overrider`` , ``editor``
229+
* - On-Call Escalation Policies
230+
- ``viewer`` , ``editor``
231+
* - On-Call Team Routing Rules
232+
- ``viewer`` , ``editor``
224233
225234
226-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet``.
235+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``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``.
227236
:type resource_id: str
228237
:param body: Restriction policy payload
229238
:type body: RestrictionPolicyUpdateRequest

0 commit comments

Comments
 (0)