lib/ionoscloud/models/user_properties.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/user_properties.rb in ionoscloud-6.1.2
- old
+ new
@@ -14,60 +14,60 @@
require 'time'
module Ionoscloud
class UserProperties
- # The first name of the user.
- attr_accessor :firstname
+ # Indicates if the user is active.
+ attr_accessor :active
- # The last name of the user.
- attr_accessor :lastname
+ # Indicates if the user has admin rights.
+ attr_accessor :administrator
# The email address of the user.
attr_accessor :email
- # Indicates if the user has admin rights.
- attr_accessor :administrator
+ # The first name of the user.
+ attr_accessor :firstname
# Indicates if secure authentication should be forced on the user.
attr_accessor :force_sec_auth
- # Indicates if secure authentication is active for the user.
- attr_accessor :sec_auth_active
+ # The last name of the user.
+ attr_accessor :lastname
# Canonical (S3) ID of the user for a given identity.
attr_accessor :s3_canonical_user_id
- # Indicates if the user is active.
- attr_accessor :active
+ # Indicates if secure authentication is active for the user.
+ attr_accessor :sec_auth_active
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'firstname' => :'firstname',
+ :'active' => :'active',
- :'lastname' => :'lastname',
+ :'administrator' => :'administrator',
:'email' => :'email',
- :'administrator' => :'administrator',
+ :'firstname' => :'firstname',
:'force_sec_auth' => :'forceSecAuth',
- :'sec_auth_active' => :'secAuthActive',
+ :'lastname' => :'lastname',
:'s3_canonical_user_id' => :'s3CanonicalUserId',
- :'active' => :'active'
+ :'sec_auth_active' => :'secAuthActive'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -76,25 +76,25 @@
# Attribute type mapping.
def self.openapi_types
{
- :'firstname' => :'String',
+ :'active' => :'Boolean',
- :'lastname' => :'String',
+ :'administrator' => :'Boolean',
:'email' => :'String',
- :'administrator' => :'Boolean',
+ :'firstname' => :'String',
:'force_sec_auth' => :'Boolean',
- :'sec_auth_active' => :'Boolean',
+ :'lastname' => :'String',
:'s3_canonical_user_id' => :'String',
- :'active' => :'Boolean'
+ :'sec_auth_active' => :'Boolean'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -124,47 +124,47 @@
end
h[k.to_sym] = v
}
- if attributes.key?(:'firstname')
- self.firstname = attributes[:'firstname']
+ if attributes.key?(:'active')
+ self.active = attributes[:'active']
end
- if attributes.key?(:'lastname')
- self.lastname = attributes[:'lastname']
+ if attributes.key?(:'administrator')
+ self.administrator = attributes[:'administrator']
end
if attributes.key?(:'email')
self.email = attributes[:'email']
end
- if attributes.key?(:'administrator')
- self.administrator = attributes[:'administrator']
+ if attributes.key?(:'firstname')
+ self.firstname = attributes[:'firstname']
end
if attributes.key?(:'force_sec_auth')
self.force_sec_auth = attributes[:'force_sec_auth']
end
- if attributes.key?(:'sec_auth_active')
- self.sec_auth_active = attributes[:'sec_auth_active']
+ if attributes.key?(:'lastname')
+ self.lastname = attributes[:'lastname']
end
if attributes.key?(:'s3_canonical_user_id')
self.s3_canonical_user_id = attributes[:'s3_canonical_user_id']
end
- if attributes.key?(:'active')
- self.active = attributes[:'active']
+ if attributes.key?(:'sec_auth_active')
+ self.sec_auth_active = attributes[:'sec_auth_active']
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
@@ -206,18 +206,18 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- firstname == o.firstname &&
- lastname == o.lastname &&
- email == o.email &&
+ active == o.active &&
administrator == o.administrator &&
+ email == o.email &&
+ firstname == o.firstname &&
force_sec_auth == o.force_sec_auth &&
- sec_auth_active == o.sec_auth_active &&
+ lastname == o.lastname &&
s3_canonical_user_id == o.s3_canonical_user_id &&
- active == o.active
+ sec_auth_active == o.sec_auth_active
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -225,10 +225,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [firstname, lastname, email, administrator, force_sec_auth, sec_auth_active, s3_canonical_user_id, active].hash
+ [active, administrator, email, firstname, force_sec_auth, lastname, s3_canonical_user_id, sec_auth_active].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself