lib/purecloud/models/workspace_create.rb in purecloud-0.40.1 vs lib/purecloud/models/workspace_create.rb in purecloud-0.41.1
- old
+ new
@@ -20,26 +20,31 @@
class WorkspaceCreate
attr_accessor :name
attr_accessor :bucket
+ attr_accessor :description
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'name' => :'name',
- :'bucket' => :'bucket'
+ :'bucket' => :'bucket',
+ :'description' => :'description'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
:'name' => :'String',
- :'bucket' => :'String'
+ :'bucket' => :'String',
+ :'description' => :'String'
}
end
def initialize(attributes = {})
@@ -55,27 +60,32 @@
if attributes[:'bucket']
self.bucket = attributes[:'bucket']
end
+ if attributes[:'description']
+ self.description = attributes[:'description']
+ end
+
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
name == o.name &&
- bucket == o.bucket
+ bucket == o.bucket &&
+ description == o.description
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [name, bucket].hash
+ [name, bucket, description].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)