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

- old
+ new

@@ -13,18 +13,22 @@ require 'date' require 'time' module Ionoscloud class GroupEntities + attr_accessor :users + attr_accessor :resources # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'users' => :'users', + :'resources' => :'resources' } end # Returns all the JSON keys this model knows about @@ -33,18 +37,22 @@ end # Attribute type mapping. def self.openapi_types { + :'users' => :'GroupMembers', + :'resources' => :'ResourceGroups' } 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 @@ -58,39 +66,47 @@ if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::GroupEntities`. 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?(:'users') self.users = attributes[:'users'] end + if attributes.key?(:'resources') self.resources = attributes[:'resources'] 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 && - users == o.users && - resources == o.resources + users == o.users && + resources == o.resources end # @see the `==` method # @param [Object] Object to be compared def eql?(o)