Skip to content

Commit 6fda0df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Change allow_self_lockout from string to bool (#448)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 12d3a3b commit 6fda0df

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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:31.749003",
8-
"spec_repo_commit": "08abd462"
7+
"regenerated": "2025-01-06 16:11:20.909418",
8+
"spec_repo_commit": "24e28b93"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-03 18:07:31.763969",
13-
"spec_repo_commit": "08abd462"
12+
"regenerated": "2025-01-06 16:11:20.925710",
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:

src/datadogV2/api/api_restriction_policies.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ use std::io::Write;
1515
#[derive(Clone, Default, Debug)]
1616
pub struct UpdateRestrictionPolicyOptionalParams {
1717
/// 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.
18-
pub allow_self_lockout: Option<String>,
18+
pub allow_self_lockout: Option<bool>,
1919
}
2020

2121
impl UpdateRestrictionPolicyOptionalParams {
2222
/// 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.
23-
pub fn allow_self_lockout(mut self, value: String) -> Self {
23+
pub fn allow_self_lockout(mut self, value: bool) -> Self {
2424
self.allow_self_lockout = Some(value);
2525
self
2626
}

0 commit comments

Comments
 (0)