Skip to content
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:31.749003",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:20.909418",
"spec_repo_commit": "24e28b93"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-03 18:07:31.763969",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:20.925710",
"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
4 changes: 2 additions & 2 deletions src/datadogV2/api/api_restriction_policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ use std::io::Write;
#[derive(Clone, Default, Debug)]
pub struct UpdateRestrictionPolicyOptionalParams {
/// 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.
pub allow_self_lockout: Option<String>,
pub allow_self_lockout: Option<bool>,
}

impl UpdateRestrictionPolicyOptionalParams {
/// 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.
pub fn allow_self_lockout(mut self, value: String) -> Self {
pub fn allow_self_lockout(mut self, value: bool) -> Self {
self.allow_self_lockout = Some(value);
self
}
Expand Down
Loading