Skip to content

Commit

Permalink
Change allow_self_lockout from string to bool (#2862)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jan 6, 2025
1 parent be5b776 commit f209a04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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:33.362845",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:22.457929",
"spec_repo_commit": "24e28b93"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-03 18:07:33.378581",
"spec_repo_commit": "08abd462"
"regenerated": "2025-01-06 16:11:22.556386",
"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 api/datadogV2/api_restriction_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (a *RestrictionPoliciesApi) GetRestrictionPolicy(ctx _context.Context, reso

// UpdateRestrictionPolicyOptionalParameters holds optional parameters for UpdateRestrictionPolicy.
type UpdateRestrictionPolicyOptionalParameters struct {
AllowSelfLockout *string
AllowSelfLockout *bool
}

// NewUpdateRestrictionPolicyOptionalParameters creates an empty struct for parameters.
Expand All @@ -159,7 +159,7 @@ func NewUpdateRestrictionPolicyOptionalParameters() *UpdateRestrictionPolicyOpti
}

// WithAllowSelfLockout sets the corresponding parameter name and returns the struct.
func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSelfLockout string) *UpdateRestrictionPolicyOptionalParameters {
func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSelfLockout bool) *UpdateRestrictionPolicyOptionalParameters {
r.AllowSelfLockout = &allowSelfLockout
return r
}
Expand Down

0 comments on commit f209a04

Please sign in to comment.