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

- old
+ new

@@ -13,21 +13,27 @@ require 'date' require 'time' module Ionoscloud class ServerEntities + attr_accessor :cdroms + attr_accessor :volumes + attr_accessor :nics # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'cdroms' => :'cdroms', + :'volumes' => :'volumes', + :'nics' => :'nics' } end # Returns all the JSON keys this model knows about @@ -36,19 +42,25 @@ end # Attribute type mapping. def self.openapi_types { + :'cdroms' => :'Cdroms', + :'volumes' => :'AttachedVolumes', + :'nics' => :'Nics' } 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 @@ -62,44 +74,56 @@ if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::ServerEntities`. 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?(:'cdroms') self.cdroms = attributes[:'cdroms'] end + if attributes.key?(:'volumes') self.volumes = attributes[:'volumes'] end + if attributes.key?(:'nics') self.nics = attributes[:'nics'] 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 && - cdroms == o.cdroms && - volumes == o.volumes && - nics == o.nics + cdroms == o.cdroms && + volumes == o.volumes && + nics == o.nics end # @see the `==` method # @param [Object] Object to be compared def eql?(o)