diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 82aecd68139..f4a07db5e43 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 8e677ba6f65..a62ccc455ce 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -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 @@ -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', @@ -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', @@ -101,6 +106,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ + :'last_login_time', :'name', :'title', ]) @@ -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 @@ -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 && @@ -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