Skip to content

Commit 4c91aa5

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

File tree

4 files changed

+32
-4
lines changed

4 files changed

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

.generator/schemas/v2/openapi.yaml

+8
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/support/scenarios_model_mapping.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5754,6 +5754,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
57545754
"type": "string",
57555755
"format": "",
57565756
},
5757+
"allowSelfLockout": {
5758+
"type": "string",
5759+
"format": "",
5760+
},
57575761
"body": {
57585762
"type": "RestrictionPolicyUpdateRequest",
57595763
"format": "",

packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts

+16
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
9292
public async updateRestrictionPolicy(
9393
resourceId: string,
9494
body: RestrictionPolicyUpdateRequest,
95+
allowSelfLockout?: string,
9596
_options?: Configuration
9697
): Promise<RequestContext> {
9798
const _config = _options || this.configuration;
@@ -119,6 +120,15 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
119120
requestContext.setHeaderParam("Accept", "application/json");
120121
requestContext.setHttpConfig(_config.httpConfig);
121122

123+
// Query Params
124+
if (allowSelfLockout !== undefined) {
125+
requestContext.setQueryParam(
126+
"allow_self_lockout",
127+
ObjectSerializer.serialize(allowSelfLockout, "string", ""),
128+
""
129+
);
130+
}
131+
122132
// Body Params
123133
const contentType = ObjectSerializer.getPreferredMediaType([
124134
"application/json",
@@ -352,6 +362,11 @@ export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
352362
* @type RestrictionPolicyUpdateRequest
353363
*/
354364
body: RestrictionPolicyUpdateRequest;
365+
/**
366+
* 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.
367+
* @type string
368+
*/
369+
allowSelfLockout?: string;
355370
}
356371

357372
export class RestrictionPoliciesApi {
@@ -453,6 +468,7 @@ export class RestrictionPoliciesApi {
453468
const requestContextPromise = this.requestFactory.updateRestrictionPolicy(
454469
param.resourceId,
455470
param.body,
471+
param.allowSelfLockout,
456472
options
457473
);
458474
return requestContextPromise.then((requestContext) => {

0 commit comments

Comments
 (0)