Skip to content

Change allow_self_lockout from string to bool #1983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-03 18:07:34.562264",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:12.349211",
"spec_repo_commit": "24e28b93"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-03 18:07:34.578477",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:12.364402",
"spec_repo_commit": "24e28b93"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40992,7 +40992,7 @@ paths:
name: allow_self_lockout
required: false
schema:
type: string
type: boolean
requestBody:
content:
application/json:
Expand Down
2 changes: 1 addition & 1 deletion features/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5755,7 +5755,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
"format": "",
},
"allowSelfLockout": {
"type": "string",
"type": "boolean",
"format": "",
},
"body": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
public async updateRestrictionPolicy(
resourceId: string,
body: RestrictionPolicyUpdateRequest,
allowSelfLockout?: string,
allowSelfLockout?: boolean,
_options?: Configuration
): Promise<RequestContext> {
const _config = _options || this.configuration;
Expand Down Expand Up @@ -124,7 +124,7 @@ export class RestrictionPoliciesApiRequestFactory extends BaseAPIRequestFactory
if (allowSelfLockout !== undefined) {
requestContext.setQueryParam(
"allow_self_lockout",
ObjectSerializer.serialize(allowSelfLockout, "string", ""),
ObjectSerializer.serialize(allowSelfLockout, "boolean", ""),
""
);
}
Expand Down Expand Up @@ -364,9 +364,9 @@ export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
body: RestrictionPolicyUpdateRequest;
/**
* 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.
* @type string
* @type boolean
*/
allowSelfLockout?: string;
allowSelfLockout?: boolean;
}

export class RestrictionPoliciesApi {
Expand Down
Loading