cloudmersive-convert-api-client 1.7.2 → 1.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -6
  3. data/docs/AutodetectToThumbnailsResult.md +9 -0
  4. data/docs/ConvertDataApi.md +6 -2
  5. data/docs/ConvertDocumentApi.md +796 -86
  6. data/docs/CsvCollection.md +10 -0
  7. data/docs/CsvFileResult.md +9 -0
  8. data/docs/DocumentValidationResult.md +1 -0
  9. data/docs/DocxParagraph.md +1 -1
  10. data/docs/DocxRun.md +1 -1
  11. data/docs/DocxText.md +1 -1
  12. data/docs/DocxToPngResult.md +9 -0
  13. data/docs/EditDocumentApi.md +110 -0
  14. data/docs/EditPdfApi.md +6 -2
  15. data/docs/EmlAttachment.md +9 -0
  16. data/docs/EmlToHtmlResult.md +18 -0
  17. data/docs/FindDocxParagraphRequest.md +11 -0
  18. data/docs/FindDocxParagraphResponse.md +10 -0
  19. data/docs/GetDocxPagesRequest.md +1 -0
  20. data/docs/GetFileTypeIconResult.md +10 -0
  21. data/docs/MergeDocumentApi.md +80 -4
  22. data/docs/MsgAttachment.md +9 -0
  23. data/docs/MsgToHtmlResult.md +16 -0
  24. data/docs/PptxToPngResult.md +9 -0
  25. data/docs/ReplaceDocxParagraphRequest.md +12 -0
  26. data/docs/ReplaceDocxParagraphResponse.md +9 -0
  27. data/docs/Thumbnail.md +9 -0
  28. data/docs/ValidateDocumentApi.md +386 -1
  29. data/docs/XlsxToPngResult.md +9 -0
  30. data/docs/ZipArchiveApi.md +144 -5
  31. data/docs/ZipEncryptionAdvancedRequest.md +10 -0
  32. data/lib/cloudmersive-convert-api-client.rb +17 -0
  33. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +3 -0
  34. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +722 -6
  35. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +110 -0
  36. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +3 -0
  37. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +91 -4
  38. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +394 -2
  39. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +160 -6
  40. data/lib/cloudmersive-convert-api-client/models/autodetect_to_thumbnails_result.rb +201 -0
  41. data/lib/cloudmersive-convert-api-client/models/csv_collection.rb +211 -0
  42. data/lib/cloudmersive-convert-api-client/models/csv_file_result.rb +215 -0
  43. data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +11 -1
  44. data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +1 -1
  45. data/lib/cloudmersive-convert-api-client/models/docx_run.rb +1 -1
  46. data/lib/cloudmersive-convert-api-client/models/docx_text.rb +1 -1
  47. data/lib/cloudmersive-convert-api-client/models/docx_to_png_result.rb +201 -0
  48. data/lib/cloudmersive-convert-api-client/models/eml_attachment.rb +215 -0
  49. data/lib/cloudmersive-convert-api-client/models/eml_to_html_result.rb +291 -0
  50. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_request.rb +235 -0
  51. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_response.rb +211 -0
  52. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +14 -4
  53. data/lib/cloudmersive-convert-api-client/models/get_file_type_icon_result.rb +225 -0
  54. data/lib/cloudmersive-convert-api-client/models/msg_attachment.rb +215 -0
  55. data/lib/cloudmersive-convert-api-client/models/msg_to_html_result.rb +271 -0
  56. data/lib/cloudmersive-convert-api-client/models/pptx_to_png_result.rb +201 -0
  57. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_request.rb +245 -0
  58. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_response.rb +199 -0
  59. data/lib/cloudmersive-convert-api-client/models/thumbnail.rb +215 -0
  60. data/lib/cloudmersive-convert-api-client/models/xlsx_to_png_result.rb +201 -0
  61. data/lib/cloudmersive-convert-api-client/models/zip_encryption_advanced_request.rb +225 -0
  62. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  63. data/spec/api/convert_data_api_spec.rb +1 -0
  64. data/spec/api/convert_document_api_spec.rb +163 -3
  65. data/spec/api/edit_document_api_spec.rb +24 -0
  66. data/spec/api/edit_pdf_api_spec.rb +1 -0
  67. data/spec/api/merge_document_api_spec.rb +23 -2
  68. data/spec/api/validate_document_api_spec.rb +85 -1
  69. data/spec/api/zip_archive_api_spec.rb +36 -1
  70. data/spec/models/autodetect_to_thumbnails_result_spec.rb +48 -0
  71. data/spec/models/csv_collection_spec.rb +54 -0
  72. data/spec/models/csv_file_result_spec.rb +48 -0
  73. data/spec/models/document_validation_result_spec.rb +6 -0
  74. data/spec/models/docx_to_png_result_spec.rb +48 -0
  75. data/spec/models/eml_attachment_spec.rb +48 -0
  76. data/spec/models/eml_to_html_result_spec.rb +102 -0
  77. data/spec/models/find_docx_paragraph_request_spec.rb +60 -0
  78. data/spec/models/find_docx_paragraph_response_spec.rb +54 -0
  79. data/spec/models/get_docx_pages_request_spec.rb +6 -0
  80. data/spec/models/get_file_type_icon_result_spec.rb +54 -0
  81. data/spec/models/msg_attachment_spec.rb +48 -0
  82. data/spec/models/msg_to_html_result_spec.rb +90 -0
  83. data/spec/models/pptx_to_png_result_spec.rb +48 -0
  84. data/spec/models/replace_docx_paragraph_request_spec.rb +66 -0
  85. data/spec/models/replace_docx_paragraph_response_spec.rb +48 -0
  86. data/spec/models/thumbnail_spec.rb +48 -0
  87. data/spec/models/xlsx_to_png_result_spec.rb +48 -0
  88. data/spec/models/zip_encryption_advanced_request_spec.rb +54 -0
  89. metadata +53 -2
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Input to a request to find matching paragraphs in a Word DOCX document
17
+ class FindDocxParagraphRequest
18
+ # Optional: Bytes of the input file to operate on
19
+ attr_accessor :input_file_bytes
20
+
21
+ # Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
22
+ attr_accessor :input_file_url
23
+
24
+ # Required: The target string to search for in the paragraphs of the document
25
+ attr_accessor :find_string
26
+
27
+ # Optional: True to match case, false to ignore case when matching
28
+ attr_accessor :match_case
29
+
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'input_file_bytes' => :'InputFileBytes',
35
+ :'input_file_url' => :'InputFileUrl',
36
+ :'find_string' => :'FindString',
37
+ :'match_case' => :'MatchCase'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'input_file_bytes' => :'String',
45
+ :'input_file_url' => :'String',
46
+ :'find_string' => :'String',
47
+ :'match_case' => :'BOOLEAN'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
+
59
+ if attributes.has_key?(:'InputFileBytes')
60
+ self.input_file_bytes = attributes[:'InputFileBytes']
61
+ end
62
+
63
+ if attributes.has_key?(:'InputFileUrl')
64
+ self.input_file_url = attributes[:'InputFileUrl']
65
+ end
66
+
67
+ if attributes.has_key?(:'FindString')
68
+ self.find_string = attributes[:'FindString']
69
+ end
70
+
71
+ if attributes.has_key?(:'MatchCase')
72
+ self.match_case = attributes[:'MatchCase']
73
+ end
74
+
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if !@input_file_bytes.nil? && @input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
82
+ invalid_properties.push("invalid value for 'input_file_bytes', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.")
83
+ end
84
+
85
+ return invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if !@input_file_bytes.nil? && @input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
92
+ return true
93
+ end
94
+
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] input_file_bytes Value to be assigned
97
+ def input_file_bytes=(input_file_bytes)
98
+
99
+ if !input_file_bytes.nil? && input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
100
+ fail ArgumentError, "invalid value for 'input_file_bytes', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."
101
+ end
102
+
103
+ @input_file_bytes = input_file_bytes
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ input_file_bytes == o.input_file_bytes &&
112
+ input_file_url == o.input_file_url &&
113
+ find_string == o.find_string &&
114
+ match_case == o.match_case
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Fixnum] Hash code
125
+ def hash
126
+ [input_file_bytes, input_file_url, find_string, match_case].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ if type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :DateTime
156
+ DateTime.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :BOOLEAN
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
187
+ temp_model.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ next if value.nil?
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map{ |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+
235
+ end
@@ -0,0 +1,211 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Result of performing a find matching paragraphs operation on a Word Document
17
+ class FindDocxParagraphResponse
18
+ # True if successful; false otherwise
19
+ attr_accessor :successful
20
+
21
+ # Matching paragraphs
22
+ attr_accessor :matching_paragraphs
23
+
24
+ # Count of matching paragraphs
25
+ attr_accessor :count
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'successful' => :'Successful',
32
+ :'matching_paragraphs' => :'MatchingParagraphs',
33
+ :'count' => :'Count'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'successful' => :'BOOLEAN',
41
+ :'matching_paragraphs' => :'Array<DocxParagraph>',
42
+ :'count' => :'Integer'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'Successful')
55
+ self.successful = attributes[:'Successful']
56
+ end
57
+
58
+ if attributes.has_key?(:'MatchingParagraphs')
59
+ if (value = attributes[:'MatchingParagraphs']).is_a?(Array)
60
+ self.matching_paragraphs = value
61
+ end
62
+ end
63
+
64
+ if attributes.has_key?(:'Count')
65
+ self.count = attributes[:'Count']
66
+ end
67
+
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ return invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ return true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ successful == o.successful &&
89
+ matching_paragraphs == o.matching_paragraphs &&
90
+ count == o.count
91
+ end
92
+
93
+ # @see the `==` method
94
+ # @param [Object] Object to be compared
95
+ def eql?(o)
96
+ self == o
97
+ end
98
+
99
+ # Calculates hash code according to all attributes.
100
+ # @return [Fixnum] Hash code
101
+ def hash
102
+ [successful, matching_paragraphs, count].hash
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.swagger_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :BOOLEAN
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
163
+ temp_model.build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ next if value.nil?
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ # Outputs non-array value in the form of hash
192
+ # For object, use to_hash. Otherwise, just return the value
193
+ # @param [Object] value Any valid value
194
+ # @return [Hash] Returns the value in the form of hash
195
+ def _to_hash(value)
196
+ if value.is_a?(Array)
197
+ value.compact.map{ |v| _to_hash(v) }
198
+ elsif value.is_a?(Hash)
199
+ {}.tap do |hash|
200
+ value.each { |k, v| hash[k] = _to_hash(v) }
201
+ end
202
+ elsif value.respond_to? :to_hash
203
+ value.to_hash
204
+ else
205
+ value
206
+ end
207
+ end
208
+
209
+ end
210
+
211
+ end
@@ -21,12 +21,16 @@ module CloudmersiveConvertApiClient
21
21
  # Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
