cloudmersive-convert-api-client 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/{client/Gemfile → Gemfile} +0 -0
  3. data/{client/README.md → README.md} +49 -4
  4. data/{client/Rakefile → Rakefile} +0 -0
  5. data/{client/cloudmersive-convert-api-client.gemspec → cloudmersive-convert-api-client.gemspec} +0 -0
  6. data/{client/docs → docs}/CompareDocumentApi.md +0 -0
  7. data/{client/docs → docs}/ConvertDataApi.md +0 -0
  8. data/{client/docs → docs}/ConvertDocumentApi.md +0 -0
  9. data/{client/docs → docs}/ConvertImageApi.md +113 -0
  10. data/{client/docs → docs}/ConvertTemplateApi.md +0 -0
  11. data/{client/docs → docs}/ConvertWebApi.md +0 -0
  12. data/{client/docs → docs}/ConvertedPngPage.md +0 -0
  13. data/{client/docs → docs}/DocumentValidationError.md +0 -0
  14. data/{client/docs → docs}/DocumentValidationResult.md +0 -0
  15. data/docs/DocxBody.md +10 -0
  16. data/docs/DocxCellStyle.md +11 -0
  17. data/{client/docs → docs}/DocxFooter.md +1 -0
  18. data/{client/docs → docs}/DocxHeader.md +1 -0
  19. data/docs/DocxImage.md +20 -0
  20. data/docs/DocxInsertImageRequest.md +14 -0
  21. data/{client/docs → docs}/DocxInsertImageResponse.md +0 -0
  22. data/{client/docs → docs}/DocxParagraph.md +1 -0
  23. data/docs/DocxRemoveObjectRequest.md +10 -0
  24. data/docs/DocxRemoveObjectResponse.md +9 -0
  25. data/{client/docs → docs}/DocxRun.md +1 -0
  26. data/{client/docs → docs}/DocxSection.md +1 -0
  27. data/{client/docs → docs}/DocxSetFooterRequest.md +0 -0
  28. data/{client/docs → docs}/DocxSetFooterResponse.md +0 -0
  29. data/{client/docs → docs}/DocxSetHeaderRequest.md +0 -0
  30. data/{client/docs → docs}/DocxSetHeaderResponse.md +0 -0
  31. data/{client/docs → docs}/DocxStyle.md +1 -0
  32. data/{client/docs → docs}/DocxTable.md +2 -1
  33. data/{client/docs → docs}/DocxTableCell.md +1 -0
  34. data/{client/docs → docs}/DocxTableRow.md +1 -0
  35. data/{client/docs → docs}/DocxText.md +1 -0
  36. data/{client/docs → docs}/EditDocumentApi.md +605 -0
  37. data/docs/ExifValue.md +10 -0
  38. data/{client/docs → docs}/FinishEditingRequest.md +0 -0
  39. data/docs/GetDocxBodyRequest.md +9 -0
  40. data/docs/GetDocxBodyResponse.md +9 -0
  41. data/{client/docs → docs}/GetDocxHeadersAndFootersRequest.md +0 -0
  42. data/{client/docs → docs}/GetDocxHeadersAndFootersResponse.md +0 -0
  43. data/docs/GetDocxImagesRequest.md +9 -0
  44. data/docs/GetDocxImagesResponse.md +9 -0
  45. data/docs/GetDocxSectionsRequest.md +9 -0
  46. data/docs/GetDocxSectionsResponse.md +9 -0
  47. data/{client/docs → docs}/GetDocxStylesRequest.md +0 -0
  48. data/{client/docs → docs}/GetDocxStylesResponse.md +0 -0
  49. data/{client/docs → docs}/GetDocxTablesRequest.md +0 -0
  50. data/{client/docs → docs}/GetDocxTablesResponse.md +0 -0
  51. data/docs/GetImageInfoResult.md +24 -0
  52. data/docs/GetXlsxColumnsRequest.md +10 -0
  53. data/docs/GetXlsxColumnsResponse.md +9 -0
  54. data/docs/GetXlsxImagesRequest.md +10 -0
  55. data/docs/GetXlsxImagesResponse.md +9 -0
  56. data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
  57. data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
  58. data/docs/GetXlsxStylesRequest.md +9 -0
  59. data/docs/GetXlsxStylesResponse.md +9 -0
  60. data/docs/GetXlsxWorksheetsRequest.md +9 -0
  61. data/docs/GetXlsxWorksheetsResponse.md +9 -0
  62. data/{client/docs → docs}/HtmlMdResult.md +0 -0
  63. data/{client/docs → docs}/HtmlTemplateApplicationRequest.md +0 -0
  64. data/{client/docs → docs}/HtmlTemplateApplicationResponse.md +0 -0
  65. data/{client/docs → docs}/HtmlTemplateOperation.md +0 -0
  66. data/{client/docs → docs}/HtmlToOfficeRequest.md +0 -0
  67. data/{client/docs → docs}/HtmlToPdfRequest.md +0 -0
  68. data/docs/InsertDocxInsertParagraphRequest.md +12 -0
  69. data/docs/InsertDocxInsertParagraphResponse.md +9 -0
  70. data/docs/InsertDocxTablesRequest.md +12 -0
  71. data/{client/docs → docs}/InsertDocxTablesResponse.md +0 -0
  72. data/docs/InsertXlsxWorksheetRequest.md +10 -0
  73. data/docs/InsertXlsxWorksheetResponse.md +9 -0
  74. data/{client/docs → docs}/MergeDocumentApi.md +0 -0
  75. data/{client/docs → docs}/PdfToPngResult.md +0 -0
  76. data/{client/docs → docs}/RemoveDocxHeadersAndFootersRequest.md +0 -0
  77. data/{client/docs → docs}/RemoveDocxHeadersAndFootersResponse.md +0 -0
  78. data/{client/docs → docs}/ReplaceStringRequest.md +0 -0
  79. data/{client/docs → docs}/ScreenshotRequest.md +0 -0
  80. data/{client/docs → docs}/ValidateDocumentApi.md +0 -0
  81. data/{client/docs → docs}/ViewerResponse.md +0 -0
  82. data/{client/docs → docs}/ViewerToolsApi.md +0 -0
  83. data/docs/XlsxImage.md +12 -0
  84. data/docs/XlsxSpreadsheetCell.md +12 -0
  85. data/docs/XlsxSpreadsheetColumn.md +9 -0
  86. data/docs/XlsxSpreadsheetRow.md +9 -0
  87. data/docs/XlsxWorksheet.md +9 -0
  88. data/{client/git_push.sh → git_push.sh} +0 -0
  89. data/{client/lib → lib}/cloudmersive-convert-api-client.rb +32 -0
  90. data/{client/lib → lib}/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -0
  91. data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -0
  92. data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -0
  93. data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_image_api.rb +118 -0
  94. data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -0
  95. data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -0
  96. data/{client/lib → lib}/cloudmersive-convert-api-client/api/edit_document_api.rb +605 -0
  97. data/{client/lib → lib}/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -0
  98. data/{client/lib → lib}/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -0
  99. data/{client/lib → lib}/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -0
  100. data/{client/lib → lib}/cloudmersive-convert-api-client/api_client.rb +0 -0
  101. data/{client/lib → lib}/cloudmersive-convert-api-client/api_error.rb +0 -0
  102. data/{client/lib → lib}/cloudmersive-convert-api-client/configuration.rb +0 -0
  103. data/{client/lib → lib}/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -0
  104. data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -0
  105. data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -0
  106. data/lib/cloudmersive-convert-api-client/models/docx_body.rb +213 -0
  107. data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +219 -0
  108. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_footer.rb +11 -1
  109. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_header.rb +11 -1
  110. data/lib/cloudmersive-convert-api-client/models/docx_image.rb +309 -0
  111. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +27 -17
  112. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -0
  113. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_paragraph.rb +11 -1
  114. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +225 -0
  115. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +199 -0
  116. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_run.rb +11 -1
  117. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_section.rb +14 -4
  118. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -0
  119. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -0
  120. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -0
  121. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -0
  122. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_style.rb +11 -1
  123. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table.rb +12 -2
  124. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_cell.rb +11 -1
  125. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_row.rb +11 -1
  126. data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_text.rb +11 -1
  127. data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
  128. data/{client/lib → lib}/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -0
  129. data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +215 -0
  130. data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +199 -0
  131. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -0
  132. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -0
  133. data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +215 -0
  134. data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +201 -0
  135. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +215 -0
  136. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +201 -0
  137. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -0
  138. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -0
  139. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -0
  140. data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -0
  141. data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +350 -0
  142. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +225 -0
  143. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +201 -0
  144. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +225 -0
  145. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +201 -0
  146. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +225 -0
  147. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +201 -0
  148. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +215 -0
  149. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +201 -0
  150. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +215 -0
  151. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +201 -0
  152. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_md_result.rb +0 -0
  153. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -0
  154. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -0
  155. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -0
  156. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -0
  157. data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -0
  158. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +245 -0
  159. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +199 -0
  160. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +245 -0
  161. data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -0
  162. data/{client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb → lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb} +10 -10
  163. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +199 -0
  164. data/{client/lib → lib}/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -0
  165. data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -0
  166. data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -0
  167. data/{client/lib → lib}/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -0
  168. data/{client/lib → lib}/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -0
  169. data/{client/lib → lib}/cloudmersive-convert-api-client/models/viewer_response.rb +0 -0
  170. data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +229 -0
  171. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +228 -0
  172. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +199 -0
  173. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +201 -0
  174. data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +199 -0
  175. data/{client/lib → lib}/cloudmersive-convert-api-client/version.rb +1 -1
  176. data/{client/spec → spec}/api/compare_document_api_spec.rb +0 -0
  177. data/{client/spec → spec}/api/convert_data_api_spec.rb +0 -0
  178. data/{client/spec → spec}/api/convert_document_api_spec.rb +0 -0
  179. data/{client/spec → spec}/api/convert_image_api_spec.rb +25 -0
  180. data/{client/spec → spec}/api/convert_template_api_spec.rb +0 -0
  181. data/{client/spec → spec}/api/convert_web_api_spec.rb +0 -0
  182. data/{client/spec → spec}/api/edit_document_api_spec.rb +132 -0
  183. data/{client/spec → spec}/api/merge_document_api_spec.rb +0 -0
  184. data/{client/spec → spec}/api/validate_document_api_spec.rb +0 -0
  185. data/{client/spec → spec}/api/viewer_tools_api_spec.rb +0 -0
  186. data/{client/spec → spec}/api_client_spec.rb +0 -0
  187. data/{client/spec → spec}/configuration_spec.rb +0 -0
  188. data/{client/spec → spec}/models/converted_png_page_spec.rb +0 -0
  189. data/{client/spec → spec}/models/document_validation_error_spec.rb +0 -0
  190. data/{client/spec → spec}/models/document_validation_result_spec.rb +0 -0
  191. data/spec/models/docx_body_spec.rb +54 -0
  192. data/spec/models/docx_cell_style_spec.rb +60 -0
  193. data/{client/spec → spec}/models/docx_footer_spec.rb +6 -0
  194. data/{client/spec → spec}/models/docx_header_spec.rb +6 -0
  195. data/spec/models/docx_image_spec.rb +114 -0
  196. data/{client/spec → spec}/models/docx_insert_image_request_spec.rb +8 -2
  197. data/{client/spec → spec}/models/docx_insert_image_response_spec.rb +0 -0
  198. data/{client/spec → spec}/models/docx_paragraph_spec.rb +6 -0
  199. data/spec/models/docx_remove_object_request_spec.rb +54 -0
  200. data/spec/models/docx_remove_object_response_spec.rb +48 -0
  201. data/{client/spec → spec}/models/docx_run_spec.rb +6 -0
  202. data/{client/spec → spec}/models/docx_section_spec.rb +6 -0
  203. data/{client/spec → spec}/models/docx_set_footer_request_spec.rb +0 -0
  204. data/{client/spec → spec}/models/docx_set_footer_response_spec.rb +0 -0
  205. data/{client/spec → spec}/models/docx_set_header_request_spec.rb +0 -0
  206. data/{client/spec → spec}/models/docx_set_header_response_spec.rb +0 -0
  207. data/{client/spec → spec}/models/docx_style_spec.rb +6 -0
  208. data/{client/spec → spec}/models/docx_table_cell_spec.rb +6 -0
  209. data/{client/spec → spec}/models/docx_table_row_spec.rb +6 -0
  210. data/{client/spec → spec}/models/docx_table_spec.rb +6 -0
  211. data/{client/spec → spec}/models/docx_text_spec.rb +6 -0
  212. data/spec/models/exif_value_spec.rb +54 -0
  213. data/{client/spec → spec}/models/finish_editing_request_spec.rb +0 -0
  214. data/spec/models/get_docx_body_request_spec.rb +48 -0
  215. data/spec/models/get_docx_body_response_spec.rb +48 -0
  216. data/{client/spec → spec}/models/get_docx_headers_and_footers_request_spec.rb +0 -0
  217. data/{client/spec → spec}/models/get_docx_headers_and_footers_response_spec.rb +0 -0
  218. data/spec/models/get_docx_images_request_spec.rb +48 -0
  219. data/spec/models/get_docx_images_response_spec.rb +48 -0
  220. data/spec/models/get_docx_sections_request_spec.rb +48 -0
  221. data/spec/models/get_docx_sections_response_spec.rb +48 -0
  222. data/{client/spec → spec}/models/get_docx_styles_request_spec.rb +0 -0
  223. data/{client/spec → spec}/models/get_docx_styles_response_spec.rb +0 -0
  224. data/{client/spec → spec}/models/get_docx_tables_request_spec.rb +0 -0
  225. data/{client/spec → spec}/models/get_docx_tables_response_spec.rb +0 -0
  226. data/spec/models/get_image_info_result_spec.rb +138 -0
  227. data/spec/models/get_xlsx_columns_request_spec.rb +54 -0
  228. data/spec/models/get_xlsx_columns_response_spec.rb +48 -0
  229. data/spec/models/get_xlsx_images_request_spec.rb +54 -0
  230. data/spec/models/get_xlsx_images_response_spec.rb +48 -0
  231. data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +54 -0
  232. data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +48 -0
  233. data/spec/models/get_xlsx_styles_request_spec.rb +48 -0
  234. data/spec/models/get_xlsx_styles_response_spec.rb +48 -0
  235. data/spec/models/get_xlsx_worksheets_request_spec.rb +48 -0
  236. data/spec/models/get_xlsx_worksheets_response_spec.rb +48 -0
  237. data/{client/spec → spec}/models/html_md_result_spec.rb +0 -0
  238. data/{client/spec → spec}/models/html_template_application_request_spec.rb +0 -0
  239. data/{client/spec → spec}/models/html_template_application_response_spec.rb +0 -0
  240. data/{client/spec → spec}/models/html_template_operation_spec.rb +0 -0
  241. data/{client/spec → spec}/models/html_to_office_request_spec.rb +0 -0
  242. data/{client/spec → spec}/models/html_to_pdf_request_spec.rb +0 -0
  243. data/spec/models/insert_docx_insert_paragraph_request_spec.rb +66 -0
  244. data/spec/models/insert_docx_insert_paragraph_response_spec.rb +48 -0
  245. data/{client/spec → spec}/models/insert_docx_tables_request_spec.rb +12 -0
  246. data/{client/spec → spec}/models/insert_docx_tables_response_spec.rb +0 -0
  247. data/spec/models/insert_xlsx_worksheet_request_spec.rb +54 -0
  248. data/spec/models/insert_xlsx_worksheet_response_spec.rb +48 -0
  249. data/{client/spec → spec}/models/pdf_to_png_result_spec.rb +0 -0
  250. data/{client/spec → spec}/models/remove_docx_headers_and_footers_request_spec.rb +0 -0
  251. data/{client/spec → spec}/models/remove_docx_headers_and_footers_response_spec.rb +0 -0
  252. data/{client/spec → spec}/models/replace_string_request_spec.rb +0 -0
  253. data/{client/spec → spec}/models/screenshot_request_spec.rb +0 -0
  254. data/{client/spec → spec}/models/viewer_response_spec.rb +0 -0
  255. data/spec/models/xlsx_image_spec.rb +66 -0
  256. data/spec/models/xlsx_spreadsheet_cell_spec.rb +66 -0
  257. data/spec/models/xlsx_spreadsheet_column_spec.rb +48 -0
  258. data/spec/models/xlsx_spreadsheet_row_spec.rb +48 -0
  259. data/spec/models/xlsx_worksheet_spec.rb +48 -0
  260. data/{client/spec → spec}/spec_helper.rb +0 -0
  261. metadata +261 -171
  262. data/LICENSE +0 -201
  263. data/build.ps1 +0 -12
  264. data/client/docs/DocxInsertImageRequest.md +0 -13
  265. data/client/docs/InsertDocxTablesRequest.md +0 -10
  266. data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
  267. data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
  268. data/packageconfig.json +0 -11
  269. data/swagger-codegen-cli.jar +0 -0
