Skip to content

Commit 27c4a37

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
add mfa_enabled field and change created_at type to datetime (#2090)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 7dd8009 commit 27c4a37

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

.apigentools-info

+4-4
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": "2024-08-09 16:10:46.744144",
8-
"spec_repo_commit": "4a0f9e08"
7+
"regenerated": "2024-08-12 13:34:59.653523",
8+
"spec_repo_commit": "0360f6c8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-09 16:10:46.762113",
13-
"spec_repo_commit": "4a0f9e08"
12+
"regenerated": "2024-08-12 13:34:59.670898",
13+
"spec_repo_commit": "0360f6c8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -8496,6 +8496,7 @@ components:
84968496
created_at:
84978497
description: Creation date of the application key.
84988498
example: '2020-11-23T10:00:00.000Z'
8499+
format: date-time
84998500
readOnly: true
85008501
type: string
85018502
key:
@@ -23415,6 +23416,10 @@ components:
2341523416
icon:
2341623417
description: URL of the user's icon.
2341723418
type: string
23419+
mfa_enabled:
23420+
description: If user has MFA enabled.
23421+
readOnly: true
23422+
type: boolean
2341823423
modified_at:
2341923424
description: Time that the user was last modified.
2342023425
format: date-time

src/datadog_api_client/v2/model/full_application_key_attributes.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
datetime,
1112
none_type,
1213
unset,
1314
UnsetType,
@@ -25,7 +26,7 @@ class FullApplicationKeyAttributes(ModelNormal):
2526
@cached_property
2627
def openapi_types(_):
2728
return {
28-
"created_at": (str,),
29+
"created_at": (datetime,),
2930
"key": (str,),
3031
"last4": (str,),
3132
"name": (str,),
@@ -47,7 +48,7 @@ def openapi_types(_):
4748

4849
def __init__(
4950
self_,
50-
created_at: Union[str, UnsetType] = unset,
51+
created_at: Union[datetime, UnsetType] = unset,
5152
key: Union[str, UnsetType] = unset,
5253
last4: Union[str, UnsetType] = unset,
5354
name: Union[str, UnsetType] = unset,
@@ -58,7 +59,7 @@ def __init__(
5859
Attributes of a full application key.
5960
6061
:param created_at: Creation date of the application key.
61-
:type created_at: str, optional
62+
:type created_at: datetime, optional
6263
6364
:param key: The application key.
6465
:type key: str, optional

src/datadog_api_client/v2/model/user_attributes.py

+11
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def openapi_types(_):
2424
"email": (str,),
2525
"handle": (str,),
2626
"icon": (str,),
27+
"mfa_enabled": (bool,),
2728
"modified_at": (datetime,),
2829
"name": (str, none_type),
2930
"service_account": (bool,),
@@ -38,13 +39,17 @@ def openapi_types(_):
3839
"email": "email",
3940
"handle": "handle",
4041
"icon": "icon",
42+
"mfa_enabled": "mfa_enabled",
4143
"modified_at": "modified_at",
4244
"name": "name",
4345
"service_account": "service_account",
4446
"status": "status",
4547
"title": "title",
4648
"verified": "verified",
4749
}
50+
read_only_vars = {
51+
"mfa_enabled",
52+
}
4853

4954
def __init__(
5055
self_,
@@ -53,6 +58,7 @@ def __init__(
5358
email: Union[str, UnsetType] = unset,
5459
handle: Union[str, UnsetType] = unset,
5560
icon: Union[str, UnsetType] = unset,
61+
mfa_enabled: Union[bool, UnsetType] = unset,
5662
modified_at: Union[datetime, UnsetType] = unset,
5763
name: Union[str, none_type, UnsetType] = unset,
5864
service_account: Union[bool, UnsetType] = unset,
@@ -79,6 +85,9 @@ def __init__(
7985
:param icon: URL of the user's icon.
8086
:type icon: str, optional
8187
88+
:param mfa_enabled: If user has MFA enabled.
89+
:type mfa_enabled: bool, optional
90+
8291
:param modified_at: Time that the user was last modified.
8392
:type modified_at: datetime, optional
8493
@@ -107,6 +116,8 @@ def __init__(
107116
kwargs["handle"] = handle
108117
if icon is not unset:
109118
kwargs["icon"] = icon
119+
if mfa_enabled is not unset:
120+
kwargs["mfa_enabled"] = mfa_enabled
110121
if modified_at is not unset:
111122
kwargs["modified_at"] = modified_at
112123
if name is not unset:

0 commit comments

Comments
 (0)