lib/purecloudplatformclientv2/models/attachment.rb in purecloudplatformclientv2-48.0.0 vs lib/purecloudplatformclientv2/models/attachment.rb in purecloudplatformclientv2-48.1.0

- old
+ new

@@ -31,10 +31,13 @@ attr_accessor :content_type # The length of the attachment file. attr_accessor :content_length + # Whether or not the attachment was attached inline., + attr_accessor :inline_image + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'attachment_id' => :'attachmentId', @@ -43,12 +46,14 @@ :'content_uri' => :'contentUri', :'content_type' => :'contentType', - :'content_length' => :'contentLength' + :'content_length' => :'contentLength', + :'inline_image' => :'inlineImage' + } end # Attribute type mapping. def self.swagger_types @@ -60,12 +65,14 @@ :'content_uri' => :'String', :'content_type' => :'String', - :'content_length' => :'Integer' + :'content_length' => :'Integer', + :'inline_image' => :'BOOLEAN' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -119,10 +126,19 @@ end + if attributes.has_key?(:'inlineImage') + + + self.inline_image = attributes[:'inlineImage'] + + + end + + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -154,10 +170,14 @@ + + + + end @@ -182,20 +202,26 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && attachment_id == o.attachment_id && name == o.name && content_uri == o.content_uri && content_type == o.content_type && - content_length == o.content_length + content_length == o.content_length && + inline_image == o.inline_image end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -203,10 +229,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [attachment_id, name, content_uri, content_type, content_length].hash + [attachment_id, name, content_uri, content_type, content_length, inline_image].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)