Skip to content

Commit 6b842d9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ed2af53b of spec repo
1 parent 02ee152 commit 6b842d9

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-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:39.659122",
8-
"spec_repo_commit": "08abd462"
7+
"regenerated": "2025-01-03 22:00:01.222640",
8+
"spec_repo_commit": "ed2af53b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-03 18:07:39.674600",
13-
"spec_repo_commit": "08abd462"
12+
"regenerated": "2025-01-03 22:00:01.238052",
13+
"spec_repo_commit": "ed2af53b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40992,7 +40992,8 @@ paths:
4099240992
name: allow_self_lockout
4099340993
required: false
4099440994
schema:
40995-
type: string
40995+
default: false
40996+
type: boolean
4099640997
requestBody:
4099740998
content:
4099840999
application/json:

src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,18 +338,18 @@ public ApiResponse<RestrictionPolicyResponse> getRestrictionPolicyWithHttpInfo(S
338338

339339
/** Manage optional parameters to updateRestrictionPolicy. */
340340
public static class UpdateRestrictionPolicyOptionalParameters {
341-
private String allowSelfLockout;
341+
private Boolean allowSelfLockout;
342342

343343
/**
344344
* Set allowSelfLockout.
345345
*
346346
* @param allowSelfLockout Allows admins (users with the <code>user_access_manage</code>
347347
* permission) to remove their own access from the resource if set to <code>true</code>. By
348348
* default, this is set to <code>false</code>, preventing admins from locking themselves
349-
* out. (optional)
349+
* out. (optional, default to false)
350350
* @return UpdateRestrictionPolicyOptionalParameters
351351
*/
352-
public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(String allowSelfLockout) {
352+
public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowSelfLockout) {
353353
this.allowSelfLockout = allowSelfLockout;
354354
return this;
355355
}
@@ -497,7 +497,7 @@ public ApiResponse<RestrictionPolicyResponse> updateRestrictionPolicyWithHttpInf
497497
throw new ApiException(
498498
400, "Missing the required parameter 'body' when calling updateRestrictionPolicy");
499499
}
500-
String allowSelfLockout = parameters.allowSelfLockout;
500+
Boolean allowSelfLockout = parameters.allowSelfLockout;
501501
// create path and map variables
502502
String localVarPath =
503503
"/api/v2/restriction_policy/{resource_id}"
@@ -567,7 +567,7 @@ public ApiResponse<RestrictionPolicyResponse> updateRestrictionPolicyWithHttpInf
567567
400, "Missing the required parameter 'body' when calling updateRestrictionPolicy"));
568568
return result;
569569
}
570-
String allowSelfLockout = parameters.allowSelfLockout;
570+
Boolean allowSelfLockout = parameters.allowSelfLockout;
571571
// create path and map variables
572572
String localVarPath =
573573
"/api/v2/restriction_policy/{resource_id}"

0 commit comments

Comments
 (0)