lib/purecloud/models/document.rb in purecloud-0.18.0 vs lib/purecloud/models/document.rb in purecloud-0.25.0
- old
+ new
@@ -44,10 +44,12 @@
attr_accessor :tags
attr_accessor :tag_values
+ attr_accessor :attributes
+
attr_accessor :thumbnails
attr_accessor :upload_status
attr_accessor :upload_destination_uri
@@ -110,10 +112,12 @@
:'tags' => :'tags',
:'tag_values' => :'tagValues',
+ :'attributes' => :'attributes',
+
:'thumbnails' => :'thumbnails',
:'upload_status' => :'uploadStatus',
:'upload_destination_uri' => :'uploadDestinationUri',
@@ -156,10 +160,11 @@
:'read' => :'BOOLEAN',
:'caller_address' => :'String',
:'receiver_address' => :'String',
:'tags' => :'Array<String>',
:'tag_values' => :'Array<TagValue>',
+ :'attributes' => :'Array<DocumentAttribute>',
:'thumbnails' => :'Array<DocumentThumbnail>',
:'upload_status' => :'UriReference',
:'upload_destination_uri' => :'String',
:'upload_method' => :'String',
:'lock_info' => :'LockInfo',
@@ -263,10 +268,16 @@
if (value = attributes[:'tagValues']).is_a?(Array)
self.tag_values = value
end
end
+ if attributes[:'attributes']
+ if (value = attributes[:'attributes']).is_a?(Array)
+ self.attributes = value
+ end
+ end
+
if attributes[:'thumbnails']
if (value = attributes[:'thumbnails']).is_a?(Array)
self.thumbnails = value
end
end
@@ -360,10 +371,11 @@
read == o.read &&
caller_address == o.caller_address &&
receiver_address == o.receiver_address &&
tags == o.tags &&
tag_values == o.tag_values &&
+ attributes == o.attributes &&
thumbnails == o.thumbnails &&
upload_status == o.upload_status &&
upload_destination_uri == o.upload_destination_uri &&
upload_method == o.upload_method &&
lock_info == o.lock_info &&
@@ -379,10 +391,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, change_number, date_created, date_modified, date_uploaded, content_uri, workspace, created_by, uploaded_by, content_type, content_length, system_type, filename, page_count, read, caller_address, receiver_address, tags, tag_values, thumbnails, upload_status, upload_destination_uri, upload_method, lock_info, acl, sharing_status, sharing_uri, download_sharing_uri, self_uri].hash
+ [id, name, change_number, date_created, date_modified, date_uploaded, content_uri, workspace, created_by, uploaded_by, content_type, content_length, system_type, filename, page_count, read, caller_address, receiver_address, tags, tag_values, attributes, thumbnails, upload_status, upload_destination_uri, upload_method, lock_info, acl, sharing_status, sharing_uri, download_sharing_uri, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)