22
22
  attr_accessor :input_file_url
23
23
 
24
+ # Optional: Maximum number of pages to return; set to 0 or do not supply to return all pages
25
+ attr_accessor :maximum_pages
26
+
24
27
 
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
26
29
  def self.attribute_map
27
30
  {
28
31
  :'input_file_bytes' => :'InputFileBytes',
29
- :'input_file_url' => :'InputFileUrl'
32
+ :'input_file_url' => :'InputFileUrl',
33
+ :'maximum_pages' => :'MaximumPages'
30
34
  }
31
35
  end
32
36
 
@@ -34,7 +38,8 @@ module CloudmersiveConvertApiClient
34
38
  def self.swagger_types
35
39
  {
36
40
  :'input_file_bytes' => :'String',
37
- :'input_file_url' => :'String'
41
+ :'input_file_url' => :'String',
42
+ :'maximum_pages' => :'Integer'
38
43
  }
39
44
  end
40
45
 
@@ -54,6 +59,10 @@ module CloudmersiveConvertApiClient
54
59
  self.input_file_url = attributes[:'InputFileUrl']
55
60
  end
56
61
 
62
+ if attributes.has_key?(:'MaximumPages')
63
+ self.maximum_pages = attributes[:'MaximumPages']
64
+ end
65
+
57
66
  end
58
67
 
59
68
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +100,8 @@ module CloudmersiveConvertApiClient
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  input_file_bytes == o.input_file_bytes &&
94
- input_file_url == o.input_file_url
103
+ input_file_url == o.input_file_url &&
104
+ maximum_pages == o.maximum_pages
95
105
  end
96
106
 
97
107
  # @see the `==` method
@@ -103,7 +113,7 @@ module CloudmersiveConvertApiClient
103
113
  # Calculates hash code according to all attributes.
104
114
  # @return [Fixnum] Hash code
105
115
  def hash
106
- [input_file_bytes, input_file_url].hash
116
+ [input_file_bytes, input_file_url, maximum_pages].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash