words_ruby_sdk 18.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. checksums.yaml +7 -0
  2. data/lib/words_ruby_sdk.rb +225 -0
  3. data/lib/words_ruby_sdk/api/words_api.rb +10654 -0
  4. data/lib/words_ruby_sdk/api_client.rb +403 -0
  5. data/lib/words_ruby_sdk/api_error.rb +54 -0
  6. data/lib/words_ruby_sdk/configuration.rb +203 -0
  7. data/lib/words_ruby_sdk/models/aspose_response.rb +222 -0
  8. data/lib/words_ruby_sdk/models/bmp_save_options_data.rb +477 -0
  9. data/lib/words_ruby_sdk/models/bookmark.rb +227 -0
  10. data/lib/words_ruby_sdk/models/bookmark_data.rb +217 -0
  11. data/lib/words_ruby_sdk/models/bookmark_response.rb +232 -0
  12. data/lib/words_ruby_sdk/models/bookmarks.rb +219 -0
  13. data/lib/words_ruby_sdk/models/bookmarks_outline_level_data.rb +222 -0
  14. data/lib/words_ruby_sdk/models/bookmarks_response.rb +232 -0
  15. data/lib/words_ruby_sdk/models/border.rb +320 -0
  16. data/lib/words_ruby_sdk/models/border_response.rb +232 -0
  17. data/lib/words_ruby_sdk/models/borders_collection.rb +219 -0
  18. data/lib/words_ruby_sdk/models/borders_response.rb +232 -0
  19. data/lib/words_ruby_sdk/models/classification_response.rb +254 -0
  20. data/lib/words_ruby_sdk/models/classification_result.rb +222 -0
  21. data/lib/words_ruby_sdk/models/comment.rb +277 -0
  22. data/lib/words_ruby_sdk/models/comment_link.rb +207 -0
  23. data/lib/words_ruby_sdk/models/comment_response.rb +232 -0
  24. data/lib/words_ruby_sdk/models/comments_collection.rb +219 -0
  25. data/lib/words_ruby_sdk/models/comments_response.rb +232 -0
  26. data/lib/words_ruby_sdk/models/compare_data.rb +227 -0
  27. data/lib/words_ruby_sdk/models/doc_save_options_data.rb +307 -0
  28. data/lib/words_ruby_sdk/models/document.rb +311 -0
  29. data/lib/words_ruby_sdk/models/document_entry.rb +217 -0
  30. data/lib/words_ruby_sdk/models/document_entry_list.rb +209 -0
  31. data/lib/words_ruby_sdk/models/document_position.rb +217 -0
  32. data/lib/words_ruby_sdk/models/document_properties.rb +219 -0
  33. data/lib/words_ruby_sdk/models/document_properties_response.rb +232 -0
  34. data/lib/words_ruby_sdk/models/document_property.rb +237 -0
  35. data/lib/words_ruby_sdk/models/document_property_response.rb +232 -0
  36. data/lib/words_ruby_sdk/models/document_response.rb +232 -0
  37. data/lib/words_ruby_sdk/models/document_stat_data.rb +264 -0
  38. data/lib/words_ruby_sdk/models/downsample_options_data.rb +227 -0
  39. data/lib/words_ruby_sdk/models/drawing_object.rb +388 -0
  40. data/lib/words_ruby_sdk/models/drawing_object_collection.rb +219 -0
  41. data/lib/words_ruby_sdk/models/drawing_object_link.rb +217 -0
  42. data/lib/words_ruby_sdk/models/drawing_object_response.rb +232 -0
  43. data/lib/words_ruby_sdk/models/drawing_objects_response.rb +232 -0
  44. data/lib/words_ruby_sdk/models/emf_save_options_data.rb +477 -0
  45. data/lib/words_ruby_sdk/models/epub_save_options_data.rb +746 -0
  46. data/lib/words_ruby_sdk/models/field.rb +247 -0
  47. data/lib/words_ruby_sdk/models/field_collection.rb +219 -0
  48. data/lib/words_ruby_sdk/models/field_link.rb +227 -0
  49. data/lib/words_ruby_sdk/models/field_names.rb +219 -0
  50. data/lib/words_ruby_sdk/models/field_names_response.rb +232 -0
  51. data/lib/words_ruby_sdk/models/field_response.rb +232 -0
  52. data/lib/words_ruby_sdk/models/fields_response.rb +232 -0
  53. data/lib/words_ruby_sdk/models/file_link.rb +237 -0
  54. data/lib/words_ruby_sdk/models/fixed_page_save_options_data.rb +347 -0
  55. data/lib/words_ruby_sdk/models/font.rb +676 -0
  56. data/lib/words_ruby_sdk/models/font_response.rb +232 -0
  57. data/lib/words_ruby_sdk/models/footnote.rb +304 -0
  58. data/lib/words_ruby_sdk/models/footnote_collection.rb +219 -0
  59. data/lib/words_ruby_sdk/models/footnote_link.rb +217 -0
  60. data/lib/words_ruby_sdk/models/footnote_response.rb +232 -0
  61. data/lib/words_ruby_sdk/models/footnotes_response.rb +232 -0
  62. data/lib/words_ruby_sdk/models/footnotes_stat_data.rb +227 -0
  63. data/lib/words_ruby_sdk/models/form_field.rb +307 -0
  64. data/lib/words_ruby_sdk/models/form_field_checkbox.rb +337 -0
  65. data/lib/words_ruby_sdk/models/form_field_collection.rb +219 -0
  66. data/lib/words_ruby_sdk/models/form_field_drop_down.rb +329 -0
  67. data/lib/words_ruby_sdk/models/form_field_response.rb +232 -0
  68. data/lib/words_ruby_sdk/models/form_field_text_input.rb +384 -0
  69. data/lib/words_ruby_sdk/models/form_fields_response.rb +232 -0
  70. data/lib/words_ruby_sdk/models/gif_save_options_data.rb +477 -0
  71. data/lib/words_ruby_sdk/models/graphics_quality_options_data.rb +358 -0
  72. data/lib/words_ruby_sdk/models/header_footer.rb +274 -0
  73. data/lib/words_ruby_sdk/models/header_footer_link.rb +254 -0
  74. data/lib/words_ruby_sdk/models/header_footer_link_collection.rb +219 -0
  75. data/lib/words_ruby_sdk/models/header_footer_response.rb +232 -0
  76. data/lib/words_ruby_sdk/models/header_footers_response.rb +232 -0
  77. data/lib/words_ruby_sdk/models/html_fixed_save_options_data.rb +467 -0
  78. data/lib/words_ruby_sdk/models/html_save_options_data.rb +736 -0
  79. data/lib/words_ruby_sdk/models/hyperlink.rb +227 -0
  80. data/lib/words_ruby_sdk/models/hyperlink_response.rb +232 -0
  81. data/lib/words_ruby_sdk/models/hyperlinks.rb +219 -0
  82. data/lib/words_ruby_sdk/models/hyperlinks_response.rb +232 -0
  83. data/lib/words_ruby_sdk/models/image_save_options_data.rb +477 -0
  84. data/lib/words_ruby_sdk/models/jpeg_save_options_data.rb +477 -0
  85. data/lib/words_ruby_sdk/models/link.rb +237 -0
  86. data/lib/words_ruby_sdk/models/link_element.rb +207 -0
  87. data/lib/words_ruby_sdk/models/load_web_document_data.rb +217 -0
  88. data/lib/words_ruby_sdk/models/metafile_rendering_options_data.rb +227 -0
  89. data/lib/words_ruby_sdk/models/mhtml_save_options_data.rb +736 -0
  90. data/lib/words_ruby_sdk/models/modification_operation_result.rb +217 -0
  91. data/lib/words_ruby_sdk/models/node_link.rb +217 -0
  92. data/lib/words_ruby_sdk/models/odt_save_options_data.rb +354 -0
  93. data/lib/words_ruby_sdk/models/office_math_link.rb +217 -0
  94. data/lib/words_ruby_sdk/models/office_math_object.rb +326 -0
  95. data/lib/words_ruby_sdk/models/office_math_object_response.rb +232 -0
  96. data/lib/words_ruby_sdk/models/office_math_objects_collection.rb +219 -0
  97. data/lib/words_ruby_sdk/models/office_math_objects_response.rb +232 -0
  98. data/lib/words_ruby_sdk/models/ooxml_save_options_data.rb +317 -0
  99. data/lib/words_ruby_sdk/models/outline_options_data.rb +239 -0
  100. data/lib/words_ruby_sdk/models/page_number.rb +247 -0
  101. data/lib/words_ruby_sdk/models/page_setup.rb +646 -0
  102. data/lib/words_ruby_sdk/models/page_stat_data.rb +252 -0
  103. data/lib/words_ruby_sdk/models/paragraph.rb +229 -0
  104. data/lib/words_ruby_sdk/models/paragraph_insert.rb +207 -0
  105. data/lib/words_ruby_sdk/models/paragraph_link.rb +227 -0
  106. data/lib/words_ruby_sdk/models/paragraph_link_collection.rb +219 -0
  107. data/lib/words_ruby_sdk/models/paragraph_link_collection_response.rb +232 -0
  108. data/lib/words_ruby_sdk/models/paragraph_response.rb +232 -0
  109. data/lib/words_ruby_sdk/models/pcl_save_options_data.rb +367 -0
  110. data/lib/words_ruby_sdk/models/pdf_digital_signature_details_data.rb +247 -0
  111. data/lib/words_ruby_sdk/models/pdf_encryption_details_data.rb +237 -0
  112. data/lib/words_ruby_sdk/models/pdf_save_options_data.rb +567 -0
  113. data/lib/words_ruby_sdk/models/png_save_options_data.rb +477 -0
  114. data/lib/words_ruby_sdk/models/preferred_width.rb +259 -0
  115. data/lib/words_ruby_sdk/models/protection_data.rb +207 -0
  116. data/lib/words_ruby_sdk/models/protection_data_response.rb +242 -0
  117. data/lib/words_ruby_sdk/models/protection_request.rb +227 -0
  118. data/lib/words_ruby_sdk/models/protection_response.rb +242 -0
  119. data/lib/words_ruby_sdk/models/ps_save_options_data.rb +357 -0
  120. data/lib/words_ruby_sdk/models/replace_text_request.rb +262 -0
  121. data/lib/words_ruby_sdk/models/replace_text_response.rb +242 -0
  122. data/lib/words_ruby_sdk/models/requests/AcceptAllRevisionsRequest.rb +65 -0
  123. data/lib/words_ruby_sdk/models/requests/ClassifyDocumentRequest.rb +65 -0
  124. data/lib/words_ruby_sdk/models/requests/ClassifyRequest.rb +49 -0
  125. data/lib/words_ruby_sdk/models/requests/CreateOrUpdateDocumentPropertyRequest.rb +81 -0
  126. data/lib/words_ruby_sdk/models/requests/DeleteBorderRequest.rb +81 -0
  127. data/lib/words_ruby_sdk/models/requests/DeleteBordersRequest.rb +77 -0
  128. data/lib/words_ruby_sdk/models/requests/DeleteCommentRequest.rb +77 -0
  129. data/lib/words_ruby_sdk/models/requests/DeleteDocumentMacrosRequest.rb +73 -0
  130. data/lib/words_ruby_sdk/models/requests/DeleteDocumentPropertyRequest.rb +77 -0
  131. data/lib/words_ruby_sdk/models/requests/DeleteDocumentWatermarkRequest.rb +73 -0
  132. data/lib/words_ruby_sdk/models/requests/DeleteDrawingObjectRequest.rb +81 -0
  133. data/lib/words_ruby_sdk/models/requests/DeleteFieldRequest.rb +81 -0
  134. data/lib/words_ruby_sdk/models/requests/DeleteFieldsRequest.rb +77 -0
  135. data/lib/words_ruby_sdk/models/requests/DeleteFootnoteRequest.rb +81 -0
  136. data/lib/words_ruby_sdk/models/requests/DeleteFormFieldRequest.rb +81 -0
  137. data/lib/words_ruby_sdk/models/requests/DeleteHeaderFooterRequest.rb +81 -0
  138. data/lib/words_ruby_sdk/models/requests/DeleteHeadersFootersRequest.rb +81 -0
  139. data/lib/words_ruby_sdk/models/requests/DeleteOfficeMathObjectRequest.rb +81 -0
  140. data/lib/words_ruby_sdk/models/requests/DeleteParagraphRequest.rb +81 -0
  141. data/lib/words_ruby_sdk/models/requests/DeleteRunRequest.rb +81 -0
  142. data/lib/words_ruby_sdk/models/requests/DeleteTableCellRequest.rb +81 -0
  143. data/lib/words_ruby_sdk/models/requests/DeleteTableRequest.rb +81 -0
  144. data/lib/words_ruby_sdk/models/requests/DeleteTableRowRequest.rb +81 -0
  145. data/lib/words_ruby_sdk/models/requests/DeleteUnprotectDocumentRequest.rb +69 -0
  146. data/lib/words_ruby_sdk/models/requests/GetBorderRequest.rb +69 -0
  147. data/lib/words_ruby_sdk/models/requests/GetBordersRequest.rb +65 -0
  148. data/lib/words_ruby_sdk/models/requests/GetCommentRequest.rb +65 -0
  149. data/lib/words_ruby_sdk/models/requests/GetCommentsRequest.rb +61 -0
  150. data/lib/words_ruby_sdk/models/requests/GetDocumentBookmarkByNameRequest.rb +65 -0
  151. data/lib/words_ruby_sdk/models/requests/GetDocumentBookmarksRequest.rb +61 -0
  152. data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectByIndexRequest.rb +69 -0
  153. data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectImageDataRequest.rb +69 -0
  154. data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectOleDataRequest.rb +69 -0
  155. data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectsRequest.rb +65 -0
  156. data/lib/words_ruby_sdk/models/requests/GetDocumentFieldNamesRequest.rb +65 -0
  157. data/lib/words_ruby_sdk/models/requests/GetDocumentHyperlinkByIndexRequest.rb +65 -0
  158. data/lib/words_ruby_sdk/models/requests/GetDocumentHyperlinksRequest.rb +61 -0
  159. data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRequest.rb +69 -0
  160. data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunFontRequest.rb +69 -0
  161. data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunRequest.rb +69 -0
  162. data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunsRequest.rb +65 -0
  163. data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphsRequest.rb +65 -0
  164. data/lib/words_ruby_sdk/models/requests/GetDocumentPropertiesRequest.rb +61 -0
  165. data/lib/words_ruby_sdk/models/requests/GetDocumentPropertyRequest.rb +65 -0
  166. data/lib/words_ruby_sdk/models/requests/GetDocumentProtectionRequest.rb +61 -0
  167. data/lib/words_ruby_sdk/models/requests/GetDocumentRequest.rb +61 -0
  168. data/lib/words_ruby_sdk/models/requests/GetDocumentStatisticsRequest.rb +73 -0
  169. data/lib/words_ruby_sdk/models/requests/GetDocumentTextItemsRequest.rb +61 -0
  170. data/lib/words_ruby_sdk/models/requests/GetDocumentWithFormatRequest.rb +73 -0
  171. data/lib/words_ruby_sdk/models/requests/GetFieldRequest.rb +69 -0
  172. data/lib/words_ruby_sdk/models/requests/GetFieldsRequest.rb +65 -0
  173. data/lib/words_ruby_sdk/models/requests/GetFootnoteRequest.rb +69 -0
  174. data/lib/words_ruby_sdk/models/requests/GetFootnotesRequest.rb +65 -0
  175. data/lib/words_ruby_sdk/models/requests/GetFormFieldRequest.rb +69 -0
  176. data/lib/words_ruby_sdk/models/requests/GetFormFieldsRequest.rb +65 -0
  177. data/lib/words_ruby_sdk/models/requests/GetHeaderFooterOfSectionRequest.rb +73 -0
  178. data/lib/words_ruby_sdk/models/requests/GetHeaderFooterRequest.rb +69 -0
  179. data/lib/words_ruby_sdk/models/requests/GetHeaderFootersRequest.rb +69 -0
  180. data/lib/words_ruby_sdk/models/requests/GetOfficeMathObjectRequest.rb +69 -0
  181. data/lib/words_ruby_sdk/models/requests/GetOfficeMathObjectsRequest.rb +65 -0
  182. data/lib/words_ruby_sdk/models/requests/GetSectionPageSetupRequest.rb +65 -0
  183. data/lib/words_ruby_sdk/models/requests/GetSectionRequest.rb +65 -0
  184. data/lib/words_ruby_sdk/models/requests/GetSectionsRequest.rb +61 -0
  185. data/lib/words_ruby_sdk/models/requests/GetTableCellFormatRequest.rb +69 -0
  186. data/lib/words_ruby_sdk/models/requests/GetTableCellRequest.rb +69 -0
  187. data/lib/words_ruby_sdk/models/requests/GetTablePropertiesRequest.rb +69 -0
  188. data/lib/words_ruby_sdk/models/requests/GetTableRequest.rb +69 -0
  189. data/lib/words_ruby_sdk/models/requests/GetTableRowFormatRequest.rb +69 -0
  190. data/lib/words_ruby_sdk/models/requests/GetTableRowRequest.rb +69 -0
  191. data/lib/words_ruby_sdk/models/requests/GetTablesRequest.rb +65 -0
  192. data/lib/words_ruby_sdk/models/requests/InsertTableCellRequest.rb +81 -0
  193. data/lib/words_ruby_sdk/models/requests/InsertTableRequest.rb +81 -0
  194. data/lib/words_ruby_sdk/models/requests/InsertTableRowRequest.rb +81 -0
  195. data/lib/words_ruby_sdk/models/requests/PostAppendDocumentRequest.rb +77 -0
  196. data/lib/words_ruby_sdk/models/requests/PostChangeDocumentProtectionRequest.rb +69 -0
  197. data/lib/words_ruby_sdk/models/requests/PostCommentRequest.rb +81 -0
  198. data/lib/words_ruby_sdk/models/requests/PostCompareDocumentRequest.rb +69 -0
  199. data/lib/words_ruby_sdk/models/requests/PostDocumentExecuteMailMergeRequest.rb +85 -0
  200. data/lib/words_ruby_sdk/models/requests/PostDocumentParagraphRunFontRequest.rb +85 -0
  201. data/lib/words_ruby_sdk/models/requests/PostDocumentSaveAsRequest.rb +73 -0
  202. data/lib/words_ruby_sdk/models/requests/PostDrawingObjectRequest.rb +89 -0
  203. data/lib/words_ruby_sdk/models/requests/PostExecuteTemplateRequest.rb +81 -0
  204. data/lib/words_ruby_sdk/models/requests/PostFieldRequest.rb +85 -0
  205. data/lib/words_ruby_sdk/models/requests/PostFootnoteRequest.rb +85 -0
  206. data/lib/words_ruby_sdk/models/requests/PostFormFieldRequest.rb +85 -0
  207. data/lib/words_ruby_sdk/models/requests/PostInsertDocumentWatermarkImageRequest.rb +85 -0
  208. data/lib/words_ruby_sdk/models/requests/PostInsertDocumentWatermarkTextRequest.rb +77 -0
  209. data/lib/words_ruby_sdk/models/requests/PostInsertPageNumbersRequest.rb +77 -0
  210. data/lib/words_ruby_sdk/models/requests/PostLoadWebDocumentRequest.rb +49 -0
  211. data/lib/words_ruby_sdk/models/requests/PostReplaceTextRequest.rb +77 -0
  212. data/lib/words_ruby_sdk/models/requests/PostRunRequest.rb +85 -0
  213. data/lib/words_ruby_sdk/models/requests/PostSplitDocumentRequest.rb +85 -0
  214. data/lib/words_ruby_sdk/models/requests/PostUpdateDocumentBookmarkRequest.rb +81 -0
  215. data/lib/words_ruby_sdk/models/requests/PostUpdateDocumentFieldsRequest.rb +65 -0
  216. data/lib/words_ruby_sdk/models/requests/PutCommentRequest.rb +77 -0
  217. data/lib/words_ruby_sdk/models/requests/PutConvertDocumentRequest.rb +65 -0
  218. data/lib/words_ruby_sdk/models/requests/PutCreateDocumentRequest.rb +53 -0
  219. data/lib/words_ruby_sdk/models/requests/PutDocumentFieldNamesRequest.rb +49 -0
  220. data/lib/words_ruby_sdk/models/requests/PutDocumentSaveAsTiffRequest.rb +145 -0
  221. data/lib/words_ruby_sdk/models/requests/PutDrawingObjectRequest.rb +85 -0
  222. data/lib/words_ruby_sdk/models/requests/PutExecuteMailMergeOnlineRequest.rb +61 -0
  223. data/lib/words_ruby_sdk/models/requests/PutExecuteTemplateOnlineRequest.rb +65 -0
  224. data/lib/words_ruby_sdk/models/requests/PutFieldRequest.rb +85 -0
  225. data/lib/words_ruby_sdk/models/requests/PutFootnoteRequest.rb +81 -0
  226. data/lib/words_ruby_sdk/models/requests/PutFormFieldRequest.rb +85 -0
  227. data/lib/words_ruby_sdk/models/requests/PutHeaderFooterRequest.rb +81 -0
  228. data/lib/words_ruby_sdk/models/requests/PutParagraphRequest.rb +85 -0
  229. data/lib/words_ruby_sdk/models/requests/PutProtectDocumentRequest.rb +69 -0
  230. data/lib/words_ruby_sdk/models/requests/PutRunRequest.rb +85 -0
  231. data/lib/words_ruby_sdk/models/requests/RejectAllRevisionsRequest.rb +65 -0
  232. data/lib/words_ruby_sdk/models/requests/RenderDrawingObjectRequest.rb +77 -0
  233. data/lib/words_ruby_sdk/models/requests/RenderMathObjectRequest.rb +77 -0
  234. data/lib/words_ruby_sdk/models/requests/RenderPageRequest.rb +73 -0
  235. data/lib/words_ruby_sdk/models/requests/RenderParagraphRequest.rb +77 -0
  236. data/lib/words_ruby_sdk/models/requests/RenderTableRequest.rb +77 -0
  237. data/lib/words_ruby_sdk/models/requests/ResetCacheRequest.rb +36 -0
  238. data/lib/words_ruby_sdk/models/requests/SearchRequest.rb +65 -0
  239. data/lib/words_ruby_sdk/models/requests/UpdateBorderRequest.rb +85 -0
  240. data/lib/words_ruby_sdk/models/requests/UpdateSectionPageSetupRequest.rb +81 -0
  241. data/lib/words_ruby_sdk/models/requests/UpdateTableCellFormatRequest.rb +85 -0
  242. data/lib/words_ruby_sdk/models/requests/UpdateTablePropertiesRequest.rb +85 -0
  243. data/lib/words_ruby_sdk/models/requests/UpdateTableRowFormatRequest.rb +85 -0
  244. data/lib/words_ruby_sdk/models/revisions_modification_response.rb +232 -0
  245. data/lib/words_ruby_sdk/models/rtf_save_options_data.rb +317 -0
  246. data/lib/words_ruby_sdk/models/run.rb +227 -0
  247. data/lib/words_ruby_sdk/models/run_link.rb +227 -0
  248. data/lib/words_ruby_sdk/models/run_response.rb +232 -0
  249. data/lib/words_ruby_sdk/models/runs.rb +219 -0
  250. data/lib/words_ruby_sdk/models/runs_response.rb +232 -0
  251. data/lib/words_ruby_sdk/models/save_options_data.rb +287 -0
  252. data/lib/words_ruby_sdk/models/save_response.rb +232 -0
  253. data/lib/words_ruby_sdk/models/save_result.rb +229 -0
  254. data/lib/words_ruby_sdk/models/search_response.rb +242 -0
  255. data/lib/words_ruby_sdk/models/search_result.rb +217 -0
  256. data/lib/words_ruby_sdk/models/search_results_collection.rb +219 -0
  257. data/lib/words_ruby_sdk/models/section.rb +259 -0
  258. data/lib/words_ruby_sdk/models/section_link.rb +207 -0
  259. data/lib/words_ruby_sdk/models/section_link_collection.rb +219 -0
  260. data/lib/words_ruby_sdk/models/section_link_collection_response.rb +232 -0
  261. data/lib/words_ruby_sdk/models/section_page_setup_response.rb +232 -0
  262. data/lib/words_ruby_sdk/models/section_response.rb +232 -0
  263. data/lib/words_ruby_sdk/models/split_document_response.rb +232 -0
  264. data/lib/words_ruby_sdk/models/split_document_result.rb +229 -0
  265. data/lib/words_ruby_sdk/models/stat_data_response.rb +242 -0
  266. data/lib/words_ruby_sdk/models/story_child_nodes.rb +209 -0
  267. data/lib/words_ruby_sdk/models/string_format_data.rb +348 -0
  268. data/lib/words_ruby_sdk/models/svg_save_options_data.rb +407 -0
  269. data/lib/words_ruby_sdk/models/table.rb +239 -0
  270. data/lib/words_ruby_sdk/models/table_cell.rb +229 -0
  271. data/lib/words_ruby_sdk/models/table_cell_format.rb +412 -0
  272. data/lib/words_ruby_sdk/models/table_cell_format_response.rb +232 -0
  273. data/lib/words_ruby_sdk/models/table_cell_insert.rb +207 -0
  274. data/lib/words_ruby_sdk/models/table_cell_response.rb +232 -0
  275. data/lib/words_ruby_sdk/models/table_insert.rb +237 -0
  276. data/lib/words_ruby_sdk/models/table_link.rb +217 -0
  277. data/lib/words_ruby_sdk/models/table_link_collection.rb +219 -0
  278. data/lib/words_ruby_sdk/models/table_link_collection_response.rb +232 -0
  279. data/lib/words_ruby_sdk/models/table_properties.rb +432 -0
  280. data/lib/words_ruby_sdk/models/table_properties_response.rb +232 -0
  281. data/lib/words_ruby_sdk/models/table_response.rb +232 -0
  282. data/lib/words_ruby_sdk/models/table_row.rb +239 -0
  283. data/lib/words_ruby_sdk/models/table_row_format.rb +284 -0
  284. data/lib/words_ruby_sdk/models/table_row_format_response.rb +232 -0
  285. data/lib/words_ruby_sdk/models/table_row_insert.rb +222 -0
  286. data/lib/words_ruby_sdk/models/table_row_response.rb +232 -0
  287. data/lib/words_ruby_sdk/models/text_item.rb +217 -0
  288. data/lib/words_ruby_sdk/models/text_items.rb +219 -0
  289. data/lib/words_ruby_sdk/models/text_items_response.rb +232 -0
  290. data/lib/words_ruby_sdk/models/text_save_options_data.rb +347 -0
  291. data/lib/words_ruby_sdk/models/tiff_save_options_data.rb +497 -0
  292. data/lib/words_ruby_sdk/models/watermark_text.rb +222 -0
  293. data/lib/words_ruby_sdk/models/word_ml_save_options_data.rb +297 -0
  294. data/lib/words_ruby_sdk/models/words_api_error_response.rb +232 -0
  295. data/lib/words_ruby_sdk/models/words_api_link.rb +237 -0
  296. data/lib/words_ruby_sdk/models/xaml_fixed_save_options_data.rb +367 -0
  297. data/lib/words_ruby_sdk/models/xaml_flow_save_options_data.rb +307 -0
  298. data/lib/words_ruby_sdk/models/xml_color.rb +222 -0
  299. data/lib/words_ruby_sdk/models/xps_save_options_data.rb +387 -0
  300. data/lib/words_ruby_sdk/version.rb +29 -0
  301. metadata +412 -0