@@ -0,0 +1,213 @@
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: unset
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+
17
+ class DocxBody
18
+ # The Path of the location of this object; leave blank for new tables
19
+ attr_accessor :path
20
+
21
+ # All paragraphs anywhere in the document; these objects are not sequentially placed but are scatted across document
22
+ attr_accessor :all_paragraphs
23
+
24
+ # All tables anywhere in the document; these objects are not sequentially placed but are scatted across the document
25
+ attr_accessor :all_tables
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'path' => :'Path',
32
+ :'all_paragraphs' => :'AllParagraphs',
33
+ :'all_tables' => :'AllTables'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'path' => :'String',
41
+ :'all_paragraphs' => :'Array<DocxParagraph>',
42
+ :'all_tables' => :'Array<DocxTable>'
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?(:'Path')
55
+ self.path = attributes[:'Path']
56
+ end
57
+
58
+ if attributes.has_key?(:'AllParagraphs')
59
+ if (value = attributes[:'AllParagraphs']).is_a?(Array)
60
+ self.all_paragraphs = value
61
+ end
62
+ end
63
+
64
+ if attributes.has_key?(:'AllTables')
65
+ if (value = attributes[:'AllTables']).is_a?(Array)
66
+ self.all_tables = value
67
+ end
68
+ end
69
+
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ return invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ return true
83
+ end
84
+
85
+ # Checks equality by comparing each attribute.
86
+ # @param [Object] Object to be compared
87
+ def ==(o)
88
+ return true if self.equal?(o)
89
+ self.class == o.class &&
90
+ path == o.path &&
91
+ all_paragraphs == o.all_paragraphs &&
92
+ all_tables == o.all_tables
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Fixnum] Hash code
103
+ def hash
104
+ [path, all_paragraphs, all_tables].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ self.class.swagger_types.each_pair do |key, type|
113
+ if type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :DateTime
134
+ DateTime.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :BOOLEAN
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
165
+ temp_model.build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ next if value.nil?
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Outputs non-array value in the form of hash
194
+ # For object, use to_hash. Otherwise, just return the value
195
+ # @param [Object] value Any valid value
196
+ # @return [Hash] Returns the value in the form of hash
197
+ def _to_hash(value)
198
+ if value.is_a?(Array)
199
+ value.compact.map{ |v| _to_hash(v) }
200
+ elsif value.is_a?(Hash)
201
+ {}.tap do |hash|
202
+ value.each { |k, v| hash[k] = _to_hash(v) }
203
+ end
204
+ elsif value.respond_to? :to_hash
205
+ value.to_hash
206
+ else
207
+ value
208
+ end
209
+ end
210
+
211
+ end
212
+
213
+ end
@@ -0,0 +1,219 @@
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: unset
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Style in an Excel spreadsheet
17
+ class DocxCellStyle
18
+ # The Path of the location of this object; leave blank for new rows
19
+ attr_accessor :path
20
+
21
+ # Name of the style
22
+ attr_accessor :name
23
+
24
+ # Format ID of the cell style
25
+ attr_accessor :format_id
26
+
27
+ # Built=in ID of the cell style
28
+ attr_accessor :built_in_id
29
+
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'path' => :'Path',
35
+ :'name' => :'Name',
36
+ :'format_id' => :'FormatID',
37
+ :'built_in_id' => :'BuiltInID'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'path' => :'String',
45
+ :'name' => :'String',
46
+ :'format_id' => :'Integer',
47
+ :'built_in_id' => :'Integer'
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?(:'Path')
60
+ self.path = attributes[:'Path']
61
+ end
62
+
63
+ if attributes.has_key?(:'Name')
64
+ self.name = attributes[:'Name']
65
+ end
66
+
67
+ if attributes.has_key?(:'FormatID')
68
+ self.format_id = attributes[:'FormatID']
69
+ end
70
+
71
+ if attributes.has_key?(:'BuiltInID')
72
+ self.built_in_id = attributes[:'BuiltInID']
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
+ return invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ path == o.path &&
96
+ name == o.name &&
97
+ format_id == o.format_id &&
98
+ built_in_id == o.built_in_id
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Fixnum] Hash code
109
+ def hash
110
+ [path, name, format_id, built_in_id].hash
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ self.class.swagger_types.each_pair do |key, type|
119
+ if type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
124
+ end
125
+ elsif !attributes[self.class.attribute_map[key]].nil?
126
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
128
+ end
129
+
130
+ self
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def _deserialize(type, value)
138
+ case type.to_sym
139
+ when :DateTime
140
+ DateTime.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :BOOLEAN
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
171
+ temp_model.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ next if value.nil?
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map{ |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end