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

- old
+ new

@@ -17,24 +17,24 @@ class ServerEntities attr_accessor :cdroms - attr_accessor :volumes + attr_accessor :nics - attr_accessor :nics + attr_accessor :volumes # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'cdroms' => :'cdroms', - :'volumes' => :'volumes', + :'nics' => :'nics', - :'nics' => :'nics' + :'volumes' => :'volumes' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -45,13 +45,13 @@ def self.openapi_types { :'cdroms' => :'Cdroms', - :'volumes' => :'AttachedVolumes', + :'nics' => :'Nics', - :'nics' => :'Nics' + :'volumes' => :'AttachedVolumes' } end # List of attributes with nullable: true def self.openapi_nullable @@ -81,17 +81,17 @@ if attributes.key?(:'cdroms') self.cdroms = attributes[:'cdroms'] end - if attributes.key?(:'volumes') - self.volumes = attributes[:'volumes'] + if attributes.key?(:'nics') + self.nics = attributes[:'nics'] end - if attributes.key?(:'nics') - self.nics = attributes[:'nics'] + if attributes.key?(:'volumes') + self.volumes = attributes[:'volumes'] 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 && cdroms == o.cdroms && - volumes == o.volumes && - nics == o.nics + nics == o.nics && + volumes == o.volumes 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 - [cdroms, volumes, nics].hash + [cdroms, nics, volumes].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself