lib/ionoscloud/models/user_metadata.rb in ionoscloud-5.1.1 vs lib/ionoscloud/models/user_metadata.rb in ionoscloud-5.1.2
- old
+ new
@@ -13,24 +13,30 @@
require 'date'
require 'time'
module Ionoscloud
class UserMetadata
+
# Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.
attr_accessor :etag
+
# time of creation of the user
attr_accessor :created_date
+
# time of last login by the user
attr_accessor :last_login
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+
:'etag' => :'etag',
+
:'created_date' => :'createdDate',
+
:'last_login' => :'lastLogin'
}
end
# Returns all the JSON keys this model knows about
@@ -39,19 +45,25 @@
end
# Attribute type mapping.
def self.openapi_types
{
+
:'etag' => :'String',
+
:'created_date' => :'Time',
+
:'last_login' => :'Time'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+
+
+
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -65,44 +77,56 @@
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::UserMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
+
if attributes.key?(:'etag')
self.etag = attributes[:'etag']
end
+
if attributes.key?(:'created_date')
self.created_date = attributes[:'created_date']
end
+
if attributes.key?(:'last_login')
self.last_login = attributes[:'last_login']
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
+
+
+
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
+
+
+
true
end
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- etag == o.etag &&
- created_date == o.created_date &&
- last_login == o.last_login
+ etag == o.etag &&
+ created_date == o.created_date &&
+ last_login == o.last_login
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)