Skip to content

Commit 4eece73

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
[docs] add integration-account and integration-webhook to restriction policy OpenAPI spec (#2479)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8cd1163 commit 4eece73

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

.apigentools-info

+4-4
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-04-04 16:55:45.187360",
8-
"spec_repo_commit": "da94868e"
7+
"regenerated": "2025-04-04 20:19:29.358542",
8+
"spec_repo_commit": "3909ab62"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 16:55:45.204117",
13-
"spec_repo_commit": "da94868e"
12+
"regenerated": "2025-04-04 20:19:29.373801",
13+
"spec_repo_commit": "3909ab62"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ components:
654654
type: string
655655
ResourceID:
656656
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
657-
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
658-
`app-builder-app`, `connection`, `connection-group`.'
657+
`dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`,
658+
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.'
659659
example: dashboard:abc-def-ghi
660660
in: path
661661
name: resource_id
@@ -45734,6 +45734,10 @@ paths:
4573445734

4573545735
- Dashboards: `dashboard`
4573645736

45737+
- Integration Accounts: `integration-account`
45738+
45739+
- Integration Webhooks: `integration-webhook`
45740+
4573745741
- Notebooks: `notebook`
4573845742

4573945743
- Powerpacks: `powerpack`
@@ -45769,6 +45773,10 @@ paths:
4576945773

4577045774
Dashboards | `viewer`, `editor`
4577145775

45776+
Integration Accounts | `viewer`, `editor`
45777+
45778+
Integration Webhooks | `viewer`, `editor`
45779+
4577245780
Notebooks | `viewer`, `editor`
4577345781

4577445782
Powerpacks | `viewer`, `editor`

src/datadog_api_client/v2/api/restriction_policies_api.py

+9-3
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`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
115+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
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`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
132+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -154,6 +154,8 @@ def update_restriction_policy(
154154
Restriction policies can be applied to the following resources:
155155
156156
* Dashboards: ``dashboard``
157+
* Integration Accounts: ``integration-account``
158+
* Integration Webhooks: ``integration-webhook``
157159
* Notebooks: ``notebook``
158160
* Powerpacks: ``powerpack``
159161
* Reference Tables: ``reference-table``
@@ -177,6 +179,10 @@ def update_restriction_policy(
177179
- Supported Relations
178180
* - Dashboards
179181
- ``viewer`` , ``editor``
182+
* - Integration Accounts
183+
- ``viewer`` , ``editor``
184+
* - Integration Webhooks
185+
- ``viewer`` , ``editor``
180186
* - Notebooks
181187
- ``viewer`` , ``editor``
182188
* - Powerpacks
@@ -205,7 +211,7 @@ def update_restriction_policy(
205211
- ``viewer`` , ``editor``
206212
207213
208-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
214+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
209215
:type resource_id: str
210216
:param body: Restriction policy payload
211217
:type body: RestrictionPolicyUpdateRequest

0 commit comments

Comments
 (0)