lib/purecloud/models/document_update.rb in purecloud-0.18.0 vs lib/purecloud/models/document_update.rb in purecloud-0.25.0

- old
+ new

@@ -6,54 +6,59 @@ attr_accessor :name attr_accessor :read - attr_accessor :remove_attributes - attr_accessor :add_tags attr_accessor :remove_tags attr_accessor :add_tag_ids attr_accessor :remove_tag_ids + attr_accessor :update_attributes + + attr_accessor :remove_attributes + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'change_number' => :'changeNumber', :'name' => :'name', :'read' => :'read', - :'remove_attributes' => :'removeAttributes', - :'add_tags' => :'addTags', :'remove_tags' => :'removeTags', :'add_tag_ids' => :'addTagIds', - :'remove_tag_ids' => :'removeTagIds' + :'remove_tag_ids' => :'removeTagIds', + :'update_attributes' => :'updateAttributes', + + :'remove_attributes' => :'removeAttributes' + } end # Attribute type mapping. def self.swagger_types { :'change_number' => :'Integer', :'name' => :'String', :'read' => :'BOOLEAN', - :'remove_attributes' => :'Array<String>', :'add_tags' => :'Array<String>', :'remove_tags' => :'Array<String>', :'add_tag_ids' => :'Array<String>', - :'remove_tag_ids' => :'Array<String>' + :'remove_tag_ids' => :'Array<String>', + :'update_attributes' => :'Array<DocumentAttribute>', + :'remove_attributes' => :'Array<String>' } end def initialize(attributes = {}) @@ -75,16 +80,10 @@ self.read = attributes[:'read'] else self.read = false end - if attributes[:'removeAttributes'] - if (value = attributes[:'removeAttributes']).is_a?(Array) - self.remove_attributes = value - end - end - if attributes[:'addTags'] if (value = attributes[:'addTags']).is_a?(Array) self.add_tags = value end end @@ -105,33 +104,46 @@ if (value = attributes[:'removeTagIds']).is_a?(Array) self.remove_tag_ids = value end end + if attributes[:'updateAttributes'] + if (value = attributes[:'updateAttributes']).is_a?(Array) + self.update_attributes = value + end + end + + if attributes[:'removeAttributes'] + if (value = attributes[:'removeAttributes']).is_a?(Array) + self.remove_attributes = value + end + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && change_number == o.change_number && name == o.name && read == o.read && - remove_attributes == o.remove_attributes && add_tags == o.add_tags && remove_tags == o.remove_tags && add_tag_ids == o.add_tag_ids && - remove_tag_ids == o.remove_tag_ids + remove_tag_ids == o.remove_tag_ids && + update_attributes == o.update_attributes && + remove_attributes == o.remove_attributes end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [change_number, name, read, remove_attributes, add_tags, remove_tags, add_tag_ids, remove_tag_ids].hash + [change_number, name, read, add_tags, remove_tags, add_tag_ids, remove_tag_ids, update_attributes, remove_attributes].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)