lib/ionoscloud/models/connectable_datacenter.rb in ionoscloud-6.1.1 vs lib/ionoscloud/models/connectable_datacenter.rb in ionoscloud-6.1.2

- old
+ new

@@ -17,24 +17,24 @@ class ConnectableDatacenter attr_accessor :id - attr_accessor :name + attr_accessor :location - attr_accessor :location + attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', - :'name' => :'name', + :'location' => :'location', - :'location' => :'location' + :'name' => :'name' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -45,13 +45,13 @@ def self.openapi_types { :'id' => :'String', - :'name' => :'String', + :'location' => :'String', - :'location' => :'String' + :'name' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -81,17 +81,17 @@ if attributes.key?(:'id') self.id = attributes[:'id'] end - if attributes.key?(:'name') - self.name = attributes[:'name'] + if attributes.key?(:'location') + self.location = attributes[:'location'] end - if attributes.key?(:'location') - self.location = attributes[:'location'] + if attributes.key?(:'name') + self.name = attributes[:'name'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons @@ -119,12 +119,12 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && - name == o.name && - location == o.location + location == o.location && + name == o.name end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -132,10 +132,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, location].hash + [id, location, name].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself