Skip to content

Commit 1518b3e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 173230f of spec repo
1 parent 83d0b0e commit 1518b3e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50704,6 +50704,12 @@ components:
5070450704
icon:
5070550705
description: URL of the user's icon.
5070650706
type: string
50707+
last_login_time:
50708+
description: The last time the user logged in.
50709+
format: date-time
50710+
nullable: true
50711+
readOnly: true
50712+
type: string
5070750713
mfa_enabled:
5070850714
description: If user has MFA enabled.
5070950715
readOnly: true

src/datadog_api_client/v2/model/user_attributes.py

Lines changed: 9 additions & 0 deletions
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+
"last_login_time": (datetime, none_type),
2728
"mfa_enabled": (bool,),
2829
"modified_at": (datetime,),
2930
"name": (str, none_type),
@@ -39,6 +40,7 @@ def openapi_types(_):
3940
"email": "email",
4041
"handle": "handle",
4142
"icon": "icon",
43+
"last_login_time": "last_login_time",
4244
"mfa_enabled": "mfa_enabled",
4345
"modified_at": "modified_at",
4446
"name": "name",
@@ -48,6 +50,7 @@ def openapi_types(_):
4850
"verified": "verified",
4951
}
5052
read_only_vars = {
53+
"last_login_time",
5154
"mfa_enabled",
5255
}
5356

@@ -58,6 +61,7 @@ def __init__(
5861
email: Union[str, UnsetType] = unset,
5962
handle: Union[str, UnsetType] = unset,
6063
icon: Union[str, UnsetType] = unset,
64+
last_login_time: Union[datetime, none_type, UnsetType] = unset,
6165
mfa_enabled: Union[bool, UnsetType] = unset,
6266
modified_at: Union[datetime, UnsetType] = unset,
6367
name: Union[str, none_type, UnsetType] = unset,
@@ -85,6 +89,9 @@ def __init__(
8589
:param icon: URL of the user's icon.
8690
:type icon: str, optional
8791
92+
:param last_login_time: The last time the user logged in.
93+
:type last_login_time: datetime, none_type, optional
94+
8895
:param mfa_enabled: If user has MFA enabled.
8996
:type mfa_enabled: bool, optional
9097
@@ -116,6 +123,8 @@ def __init__(
116123
kwargs["handle"] = handle
117124
if icon is not unset:
118125
kwargs["icon"] = icon
126+
if last_login_time is not unset:
127+
kwargs["last_login_time"] = last_login_time
119128
if mfa_enabled is not unset:
120129
kwargs["mfa_enabled"] = mfa_enabled
121130
if modified_at is not unset:

0 commit comments

Comments
 (0)