lib/purecloud/models/workspace_summary.rb in purecloud-0.40.1 vs lib/purecloud/models/workspace_summary.rb in purecloud-0.41.1

- old
+ new

@@ -18,23 +18,28 @@ module PureCloud class WorkspaceSummary attr_accessor :total_document_count + attr_accessor :total_document_byte_count + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'total_document_count' => :'totalDocumentCount' + :'total_document_count' => :'totalDocumentCount', + :'total_document_byte_count' => :'totalDocumentByteCount' + } end # Attribute type mapping. def self.swagger_types { - :'total_document_count' => :'Integer' + :'total_document_count' => :'Integer', + :'total_document_byte_count' => :'Integer' } end def initialize(attributes = {}) @@ -46,26 +51,31 @@ if attributes[:'totalDocumentCount'] self.total_document_count = attributes[:'totalDocumentCount'] end + if attributes[:'totalDocumentByteCount'] + self.total_document_byte_count = attributes[:'totalDocumentByteCount'] + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && - total_document_count == o.total_document_count + total_document_count == o.total_document_count && + total_document_byte_count == o.total_document_byte_count end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [total_document_count].hash + [total_document_count, total_document_byte_count].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)