Skip to content

Commit 0f05c18

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

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
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

lib/datadog_api_client/v2/models/user_attributes.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class UserAttributes
3636
# URL of the user's icon.
3737
attr_accessor :icon
3838

39+
# The last time the user logged in.
40+
attr_accessor :last_login_time
41+
3942
# If user has MFA enabled.
4043
attr_accessor :mfa_enabled
4144

@@ -68,6 +71,7 @@ def self.attribute_map
6871
:'email' => :'email',
6972
:'handle' => :'handle',
7073
:'icon' => :'icon',
74+
:'last_login_time' => :'last_login_time',
7175
:'mfa_enabled' => :'mfa_enabled',
7276
:'modified_at' => :'modified_at',
7377
:'name' => :'name',
@@ -87,6 +91,7 @@ def self.openapi_types
8791
:'email' => :'String',
8892
:'handle' => :'String',
8993
:'icon' => :'String',
94+
:'last_login_time' => :'Time',
9095
:'mfa_enabled' => :'Boolean',
9196
:'modified_at' => :'Time',
9297
:'name' => :'String',
@@ -101,6 +106,7 @@ def self.openapi_types
101106
# @!visibility private
102107
def self.openapi_nullable
103108
Set.new([
109+
:'last_login_time',
104110
:'name',
105111
:'title',
106112
])
@@ -144,6 +150,10 @@ def initialize(attributes = {})
144150
self.icon = attributes[:'icon']
145151
end
146152

153+
if attributes.key?(:'last_login_time')
154+
self.last_login_time = attributes[:'last_login_time']
155+
end
156+
147157
if attributes.key?(:'mfa_enabled')
148158
self.mfa_enabled = attributes[:'mfa_enabled']
149159
end
@@ -204,6 +214,7 @@ def ==(o)
204214
email == o.email &&
205215
handle == o.handle &&
206216
icon == o.icon &&
217+
last_login_time == o.last_login_time &&
207218
mfa_enabled == o.mfa_enabled &&
208219
modified_at == o.modified_at &&
209220
name == o.name &&
@@ -218,7 +229,7 @@ def ==(o)
218229
# @return [Integer] Hash code
219230
# @!visibility private
220231
def hash
221-
[created_at, disabled, email, handle, icon, mfa_enabled, modified_at, name, service_account, status, title, verified, additional_properties].hash
232+
[created_at, disabled, email, handle, icon, last_login_time, mfa_enabled, modified_at, name, service_account, status, title, verified, additional_properties].hash
222233
end
223234
end
224235
end

0 commit comments

Comments
 (0)