Skip to content

Commit f89172a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 733cf3ea of spec repo
1 parent e229766 commit f89172a

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
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-02 16:18:05.602948",
8-
"spec_repo_commit": "bc53c28f"
7+
"regenerated": "2025-01-02 17:32:11.649371",
8+
"spec_repo_commit": "733cf3ea"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-02 16:18:05.618096",
13-
"spec_repo_commit": "bc53c28f"
12+
"regenerated": "2025-01-02 17:32:11.666424",
13+
"spec_repo_commit": "733cf3ea"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40985,6 +40985,14 @@ paths:
4098540985
operationId: UpdateRestrictionPolicy
4098640986
parameters:
4098740987
- $ref: '#/components/parameters/ResourceID'
40988+
- description: Allows admins (users with the `user_access_manage` permission)
40989+
to remove their own access from the resource if set to `true`. By default,
40990+
this is set to `false`, preventing admins from locking themselves out.
40991+
in: query
40992+
name: allow_self_lockout
40993+
required: false
40994+
schema:
40995+
type: string
4098840996
requestBody:
4098940997
content:
4099040998
application/json:

features/scenarios_model_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,7 @@
20212021
},
20222022
"v2.UpdateRestrictionPolicy" => {
20232023
"resource_id" => "String",
2024+
"allow_self_lockout" => "String",
20242025
"body" => "RestrictionPolicyUpdateRequest",
20252026
},
20262027
"v2.AggregateRUMEvents" => {

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def update_restriction_policy(resource_id, body, opts = {})
195195
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
196196
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
197197
# @param opts [Hash] the optional parameters
198+
# @option opts [String] :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.
198199
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
199200
def update_restriction_policy_with_http_info(resource_id, body, opts = {})
200201

@@ -214,6 +215,7 @@ def update_restriction_policy_with_http_info(resource_id, body, opts = {})
214215

215216
# query parameters
216217
query_params = opts[:query_params] || {}
218+
query_params[:'allow_self_lockout'] = opts[:'allow_self_lockout'] if !opts[:'allow_self_lockout'].nil?
217219

218220
# header parameters
219221
header_params = opts[:header_params] || {}

0 commit comments

Comments
 (0)