Skip to content

Commit d4e81eb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 59e36a8d of spec repo
1 parent 8d0a719 commit d4e81eb

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 14:39:40.447374",
8-
"spec_repo_commit": "b4e964b3"
7+
"regenerated": "2025-01-02 17:21:18.695001",
8+
"spec_repo_commit": "59e36a8d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-02 14:39:40.463809",
13-
"spec_repo_commit": "b4e964b3"
12+
"regenerated": "2025-01-02 17:21:18.709999",
13+
"spec_repo_commit": "59e36a8d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40785,6 +40785,14 @@ paths:
4078540785
operationId: UpdateRestrictionPolicy
4078640786
parameters:
4078740787
- $ref: '#/components/parameters/ResourceID'
40788+
- description: Allows admins (users with the user_access_manage permission)
40789+
to remove their own access from the resource if set to `true`. By default,
40790+
this is set to `false`, preventing admins from locking themselves out.
40791+
in: query
40792+
name: allow_self_lockout
40793+
required: false
40794+
schema:
40795+
type: string
4078840796
requestBody:
4078940797
content:
4079040798
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)