lib/ionoscloud/models/user_properties.rb in ionoscloud-5.1.1 vs lib/ionoscloud/models/user_properties.rb in ionoscloud-5.1.2

- old
+ new

@@ -13,44 +13,60 @@ require 'date' require 'time' module Ionoscloud class UserProperties + # first name of the user attr_accessor :firstname + # last name of the user attr_accessor :lastname + # email address of the user attr_accessor :email + # indicates if the user has admin rights or not attr_accessor :administrator + # indicates if secure authentication should be forced on the user or not attr_accessor :force_sec_auth + # indicates if secure authentication is active for the user or not attr_accessor :sec_auth_active + # 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 # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'firstname' => :'firstname', + :'lastname' => :'lastname', + :'email' => :'email', + :'administrator' => :'administrator', + :'force_sec_auth' => :'forceSecAuth', + :'sec_auth_active' => :'secAuthActive', + :'s3_canonical_user_id' => :'s3CanonicalUserId', + :'active' => :'active' } end # Returns all the JSON keys this model knows about @@ -59,24 +75,40 @@ end # Attribute type mapping. def self.openapi_types { + :'firstname' => :'String', + :'lastname' => :'String', + :'email' => :'String', + :'administrator' => :'Boolean', + :'force_sec_auth' => :'Boolean', + :'sec_auth_active' => :'Boolean', + :'s3_canonical_user_id' => :'String', + :'active' => :'Boolean' } 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 @@ -90,69 +122,101 @@ if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::UserProperties`. 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?(:'firstname') self.firstname = attributes[:'firstname'] end + if attributes.key?(:'lastname') self.lastname = attributes[:'lastname'] end + if attributes.key?(:'email') self.email = attributes[:'email'] end + if attributes.key?(:'administrator') self.administrator = attributes[:'administrator'] 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'] 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'] 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 && - firstname == o.firstname && - lastname == o.lastname && - email == o.email && - administrator == o.administrator && - force_sec_auth == o.force_sec_auth && - sec_auth_active == o.sec_auth_active && - s3_canonical_user_id == o.s3_canonical_user_id && - active == o.active + firstname == o.firstname && + lastname == o.lastname && + email == o.email && + administrator == o.administrator && + force_sec_auth == o.force_sec_auth && + sec_auth_active == o.sec_auth_active && + s3_canonical_user_id == o.s3_canonical_user_id && + active == o.active end # @see the `==` method # @param [Object] Object to be compared def eql?(o)