Skip to content

Commit d68048b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 98baa16 of spec repo
1 parent 099c66e commit d68048b

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
@@ -50452,6 +50452,12 @@ components:
5045250452
icon:
5045350453
description: URL of the user's icon.
5045450454
type: string
50455+
last_login_time:
50456+
description: Last time the user logged in.
50457+
format: date-time
50458+
nullable: true
50459+
readOnly: true
50460+
type: string
5045550461
mfa_enabled:
5045650462
description: If user has MFA enabled.
5045750463
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+
# 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)