lib/purecloud/models/fax_send_request.rb in purecloud-0.37.1 vs lib/purecloud/models/fax_send_request.rb in purecloud-0.38.1

- old
+ new

@@ -21,18 +21,23 @@ # The globally unique identifier for the object. attr_accessor :id attr_accessor :name + # A list of outbound fax dialing addresses. E.g. +13175555555 or 3175555555 attr_accessor :addresses - attr_accessor :original_filename + # DocumentId of Content Management artifact. If Content Management document is not used for faxing, documentId should be null + attr_accessor :document_id + # The content type that is going to be uploaded. If Content Management document is used for faxing, contentType will be ignored attr_accessor :content_type + # Workspace in which the document should be stored. If Content Management document is used for faxing, workspace will be ignored attr_accessor :workspace + # Data for coversheet generation. attr_accessor :cover_sheet # The URI for this object attr_accessor :self_uri @@ -44,11 +49,11 @@ :'name' => :'name', :'addresses' => :'addresses', - :'original_filename' => :'originalFilename', + :'document_id' => :'documentId', :'content_type' => :'contentType', :'workspace' => :'workspace', @@ -63,11 +68,11 @@ def self.swagger_types { :'id' => :'String', :'name' => :'String', :'addresses' => :'Array<String>', - :'original_filename' => :'String', + :'document_id' => :'String', :'content_type' => :'String', :'workspace' => :'Workspace', :'cover_sheet' => :'CoverSheet', :'self_uri' => :'String' @@ -93,12 +98,12 @@ if (value = attributes[:'addresses']).is_a?(Array) self.addresses = value end end - if attributes[:'originalFilename'] - self.original_filename = attributes[:'originalFilename'] + if attributes[:'documentId'] + self.document_id = attributes[:'documentId'] end if attributes[:'contentType'] self.content_type = attributes[:'contentType'] end @@ -115,18 +120,27 @@ self.self_uri = attributes[:'selfUri'] end end + # Custom attribute writer method checking allowed values (enum). + def content_type=(content_type) + allowed_values = ["application/pdf", "image/tiff", "application/msword", "application/vnd.oasis.opendocument.text", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"] + if content_type && !allowed_values.include?(content_type) + fail "invalid value for 'content_type', must be one of #{allowed_values}" + end + @content_type = content_type + end + # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && addresses == o.addresses && - original_filename == o.original_filename && + document_id == o.document_id && content_type == o.content_type && workspace == o.workspace && cover_sheet == o.cover_sheet && self_uri == o.self_uri end @@ -136,10 +150,10 @@ self == o end # Calculate hash code according to all attributes. def hash - [id, name, addresses, original_filename, content_type, workspace, cover_sheet, self_uri].hash + [id, name, addresses, document_id, content_type, workspace, cover_sheet, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)