cloudmersive-convert-api-client 1.7.5 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (663) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -664
  3. data/Gemfile +0 -7
  4. data/README.md +0 -482
  5. data/Rakefile +0 -8
  6. data/cloudmersive-convert-api-client.gemspec +0 -45
  7. data/docs/AddPdfAnnotationRequest.md +0 -9
  8. data/docs/AlternateFileFormatCandidate.md +0 -10
  9. data/docs/AutodetectDocumentValidationResult.md +0 -12
  10. data/docs/AutodetectGetInfoResult.md +0 -14
  11. data/docs/AutodetectToPngResult.md +0 -9
  12. data/docs/Base64DecodeRequest.md +0 -8
  13. data/docs/Base64DecodeResponse.md +0 -9
  14. data/docs/Base64DetectRequest.md +0 -8
  15. data/docs/Base64DetectResponse.md +0 -9
  16. data/docs/Base64EncodeRequest.md +0 -8
  17. data/docs/Base64EncodeResponse.md +0 -9
  18. data/docs/ChangeLineEndingResponse.md +0 -9
  19. data/docs/ClearXlsxCellRequest.md +0 -12
  20. data/docs/ClearXlsxCellResponse.md +0 -9
  21. data/docs/CompareDocumentApi.md +0 -66
  22. data/docs/ConvertDataApi.md +0 -898
  23. data/docs/ConvertDocumentApi.md +0 -1754
  24. data/docs/ConvertImageApi.md +0 -243
  25. data/docs/ConvertTemplateApi.md +0 -122
  26. data/docs/ConvertWebApi.md +0 -448
  27. data/docs/ConvertedPngPage.md +0 -9
  28. data/docs/CreateBlankDocxRequest.md +0 -8
  29. data/docs/CreateBlankDocxResponse.md +0 -9
  30. data/docs/CreateBlankSpreadsheetRequest.md +0 -8
  31. data/docs/CreateBlankSpreadsheetResponse.md +0 -9
  32. data/docs/CreateSpreadsheetFromDataRequest.md +0 -9
  33. data/docs/CreateSpreadsheetFromDataResponse.md +0 -9
  34. data/docs/CreateZipArchiveRequest.md +0 -9
  35. data/docs/CsvCollection.md +0 -10
  36. data/docs/CsvFileResult.md +0 -9
  37. data/docs/DeleteDocxTableRowRangeRequest.md +0 -12
  38. data/docs/DeleteDocxTableRowRangeResponse.md +0 -9
  39. data/docs/DeleteDocxTableRowRequest.md +0 -11
  40. data/docs/DeleteDocxTableRowResponse.md +0 -9
  41. data/docs/DetectLineEndingsResponse.md +0 -11
  42. data/docs/DisableSharedWorkbookRequest.md +0 -9
  43. data/docs/DisableSharedWorkbookResponse.md +0 -9
  44. data/docs/DocumentValidationError.md +0 -11
  45. data/docs/DocumentValidationResult.md +0 -12
  46. data/docs/DocxBody.md +0 -10
  47. data/docs/DocxCellStyle.md +0 -11
  48. data/docs/DocxComment.md +0 -16
  49. data/docs/DocxFooter.md +0 -10
  50. data/docs/DocxHeader.md +0 -10
  51. data/docs/DocxImage.md +0 -20
  52. data/docs/DocxInsertCommentOnParagraphRequest.md +0 -11
  53. data/docs/DocxInsertImageRequest.md +0 -16
  54. data/docs/DocxInsertImageResponse.md +0 -9
  55. data/docs/DocxPage.md +0 -9
  56. data/docs/DocxParagraph.md +0 -11
  57. data/docs/DocxRemoveObjectRequest.md +0 -10
  58. data/docs/DocxRemoveObjectResponse.md +0 -9
  59. data/docs/DocxRun.md +0 -15
  60. data/docs/DocxSection.md +0 -9
  61. data/docs/DocxSetFooterAddPageNumberRequest.md +0 -10
  62. data/docs/DocxSetFooterRequest.md +0 -10
  63. data/docs/DocxSetFooterResponse.md +0 -9
  64. data/docs/DocxSetHeaderRequest.md +0 -10
  65. data/docs/DocxSetHeaderResponse.md +0 -9
  66. data/docs/DocxStyle.md +0 -14
  67. data/docs/DocxTable.md +0 -46
  68. data/docs/DocxTableCell.md +0 -15
  69. data/docs/DocxTableRow.md +0 -10
  70. data/docs/DocxTemplateApplicationRequest.md +0 -8
  71. data/docs/DocxTemplateOperation.md +0 -10
  72. data/docs/DocxText.md +0 -10
  73. data/docs/DocxTopLevelComment.md +0 -14
  74. data/docs/EditDocumentApi.md +0 -2758
  75. data/docs/EditPdfApi.md +0 -1083
  76. data/docs/EditTextApi.md +0 -726
  77. data/docs/EnableSharedWorkbookRequest.md +0 -9
  78. data/docs/EnableSharedWorkbookResponse.md +0 -9
  79. data/docs/ExifValue.md +0 -10
  80. data/docs/FindDocxParagraphRequest.md +0 -11
  81. data/docs/FindDocxParagraphResponse.md +0 -10
  82. data/docs/FindRegexMatch.md +0 -12
  83. data/docs/FindStringMatch.md +0 -10
  84. data/docs/FindStringRegexRequest.md +0 -10
  85. data/docs/FindStringRegexResponse.md +0 -10
  86. data/docs/FindStringSimpleRequest.md +0 -9
  87. data/docs/FindStringSimpleResponse.md +0 -10
  88. data/docs/FinishEditingRequest.md +0 -8
  89. data/docs/GetDocxBodyRequest.md +0 -9
  90. data/docs/GetDocxBodyResponse.md +0 -9
  91. data/docs/GetDocxCommentsHierarchicalResponse.md +0 -10
  92. data/docs/GetDocxCommentsResponse.md +0 -10
  93. data/docs/GetDocxGetCommentsHierarchicalRequest.md +0 -9
  94. data/docs/GetDocxGetCommentsRequest.md +0 -9
  95. data/docs/GetDocxHeadersAndFootersRequest.md +0 -9
  96. data/docs/GetDocxHeadersAndFootersResponse.md +0 -10
  97. data/docs/GetDocxImagesRequest.md +0 -9
  98. data/docs/GetDocxImagesResponse.md +0 -9
  99. data/docs/GetDocxPagesRequest.md +0 -10
  100. data/docs/GetDocxPagesResponse.md +0 -10
  101. data/docs/GetDocxSectionsRequest.md +0 -9
  102. data/docs/GetDocxSectionsResponse.md +0 -9
  103. data/docs/GetDocxStylesRequest.md +0 -9
  104. data/docs/GetDocxStylesResponse.md +0 -9
  105. data/docs/GetDocxTableByIndexRequest.md +0 -10
  106. data/docs/GetDocxTableByIndexResponse.md +0 -9
  107. data/docs/GetDocxTableRowRequest.md +0 -11
  108. data/docs/GetDocxTableRowResponse.md +0 -9
  109. data/docs/GetDocxTablesRequest.md +0 -9
  110. data/docs/GetDocxTablesResponse.md +0 -9
  111. data/docs/GetImageInfoResult.md +0 -24
  112. data/docs/GetPdfAnnotationsResult.md +0 -9
  113. data/docs/GetXlsxCellByIdentifierRequest.md +0 -11
  114. data/docs/GetXlsxCellByIdentifierResponse.md +0 -9
  115. data/docs/GetXlsxCellRequest.md +0 -12
  116. data/docs/GetXlsxCellResponse.md +0 -9
  117. data/docs/GetXlsxColumnsRequest.md +0 -10
  118. data/docs/GetXlsxColumnsResponse.md +0 -9
  119. data/docs/GetXlsxImagesRequest.md +0 -10
  120. data/docs/GetXlsxImagesResponse.md +0 -9
  121. data/docs/GetXlsxRowsAndCellsRequest.md +0 -10
  122. data/docs/GetXlsxRowsAndCellsResponse.md +0 -9
  123. data/docs/GetXlsxStylesRequest.md +0 -9
  124. data/docs/GetXlsxStylesResponse.md +0 -9
  125. data/docs/GetXlsxWorksheetsRequest.md +0 -9
  126. data/docs/GetXlsxWorksheetsResponse.md +0 -9
  127. data/docs/HtmlMdResult.md +0 -9
  128. data/docs/HtmlTemplateApplicationRequest.md +0 -10
  129. data/docs/HtmlTemplateApplicationResponse.md +0 -9
  130. data/docs/HtmlTemplateOperation.md +0 -10
  131. data/docs/HtmlToOfficeRequest.md +0 -8
  132. data/docs/HtmlToPdfRequest.md +0 -9
  133. data/docs/HtmlToPngRequest.md +0 -11
  134. data/docs/HtmlToTextRequest.md +0 -8
  135. data/docs/HtmlToTextResponse.md +0 -9
  136. data/docs/InsertDocxCommentOnParagraphResponse.md +0 -9
  137. data/docs/InsertDocxInsertParagraphRequest.md +0 -12
  138. data/docs/InsertDocxInsertParagraphResponse.md +0 -9
  139. data/docs/InsertDocxTableRowRequest.md +0 -12
  140. data/docs/InsertDocxTableRowResponse.md +0 -9
  141. data/docs/InsertDocxTablesRequest.md +0 -12
  142. data/docs/InsertDocxTablesResponse.md +0 -9
  143. data/docs/InsertXlsxWorksheetRequest.md +0 -10
  144. data/docs/InsertXlsxWorksheetResponse.md +0 -9
  145. data/docs/MergeDocumentApi.md +0 -812
  146. data/docs/MultipageImageFormatConversionResult.md +0 -10
  147. data/docs/PageConversionResult.md +0 -9
  148. data/docs/PdfAnnotation.md +0 -19
  149. data/docs/PdfDocument.md +0 -10
  150. data/docs/PdfFormField.md +0 -11
  151. data/docs/PdfFormFields.md +0 -9
  152. data/docs/PdfMetadata.md +0 -16
  153. data/docs/PdfPageText.md +0 -9
  154. data/docs/PdfTextByPageResult.md +0 -9
  155. data/docs/PdfToPngResult.md +0 -9
  156. data/docs/PresentationResult.md +0 -10
  157. data/docs/RemoveDocxHeadersAndFootersRequest.md +0 -11
  158. data/docs/RemoveDocxHeadersAndFootersResponse.md +0 -9
  159. data/docs/RemoveDocxPagesRequest.md +0 -11
  160. data/docs/RemoveHtmlFromTextRequest.md +0 -8
  161. data/docs/RemoveHtmlFromTextResponse.md +0 -9
  162. data/docs/RemovePptxSlidesRequest.md +0 -11
  163. data/docs/RemoveWhitespaceFromTextRequest.md +0 -8
  164. data/docs/RemoveWhitespaceFromTextResponse.md +0 -9
  165. data/docs/RemoveXlsxWorksheetRequest.md +0 -10
  166. data/docs/ReplaceDocxParagraphRequest.md +0 -12
  167. data/docs/ReplaceDocxParagraphResponse.md +0 -9
  168. data/docs/ReplaceStringRegexRequest.md +0 -10
  169. data/docs/ReplaceStringRegexResponse.md +0 -9
  170. data/docs/ReplaceStringRequest.md +0 -12
  171. data/docs/ReplaceStringSimpleRequest.md +0 -10
  172. data/docs/ReplaceStringSimpleResponse.md +0 -9
  173. data/docs/ScreenshotRequest.md +0 -11
  174. data/docs/SetFormFieldValue.md +0 -11
  175. data/docs/SetPdfFormFieldsRequest.md +0 -9
  176. data/docs/SetPdfMetadataRequest.md +0 -9
  177. data/docs/SetXlsxCellByIdentifierRequest.md +0 -12
  178. data/docs/SetXlsxCellByIdentifierResponse.md +0 -9
  179. data/docs/SetXlsxCellRequest.md +0 -13
  180. data/docs/SetXlsxCellResponse.md +0 -9
  181. data/docs/SplitDocumentApi.md +0 -361
  182. data/docs/SplitDocumentResult.md +0 -10
  183. data/docs/SplitDocxDocumentResult.md +0 -9
  184. data/docs/SplitPdfResult.md +0 -9
  185. data/docs/SplitPptxPresentationResult.md +0 -9
  186. data/docs/SplitTextDocumentByLinesResult.md +0 -10
  187. data/docs/SplitTextDocumentByStringResult.md +0 -10
  188. data/docs/SplitXlsxWorksheetResult.md +0 -9
  189. data/docs/TextConversionResult.md +0 -9
  190. data/docs/TextDocumentElement.md +0 -9
  191. data/docs/TextDocumentLine.md +0 -9
  192. data/docs/TextEncodingDetectResponse.md +0 -9
  193. data/docs/UpdateDocxTableCellRequest.md +0 -13
  194. data/docs/UpdateDocxTableCellResponse.md +0 -9
  195. data/docs/UpdateDocxTableRowRequest.md +0 -12
  196. data/docs/UpdateDocxTableRowResponse.md +0 -9
  197. data/docs/UrlToPdfRequest.md +0 -11
  198. data/docs/UrlToTextRequest.md +0 -8
  199. data/docs/UrlToTextResponse.md +0 -9
  200. data/docs/ValidateDocumentApi.md +0 -668
  201. data/docs/ViewerResponse.md +0 -9
  202. data/docs/ViewerToolsApi.md +0 -63
  203. data/docs/WorksheetResult.md +0 -11
  204. data/docs/XlsxImage.md +0 -12
  205. data/docs/XlsxSpreadsheetCell.md +0 -12
  206. data/docs/XlsxSpreadsheetColumn.md +0 -9
  207. data/docs/XlsxSpreadsheetRow.md +0 -9
  208. data/docs/XlsxWorksheet.md +0 -9
  209. data/docs/XmlAddAttributeWithXPathResult.md +0 -10
  210. data/docs/XmlAddChildWithXPathResult.md +0 -10
  211. data/docs/XmlFilterWithXPathResult.md +0 -10
  212. data/docs/XmlQueryWithXQueryMultiResult.md +0 -10
  213. data/docs/XmlQueryWithXQueryResult.md +0 -10
  214. data/docs/XmlRemoveAllChildrenWithXPathResult.md +0 -10
  215. data/docs/XmlRemoveWithXPathResult.md +0 -11
  216. data/docs/XmlReplaceWithXPathResult.md +0 -10
  217. data/docs/XmlSetValueWithXPathResult.md +0 -10
  218. data/docs/ZipArchiveApi.md +0 -306
  219. data/docs/ZipDirectory.md +0 -10
  220. data/docs/ZipEncryptionAdvancedRequest.md +0 -10
  221. data/docs/ZipExtractResponse.md +0 -10
  222. data/docs/ZipFile.md +0 -9
  223. data/git_push.sh +0 -55
  224. data/lib/cloudmersive-convert-api-client.rb +0 -255
  225. data/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -86
  226. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -978
  227. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -1805
  228. data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +0 -277
  229. data/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -137
  230. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -464
  231. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +0 -2774
  232. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +0 -1181
  233. data/lib/cloudmersive-convert-api-client/api/edit_text_api.rb +0 -748
  234. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -923
  235. data/lib/cloudmersive-convert-api-client/api/split_document_api.rb +0 -381
  236. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -695
  237. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -79
  238. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +0 -335
  239. data/lib/cloudmersive-convert-api-client/api_client.rb +0 -389
  240. data/lib/cloudmersive-convert-api-client/api_error.rb +0 -38
  241. data/lib/cloudmersive-convert-api-client/configuration.rb +0 -209
  242. data/lib/cloudmersive-convert-api-client/models/add_pdf_annotation_request.rb +0 -217
  243. data/lib/cloudmersive-convert-api-client/models/alternate_file_format_candidate.rb +0 -209
  244. data/lib/cloudmersive-convert-api-client/models/autodetect_document_validation_result.rb +0 -230
  245. data/lib/cloudmersive-convert-api-client/models/autodetect_get_info_result.rb +0 -251
  246. data/lib/cloudmersive-convert-api-client/models/autodetect_to_png_result.rb +0 -201
  247. data/lib/cloudmersive-convert-api-client/models/base64_decode_request.rb +0 -189
  248. data/lib/cloudmersive-convert-api-client/models/base64_decode_response.rb +0 -215
  249. data/lib/cloudmersive-convert-api-client/models/base64_detect_request.rb +0 -189
  250. data/lib/cloudmersive-convert-api-client/models/base64_detect_response.rb +0 -199
  251. data/lib/cloudmersive-convert-api-client/models/base64_encode_request.rb +0 -205
  252. data/lib/cloudmersive-convert-api-client/models/base64_encode_response.rb +0 -199
  253. data/lib/cloudmersive-convert-api-client/models/change_line_ending_response.rb +0 -199
  254. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_request.rb +0 -245
  255. data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_response.rb +0 -199
  256. data/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -199
  257. data/lib/cloudmersive-convert-api-client/models/create_blank_docx_request.rb +0 -189
  258. data/lib/cloudmersive-convert-api-client/models/create_blank_docx_response.rb +0 -199
  259. data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_request.rb +0 -189
  260. data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_response.rb +0 -199
  261. data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_request.rb +0 -201
  262. data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_response.rb +0 -199
  263. data/lib/cloudmersive-convert-api-client/models/create_zip_archive_request.rb +0 -203
  264. data/lib/cloudmersive-convert-api-client/models/csv_collection.rb +0 -211
  265. data/lib/cloudmersive-convert-api-client/models/csv_file_result.rb +0 -215
  266. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_request.rb +0 -245
  267. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_response.rb +0 -199
  268. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_request.rb +0 -235
  269. data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_response.rb +0 -199
  270. data/lib/cloudmersive-convert-api-client/models/detect_line_endings_response.rb +0 -219
  271. data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_request.rb +0 -215
  272. data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_response.rb +0 -199
  273. data/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -219
  274. data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -231
  275. data/lib/cloudmersive-convert-api-client/models/docx_body.rb +0 -213
  276. data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +0 -219
  277. data/lib/cloudmersive-convert-api-client/models/docx_comment.rb +0 -269
  278. data/lib/cloudmersive-convert-api-client/models/docx_footer.rb +0 -213
  279. data/lib/cloudmersive-convert-api-client/models/docx_header.rb +0 -213
  280. data/lib/cloudmersive-convert-api-client/models/docx_image.rb +0 -309
  281. data/lib/cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request.rb +0 -235
  282. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +0 -301
  283. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -199
  284. data/lib/cloudmersive-convert-api-client/models/docx_page.rb +0 -201
  285. data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +0 -221
  286. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +0 -225
  287. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +0 -199
  288. data/lib/cloudmersive-convert-api-client/models/docx_run.rb +0 -261
  289. data/lib/cloudmersive-convert-api-client/models/docx_section.rb +0 -201
  290. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request.rb +0 -225
  291. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -225
  292. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -199
  293. data/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -225
  294. data/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -199
  295. data/lib/cloudmersive-convert-api-client/models/docx_style.rb +0 -249
  296. data/lib/cloudmersive-convert-api-client/models/docx_table.rb +0 -571
  297. data/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +0 -261
  298. data/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +0 -211
  299. data/lib/cloudmersive-convert-api-client/models/docx_template_application_request.rb +0 -191
  300. data/lib/cloudmersive-convert-api-client/models/docx_template_operation.rb +0 -242
  301. data/lib/cloudmersive-convert-api-client/models/docx_text.rb +0 -209
  302. data/lib/cloudmersive-convert-api-client/models/docx_top_level_comment.rb +0 -251
  303. data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_request.rb +0 -215
  304. data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_response.rb +0 -199
  305. data/lib/cloudmersive-convert-api-client/models/exif_value.rb +0 -209
  306. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_request.rb +0 -235
  307. data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_response.rb +0 -211
  308. data/lib/cloudmersive-convert-api-client/models/find_regex_match.rb +0 -231
  309. data/lib/cloudmersive-convert-api-client/models/find_string_match.rb +0 -209
  310. data/lib/cloudmersive-convert-api-client/models/find_string_regex_request.rb +0 -209
  311. data/lib/cloudmersive-convert-api-client/models/find_string_regex_response.rb +0 -211
  312. data/lib/cloudmersive-convert-api-client/models/find_string_simple_request.rb +0 -199
  313. data/lib/cloudmersive-convert-api-client/models/find_string_simple_response.rb +0 -211
  314. data/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -189
  315. data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +0 -215
  316. data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +0 -199
  317. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response.rb +0 -211
  318. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_response.rb +0 -211
  319. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request.rb +0 -215
  320. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_request.rb +0 -215
  321. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -215
  322. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -211
  323. data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +0 -215
  324. data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +0 -201
  325. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +0 -225
  326. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_response.rb +0 -211
  327. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +0 -215
  328. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +0 -201
  329. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -215
  330. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -201
  331. data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_request.rb +0 -225
  332. data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_response.rb +0 -199
  333. data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_request.rb +0 -235
  334. data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_response.rb +0 -199
  335. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -215
  336. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -201
  337. data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +0 -350
  338. data/lib/cloudmersive-convert-api-client/models/get_pdf_annotations_result.rb +0 -201
  339. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request.rb +0 -235
  340. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response.rb +0 -199
  341. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_request.rb +0 -245
  342. data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_response.rb +0 -199
  343. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +0 -225
  344. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +0 -201
  345. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +0 -225
  346. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +0 -201
  347. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +0 -225
  348. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +0 -201
  349. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +0 -215
  350. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +0 -201
  351. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +0 -215
  352. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +0 -201
  353. data/lib/cloudmersive-convert-api-client/models/html_md_result.rb +0 -199
  354. data/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -211
  355. data/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -199
  356. data/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -242
  357. data/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -189
  358. data/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -199
  359. data/lib/cloudmersive-convert-api-client/models/html_to_png_request.rb +0 -219
  360. data/lib/cloudmersive-convert-api-client/models/html_to_text_request.rb +0 -189
  361. data/lib/cloudmersive-convert-api-client/models/html_to_text_response.rb +0 -199
  362. data/lib/cloudmersive-convert-api-client/models/insert_docx_comment_on_paragraph_response.rb +0 -199
  363. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +0 -245
  364. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +0 -199
  365. data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_request.rb +0 -245
  366. data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_response.rb +0 -199
  367. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +0 -245
  368. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -199
  369. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb +0 -225
  370. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +0 -199
  371. data/lib/cloudmersive-convert-api-client/models/multipage_image_format_conversion_result.rb +0 -211
  372. data/lib/cloudmersive-convert-api-client/models/page_conversion_result.rb +0 -215
  373. data/lib/cloudmersive-convert-api-client/models/pdf_annotation.rb +0 -299
  374. data/lib/cloudmersive-convert-api-client/models/pdf_document.rb +0 -225
  375. data/lib/cloudmersive-convert-api-client/models/pdf_form_field.rb +0 -219
  376. data/lib/cloudmersive-convert-api-client/models/pdf_form_fields.rb +0 -201
  377. data/lib/cloudmersive-convert-api-client/models/pdf_metadata.rb +0 -269
  378. data/lib/cloudmersive-convert-api-client/models/pdf_page_text.rb +0 -199
  379. data/lib/cloudmersive-convert-api-client/models/pdf_text_by_page_result.rb +0 -201
  380. data/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -201
  381. data/lib/cloudmersive-convert-api-client/models/presentation_result.rb +0 -225
  382. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -235
  383. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -199
  384. data/lib/cloudmersive-convert-api-client/models/remove_docx_pages_request.rb +0 -235
  385. data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_request.rb +0 -189
  386. data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_response.rb +0 -199
  387. data/lib/cloudmersive-convert-api-client/models/remove_pptx_slides_request.rb +0 -235
  388. data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_request.rb +0 -189
  389. data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_response.rb +0 -199
  390. data/lib/cloudmersive-convert-api-client/models/remove_xlsx_worksheet_request.rb +0 -225
  391. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_request.rb +0 -245
  392. data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_response.rb +0 -199
  393. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_request.rb +0 -209
  394. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_response.rb +0 -199
  395. data/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -245
  396. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_request.rb +0 -209
  397. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_response.rb +0 -199
  398. data/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -219
  399. data/lib/cloudmersive-convert-api-client/models/set_form_field_value.rb +0 -219
  400. data/lib/cloudmersive-convert-api-client/models/set_pdf_form_fields_request.rb +0 -217
  401. data/lib/cloudmersive-convert-api-client/models/set_pdf_metadata_request.rb +0 -215
  402. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_request.rb +0 -245
  403. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_response.rb +0 -199
  404. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_request.rb +0 -255
  405. data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_response.rb +0 -199
  406. data/lib/cloudmersive-convert-api-client/models/split_document_result.rb +0 -225
  407. data/lib/cloudmersive-convert-api-client/models/split_docx_document_result.rb +0 -200
  408. data/lib/cloudmersive-convert-api-client/models/split_pdf_result.rb +0 -201
  409. data/lib/cloudmersive-convert-api-client/models/split_pptx_presentation_result.rb +0 -200
  410. data/lib/cloudmersive-convert-api-client/models/split_text_document_by_lines_result.rb +0 -210
  411. data/lib/cloudmersive-convert-api-client/models/split_text_document_by_string_result.rb +0 -210
  412. data/lib/cloudmersive-convert-api-client/models/split_xlsx_worksheet_result.rb +0 -200
  413. data/lib/cloudmersive-convert-api-client/models/text_conversion_result.rb +0 -199
  414. data/lib/cloudmersive-convert-api-client/models/text_document_element.rb +0 -199
  415. data/lib/cloudmersive-convert-api-client/models/text_document_line.rb +0 -199
  416. data/lib/cloudmersive-convert-api-client/models/text_encoding_detect_response.rb +0 -199
  417. data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_request.rb +0 -255
  418. data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_response.rb +0 -199
  419. data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_request.rb +0 -245
  420. data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_response.rb +0 -199
  421. data/lib/cloudmersive-convert-api-client/models/url_to_pdf_request.rb +0 -219
  422. data/lib/cloudmersive-convert-api-client/models/url_to_text_request.rb +0 -189
  423. data/lib/cloudmersive-convert-api-client/models/url_to_text_response.rb +0 -199
  424. data/lib/cloudmersive-convert-api-client/models/viewer_response.rb +0 -197
  425. data/lib/cloudmersive-convert-api-client/models/worksheet_result.rb +0 -235
  426. data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +0 -229
  427. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +0 -228
  428. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +0 -199
  429. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +0 -201
  430. data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +0 -199
  431. data/lib/cloudmersive-convert-api-client/models/xml_add_attribute_with_x_path_result.rb +0 -209
  432. data/lib/cloudmersive-convert-api-client/models/xml_add_child_with_x_path_result.rb +0 -209
  433. data/lib/cloudmersive-convert-api-client/models/xml_filter_with_x_path_result.rb +0 -211
  434. data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_multi_result.rb +0 -209
  435. data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_result.rb +0 -209
  436. data/lib/cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_path_result.rb +0 -209
  437. data/lib/cloudmersive-convert-api-client/models/xml_remove_with_x_path_result.rb +0 -221
  438. data/lib/cloudmersive-convert-api-client/models/xml_replace_with_x_path_result.rb +0 -209
  439. data/lib/cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result.rb +0 -209
  440. data/lib/cloudmersive-convert-api-client/models/zip_directory.rb +0 -213
  441. data/lib/cloudmersive-convert-api-client/models/zip_encryption_advanced_request.rb +0 -225
  442. data/lib/cloudmersive-convert-api-client/models/zip_extract_response.rb +0 -213
  443. data/lib/cloudmersive-convert-api-client/models/zip_file.rb +0 -215
  444. data/lib/cloudmersive-convert-api-client/version.rb +0 -15
  445. data/spec/api/compare_document_api_spec.rb +0 -48
  446. data/spec/api/convert_data_api_spec.rb +0 -239
  447. data/spec/api/convert_document_api_spec.rb +0 -421
  448. data/spec/api/convert_image_api_spec.rb +0 -88
  449. data/spec/api/convert_template_api_spec.rb +0 -60
  450. data/spec/api/convert_web_api_spec.rb +0 -131
  451. data/spec/api/edit_document_api_spec.rb +0 -635
  452. data/spec/api/edit_pdf_api_spec.rb +0 -282
  453. data/spec/api/edit_text_api_spec.rb +0 -192
  454. data/spec/api/merge_document_api_spec.rb +0 -239
  455. data/spec/api/split_document_api_spec.rb +0 -113
  456. data/spec/api/validate_document_api_spec.rb +0 -179
  457. data/spec/api/viewer_tools_api_spec.rb +0 -47
  458. data/spec/api/zip_archive_api_spec.rb +0 -105
  459. data/spec/api_client_spec.rb +0 -226
  460. data/spec/configuration_spec.rb +0 -42
  461. data/spec/models/add_pdf_annotation_request_spec.rb +0 -48
  462. data/spec/models/alternate_file_format_candidate_spec.rb +0 -54
  463. data/spec/models/autodetect_document_validation_result_spec.rb +0 -66
  464. data/spec/models/autodetect_get_info_result_spec.rb +0 -78
  465. data/spec/models/autodetect_to_png_result_spec.rb +0 -48
  466. data/spec/models/base64_decode_request_spec.rb +0 -42
  467. data/spec/models/base64_decode_response_spec.rb +0 -48
  468. data/spec/models/base64_detect_request_spec.rb +0 -42
  469. data/spec/models/base64_detect_response_spec.rb +0 -48
  470. data/spec/models/base64_encode_request_spec.rb +0 -42
  471. data/spec/models/base64_encode_response_spec.rb +0 -48
  472. data/spec/models/change_line_ending_response_spec.rb +0 -48
  473. data/spec/models/clear_xlsx_cell_request_spec.rb +0 -66
  474. data/spec/models/clear_xlsx_cell_response_spec.rb +0 -48
  475. data/spec/models/converted_png_page_spec.rb +0 -48
  476. data/spec/models/create_blank_docx_request_spec.rb +0 -42
  477. data/spec/models/create_blank_docx_response_spec.rb +0 -48
  478. data/spec/models/create_blank_spreadsheet_request_spec.rb +0 -42
  479. data/spec/models/create_blank_spreadsheet_response_spec.rb +0 -48
  480. data/spec/models/create_spreadsheet_from_data_request_spec.rb +0 -48
  481. data/spec/models/create_spreadsheet_from_data_response_spec.rb +0 -48
  482. data/spec/models/create_zip_archive_request_spec.rb +0 -48
  483. data/spec/models/csv_collection_spec.rb +0 -54
  484. data/spec/models/csv_file_result_spec.rb +0 -48
  485. data/spec/models/delete_docx_table_row_range_request_spec.rb +0 -66
  486. data/spec/models/delete_docx_table_row_range_response_spec.rb +0 -48
  487. data/spec/models/delete_docx_table_row_request_spec.rb +0 -60
  488. data/spec/models/delete_docx_table_row_response_spec.rb +0 -48
  489. data/spec/models/detect_line_endings_response_spec.rb +0 -60
  490. data/spec/models/disable_shared_workbook_request_spec.rb +0 -48
  491. data/spec/models/disable_shared_workbook_response_spec.rb +0 -48
  492. data/spec/models/document_validation_error_spec.rb +0 -60
  493. data/spec/models/document_validation_result_spec.rb +0 -66
  494. data/spec/models/docx_body_spec.rb +0 -54
  495. data/spec/models/docx_cell_style_spec.rb +0 -60
  496. data/spec/models/docx_comment_spec.rb +0 -90
  497. data/spec/models/docx_footer_spec.rb +0 -54
  498. data/spec/models/docx_header_spec.rb +0 -54
  499. data/spec/models/docx_image_spec.rb +0 -114
  500. data/spec/models/docx_insert_comment_on_paragraph_request_spec.rb +0 -60
  501. data/spec/models/docx_insert_image_request_spec.rb +0 -90
  502. data/spec/models/docx_insert_image_response_spec.rb +0 -48
  503. data/spec/models/docx_page_spec.rb +0 -48
  504. data/spec/models/docx_paragraph_spec.rb +0 -60
  505. data/spec/models/docx_remove_object_request_spec.rb +0 -54
  506. data/spec/models/docx_remove_object_response_spec.rb +0 -48
  507. data/spec/models/docx_run_spec.rb +0 -84
  508. data/spec/models/docx_section_spec.rb +0 -48
  509. data/spec/models/docx_set_footer_add_page_number_request_spec.rb +0 -54
  510. data/spec/models/docx_set_footer_request_spec.rb +0 -54
  511. data/spec/models/docx_set_footer_response_spec.rb +0 -48
  512. data/spec/models/docx_set_header_request_spec.rb +0 -54
  513. data/spec/models/docx_set_header_response_spec.rb +0 -48
  514. data/spec/models/docx_style_spec.rb +0 -78
  515. data/spec/models/docx_table_cell_spec.rb +0 -84
  516. data/spec/models/docx_table_row_spec.rb +0 -54
  517. data/spec/models/docx_table_spec.rb +0 -270
  518. data/spec/models/docx_template_application_request_spec.rb +0 -42
  519. data/spec/models/docx_template_operation_spec.rb +0 -58
  520. data/spec/models/docx_text_spec.rb +0 -54
  521. data/spec/models/docx_top_level_comment_spec.rb +0 -78
  522. data/spec/models/enable_shared_workbook_request_spec.rb +0 -48
  523. data/spec/models/enable_shared_workbook_response_spec.rb +0 -48
  524. data/spec/models/exif_value_spec.rb +0 -54
  525. data/spec/models/find_docx_paragraph_request_spec.rb +0 -60
  526. data/spec/models/find_docx_paragraph_response_spec.rb +0 -54
  527. data/spec/models/find_regex_match_spec.rb +0 -66
  528. data/spec/models/find_string_match_spec.rb +0 -54
  529. data/spec/models/find_string_regex_request_spec.rb +0 -54
  530. data/spec/models/find_string_regex_response_spec.rb +0 -54
  531. data/spec/models/find_string_simple_request_spec.rb +0 -48
  532. data/spec/models/find_string_simple_response_spec.rb +0 -54
  533. data/spec/models/finish_editing_request_spec.rb +0 -42
  534. data/spec/models/get_docx_body_request_spec.rb +0 -48
  535. data/spec/models/get_docx_body_response_spec.rb +0 -48
  536. data/spec/models/get_docx_comments_hierarchical_response_spec.rb +0 -54
  537. data/spec/models/get_docx_comments_response_spec.rb +0 -54
  538. data/spec/models/get_docx_get_comments_hierarchical_request_spec.rb +0 -48
  539. data/spec/models/get_docx_get_comments_request_spec.rb +0 -48
  540. data/spec/models/get_docx_headers_and_footers_request_spec.rb +0 -48
  541. data/spec/models/get_docx_headers_and_footers_response_spec.rb +0 -54
  542. data/spec/models/get_docx_images_request_spec.rb +0 -48
  543. data/spec/models/get_docx_images_response_spec.rb +0 -48
  544. data/spec/models/get_docx_pages_request_spec.rb +0 -54
  545. data/spec/models/get_docx_pages_response_spec.rb +0 -54
  546. data/spec/models/get_docx_sections_request_spec.rb +0 -48
  547. data/spec/models/get_docx_sections_response_spec.rb +0 -48
  548. data/spec/models/get_docx_styles_request_spec.rb +0 -48
  549. data/spec/models/get_docx_styles_response_spec.rb +0 -48
  550. data/spec/models/get_docx_table_by_index_request_spec.rb +0 -54
  551. data/spec/models/get_docx_table_by_index_response_spec.rb +0 -48
  552. data/spec/models/get_docx_table_row_request_spec.rb +0 -60
  553. data/spec/models/get_docx_table_row_response_spec.rb +0 -48
  554. data/spec/models/get_docx_tables_request_spec.rb +0 -48
  555. data/spec/models/get_docx_tables_response_spec.rb +0 -48
  556. data/spec/models/get_image_info_result_spec.rb +0 -138
  557. data/spec/models/get_pdf_annotations_result_spec.rb +0 -48
  558. data/spec/models/get_xlsx_cell_by_identifier_request_spec.rb +0 -60
  559. data/spec/models/get_xlsx_cell_by_identifier_response_spec.rb +0 -48
  560. data/spec/models/get_xlsx_cell_request_spec.rb +0 -66
  561. data/spec/models/get_xlsx_cell_response_spec.rb +0 -48
  562. data/spec/models/get_xlsx_columns_request_spec.rb +0 -54
  563. data/spec/models/get_xlsx_columns_response_spec.rb +0 -48
  564. data/spec/models/get_xlsx_images_request_spec.rb +0 -54
  565. data/spec/models/get_xlsx_images_response_spec.rb +0 -48
  566. data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +0 -54
  567. data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +0 -48
  568. data/spec/models/get_xlsx_styles_request_spec.rb +0 -48
  569. data/spec/models/get_xlsx_styles_response_spec.rb +0 -48
  570. data/spec/models/get_xlsx_worksheets_request_spec.rb +0 -48
  571. data/spec/models/get_xlsx_worksheets_response_spec.rb +0 -48
  572. data/spec/models/html_md_result_spec.rb +0 -48
  573. data/spec/models/html_template_application_request_spec.rb +0 -54
  574. data/spec/models/html_template_application_response_spec.rb +0 -48
  575. data/spec/models/html_template_operation_spec.rb +0 -58
  576. data/spec/models/html_to_office_request_spec.rb +0 -42
  577. data/spec/models/html_to_pdf_request_spec.rb +0 -48
  578. data/spec/models/html_to_png_request_spec.rb +0 -60
  579. data/spec/models/html_to_text_request_spec.rb +0 -42
  580. data/spec/models/html_to_text_response_spec.rb +0 -48
  581. data/spec/models/insert_docx_comment_on_paragraph_response_spec.rb +0 -48
  582. data/spec/models/insert_docx_insert_paragraph_request_spec.rb +0 -66
  583. data/spec/models/insert_docx_insert_paragraph_response_spec.rb +0 -48
  584. data/spec/models/insert_docx_table_row_request_spec.rb +0 -66
  585. data/spec/models/insert_docx_table_row_response_spec.rb +0 -48
  586. data/spec/models/insert_docx_tables_request_spec.rb +0 -66
  587. data/spec/models/insert_docx_tables_response_spec.rb +0 -48
  588. data/spec/models/insert_xlsx_worksheet_request_spec.rb +0 -54
  589. data/spec/models/insert_xlsx_worksheet_response_spec.rb +0 -48
  590. data/spec/models/multipage_image_format_conversion_result_spec.rb +0 -54
  591. data/spec/models/page_conversion_result_spec.rb +0 -48
  592. data/spec/models/pdf_annotation_spec.rb +0 -108
  593. data/spec/models/pdf_document_spec.rb +0 -54
  594. data/spec/models/pdf_form_field_spec.rb +0 -60
  595. data/spec/models/pdf_form_fields_spec.rb +0 -48
  596. data/spec/models/pdf_metadata_spec.rb +0 -90
  597. data/spec/models/pdf_page_text_spec.rb +0 -48
  598. data/spec/models/pdf_text_by_page_result_spec.rb +0 -48
  599. data/spec/models/pdf_to_png_result_spec.rb +0 -48
  600. data/spec/models/presentation_result_spec.rb +0 -54
  601. data/spec/models/remove_docx_headers_and_footers_request_spec.rb +0 -60
  602. data/spec/models/remove_docx_headers_and_footers_response_spec.rb +0 -48
  603. data/spec/models/remove_docx_pages_request_spec.rb +0 -60
  604. data/spec/models/remove_html_from_text_request_spec.rb +0 -42
  605. data/spec/models/remove_html_from_text_response_spec.rb +0 -48
  606. data/spec/models/remove_pptx_slides_request_spec.rb +0 -60
  607. data/spec/models/remove_whitespace_from_text_request_spec.rb +0 -42
  608. data/spec/models/remove_whitespace_from_text_response_spec.rb +0 -48
  609. data/spec/models/remove_xlsx_worksheet_request_spec.rb +0 -54
  610. data/spec/models/replace_docx_paragraph_request_spec.rb +0 -66
  611. data/spec/models/replace_docx_paragraph_response_spec.rb +0 -48
  612. data/spec/models/replace_string_regex_request_spec.rb +0 -54
  613. data/spec/models/replace_string_regex_response_spec.rb +0 -48
  614. data/spec/models/replace_string_request_spec.rb +0 -66
  615. data/spec/models/replace_string_simple_request_spec.rb +0 -54
  616. data/spec/models/replace_string_simple_response_spec.rb +0 -48
  617. data/spec/models/screenshot_request_spec.rb +0 -60
  618. data/spec/models/set_form_field_value_spec.rb +0 -60
  619. data/spec/models/set_pdf_form_fields_request_spec.rb +0 -48
  620. data/spec/models/set_pdf_metadata_request_spec.rb +0 -48
  621. data/spec/models/set_xlsx_cell_by_identifier_request_spec.rb +0 -66
  622. data/spec/models/set_xlsx_cell_by_identifier_response_spec.rb +0 -48
  623. data/spec/models/set_xlsx_cell_request_spec.rb +0 -72
  624. data/spec/models/set_xlsx_cell_response_spec.rb +0 -48
  625. data/spec/models/split_document_result_spec.rb +0 -54
  626. data/spec/models/split_docx_document_result_spec.rb +0 -48
  627. data/spec/models/split_pdf_result_spec.rb +0 -48
  628. data/spec/models/split_pptx_presentation_result_spec.rb +0 -48
  629. data/spec/models/split_text_document_by_lines_result_spec.rb +0 -54
  630. data/spec/models/split_text_document_by_string_result_spec.rb +0 -54
  631. data/spec/models/split_xlsx_worksheet_result_spec.rb +0 -48
  632. data/spec/models/text_conversion_result_spec.rb +0 -48
  633. data/spec/models/text_document_element_spec.rb +0 -48
  634. data/spec/models/text_document_line_spec.rb +0 -48
  635. data/spec/models/text_encoding_detect_response_spec.rb +0 -48
  636. data/spec/models/update_docx_table_cell_request_spec.rb +0 -72
  637. data/spec/models/update_docx_table_cell_response_spec.rb +0 -48
  638. data/spec/models/update_docx_table_row_request_spec.rb +0 -66
  639. data/spec/models/update_docx_table_row_response_spec.rb +0 -48
  640. data/spec/models/url_to_pdf_request_spec.rb +0 -60
  641. data/spec/models/url_to_text_request_spec.rb +0 -42
  642. data/spec/models/url_to_text_response_spec.rb +0 -48
  643. data/spec/models/viewer_response_spec.rb +0 -48
  644. data/spec/models/worksheet_result_spec.rb +0 -60
  645. data/spec/models/xlsx_image_spec.rb +0 -66
  646. data/spec/models/xlsx_spreadsheet_cell_spec.rb +0 -66
  647. data/spec/models/xlsx_spreadsheet_column_spec.rb +0 -48
  648. data/spec/models/xlsx_spreadsheet_row_spec.rb +0 -48
  649. data/spec/models/xlsx_worksheet_spec.rb +0 -48
  650. data/spec/models/xml_add_attribute_with_x_path_result_spec.rb +0 -54
  651. data/spec/models/xml_add_child_with_x_path_result_spec.rb +0 -54
  652. data/spec/models/xml_filter_with_x_path_result_spec.rb +0 -54
  653. data/spec/models/xml_query_with_x_query_multi_result_spec.rb +0 -54
  654. data/spec/models/xml_query_with_x_query_result_spec.rb +0 -54
  655. data/spec/models/xml_remove_all_children_with_x_path_result_spec.rb +0 -54
  656. data/spec/models/xml_remove_with_x_path_result_spec.rb +0 -60
  657. data/spec/models/xml_replace_with_x_path_result_spec.rb +0 -54
  658. data/spec/models/xml_set_value_with_x_path_result_spec.rb +0 -54
  659. data/spec/models/zip_directory_spec.rb +0 -54
  660. data/spec/models/zip_encryption_advanced_request_spec.rb +0 -54
  661. data/spec/models/zip_extract_response_spec.rb +0 -54
  662. data/spec/models/zip_file_spec.rb +0 -48
  663. data/spec/spec_helper.rb +0 -111
