Skip to content

Commit d40de63

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add spreadsheet to restriction_policy specs (#2684)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 52a66e5 commit d40de63

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-08 07:28:58.334886",
8-
"spec_repo_commit": "d9879085"
7+
"regenerated": "2025-07-08 19:08:06.138597",
8+
"spec_repo_commit": "7b042e12"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-08 07:28:58.350439",
13-
"spec_repo_commit": "d9879085"
12+
"regenerated": "2025-07-08 19:08:06.154349",
13+
"spec_repo_commit": "7b042e12"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,8 @@ components:
758758
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
759759
`dashboard`, `integration-account`, `integration-service`, `integration-webhook`,
760760
`notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`,
761-
`connection`, `connection-group`, `rum-application`, `cross-org-connection`.'
761+
`connection`, `connection-group`, `rum-application`, `cross-org-connection`,
762+
`spreadsheet`.'
762763
example: dashboard:abc-def-ghi
763764
in: path
764765
name: resource_id
@@ -56504,6 +56505,8 @@ paths:
5650456505

5650556506
- Cross Org Connections: `cross-org-connection`
5650656507

56508+
- Spreadsheets: `spreadsheet`
56509+
5650756510

5650856511
#### Supported relations for resources
5650956512

@@ -56547,7 +56550,9 @@ paths:
5654756550

5654856551
RUM Application | `viewer`, `editor`
5654956552

56550-
Cross Org Connections | `viewer`, `editor`'
56553+
Cross Org Connections | `viewer`, `editor`
56554+
56555+
Spreadsheets | `viewer`, `editor`'
5655156556
operationId: UpdateRestrictionPolicy
5655256557
parameters:
5655356558
- $ref: '#/components/parameters/ResourceID'

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 6 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``.
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``.
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``.
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``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -172,6 +172,7 @@ def update_restriction_policy(
172172
* Connection Groups: ``connection-group``
173173
* RUM Applications: ``rum-application``
174174
* Cross Org Connections: ``cross-org-connection``
175+
* Spreadsheets: ``spreadsheet``
175176
176177
**Supported relations for resources**
177178
@@ -218,9 +219,11 @@ def update_restriction_policy(
218219
- ``viewer`` , ``editor``
219220
* - Cross Org Connections
220221
- ``viewer`` , ``editor``
222+
* - Spreadsheets
223+
- ``viewer`` , ``editor``
221224
222225
223-
: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``.
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``.
224227
:type resource_id: str
225228
:param body: Restriction policy payload
226229
:type body: RestrictionPolicyUpdateRequest

0 commit comments

Comments
 (0)