lib/purecloudplatformclientv2/models/license_definition.rb in purecloudplatformclientv2-2.0.40 vs lib/purecloudplatformclientv2/models/license_definition.rb in purecloudplatformclientv2-3.0.0
- old
+ new
@@ -25,20 +25,23 @@
attr_accessor :permissions
attr_accessor :prerequisites
+ attr_accessor :comprises
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'description' => :'description',
:'permissions' => :'permissions',
:'prerequisites' => :'prerequisites',
+ :'comprises' => :'comprises',
:'self_uri' => :'selfUri'
}
end
# Attribute type mapping.
@@ -46,10 +49,11 @@
{
:'id' => :'String',
:'description' => :'String',
:'permissions' => :'Permissions',
:'prerequisites' => :'Array<AddressableLicenseDefinition>',
+ :'comprises' => :'Array<LicenseDefinition>',
:'self_uri' => :'String'
}
end
# Initializes the object
@@ -76,10 +80,16 @@
if (value = attributes[:'prerequisites']).is_a?(Array)
self.prerequisites = value
end
end
+ if attributes.has_key?(:'comprises')
+ if (value = attributes[:'comprises']).is_a?(Array)
+ self.comprises = value
+ end
+ end
+
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
end
end
@@ -103,10 +113,11 @@
self.class == o.class &&
id == o.id &&
description == o.description &&
permissions == o.permissions &&
prerequisites == o.prerequisites &&
+ comprises == o.comprises &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -115,10 +126,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, description, permissions, prerequisites, self_uri].hash
+ [id, description, permissions, prerequisites, comprises, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)