Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50704,6 +50704,12 @@ components:
icon:
description: URL of the user's icon.
type: string
last_login_time:
description: The last time the user logged in.
format: date-time
nullable: true
readOnly: true
type: string
mfa_enabled:
description: If user has MFA enabled.
readOnly: true
Expand Down
13 changes: 12 additions & 1 deletion lib/datadog_api_client/v2/models/user_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class UserAttributes
# URL of the user's icon.
attr_accessor :icon

# The last time the user logged in.
attr_accessor :last_login_time

# If user has MFA enabled.
attr_accessor :mfa_enabled

Expand Down Expand Up @@ -68,6 +71,7 @@ def self.attribute_map
:'email' => :'email',
:'handle' => :'handle',
:'icon' => :'icon',
:'last_login_time' => :'last_login_time',
:'mfa_enabled' => :'mfa_enabled',
:'modified_at' => :'modified_at',
:'name' => :'name',
Expand All @@ -87,6 +91,7 @@ def self.openapi_types
:'email' => :'String',
:'handle' => :'String',
:'icon' => :'String',
:'last_login_time' => :'Time',
:'mfa_enabled' => :'Boolean',
:'modified_at' => :'Time',
:'name' => :'String',
Expand All @@ -101,6 +106,7 @@ def self.openapi_types
# @!visibility private
def self.openapi_nullable
Set.new([
:'last_login_time',
:'name',
:'title',
])
Expand Down Expand Up @@ -144,6 +150,10 @@ def initialize(attributes = {})
self.icon = attributes[:'icon']
end

if attributes.key?(:'last_login_time')
self.last_login_time = attributes[:'last_login_time']
end

if attributes.key?(:'mfa_enabled')
self.mfa_enabled = attributes[:'mfa_enabled']
end
Expand Down Expand Up @@ -204,6 +214,7 @@ def ==(o)
email == o.email &&
handle == o.handle &&
icon == o.icon &&
last_login_time == o.last_login_time &&
mfa_enabled == o.mfa_enabled &&
modified_at == o.modified_at &&
name == o.name &&
Expand All @@ -218,7 +229,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[created_at, disabled, email, handle, icon, mfa_enabled, modified_at, name, service_account, status, title, verified, additional_properties].hash
[created_at, disabled, email, handle, icon, last_login_time, mfa_enabled, modified_at, name, service_account, status, title, verified, additional_properties].hash
end
end
end
Loading