Skip to content

Commit 4c44931

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 (#2309)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e07a760 commit 4c44931

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-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:51.112810",
8-
"spec_repo_commit": "da94868e"
7+
"regenerated": "2025-04-04 20:19:34.024681",
8+
"spec_repo_commit": "3909ab62"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 16:55:51.129680",
13-
"spec_repo_commit": "da94868e"
12+
"regenerated": "2025-04-04 20:19:34.040447",
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`

lib/datadog_api_client/v2/api/restriction_policies_api.rb

+7-3
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: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
38+
# @param resource_id [String] 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`.
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: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
103+
# @param resource_id [String] 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`.
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 = {})
@@ -168,6 +168,8 @@ def update_restriction_policy(resource_id, body, opts = {})
168168
# #### Supported resources
169169
# Restriction policies can be applied to the following resources:
170170
# - Dashboards: `dashboard`
171+
# - Integration Accounts: `integration-account`
172+
# - Integration Webhooks: `integration-webhook`
171173
# - Notebooks: `notebook`
172174
# - Powerpacks: `powerpack`
173175
# - Reference Tables: `reference-table`
@@ -186,6 +188,8 @@ def update_restriction_policy(resource_id, body, opts = {})
186188
# Resource Type | Supported Relations
187189
# ----------------------------|--------------------------
188190
# Dashboards | `viewer`, `editor`
191+
# Integration Accounts | `viewer`, `editor`
192+
# Integration Webhooks | `viewer`, `editor`
189193
# Notebooks | `viewer`, `editor`
190194
# Powerpacks | `viewer`, `editor`
191195
# Security Rules | `viewer`, `editor`
@@ -200,7 +204,7 @@ def update_restriction_policy(resource_id, body, opts = {})
200204
# Connections | `viewer`, `resolver`, `editor`
201205
# Connection Groups | `viewer`, `editor`
202206
#
203-
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
207+
# @param resource_id [String] 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`.
204208
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
205209
# @param opts [Hash] the optional parameters
206210
# @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)