Skip to content

Commit ccc4d60

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Change allow_self_lockout from string to bool (#1983)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 15da3ea commit ccc4d60

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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-03 18:07:34.562264",
8-
"spec_repo_commit": "08abd462"
7+
"regenerated": "2025-01-06 16:11:12.349211",
8+
"spec_repo_commit": "24e28b93"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-03 18:07:34.578477",
13-
"spec_repo_commit": "08abd462"
12+
"regenerated": "2025-01-06 16:11:12.364402",
13+
"spec_repo_commit": "24e28b93"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40992,7 +40992,7 @@ paths:
4099240992
name: allow_self_lockout
4099340993
required: false
4099440994
schema:
40995-
type: string
40995+
type: boolean
4099640996
requestBody:
4099740997
content:
4099840998
application/json:

features/support/scenarios_model_mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5755,7 +5755,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
57555755
"format": "",
57565756
},
57575757
"allowSelfLockout": {
5758-
"type": "string",
5758+
"type": "boolean",
57595759
"format": "",
57605760
},
57615761
"body": {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
9292
public async updateRestrictionPolicy(
9393
resourceId: string,
9494
body: RestrictionPolicyUpdateRequest,
95-
allowSelfLockout?: string,
95+
allowSelfLockout?: boolean,
9696
_options?: Configuration
9797
): Promise<RequestContext> {
9898
const _config = _options || this.configuration;
@@ -124,7 +124,7 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
124124
if (allowSelfLockout !== undefined) {
125125
requestContext.setQueryParam(
126126
"allow_self_lockout",
127-
ObjectSerializer.serialize(allowSelfLockout, "string", ""),
127+
ObjectSerializer.serialize(allowSelfLockout, "boolean", ""),
128128
""
129129
);
130130
}
@@ -364,9 +364,9 @@ export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
364364
body: RestrictionPolicyUpdateRequest;
365365
/**
366366
* 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
367+
* @type boolean
368368
*/
369-
allowSelfLockout?: string;
369+
allowSelfLockout?: boolean;
370370
}
371371

372372
export class RestrictionPoliciesApi {

0 commit comments

Comments
 (0)