@@ -1,79 +0,0 @@
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 "uri"
14
-
15
- module CloudmersiveConvertApiClient
16
- class ViewerToolsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
-
23
- # Create a web-based viewer
24
- # Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
25
- # @param input_file Input file to perform the operation on.
26
- # @param [Hash] opts the optional parameters
27
- # @return [ViewerResponse]
28
- def viewer_tools_create_simple(input_file, opts = {})
29
- data, _status_code, _headers = viewer_tools_create_simple_with_http_info(input_file, opts)
30
- return data
31
- end
32
-
33
- # Create a web-based viewer
34
- # Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
35
- # @param input_file Input file to perform the operation on.
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(ViewerResponse, Fixnum, Hash)>] ViewerResponse data, response status code and response headers
38
- def viewer_tools_create_simple_with_http_info(input_file, opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: ViewerToolsApi.viewer_tools_create_simple ..."
41
- end
42
- # verify the required parameter 'input_file' is set
43
- if @api_client.config.client_side_validation && input_file.nil?
44
- fail ArgumentError, "Missing the required parameter 'input_file' when calling ViewerToolsApi.viewer_tools_create_simple"
45
- end
46
- # resource path
47
- local_var_path = "/convert/viewer/create/web/simple"
48
-
49
- # query parameters
50
- query_params = {}
51
-
52
- # header parameters
53
- header_params = {}
54
- # HTTP header 'Accept' (if needed)
55
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
56
- # HTTP header 'Content-Type'
57
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
58
-
59
- # form parameters
60
- form_params = {}
61
- form_params["inputFile"] = input_file
62
-
63
- # http body (model)
64
- post_body = nil
65
- auth_names = ['Apikey']
66
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
67
- :header_params => header_params,
68
- :query_params => query_params,
69
- :form_params => form_params,
70
- :body => post_body,
71
- :auth_names => auth_names,
72
- :return_type => 'ViewerResponse')
73
- if @api_client.config.debugging
74
- @api_client.config.logger.debug "API called: ViewerToolsApi#viewer_tools_create_simple\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
- end
76
- return data, status_code, headers
77
- end
78
- end
79
- end
@@ -1,335 +0,0 @@
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 "uri"
14
-
15
- module CloudmersiveConvertApiClient
16
- class ZipArchiveApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
-
23
- # Compress files to create a new zip archive
24
- # Create a new zip archive by compressing input files.
25
- # @param input_file1 First input file to perform the operation on.
26
- # @param [Hash] opts the optional parameters
27
- # @option opts [File] :input_file2 Second input file to perform the operation on.
28
- # @option opts [File] :input_file3 Third input file to perform the operation on.
29
- # @option opts [File] :input_file4 Fourth input file to perform the operation on.
30
- # @option opts [File] :input_file5 Fifth input file to perform the operation on.
31
- # @option opts [File] :input_file6 Sixth input file to perform the operation on.
32
- # @option opts [File] :input_file7 Seventh input file to perform the operation on.
33
- # @option opts [File] :input_file8 Eighth input file to perform the operation on.
34
- # @option opts [File] :input_file9 Ninth input file to perform the operation on.
35
- # @option opts [File] :input_file10 Tenth input file to perform the operation on.
36
- # @return [String]
37
- def zip_archive_zip_create(input_file1, opts = {})
38
- data, _status_code, _headers = zip_archive_zip_create_with_http_info(input_file1, opts)
39
- return data
40
- end
41
-
42
- # Compress files to create a new zip archive
43
- # Create a new zip archive by compressing input files.
44
- # @param input_file1 First input file to perform the operation on.
45
- # @param [Hash] opts the optional parameters
46
- # @option opts [File] :input_file2 Second input file to perform the operation on.
47
- # @option opts [File] :input_file3 Third input file to perform the operation on.
48
- # @option opts [File] :input_file4 Fourth input file to perform the operation on.
49
- # @option opts [File] :input_file5 Fifth input file to perform the operation on.
50
- # @option opts [File] :input_file6 Sixth input file to perform the operation on.
51
- # @option opts [File] :input_file7 Seventh input file to perform the operation on.
52
- # @option opts [File] :input_file8 Eighth input file to perform the operation on.
53
- # @option opts [File] :input_file9 Ninth input file to perform the operation on.
54
- # @option opts [File] :input_file10 Tenth input file to perform the operation on.
55
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
56
- def zip_archive_zip_create_with_http_info(input_file1, opts = {})
57
- if @api_client.config.debugging
58
- @api_client.config.logger.debug "Calling API: ZipArchiveApi.zip_archive_zip_create ..."
59
- end
60
- # verify the required parameter 'input_file1' is set
61
- if @api_client.config.client_side_validation && input_file1.nil?
62
- fail ArgumentError, "Missing the required parameter 'input_file1' when calling ZipArchiveApi.zip_archive_zip_create"
63
- end
64
- # resource path
65
- local_var_path = "/convert/archive/zip/create"
66
-
67
- # query parameters
68
- query_params = {}
69
-
70
- # header parameters
71
- header_params = {}
72
- # HTTP header 'Accept' (if needed)
73
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
74
- # HTTP header 'Content-Type'
75
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
76
-
77
- # form parameters
78
- form_params = {}
79
- form_params["inputFile1"] = input_file1
80
- form_params["inputFile2"] = opts[:'input_file2'] if !opts[:'input_file2'].nil?
81
- form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
82
- form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
83
- form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
84
- form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
85
- form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
86
- form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
87
- form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
88
- form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
89
-
90
- # http body (model)
91
- post_body = nil
92
- auth_names = ['Apikey']
93
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
94
- :header_params => header_params,
95
- :query_params => query_params,
96
- :form_params => form_params,
97
- :body => post_body,
98
- :auth_names => auth_names,
99
- :return_type => 'String')
100
- if @api_client.config.debugging
101
- @api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
- end
103
- return data, status_code, headers
104
- end
105
-
106
- # Compress files and folders to create a new zip archive with advanced options
107
- # Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive.
108
- # @param request Input request
109
- # @param [Hash] opts the optional parameters
110
- # @return [Object]
111
- def zip_archive_zip_create_advanced(request, opts = {})
112
- data, _status_code, _headers = zip_archive_zip_create_advanced_with_http_info(request, opts)
113
- return data
114
- end
115
-
116
- # Compress files and folders to create a new zip archive with advanced options
117
- # Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive.
118
- # @param request Input request
119
- # @param [Hash] opts the optional parameters
120
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
121
- def zip_archive_zip_create_advanced_with_http_info(request, opts = {})
122
- if @api_client.config.debugging
123
- @api_client.config.logger.debug "Calling API: ZipArchiveApi.zip_archive_zip_create_advanced ..."
124
- end
125
- # verify the required parameter 'request' is set
126
- if @api_client.config.client_side_validation && request.nil?
127
- fail ArgumentError, "Missing the required parameter 'request' when calling ZipArchiveApi.zip_archive_zip_create_advanced"
128
- end
129
- # resource path
130
- local_var_path = "/convert/archive/zip/create/advanced"
131
-
132
- # query parameters
133
- query_params = {}
134
-
135
- # header parameters
136
- header_params = {}
137
- # HTTP header 'Accept' (if needed)
138
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
139
- # HTTP header 'Content-Type'
140
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
141
-
142
- # form parameters
143
- form_params = {}
144
-
145
- # http body (model)
146
- post_body = @api_client.object_to_http_body(request)
147
- auth_names = ['Apikey']
148
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
149
- :header_params => header_params,
150
- :query_params => query_params,
151
- :form_params => form_params,
152
- :body => post_body,
153
- :auth_names => auth_names,
154
- :return_type => 'Object')
155
- if @api_client.config.debugging
156
- @api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_create_advanced\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
- end
158
- return data, status_code, headers
159
- end
160
-
161
- # Decrypt and remove password protection on a zip file
162
- # Decrypts and removes password protection from an encrypted zip file with the specified password
163
- # @param input_file Input file to perform the operation on.
164
- # @param zip_password Required; Password for the input archive
165
- # @param [Hash] opts the optional parameters
166
- # @return [Object]
167
- def zip_archive_zip_decrypt(input_file, zip_password, opts = {})
168
- data, _status_code, _headers = zip_archive_zip_decrypt_with_http_info(input_file, zip_password, opts)
169
- return data
170
- end
171
-
172
- # Decrypt and remove password protection on a zip file
173
- # Decrypts and removes password protection from an encrypted zip file with the specified password
174
- # @param input_file Input file to perform the operation on.
175
- # @param zip_password Required; Password for the input archive
176
- # @param [Hash] opts the optional parameters
177
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
178
- def zip_archive_zip_decrypt_with_http_info(input_file, zip_password, opts = {})
179
- if @api_client.config.debugging
180
- @api_client.config.logger.debug "Calling API: ZipArchiveApi.zip_archive_zip_decrypt ..."
181
- end
182
- # verify the required parameter 'input_file' is set
183
- if @api_client.config.client_side_validation && input_file.nil?
184
- fail ArgumentError, "Missing the required parameter 'input_file' when calling ZipArchiveApi.zip_archive_zip_decrypt"
185
- end
186
- # verify the required parameter 'zip_password' is set
187
- if @api_client.config.client_side_validation && zip_password.nil?
188
- fail ArgumentError, "Missing the required parameter 'zip_password' when calling ZipArchiveApi.zip_archive_zip_decrypt"
189
- end
190
- # resource path
191
- local_var_path = "/convert/archive/zip/decrypt"
192
-
193
- # query parameters
194
- query_params = {}
195
-
196
- # header parameters
197
- header_params = {}
198
- # HTTP header 'Accept' (if needed)
199
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
200
- # HTTP header 'Content-Type'
201
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
202
- header_params[:'zipPassword'] = zip_password
203
-
204
- # form parameters
205
- form_params = {}
206
- form_params["inputFile"] = input_file
207
-
208
- # http body (model)
209
- post_body = nil
210
- auth_names = ['Apikey']
211
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
212
- :header_params => header_params,
213
- :query_params => query_params,
214
- :form_params => form_params,
215
- :body => post_body,
216
- :auth_names => auth_names,
217
- :return_type => 'Object')
218
- if @api_client.config.debugging
219
- @api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_decrypt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
- end
221
- return data, status_code, headers
222
- end
223
-
224
- # Encrypt and password protect a zip file
225
- # Encrypts and password protects an existing zip file with the specified password and encryption algorithm
226
- # @param encryption_request Encryption request
227
- # @param [Hash] opts the optional parameters
228
- # @return [Object]
229
- def zip_archive_zip_encrypt_advanced(encryption_request, opts = {})
230
- data, _status_code, _headers = zip_archive_zip_encrypt_advanced_with_http_info(encryption_request, opts)
231
- return data
232
- end
233
-
234
- # Encrypt and password protect a zip file
235
- # Encrypts and password protects an existing zip file with the specified password and encryption algorithm
236
- # @param encryption_request Encryption request
237
- # @param [Hash] opts the optional parameters
238
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
239
- def zip_archive_zip_encrypt_advanced_with_http_info(encryption_request, opts = {})
240
- if @api_client.config.debugging
241
- @api_client.config.logger.debug "Calling API: ZipArchiveApi.zip_archive_zip_encrypt_advanced ..."
242
- end
243
- # verify the required parameter 'encryption_request' is set
244
- if @api_client.config.client_side_validation && encryption_request.nil?
245
- fail ArgumentError, "Missing the required parameter 'encryption_request' when calling ZipArchiveApi.zip_archive_zip_encrypt_advanced"
246
- end
247
- # resource path
248
- local_var_path = "/convert/archive/zip/encrypt/advanced"
249
-
250
- # query parameters
251
- query_params = {}
252
-
253
- # header parameters
254
- header_params = {}
255
- # HTTP header 'Accept' (if needed)
256
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
257
- # HTTP header 'Content-Type'
258
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
259
-
260
- # form parameters
261
- form_params = {}
262
-
263
- # http body (model)
264
- post_body = @api_client.object_to_http_body(encryption_request)
265
- auth_names = ['Apikey']
266
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
267
- :header_params => header_params,
268
- :query_params => query_params,
269
- :form_params => form_params,
270
- :body => post_body,
271
- :auth_names => auth_names,
272
- :return_type => 'Object')
273
- if @api_client.config.debugging
274
- @api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_encrypt_advanced\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
- end
276
- return data, status_code, headers
277
- end
278
-
279
- # Extract, decompress files and folders from a zip archive
280
- # Extracts a zip archive by decompressing files, and folders.
281
- # @param input_file Input file to perform the operation on.
282
- # @param [Hash] opts the optional parameters
283
- # @return [ZipExtractResponse]
284
- def zip_archive_zip_extract(input_file, opts = {})
285
- data, _status_code, _headers = zip_archive_zip_extract_with_http_info(input_file, opts)
286
- return data
287
- end
288
-
289
- # Extract, decompress files and folders from a zip archive
290
- # Extracts a zip archive by decompressing files, and folders.
291
- # @param input_file Input file to perform the operation on.
292
- # @param [Hash] opts the optional parameters
293
- # @return [Array<(ZipExtractResponse, Fixnum, Hash)>] ZipExtractResponse data, response status code and response headers
294
- def zip_archive_zip_extract_with_http_info(input_file, opts = {})
295
- if @api_client.config.debugging
296
- @api_client.config.logger.debug "Calling API: ZipArchiveApi.zip_archive_zip_extract ..."
297
- end
298
- # verify the required parameter 'input_file' is set
299
- if @api_client.config.client_side_validation && input_file.nil?
300
- fail ArgumentError, "Missing the required parameter 'input_file' when calling ZipArchiveApi.zip_archive_zip_extract"
301
- end
302
- # resource path
303
- local_var_path = "/convert/archive/zip/extract"
304
-
305
- # query parameters
306
- query_params = {}
307
-
308
- # header parameters
309
- header_params = {}
310
- # HTTP header 'Accept' (if needed)
311
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
312
- # HTTP header 'Content-Type'
313
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
314
-
315
- # form parameters
316
- form_params = {}
317
- form_params["inputFile"] = input_file
318
-
319
- # http body (model)
320
- post_body = nil
321
- auth_names = ['Apikey']
322
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
323
- :header_params => header_params,
324
- :query_params => query_params,
325
- :form_params => form_params,
326
- :body => post_body,
327
- :auth_names => auth_names,
328
- :return_type => 'ZipExtractResponse')
329
- if @api_client.config.debugging
330
- @api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_extract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
- end
332
- return data, status_code, headers
333
- end
334
- end
335
- end
@@ -1,389 +0,0 @@
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
- require 'json'
15
- require 'logger'
16
- require 'tempfile'
17
- require 'typhoeus'
18
- require 'uri'
19
-
20
- module CloudmersiveConvertApiClient
21
- class ApiClient
22
- # The Configuration object holding settings to be used in the API client.
23
- attr_accessor :config
24
-
25
- # Defines the headers to be used in HTTP requests of all API calls by default.
26
- #
27
- # @return [Hash]
28
- attr_accessor :default_headers
29
-
30
- # Initializes the ApiClient
31
- # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
- def initialize(config = Configuration.default)
33
- @config = config
34
- @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
35
- @default_headers = {
36
- 'Content-Type' => "application/json",
37
- 'User-Agent' => @user_agent
38
- }
39
- end
40
-
41
- def self.default
42
- @@default ||= ApiClient.new
43
- end
44
-
45
- # Call an API with given options.
46
- #
47
- # @return [Array<(Object, Fixnum, Hash)>] an array of 3 elements:
48
- # the data deserialized from response body (could be nil), response status code and response headers.
49
- def call_api(http_method, path, opts = {})
50
- request = build_request(http_method, path, opts)
51
- response = request.run
52
-
53
- if @config.debugging
54
- @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
55
- end
56
-
57
- unless response.success?
58
- if response.timed_out?
59
- fail ApiError.new('Connection timed out')
60
- elsif response.code == 0
61
- # Errors from libcurl will be made visible here
62
- fail ApiError.new(:code => 0,
63
- :message => response.return_message)
64
- else
65
- fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
67
- :response_body => response.body),
68
- response.status_message
69
- end
70
- end
71
-
72
- if opts[:return_type]
73
- data = deserialize(response, opts[:return_type])
74
- else
75
- data = nil
76
- end
77
- return data, response.code, response.headers
78
- end
79
-
80
- # Builds the HTTP request
81
- #
82
- # @param [String] http_method HTTP method/verb (e.g. POST)
83
- # @param [String] path URL path (e.g. /account/new)
84
- # @option opts [Hash] :header_params Header parameters
85
- # @option opts [Hash] :query_params Query parameters
86
- # @option opts [Hash] :form_params Query parameters
87
- # @option opts [Object] :body HTTP body (JSON/XML)
88
- # @return [Typhoeus::Request] A Typhoeus Request
89
- def build_request(http_method, path, opts = {})
90
- url = build_request_url(path)
91
- http_method = http_method.to_sym.downcase
92
-
93
- header_params = @default_headers.merge(opts[:header_params] || {})
94
- query_params = opts[:query_params] || {}
95
- form_params = opts[:form_params] || {}
96
-
97
- update_params_for_auth! header_params, query_params, opts[:auth_names]
98
-
99
- # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
100
- _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
101
-
102
- req_opts = {
103
- :method => http_method,
104
- :headers => header_params,
105
- :params => query_params,
106
- :params_encoding => @config.params_encoding,
107
- :timeout => @config.timeout,
108
- :ssl_verifypeer => @config.verify_ssl,
109
- :ssl_verifyhost => _verify_ssl_host,
110
- :sslcert => @config.cert_file,
111
- :sslkey => @config.key_file,
112
- :verbose => @config.debugging
113
- }
114
-
115
- # set custom cert, if provided
116
- req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
117
-
118
- if [:post, :patch, :put, :delete].include?(http_method)
119
- req_body = build_request_body(header_params, form_params, opts[:body])
120
- req_opts.update :body => req_body
121
- if @config.debugging
122
- @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
123
- end
124
- end
125
-
126
- request = Typhoeus::Request.new(url, req_opts)
127
- download_file(request) if opts[:return_type] == 'File'
128
- request
129
- end
130
-
131
- # Check if the given MIME is a JSON MIME.
132
- # JSON MIME examples:
133
- # application/json
134
- # application/json; charset=UTF8
135
- # APPLICATION/JSON
136
- # */*
137
- # @param [String] mime MIME
138
- # @return [Boolean] True if the MIME is application/json
139
- def json_mime?(mime)
140
- (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
141
- end
142
-
143
- # Deserialize the response to the given return type.
144
- #
145
- # @param [Response] response HTTP response
146
- # @param [String] return_type some examples: "User", "Array[User]", "Hash[String,Integer]"
147
- def deserialize(response, return_type)
148
- body = response.body
149
-
150
- # handle file downloading - return the File instance processed in request callbacks
151
- # note that response body is empty when the file is written in chunks in request on_body callback
152
- return @tempfile if return_type == 'File'
153
-
154
- return nil if body.nil? || body.empty?
155
-
156
- # return response body directly for String return type
157
- return body if return_type == 'String'
158
-
159
- # ensuring a default content type
160
- content_type = response.headers['Content-Type'] || 'application/json'
161
-
162
- fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
163
-
164
- begin
165
- data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
166
- rescue JSON::ParserError => e
167
- if %w(String Date DateTime).include?(return_type)
168
- data = body
169
- else
170
- raise e
171
- end
172
- end
173
-
174
- convert_to_type data, return_type
175
- end
176
-
177
- # Convert data to the given return type.
178
- # @param [Object] data Data to be converted
179
- # @param [String] return_type Return type
180
- # @return [Mixed] Data in a particular type
181
- def convert_to_type(data, return_type)
182
- return nil if data.nil?
183
- case return_type
184
- when 'String'
185
- data.to_s
186
- when 'Integer'
187
- data.to_i
188
- when 'Float'
189
- data.to_f
190
- when 'BOOLEAN'
191
- data == true
192
- when 'DateTime'
193
- # parse date time (expecting ISO 8601 format)
194
- DateTime.parse data
195
- when 'Date'
196
- # parse date time (expecting ISO 8601 format)
197
- Date.parse data
198
- when 'Object'
199
- # generic object (usually a Hash), return directly
200
- data
201
- when /\AArray<(.+)>\z/
202
- # e.g. Array<Pet>
203
- sub_type = $1
204
- data.map {|item| convert_to_type(item, sub_type) }
205
- when /\AHash\<String, (.+)\>\z/
206
- # e.g. Hash<String, Integer>
207
- sub_type = $1
208
- {}.tap do |hash|
209
- data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
210
- end
211
- else
212
- # models, e.g. Pet
213
- CloudmersiveConvertApiClient.const_get(return_type).new.tap do |model|
214
- model.build_from_hash data
215
- end
216
- end
217
- end
218
-
219
- # Save response body into a file in (the defined) temporary folder, using the filename
220
- # from the "Content-Disposition" header if provided, otherwise a random filename.
221
- # The response body is written to the file in chunks in order to handle files which
222
- # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
223
- # process can use.
224
- #
225
- # @see Configuration#temp_folder_path
226
- def download_file(request)
227
- tempfile = nil
228
- encoding = nil
229
- request.on_headers do |response|
230
- content_disposition = response.headers['Content-Disposition']
231
- if content_disposition and content_disposition =~ /filename=/i
232
- filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
233
- prefix = sanitize_filename(filename)
234
- else
235
- prefix = 'download-'
236
- end
237
- prefix = prefix + '-' unless prefix.end_with?('-')
238
- encoding = response.body.encoding
239
- tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
240
- @tempfile = tempfile
241
- end
242
- request.on_body do |chunk|
243
- chunk.force_encoding(encoding)
244
- tempfile.write(chunk)
245
- end
246
- request.on_complete do |response|
247
- tempfile.close
248
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
249
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
250
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
251
- "explicitly with `tempfile.delete`"
252
- end
253
- end
254
-
255
- # Sanitize filename by removing path.
256
- # e.g. ../../sun.gif becomes sun.gif
257
- #
258
- # @param [String] filename the filename to be sanitized
259
- # @return [String] the sanitized filename
260
- def sanitize_filename(filename)
261
- filename.gsub(/.*[\/\\]/, '')
262
- end
263
-
264
- def build_request_url(path)
265
- # Add leading and trailing slashes to path
266
- path = "/#{path}".gsub(/\/+/, '/')
267
- URI.encode(@config.base_url + path)
268
- end
269
-
270
- # Builds the HTTP request body
271
- #
272
- # @param [Hash] header_params Header parameters
273
- # @param [Hash] form_params Query parameters
274
- # @param [Object] body HTTP body (JSON/XML)
275
- # @return [String] HTTP body data in the form of string
276
- def build_request_body(header_params, form_params, body)
277
- # http form
278
- if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
279
- header_params['Content-Type'] == 'multipart/form-data'
280
- data = {}
281
- form_params.each do |key, value|
282
- case value
283
- when ::File, ::Array, nil
284
- # let typhoeus handle File, Array and nil parameters
285
- data[key] = value
286
- else
287
- data[key] = value.to_s
288
- end
289
- end
290
- elsif body
291
- data = body.is_a?(String) ? body : body.to_json
292
- else
293
- data = nil
294
- end
295
- data
296
- end
297
-
298
- # Update hearder and query params based on authentication settings.
299
- #
300
- # @param [Hash] header_params Header parameters
301
- # @param [Hash] query_params Query parameters
302
- # @param [String] auth_names Authentication scheme name
303
- def update_params_for_auth!(header_params, query_params, auth_names)
304
- Array(auth_names).each do |auth_name|
305
- auth_setting = @config.auth_settings[auth_name]
306
- next unless auth_setting
307
- case auth_setting[:in]
308
- when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
309
- when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
310
- else fail ArgumentError, 'Authentication token must be in `query` of `header`'
311
- end
312
- end
313
- end
314
-
315
- # Sets user agent in HTTP header
316
- #
317
- # @param [String] user_agent User agent (e.g. swagger-codegen/ruby/1.0.0)
318
- def user_agent=(user_agent)
319
- @user_agent = user_agent
320
- @default_headers['User-Agent'] = @user_agent
321
- end
322
-
323
- # Return Accept header based on an array of accepts provided.
324
- # @param [Array] accepts array for Accept
325
- # @return [String] the Accept header (e.g. application/json)
326
- def select_header_accept(accepts)
327
- return nil if accepts.nil? || accepts.empty?
328
- # use JSON when present, otherwise use all of the provided
329
- json_accept = accepts.find { |s| json_mime?(s) }
330
- return json_accept || accepts.join(',')
331
- end
332
-
333
- # Return Content-Type header based on an array of content types provided.
334
- # @param [Array] content_types array for Content-Type
335
- # @return [String] the Content-Type header (e.g. application/json)
336
- def select_header_content_type(content_types)
337
- # use application/json by default
338
- return 'application/json' if content_types.nil? || content_types.empty?
339
- # use JSON when present, otherwise use the first one
340
- json_content_type = content_types.find { |s| json_mime?(s) }
341
- return json_content_type || content_types.first
342
- end
343
-
344
- # Convert object (array, hash, object, etc) to JSON string.
345
- # @param [Object] model object to be converted into JSON string
346
- # @return [String] JSON string representation of the object
347
- def object_to_http_body(model)
348
- return model if model.nil? || model.is_a?(String)
349
- local_body = nil
350
- if model.is_a?(Array)
351
- local_body = model.map{|m| object_to_hash(m) }
352
- else
353
- local_body = object_to_hash(model)
354
- end
355
- local_body.to_json
356
- end
357
-
358
- # Convert object(non-array) to hash.
359
- # @param [Object] obj object to be converted into JSON string
360
- # @return [String] JSON string representation of the object
361
- def object_to_hash(obj)
362
- if obj.respond_to?(:to_hash)
363
- obj.to_hash
364
- else
365
- obj
366
- end
367
- end
368
-
369
- # Build parameter value according to the given collection format.
370
- # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
371
- def build_collection_param(param, collection_format)
372
- case collection_format
373
- when :csv
374
- param.join(',')
375
- when :ssv
376
- param.join(' ')
377
- when :tsv
378
- param.join("\t")
379
- when :pipes
380
- param.join('|')
381
- when :multi
382
- # return the array directly as typhoeus will handle it as expected
383
- param
384
- else
385
- fail "unknown collection format: #{collection_format.inspect}"
386
- end
387
- end
388
- end
389
- end