Skip to content

Commit 21f6345

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add last_login_time to Users v2 API (#2881)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ca2f510 commit 21f6345

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
@@ -54006,6 +54006,12 @@ components:
5400654006
icon:
5400754007
description: URL of the user's icon.
5400854008
type: string
54009+
last_login_time:
54010+
description: The last time the user logged in.
54011+
format: date-time
54012+
nullable: true
54013+
readOnly: true
54014+
type: string
5400954015
mfa_enabled:
5401054016
description: If user has MFA enabled.
5401154017
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)