Skip to content

Commit 36a7279

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[ACCESSINT-158] Add low code resources to restriction policy APIs (#2189)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 884c62f commit 36a7279

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-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-01-15 18:03:14.352874",
8-
"spec_repo_commit": "e54847a1"
7+
"regenerated": "2025-01-16 23:13:36.229651",
8+
"spec_repo_commit": "0ad24d9f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-15 18:03:14.368560",
13-
"spec_repo_commit": "e54847a1"
12+
"regenerated": "2025-01-16 23:13:36.263477",
13+
"spec_repo_commit": "0ad24d9f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ components:
601601
type: string
602602
ResourceID:
603603
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
604-
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.'
604+
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
605+
`app-builder-app`, `connection`, `connection-group`.'
605606
example: dashboard:abc-def-ghi
606607
in: path
607608
name: resource_id
@@ -41037,6 +41038,14 @@ paths:
4103741038

4103841039
- Monitors: `monitor`
4103941040

41041+
- Workflows: `workflow`
41042+
41043+
- App Builder Apps: `app-builder-app`
41044+
41045+
- Connections: `connection`
41046+
41047+
- Connection Groups: `connection-group`
41048+
4104041049

4104141050
#### Supported relations for resources
4104241051

@@ -41062,7 +41071,15 @@ paths:
4106241071

4106341072
Monitors | `viewer`, `editor`
4106441073

41065-
Reference Tables | `viewer`, `editor`'
41074+
Reference Tables | `viewer`, `editor`
41075+
41076+
Workflows | `viewer`, `editor`
41077+
41078+
App Builder Apps | `viewer`, `runner`, `editor`
41079+
41080+
Connections | `viewer`, `resolver`, `editor`
41081+
41082+
Connection Groups | `viewer`, `editor`'
4106641083
operationId: UpdateRestrictionPolicy
4106741084
parameters:
4106841085
- $ref: '#/components/parameters/ResourceID'

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 11 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: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
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`.
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`.
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`.
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 = {})
@@ -177,6 +177,10 @@ def update_restriction_policy(resource_id, body, opts = {})
177177
# - Synthetic Tests: `synthetics-test`
178178
# - Synthetic Private Locations: `synthetics-private-location`
179179
# - Monitors: `monitor`
180+
# - Workflows: `workflow`
181+
# - App Builder Apps: `app-builder-app`
182+
# - Connections: `connection`
183+
# - Connection Groups: `connection-group`
180184
#
181185
# #### Supported relations for resources
182186
# Resource Type | Supported Relations
@@ -191,8 +195,12 @@ def update_restriction_policy(resource_id, body, opts = {})
191195
# Synthetic Private Locations | `viewer`, `editor`
192196
# Monitors | `viewer`, `editor`
193197
# Reference Tables | `viewer`, `editor`
198+
# Workflows | `viewer`, `editor`
199+
# App Builder Apps | `viewer`, `runner`, `editor`
200+
# Connections | `viewer`, `resolver`, `editor`
201+
# Connection Groups | `viewer`, `editor`
194202
#
195-
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
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`.
196204
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
197205
# @param opts [Hash] the optional parameters
198206
# @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)