Skip to content

Commit 5002fe2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 24e28b93 of spec repo
1 parent 97bcded commit 5002fe2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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:32.277333",
8-
"spec_repo_commit": "08abd462"
7+
"regenerated": "2025-01-06 16:11:14.712271",
8+
"spec_repo_commit": "24e28b93"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-03 18:07:32.291292",
13-
"spec_repo_commit": "08abd462"
12+
"regenerated": "2025-01-06 16:11:14.726909",
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/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self, api_client=None):
9090
"location": "path",
9191
},
9292
"allow_self_lockout": {
93-
"openapi_types": (str,),
93+
"openapi_types": (bool,),
9494
"attribute": "allow_self_lockout",
9595
"location": "query",
9696
},
@@ -143,7 +143,7 @@ def update_restriction_policy(
143143
resource_id: str,
144144
body: RestrictionPolicyUpdateRequest,
145145
*,
146-
allow_self_lockout: Union[str, UnsetType] = unset,
146+
allow_self_lockout: Union[bool, UnsetType] = unset,
147147
) -> RestrictionPolicyResponse:
148148
"""Update a restriction policy.
149149
@@ -198,7 +198,7 @@ def update_restriction_policy(
198198
:param body: Restriction policy payload
199199
:type body: RestrictionPolicyUpdateRequest
200200
:param allow_self_lockout: 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.
201-
:type allow_self_lockout: str, optional
201+
:type allow_self_lockout: bool, optional
202202
:rtype: RestrictionPolicyResponse
203203
"""
204204
kwargs: Dict[str, Any] = {}

0 commit comments

Comments
 (0)