@@ -0,0 +1,85 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="UpdateBorderRequest.rb">
4
+ # Copyright (c) 2018 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module WordsRubySdk
29
+
30
+ #
31
+ # Request model for update_border operation.
32
+ #
33
+ class UpdateBorderRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Border properties
38
+ attr_accessor :border_properties
39
+ # Path to node with border(node should be cell or row).
40
+ attr_accessor :node_path
41
+ # Object's index
42
+ attr_accessor :index
43
+ # Original document folder.
44
+ attr_accessor :folder
45
+ # File storage, which have to be used.
46
+ attr_accessor :storage
47
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
48
+ attr_accessor :load_encoding
49
+ # Password for opening an encrypted document.
50
+ attr_accessor :password
51
+ # Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
52
+ attr_accessor :dest_file_name
53
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
54
+ attr_accessor :revision_author
55
+ # The date and time to use for revisions.
56
+ attr_accessor :revision_date_time
57
+
58
+ #
59
+ # Initializes a new instance.
60
+ # @param name The document name.
61
+ # @param border_properties Border properties
62
+ # @param node_path Path to node with border(node should be cell or row).
63
+ # @param index Object's index
64
+ # @param folder Original document folder.
65
+ # @param storage File storage, which have to be used.
66
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
67
+ # @param password Password for opening an encrypted document.
68
+ # @param dest_file_name Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
69
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
70
+ # @param revision_date_time The date and time to use for revisions.
71
+ def initialize(name, border_properties, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
72
+ self.name = name
73
+ self.border_properties = border_properties
74
+ self.node_path = node_path
75
+ self.index = index
76
+ self.folder = folder
77
+ self.storage = storage
78
+ self.load_encoding = load_encoding
79
+ self.password = password
80
+ self.dest_file_name = dest_file_name
81
+ self.revision_author = revision_author
82
+ self.revision_date_time = revision_date_time
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,81 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="UpdateSectionPageSetupRequest.rb">
4
+ # Copyright (c) 2018 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module WordsRubySdk
29
+
30
+ #
31
+ # Request model for update_section_page_setup operation.
32
+ #
33
+ class UpdateSectionPageSetupRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Section index
38
+ attr_accessor :section_index
39
+ # Page setup properties dto
40
+ attr_accessor :page_setup
41
+ # Original document folder.
42
+ attr_accessor :folder
43
+ # File storage, which have to be used.
44
+ attr_accessor :storage
45
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
46
+ attr_accessor :load_encoding
47
+ # Password for opening an encrypted document.
48
+ attr_accessor :password
49
+ # Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
50
+ attr_accessor :dest_file_name
51
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
52
+ attr_accessor :revision_author
53
+ # The date and time to use for revisions.
54
+ attr_accessor :revision_date_time
55
+
56
+ #
57
+ # Initializes a new instance.
58
+ # @param name The document name.
59
+ # @param section_index Section index
60
+ # @param page_setup Page setup properties dto
61
+ # @param folder Original document folder.
62
+ # @param storage File storage, which have to be used.
63
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
64
+ # @param password Password for opening an encrypted document.
65
+ # @param dest_file_name Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
66
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
67
+ # @param revision_date_time The date and time to use for revisions.
68
+ def initialize(name, section_index, page_setup, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
69
+ self.name = name
70
+ self.section_index = section_index
71
+ self.page_setup = page_setup
72
+ self.folder = folder
73
+ self.storage = storage
74
+ self.load_encoding = load_encoding
75
+ self.password = password
76
+ self.dest_file_name = dest_file_name
77
+ self.revision_author = revision_author
78
+ self.revision_date_time = revision_date_time
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,85 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="UpdateTableCellFormatRequest.rb">
4
+ # Copyright (c) 2018 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module WordsRubySdk
29
+
30
+ #
31
+ # Request model for update_table_cell_format operation.
32
+ #
33
+ class UpdateTableCellFormatRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Path to table row.
38
+ attr_accessor :table_row_path
39
+ # Object's index
40
+ attr_accessor :index
41
+ # Original document folder.
42
+ attr_accessor :folder
43
+ # File storage, which have to be used.
44
+ attr_accessor :storage
45
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
46
+ attr_accessor :load_encoding
47
+ # Password for opening an encrypted document.
48
+ attr_accessor :password
49
+ # Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
50
+ attr_accessor :dest_file_name
51
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
52
+ attr_accessor :revision_author
53
+ # The date and time to use for revisions.
54
+ attr_accessor :revision_date_time
55
+ # The properties.
56
+ attr_accessor :format
57
+
58
+ #
59
+ # Initializes a new instance.
60
+ # @param name The document name.
61
+ # @param table_row_path Path to table row.
62
+ # @param index Object's index
63
+ # @param folder Original document folder.
64
+ # @param storage File storage, which have to be used.
65
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
66
+ # @param password Password for opening an encrypted document.
67
+ # @param dest_file_name Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
68
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
69
+ # @param revision_date_time The date and time to use for revisions.
70
+ # @param format The properties.
71
+ def initialize(name, table_row_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil, format = nil)
72
+ self.name = name
73
+ self.table_row_path = table_row_path
74
+ self.index = index
75
+ self.folder = folder
76
+ self.storage = storage
77
+ self.load_encoding = load_encoding
78
+ self.password = password
79
+ self.dest_file_name = dest_file_name
80
+ self.revision_author = revision_author
81
+ self.revision_date_time = revision_date_time
82
+ self.format = format
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,85 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="UpdateTablePropertiesRequest.rb">
4
+ # Copyright (c) 2018 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module WordsRubySdk
29
+
30
+ #
31
+ # Request model for update_table_properties operation.
32
+ #
33
+ class UpdateTablePropertiesRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Object's index
38
+ attr_accessor :index
39
+ # Original document folder.
40
+ attr_accessor :folder
41
+ # File storage, which have to be used.
42
+ attr_accessor :storage
43
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
44
+ attr_accessor :load_encoding
45
+ # Password for opening an encrypted document.
46
+ attr_accessor :password
47
+ # Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
48
+ attr_accessor :dest_file_name
49
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
50
+ attr_accessor :revision_author
51
+ # The date and time to use for revisions.
52
+ attr_accessor :revision_date_time
53
+ # The properties.
54
+ attr_accessor :properties
55
+ # Path to node, which contains tables.
56
+ attr_accessor :node_path
57
+
58
+ #
59
+ # Initializes a new instance.
60
+ # @param name The document name.
61
+ # @param index Object's index
62
+ # @param folder Original document folder.
63
+ # @param storage File storage, which have to be used.
64
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
65
+ # @param password Password for opening an encrypted document.
66
+ # @param dest_file_name Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
67
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
68
+ # @param revision_date_time The date and time to use for revisions.
69
+ # @param properties The properties.
70
+ # @param node_path Path to node, which contains tables.
71
+ def initialize(name, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil, properties = nil, node_path = nil)
72
+ self.name = name
73
+ self.index = index
74
+ self.folder = folder
75
+ self.storage = storage
76
+ self.load_encoding = load_encoding
77
+ self.password = password
78
+ self.dest_file_name = dest_file_name
79
+ self.revision_author = revision_author
80
+ self.revision_date_time = revision_date_time
81
+ self.properties = properties
82
+ self.node_path = node_path
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,85 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="UpdateTableRowFormatRequest.rb">
4
+ # Copyright (c) 2018 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module WordsRubySdk
29
+
30
+ #
31
+ # Request model for update_table_row_format operation.
32
+ #
33
+ class UpdateTableRowFormatRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Path to table.
38
+ attr_accessor :table_path
39
+ # Object's index
40
+ attr_accessor :index
41
+ # Original document folder.
42
+ attr_accessor :folder
43
+ # File storage, which have to be used.
44
+ attr_accessor :storage
45
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
46
+ attr_accessor :load_encoding
47
+ # Password for opening an encrypted document.
48
+ attr_accessor :password
49
+ # Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
50
+ attr_accessor :dest_file_name
51
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
52
+ attr_accessor :revision_author
53
+ # The date and time to use for revisions.
54
+ attr_accessor :revision_date_time
55
+ # Table row format.
56
+ attr_accessor :format
57
+
58
+ #
59
+ # Initializes a new instance.
60
+ # @param name The document name.
61
+ # @param table_path Path to table.
62
+ # @param index Object's index
63
+ # @param folder Original document folder.
64
+ # @param storage File storage, which have to be used.
65
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
66
+ # @param password Password for opening an encrypted document.
67
+ # @param dest_file_name Result name of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
68
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
69
+ # @param revision_date_time The date and time to use for revisions.
70
+ # @param format Table row format.
71
+ def initialize(name, table_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil, format = nil)
72
+ self.name = name
73
+ self.table_path = table_path
74
+ self.index = index
75
+ self.folder = folder
76
+ self.storage = storage
77
+ self.load_encoding = load_encoding
78
+ self.password = password
79
+ self.dest_file_name = dest_file_name
80
+ self.revision_author = revision_author
81
+ self.revision_date_time = revision_date_time
82
+ self.format = format
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,232 @@
1
+
2
+ require 'date'
3
+
4
+ module WordsRubySdk
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="RevisionsModificationResponse.rb">
8
+ # Copyright (c) 2017 Aspose.Words for Cloud
9
+ # </copyright>
10
+ # <summary>
11
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ # of this software and associated documentation files (the "Software"), to deal
13
+ # in the Software without restriction, including without limitation the rights
14
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ # copies of the Software, and to permit persons to whom the Software is
16
+ # furnished to do so, subject to the following conditions:
17
+ #
18
+ # The above copyright notice and this permission notice shall be included in all
19
+ # copies or substantial portions of the Software.
20
+ #
21
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ # SOFTWARE.
28
+ # </summary>
29
+ # --------------------------------------------------------------------------------------------------------------------
30
+ #
31
+
32
+ # response of the modification operations for the revisions collection (now these are acceptAll and rejectAll)
33
+ class RevisionsModificationResponse
34
+ # Response status code.
35
+ attr_accessor :code
36
+
37
+ # Response status.
38
+ attr_accessor :status
39
+
40
+ # result of the modification operations for the revisions collection
41
+ attr_accessor :result
42
+
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'code' => :'Code',
48
+ :'status' => :'Status',
49
+ :'result' => :'Result'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'code' => :'Integer',
57
+ :'status' => :'String',
58
+ :'result' => :'ModificationOperationResult'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ return unless attributes.is_a?(Hash)
66
+
67
+ # convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
69
+
70
+ if attributes.key?(:'Code')
71
+ self.code = attributes[:'Code']
72
+ end
73
+
74
+ if attributes.key?(:'Status')
75
+ self.status = attributes[:'Status']
76
+ end
77
+
78
+ if attributes.key?(:'Result')
79
+ self.result = attributes[:'Result']
80
+ end
81
+
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properies with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = []
88
+ if @code.nil?
89
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
90
+ end
91
+
92
+ return invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ return false if @code.nil?
99
+ return true
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param [Object] Object to be compared
104
+ def ==(other)
105
+ return true if self.equal?(other)
106
+ self.class == other.class &&
107
+ code == other.code &&
108
+ status == other.status &&
109
+ result == other.result
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(other)
115
+ self == other
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [code, status, result].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end
139
+ # or else data not found in attributes(hash), not an issue as the data can be optional
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :DateTime
152
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
153
+ when :Date
154
+ Time.at(/\d/.match(value)[0].to_f).to_date
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :BOOLEAN
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else
182
+ # model
183
+ temp_model = WordsRubySdk.const_get(type).new
184
+ temp_model.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ next if value.nil?
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+
230
+ end
231
+
232
+ end