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,676 @@
1
+
2
+ require 'date'
3
+
4
+ module WordsRubySdk
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="Font.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
+ # Font element
33
+ class Font
34
+ # Link to the document.
35
+ attr_accessor :link
36
+
37
+ # True if the font is formatted as all capital letters.
38
+ attr_accessor :all_caps
39
+
40
+ # Specifies whether the contents of this run shall have right-to-left characteristics.
41
+ attr_accessor :bidi
42
+
43
+ # True if the font is formatted as bold.
44
+ attr_accessor :bold
45
+
46
+ # True if the right-to-left text is formatted as bold.
47
+ attr_accessor :bold_bi
48
+
49
+ # Border object that specifies border for the font.
50
+ attr_accessor :border
51
+
52
+ # Gets or sets the color of the font.
53
+ attr_accessor :color
54
+
55
+ # Specifies whether the contents of this run shall be treated as complex script text regardless of their Unicode character values when determining the formatting for this run.
56
+ attr_accessor :complex_script
57
+
58
+ # True if the font is formatted as double strikethrough text.
59
+ attr_accessor :double_strike_through
60
+
61
+ # True if the font is formatted as embossed.
62
+ attr_accessor :emboss
63
+
64
+ # True if the font is formatted as engraved.
65
+ attr_accessor :engrave
66
+
67
+ # True if the font is formatted as hidden text.
68
+ attr_accessor :hidden
69
+
70
+ # Gets or sets the highlight (marker) color.
71
+ attr_accessor :highlight_color
72
+
73
+ # True if the font is formatted as italic.
74
+ attr_accessor :italic
75
+
76
+ # True if the right-to-left text is formatted as italic.
77
+ attr_accessor :italic_bi
78
+
79
+ # Gets or sets the font size at which kerning starts.
80
+ attr_accessor :kerning
81
+
82
+ # Gets or sets the locale identifier (language) of the formatted characters.
83
+ attr_accessor :locale_id
84
+
85
+ # Gets or sets the locale identifier (language) of the formatted right-to-left characters.
86
+ attr_accessor :locale_id_bi
87
+
88
+ # Gets or sets the locale identifier (language) of the formatted Asian characters.
89
+ attr_accessor :locale_id_far_east
90
+
91
+ # Gets or sets the name of the font
92
+ attr_accessor :name
93
+
94
+ # Returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127).
95
+ attr_accessor :name_ascii
96
+
97
+ # Returns or sets the name of the font in a right-to-left language document.
98
+ attr_accessor :name_bi
99
+
100
+ # Returns or sets an East Asian font name.
101
+ attr_accessor :name_far_east
102
+
103
+ # Returns or sets the font used for characters with character codes from 128 through 255.
104
+ attr_accessor :name_other
105
+
106
+ # True when the formatted characters are not to be spell checked.
107
+ attr_accessor :no_proofing
108
+
109
+ # True if the font is formatted as outline.
110
+ attr_accessor :outline
111
+
112
+ # Gets or sets the position of text (in points) relative to the base line. A positive number raises the text, and a negative number lowers it.
113
+ attr_accessor :position
114
+
115
+ # Gets or sets character width scaling in percent.
116
+ attr_accessor :scaling
117
+
118
+ # True if the font is formatted as shadowed.
119
+ attr_accessor :shadow
120
+
121
+ # Gets or sets the font size in points.
122
+ attr_accessor :size
123
+
124
+ # Gets or sets the font size in points used in a right-to-left document.
125
+ attr_accessor :size_bi
126
+
127
+ # True if the font is formatted as small capital letters.
128
+ attr_accessor :small_caps
129
+
130
+ # Returns or sets the spacing (in points) between characters.
131
+ attr_accessor :spacing
132
+
133
+ # True if the font is formatted as strikethrough text.
134
+ attr_accessor :strike_through
135
+
136
+ # Gets or sets the locale independent style identifier of the character style applied to this formatting.
137
+ attr_accessor :style_identifier
138
+
139
+ # Gets or sets the name of the character style applied to this formatting.
140
+ attr_accessor :style_name
141
+
142
+ # True if the font is formatted as subscript.
143
+ attr_accessor :subscript
144
+
145
+ # True if the font is formatted as superscript.
146
+ attr_accessor :superscript
147
+
148
+ # Gets or sets the font animation effect.
149
+ attr_accessor :text_effect
150
+
151
+ # Gets or sets the type of underline applied to the font.
152
+ attr_accessor :underline
153
+
154
+ # Gets or sets the color of the underline applied to the font.
155
+ attr_accessor :underline_color
156
+
157
+ class EnumAttributeValidator
158
+ attr_reader :datatype
159
+ attr_reader :allowable_values
160
+
161
+ def initialize(datatype, allowable_values)
162
+ @allowable_values = allowable_values.map do |value|
163
+ case datatype.to_s
164
+ when /Integer/i
165
+ value.to_i
166
+ when /Float/i
167
+ value.to_f
168
+ else
169
+ value
170
+ end
171
+ end
172
+ end
173
+
174
+ def valid?(value)
175
+ !value || allowable_values.include?(value)
176
+ end
177
+ end
178
+
179
+ # Attribute mapping from ruby-style variable name to JSON key.
180
+ def self.attribute_map
181
+ {
182
+ :'link' => :'link',
183
+ :'all_caps' => :'AllCaps',
184
+ :'bidi' => :'Bidi',
185
+ :'bold' => :'Bold',
186
+ :'bold_bi' => :'BoldBi',
187
+ :'border' => :'Border',
188
+ :'color' => :'Color',
189
+ :'complex_script' => :'ComplexScript',
190
+ :'double_strike_through' => :'DoubleStrikeThrough',
191
+ :'emboss' => :'Emboss',
192
+ :'engrave' => :'Engrave',
193
+ :'hidden' => :'Hidden',
194
+ :'highlight_color' => :'HighlightColor',
195
+ :'italic' => :'Italic',
196
+ :'italic_bi' => :'ItalicBi',
197
+ :'kerning' => :'Kerning',
198
+ :'locale_id' => :'LocaleId',
199
+ :'locale_id_bi' => :'LocaleIdBi',
200
+ :'locale_id_far_east' => :'LocaleIdFarEast',
201
+ :'name' => :'Name',
202
+ :'name_ascii' => :'NameAscii',
203
+ :'name_bi' => :'NameBi',
204
+ :'name_far_east' => :'NameFarEast',
205
+ :'name_other' => :'NameOther',
206
+ :'no_proofing' => :'NoProofing',
207
+ :'outline' => :'Outline',
208
+ :'position' => :'Position',
209
+ :'scaling' => :'Scaling',
210
+ :'shadow' => :'Shadow',
211
+ :'size' => :'Size',
212
+ :'size_bi' => :'SizeBi',
213
+ :'small_caps' => :'SmallCaps',
214
+ :'spacing' => :'Spacing',
215
+ :'strike_through' => :'StrikeThrough',
216
+ :'style_identifier' => :'StyleIdentifier',
217
+ :'style_name' => :'StyleName',
218
+ :'subscript' => :'Subscript',
219
+ :'superscript' => :'Superscript',
220
+ :'text_effect' => :'TextEffect',
221
+ :'underline' => :'Underline',
222
+ :'underline_color' => :'UnderlineColor'
223
+ }
224
+ end
225
+
226
+ # Attribute type mapping.
227
+ def self.swagger_types
228
+ {
229
+ :'link' => :'WordsApiLink',
230
+ :'all_caps' => :'BOOLEAN',
231
+ :'bidi' => :'BOOLEAN',
232
+ :'bold' => :'BOOLEAN',
233
+ :'bold_bi' => :'BOOLEAN',
234
+ :'border' => :'Border',
235
+ :'color' => :'XmlColor',
236
+ :'complex_script' => :'BOOLEAN',
237
+ :'double_strike_through' => :'BOOLEAN',
238
+ :'emboss' => :'BOOLEAN',
239
+ :'engrave' => :'BOOLEAN',
240
+ :'hidden' => :'BOOLEAN',
241
+ :'highlight_color' => :'XmlColor',
242
+ :'italic' => :'BOOLEAN',
243
+ :'italic_bi' => :'BOOLEAN',
244
+ :'kerning' => :'Float',
245
+ :'locale_id' => :'Integer',
246
+ :'locale_id_bi' => :'Integer',
247
+ :'locale_id_far_east' => :'Integer',
248
+ :'name' => :'String',
249
+ :'name_ascii' => :'String',
250
+ :'name_bi' => :'String',
251
+ :'name_far_east' => :'String',
252
+ :'name_other' => :'String',
253
+ :'no_proofing' => :'BOOLEAN',
254
+ :'outline' => :'BOOLEAN',
255
+ :'position' => :'Float',
256
+ :'scaling' => :'Integer',
257
+ :'shadow' => :'BOOLEAN',
258
+ :'size' => :'Float',
259
+ :'size_bi' => :'Float',
260
+ :'small_caps' => :'BOOLEAN',
261
+ :'spacing' => :'Float',
262
+ :'strike_through' => :'BOOLEAN',
263
+ :'style_identifier' => :'String',
264
+ :'style_name' => :'String',
265
+ :'subscript' => :'BOOLEAN',
266
+ :'superscript' => :'BOOLEAN',
267
+ :'text_effect' => :'String',
268
+ :'underline' => :'String',
269
+ :'underline_color' => :'XmlColor'
270
+ }
271
+ end
272
+
273
+ # Initializes the object
274
+ # @param [Hash] attributes Model attributes in the form of hash
275
+ def initialize(attributes = {})
276
+ return unless attributes.is_a?(Hash)
277
+
278
+ # convert string to symbol for hash key
279
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
280
+
281
+ if attributes.key?(:'link')
282
+ self.link = attributes[:'link']
283
+ end
284
+
285
+ if attributes.key?(:'AllCaps')
286
+ self.all_caps = attributes[:'AllCaps']
287
+ end
288
+
289
+ if attributes.key?(:'Bidi')
290
+ self.bidi = attributes[:'Bidi']
291
+ end
292
+
293
+ if attributes.key?(:'Bold')
294
+ self.bold = attributes[:'Bold']
295
+ end
296
+
297
+ if attributes.key?(:'BoldBi')
298
+ self.bold_bi = attributes[:'BoldBi']
299
+ end
300
+
301
+ if attributes.key?(:'Border')
302
+ self.border = attributes[:'Border']
303
+ end
304
+
305
+ if attributes.key?(:'Color')
306
+ self.color = attributes[:'Color']
307
+ end
308
+
309
+ if attributes.key?(:'ComplexScript')
310
+ self.complex_script = attributes[:'ComplexScript']
311
+ end
312
+
313
+ if attributes.key?(:'DoubleStrikeThrough')
314
+ self.double_strike_through = attributes[:'DoubleStrikeThrough']
315
+ end
316
+
317
+ if attributes.key?(:'Emboss')
318
+ self.emboss = attributes[:'Emboss']
319
+ end
320
+
321
+ if attributes.key?(:'Engrave')
322
+ self.engrave = attributes[:'Engrave']
323
+ end
324
+
325
+ if attributes.key?(:'Hidden')
326
+ self.hidden = attributes[:'Hidden']
327
+ end
328
+
329
+ if attributes.key?(:'HighlightColor')
330
+ self.highlight_color = attributes[:'HighlightColor']
331
+ end
332
+
333
+ if attributes.key?(:'Italic')
334
+ self.italic = attributes[:'Italic']
335
+ end
336
+
337
+ if attributes.key?(:'ItalicBi')
338
+ self.italic_bi = attributes[:'ItalicBi']
339
+ end
340
+
341
+ if attributes.key?(:'Kerning')
342
+ self.kerning = attributes[:'Kerning']
343
+ end
344
+
345
+ if attributes.key?(:'LocaleId')
346
+ self.locale_id = attributes[:'LocaleId']
347
+ end
348
+
349
+ if attributes.key?(:'LocaleIdBi')
350
+ self.locale_id_bi = attributes[:'LocaleIdBi']
351
+ end
352
+
353
+ if attributes.key?(:'LocaleIdFarEast')
354
+ self.locale_id_far_east = attributes[:'LocaleIdFarEast']
355
+ end
356
+
357
+ if attributes.key?(:'Name')
358
+ self.name = attributes[:'Name']
359
+ end
360
+
361
+ if attributes.key?(:'NameAscii')
362
+ self.name_ascii = attributes[:'NameAscii']
363
+ end
364
+
365
+ if attributes.key?(:'NameBi')
366
+ self.name_bi = attributes[:'NameBi']
367
+ end
368
+
369
+ if attributes.key?(:'NameFarEast')
370
+ self.name_far_east = attributes[:'NameFarEast']
371
+ end
372
+
373
+ if attributes.key?(:'NameOther')
374
+ self.name_other = attributes[:'NameOther']
375
+ end
376
+
377
+ if attributes.key?(:'NoProofing')
378
+ self.no_proofing = attributes[:'NoProofing']
379
+ end
380
+
381
+ if attributes.key?(:'Outline')
382
+ self.outline = attributes[:'Outline']
383
+ end
384
+
385
+ if attributes.key?(:'Position')
386
+ self.position = attributes[:'Position']
387
+ end
388
+
389
+ if attributes.key?(:'Scaling')
390
+ self.scaling = attributes[:'Scaling']
391
+ end
392
+
393
+ if attributes.key?(:'Shadow')
394
+ self.shadow = attributes[:'Shadow']
395
+ end
396
+
397
+ if attributes.key?(:'Size')
398
+ self.size = attributes[:'Size']
399
+ end
400
+
401
+ if attributes.key?(:'SizeBi')
402
+ self.size_bi = attributes[:'SizeBi']
403
+ end
404
+
405
+ if attributes.key?(:'SmallCaps')
406
+ self.small_caps = attributes[:'SmallCaps']
407
+ end
408
+
409
+ if attributes.key?(:'Spacing')
410
+ self.spacing = attributes[:'Spacing']
411
+ end
412
+
413
+ if attributes.key?(:'StrikeThrough')
414
+ self.strike_through = attributes[:'StrikeThrough']
415
+ end
416
+
417
+ if attributes.key?(:'StyleIdentifier')
418
+ self.style_identifier = attributes[:'StyleIdentifier']
419
+ end
420
+
421
+ if attributes.key?(:'StyleName')
422
+ self.style_name = attributes[:'StyleName']
423
+ end
424
+
425
+ if attributes.key?(:'Subscript')
426
+ self.subscript = attributes[:'Subscript']
427
+ end
428
+
429
+ if attributes.key?(:'Superscript')
430
+ self.superscript = attributes[:'Superscript']
431
+ end
432
+
433
+ if attributes.key?(:'TextEffect')
434
+ self.text_effect = attributes[:'TextEffect']
435
+ end
436
+
437
+ if attributes.key?(:'Underline')
438
+ self.underline = attributes[:'Underline']
439
+ end
440
+
441
+ if attributes.key?(:'UnderlineColor')
442
+ self.underline_color = attributes[:'UnderlineColor']
443
+ end
444
+
445
+ end
446
+
447
+ # Show invalid properties with the reasons. Usually used together with valid?
448
+ # @return Array for valid properies with the reasons
449
+ def list_invalid_properties
450
+ invalid_properties = []
451
+ return invalid_properties
452
+ end
453
+
454
+ # Check to see if the all the properties in the model are valid
455
+ # @return true if the model is valid
456
+ def valid?
457
+ style_identifier_validator = EnumAttributeValidator.new('String', %w["Normal", "Heading1", "Heading2", "Heading3", "Heading4", "Heading5", "Heading6", "Heading7", "Heading8", "Heading9", "Index1", "Index2", "Index3", "Index4", "Index5", "Index6", "Index7", "Index8", "Index9", "Toc1", "Toc2", "Toc3", "Toc4", "Toc5", "Toc6", "Toc7", "Toc8", "Toc9", "NormalIndent", "FootnoteText", "CommentText", "Header", "Footer", "IndexHeading", "Caption", "TableOfFigures", "EnvelopeAddress", "EnvelopeReturn", "FootnoteReference", "CommentReference", "LineNumber", "PageNumber", "EndnoteReference", "EndnoteText", "TableOfAuthorities", "Macro", "ToaHeading", "List", "ListBullet", "ListNumber", "List2", "List3", "List4", "List5", "ListBullet2", "ListBullet3", "ListBullet4", "ListBullet5", "ListNumber2", "ListNumber3", "ListNumber4", "ListNumber5", "Title", "Closing", "Signature", "DefaultParagraphFont", "BodyText", "BodyTextInd", "ListContinue", "ListContinue2", "ListContinue3", "ListContinue4", "ListContinue5", "MessageHeader", "Subtitle", "Salutation", "Date", "BodyText1I", "BodyText1I2", "NoteHeading", "BodyText2", "BodyText3", "BodyTextInd2", "BodyTextInd3", "BlockText", "Hyperlink", "FollowedHyperlink", "Strong", "Emphasis", "DocumentMap", "PlainText", "EmailSignature", "HtmlTopOfForm", "HtmlBottomOfForm", "NormalWeb", "HtmlAcronym", "HtmlAddress", "HtmlCite", "HtmlCode", "HtmlDefinition", "HtmlKeyboard", "HtmlPreformatted", "HtmlSample", "HtmlTypewriter", "HtmlVariable", "TableNormal", "CommentSubject", "NoList", "OutlineList1", "OutlineList2", "OutlineList3", "TableSimple1", "TableSimple2", "TableSimple3", "TableClassic1", "TableClassic2", "TableClassic3", "TableClassic4", "TableColorful1", "TableColorful2", "TableColorful3", "TableColumns1", "TableColumns2", "TableColumns3", "TableColumns4", "TableColumns5", "TableGrid1", "TableGrid2", "TableGrid3", "TableGrid4", "TableGrid5", "TableGrid6", "TableGrid7", "TableGrid8", "TableList1", "TableList2", "TableList3", "TableList4", "TableList5", "TableList6", "TableList7", "TableList8", "Table3DEffects1", "Table3DEffects2", "Table3DEffects3", "TableContemporary", "TableElegant", "TableProfessional", "TableSubtle1", "TableSubtle2", "TableWeb1", "TableWeb2", "TableWeb3", "BalloonText", "TableGrid", "TableTheme", "PlaceholderText", "NoSpacing", "LightShading", "LightList", "LightGrid", "MediumShading1", "MediumShading2", "MediumList1", "MediumList2", "MediumGrid1", "MediumGrid2", "MediumGrid3", "DarkList", "ColorfulShading", "ColorfulList", "ColorfulGrid", "LightShadingAccent1", "LightListAccent1", "LightGridAccent1", "MediumShading1Accent1", "MediumShading2Accent1", "MediumList1Accent1", "Revision", "ListParagraph", "Quote", "IntenseQuote", "MediumList2Accent1", "MediumGrid1Accent1", "MediumGrid2Accent1", "MediumGrid3Accent1", "DarkListAccent1", "ColorfulShadingAccent1", "ColorfulListAccent1", "ColorfulGridAccent1", "LightShadingAccent2", "LightListAccent2", "LightGridAccent2", "MediumShading1Accent2", "MediumShading2Accent2", "MediumList1Accent2", "MediumList2Accent2", "MediumGrid1Accent2", "MediumGrid2Accent2", "MediumGrid3Accent2", "DarkListAccent2", "ColorfulShadingAccent2", "ColorfulListAccent2", "ColorfulGridAccent2", "LightShadingAccent3", "LightListAccent3", "LightGridAccent3", "MediumShading1Accent3", "MediumShading2Accent3", "MediumList1Accent3", "MediumList2Accent3", "MediumGrid1Accent3", "MediumGrid2Accent3", "MediumGrid3Accent3", "DarkListAccent3", "ColorfulShadingAccent3", "ColorfulListAccent3", "ColorfulGridAccent3", "LightShadingAccent4", "LightListAccent4", "LightGridAccent4", "MediumShading1Accent4", "MediumShading2Accent4", "MediumList1Accent4", "MediumList2Accent4", "MediumGrid1Accent4", "MediumGrid2Accent4", "MediumGrid3Accent4", "DarkListAccent4", "ColorfulShadingAccent4", "ColorfulListAccent4", "ColorfulGridAccent4", "LightShadingAccent5", "LightListAccent5", "LightGridAccent5", "MediumShading1Accent5", "MediumShading2Accent5", "MediumList1Accent5", "MediumList2Accent5", "MediumGrid1Accent5", "MediumGrid2Accent5", "MediumGrid3Accent5", "DarkListAccent5", "ColorfulShadingAccent5", "ColorfulListAccent5", "ColorfulGridAccent5", "LightShadingAccent6", "LightListAccent6", "LightGridAccent6", "MediumShading1Accent6", "MediumShading2Accent6", "MediumList1Accent6", "MediumList2Accent6", "MediumGrid1Accent6", "MediumGrid2Accent6", "MediumGrid3Accent6", "DarkListAccent6", "ColorfulShadingAccent6", "ColorfulListAccent6", "ColorfulGridAccent6", "SubtleEmphasis", "IntenseEmphasis", "SubtleReference", "IntenseReference", "BookTitle", "Bibliography", "TocHeading", "PlainTable1", "PlainTable2", "PlainTable3", "PlainTable4", "PlainTable5", "TableGridLight", "GridTable1Light", "GridTable2", "GridTable3", "GridTable4", "GridTable5Dark", "GridTable6Colorful", "GridTable7Colorful", "GridTable1LightAccent1", "GridTable2Accent1", "GridTable3Accent1", "GridTable4Accent1", "GridTable5DarkAccent1", "GridTable6ColorfulAccent1", "GridTable7ColorfulAccent1", "GridTable1LightAccent2", "GridTable2Accent2", "GridTable3Accent2", "GridTable4Accent2", "GridTable5DarkAccent2", "GridTable6ColorfulAccent2", "GridTable7ColorfulAccent2", "GridTable1LightAccent3", "GridTable2Accent3", "GridTable3Accent3", "GridTable4Accent3", "GridTable5DarkAccent3", "GridTable6ColorfulAccent3", "GridTable7ColorfulAccent3", "GridTable1LightAccent4", "GridTable2Accent4", "GridTable3Accent4", "GridTable4Accent4", "GridTable5DarkAccent4", "GridTable6ColorfulAccent4", "GridTable7ColorfulAccent4", "GridTable1LightAccent5", "GridTable2Accent5", "GridTable3Accent5", "GridTable4Accent5", "GridTable5DarkAccent5", "GridTable6ColorfulAccent5", "GridTable7ColorfulAccent5", "GridTable1LightAccent6", "GridTable2Accent6", "GridTable3Accent6", "GridTable4Accent6", "GridTable5DarkAccent6", "GridTable6ColorfulAccent6", "GridTable7ColorfulAccent6", "ListTable1Light", "ListTable2", "ListTable3", "ListTable4", "ListTable5Dark", "ListTable6Colorful", "ListTable7Colorful", "ListTable1LightAccent1", "ListTable2Accent1", "ListTable3Accent1", "ListTable4Accent1", "ListTable5DarkAccent1", "ListTable6ColorfulAccent1", "ListTable7ColorfulAccent1", "ListTable1LightAccent2", "ListTable2Accent2", "ListTable3Accent2", "ListTable4Accent2", "ListTable5DarkAccent2", "ListTable6ColorfulAccent2", "ListTable7ColorfulAccent2", "ListTable1LightAccent3", "ListTable2Accent3", "ListTable3Accent3", "ListTable4Accent3", "ListTable5DarkAccent3", "ListTable6ColorfulAccent3", "ListTable7ColorfulAccent3", "ListTable1LightAccent4", "ListTable2Accent4", "ListTable3Accent4", "ListTable4Accent4", "ListTable5DarkAccent4", "ListTable6ColorfulAccent4", "ListTable7ColorfulAccent4", "ListTable1LightAccent5", "ListTable2Accent5", "ListTable3Accent5", "ListTable4Accent5", "ListTable5DarkAccent5", "ListTable6ColorfulAccent5", "ListTable7ColorfulAccent5", "ListTable1LightAccent6", "ListTable2Accent6", "ListTable3Accent6", "ListTable4Accent6", "ListTable5DarkAccent6", "ListTable6ColorfulAccent6", "ListTable7ColorfulAccent6", "User", "Nil"])
458
+ return false unless style_identifier_validator.valid?(@style_identifier)
459
+ text_effect_validator = EnumAttributeValidator.new('String', %w["None", "LasVegasLights", "BlinkingBackground", "SparkleText", "MarchingBlackAnts", "MarchingRedAnts", "Shimmer"])
460
+ return false unless text_effect_validator.valid?(@text_effect)
461
+ underline_validator = EnumAttributeValidator.new('String', %w["None", "Single", "Words", "Double", "Dotted", "Thick", "Dash", "DotDash", "DotDotDash", "Wavy", "DottedHeavy", "DashHeavy", "DotDashHeavy", "DotDotDashHeavy", "WavyHeavy", "DashLong", "WavyDouble", "DashLongHeavy"])
462
+ return false unless underline_validator.valid?(@underline)
463
+ return true
464
+ end
465
+
466
+ # Custom attribute writer method checking allowed values (enum).
467
+ # @param [Object] style_identifier Object to be assigned
468
+ def style_identifier=(style_identifier)
469
+ validator = EnumAttributeValidator.new('String', %w["Normal", "Heading1", "Heading2", "Heading3", "Heading4", "Heading5", "Heading6", "Heading7", "Heading8", "Heading9", "Index1", "Index2", "Index3", "Index4", "Index5", "Index6", "Index7", "Index8", "Index9", "Toc1", "Toc2", "Toc3", "Toc4", "Toc5", "Toc6", "Toc7", "Toc8", "Toc9", "NormalIndent", "FootnoteText", "CommentText", "Header", "Footer", "IndexHeading", "Caption", "TableOfFigures", "EnvelopeAddress", "EnvelopeReturn", "FootnoteReference", "CommentReference", "LineNumber", "PageNumber", "EndnoteReference", "EndnoteText", "TableOfAuthorities", "Macro", "ToaHeading", "List", "ListBullet", "ListNumber", "List2", "List3", "List4", "List5", "ListBullet2", "ListBullet3", "ListBullet4", "ListBullet5", "ListNumber2", "ListNumber3", "ListNumber4", "ListNumber5", "Title", "Closing", "Signature", "DefaultParagraphFont", "BodyText", "BodyTextInd", "ListContinue", "ListContinue2", "ListContinue3", "ListContinue4", "ListContinue5", "MessageHeader", "Subtitle", "Salutation", "Date", "BodyText1I", "BodyText1I2", "NoteHeading", "BodyText2", "BodyText3", "BodyTextInd2", "BodyTextInd3", "BlockText", "Hyperlink", "FollowedHyperlink", "Strong", "Emphasis", "DocumentMap", "PlainText", "EmailSignature", "HtmlTopOfForm", "HtmlBottomOfForm", "NormalWeb", "HtmlAcronym", "HtmlAddress", "HtmlCite", "HtmlCode", "HtmlDefinition", "HtmlKeyboard", "HtmlPreformatted", "HtmlSample", "HtmlTypewriter", "HtmlVariable", "TableNormal", "CommentSubject", "NoList", "OutlineList1", "OutlineList2", "OutlineList3", "TableSimple1", "TableSimple2", "TableSimple3", "TableClassic1", "TableClassic2", "TableClassic3", "TableClassic4", "TableColorful1", "TableColorful2", "TableColorful3", "TableColumns1", "TableColumns2", "TableColumns3", "TableColumns4", "TableColumns5", "TableGrid1", "TableGrid2", "TableGrid3", "TableGrid4", "TableGrid5", "TableGrid6", "TableGrid7", "TableGrid8", "TableList1", "TableList2", "TableList3", "TableList4", "TableList5", "TableList6", "TableList7", "TableList8", "Table3DEffects1", "Table3DEffects2", "Table3DEffects3", "TableContemporary", "TableElegant", "TableProfessional", "TableSubtle1", "TableSubtle2", "TableWeb1", "TableWeb2", "TableWeb3", "BalloonText", "TableGrid", "TableTheme", "PlaceholderText", "NoSpacing", "LightShading", "LightList", "LightGrid", "MediumShading1", "MediumShading2", "MediumList1", "MediumList2", "MediumGrid1", "MediumGrid2", "MediumGrid3", "DarkList", "ColorfulShading", "ColorfulList", "ColorfulGrid", "LightShadingAccent1", "LightListAccent1", "LightGridAccent1", "MediumShading1Accent1", "MediumShading2Accent1", "MediumList1Accent1", "Revision", "ListParagraph", "Quote", "IntenseQuote", "MediumList2Accent1", "MediumGrid1Accent1", "MediumGrid2Accent1", "MediumGrid3Accent1", "DarkListAccent1", "ColorfulShadingAccent1", "ColorfulListAccent1", "ColorfulGridAccent1", "LightShadingAccent2", "LightListAccent2", "LightGridAccent2", "MediumShading1Accent2", "MediumShading2Accent2", "MediumList1Accent2", "MediumList2Accent2", "MediumGrid1Accent2", "MediumGrid2Accent2", "MediumGrid3Accent2", "DarkListAccent2", "ColorfulShadingAccent2", "ColorfulListAccent2", "ColorfulGridAccent2", "LightShadingAccent3", "LightListAccent3", "LightGridAccent3", "MediumShading1Accent3", "MediumShading2Accent3", "MediumList1Accent3", "MediumList2Accent3", "MediumGrid1Accent3", "MediumGrid2Accent3", "MediumGrid3Accent3", "DarkListAccent3", "ColorfulShadingAccent3", "ColorfulListAccent3", "ColorfulGridAccent3", "LightShadingAccent4", "LightListAccent4", "LightGridAccent4", "MediumShading1Accent4", "MediumShading2Accent4", "MediumList1Accent4", "MediumList2Accent4", "MediumGrid1Accent4", "MediumGrid2Accent4", "MediumGrid3Accent4", "DarkListAccent4", "ColorfulShadingAccent4", "ColorfulListAccent4", "ColorfulGridAccent4", "LightShadingAccent5", "LightListAccent5", "LightGridAccent5", "MediumShading1Accent5", "MediumShading2Accent5", "MediumList1Accent5", "MediumList2Accent5", "MediumGrid1Accent5", "MediumGrid2Accent5", "MediumGrid3Accent5", "DarkListAccent5", "ColorfulShadingAccent5", "ColorfulListAccent5", "ColorfulGridAccent5", "LightShadingAccent6", "LightListAccent6", "LightGridAccent6", "MediumShading1Accent6", "MediumShading2Accent6", "MediumList1Accent6", "MediumList2Accent6", "MediumGrid1Accent6", "MediumGrid2Accent6", "MediumGrid3Accent6", "DarkListAccent6", "ColorfulShadingAccent6", "ColorfulListAccent6", "ColorfulGridAccent6", "SubtleEmphasis", "IntenseEmphasis", "SubtleReference", "IntenseReference", "BookTitle", "Bibliography", "TocHeading", "PlainTable1", "PlainTable2", "PlainTable3", "PlainTable4", "PlainTable5", "TableGridLight", "GridTable1Light", "GridTable2", "GridTable3", "GridTable4", "GridTable5Dark", "GridTable6Colorful", "GridTable7Colorful", "GridTable1LightAccent1", "GridTable2Accent1", "GridTable3Accent1", "GridTable4Accent1", "GridTable5DarkAccent1", "GridTable6ColorfulAccent1", "GridTable7ColorfulAccent1", "GridTable1LightAccent2", "GridTable2Accent2", "GridTable3Accent2", "GridTable4Accent2", "GridTable5DarkAccent2", "GridTable6ColorfulAccent2", "GridTable7ColorfulAccent2", "GridTable1LightAccent3", "GridTable2Accent3", "GridTable3Accent3", "GridTable4Accent3", "GridTable5DarkAccent3", "GridTable6ColorfulAccent3", "GridTable7ColorfulAccent3", "GridTable1LightAccent4", "GridTable2Accent4", "GridTable3Accent4", "GridTable4Accent4", "GridTable5DarkAccent4", "GridTable6ColorfulAccent4", "GridTable7ColorfulAccent4", "GridTable1LightAccent5", "GridTable2Accent5", "GridTable3Accent5", "GridTable4Accent5", "GridTable5DarkAccent5", "GridTable6ColorfulAccent5", "GridTable7ColorfulAccent5", "GridTable1LightAccent6", "GridTable2Accent6", "GridTable3Accent6", "GridTable4Accent6", "GridTable5DarkAccent6", "GridTable6ColorfulAccent6", "GridTable7ColorfulAccent6", "ListTable1Light", "ListTable2", "ListTable3", "ListTable4", "ListTable5Dark", "ListTable6Colorful", "ListTable7Colorful", "ListTable1LightAccent1", "ListTable2Accent1", "ListTable3Accent1", "ListTable4Accent1", "ListTable5DarkAccent1", "ListTable6ColorfulAccent1", "ListTable7ColorfulAccent1", "ListTable1LightAccent2", "ListTable2Accent2", "ListTable3Accent2", "ListTable4Accent2", "ListTable5DarkAccent2", "ListTable6ColorfulAccent2", "ListTable7ColorfulAccent2", "ListTable1LightAccent3", "ListTable2Accent3", "ListTable3Accent3", "ListTable4Accent3", "ListTable5DarkAccent3", "ListTable6ColorfulAccent3", "ListTable7ColorfulAccent3", "ListTable1LightAccent4", "ListTable2Accent4", "ListTable3Accent4", "ListTable4Accent4", "ListTable5DarkAccent4", "ListTable6ColorfulAccent4", "ListTable7ColorfulAccent4", "ListTable1LightAccent5", "ListTable2Accent5", "ListTable3Accent5", "ListTable4Accent5", "ListTable5DarkAccent5", "ListTable6ColorfulAccent5", "ListTable7ColorfulAccent5", "ListTable1LightAccent6", "ListTable2Accent6", "ListTable3Accent6", "ListTable4Accent6", "ListTable5DarkAccent6", "ListTable6ColorfulAccent6", "ListTable7ColorfulAccent6", "User", "Nil"])
470
+ if style_identifier.to_i == 0
471
+ unless validator.valid?(style_identifier)
472
+ raise ArgumentError, "invalid value for 'style_identifier', must be one of #{validator.allowable_values}."
473
+ end
474
+ @style_identifier = style_identifier
475
+ else
476
+ @style_identifier = validator.allowable_values[style_identifier.to_i]
477
+ end
478
+ end
479
+
480
+ # Custom attribute writer method checking allowed values (enum).
481
+ # @param [Object] text_effect Object to be assigned
482
+ def text_effect=(text_effect)
483
+ validator = EnumAttributeValidator.new('String', %w["None", "LasVegasLights", "BlinkingBackground", "SparkleText", "MarchingBlackAnts", "MarchingRedAnts", "Shimmer"])
484
+ if text_effect.to_i == 0
485
+ unless validator.valid?(text_effect)
486
+ raise ArgumentError, "invalid value for 'text_effect', must be one of #{validator.allowable_values}."
487
+ end
488
+ @text_effect = text_effect
489
+ else
490
+ @text_effect = validator.allowable_values[text_effect.to_i]
491
+ end
492
+ end
493
+
494
+ # Custom attribute writer method checking allowed values (enum).
495
+ # @param [Object] underline Object to be assigned
496
+ def underline=(underline)
497
+ validator = EnumAttributeValidator.new('String', %w["None", "Single", "Words", "Double", "Dotted", "Thick", "Dash", "DotDash", "DotDotDash", "Wavy", "DottedHeavy", "DashHeavy", "DotDashHeavy", "DotDotDashHeavy", "WavyHeavy", "DashLong", "WavyDouble", "DashLongHeavy"])
498
+ if underline.to_i == 0
499
+ unless validator.valid?(underline)
500
+ raise ArgumentError, "invalid value for 'underline', must be one of #{validator.allowable_values}."
501
+ end
502
+ @underline = underline
503
+ else
504
+ @underline = validator.allowable_values[underline.to_i]
505
+ end
506
+ end
507
+
508
+ # Checks equality by comparing each attribute.
509
+ # @param [Object] Object to be compared
510
+ def ==(other)
511
+ return true if self.equal?(other)
512
+ self.class == other.class &&
513
+ link == other.link &&
514
+ all_caps == other.all_caps &&
515
+ bidi == other.bidi &&
516
+ bold == other.bold &&
517
+ bold_bi == other.bold_bi &&
518
+ border == other.border &&
519
+ color == other.color &&
520
+ complex_script == other.complex_script &&
521
+ double_strike_through == other.double_strike_through &&
522
+ emboss == other.emboss &&
523
+ engrave == other.engrave &&
524
+ hidden == other.hidden &&
525
+ highlight_color == other.highlight_color &&
526
+ italic == other.italic &&
527
+ italic_bi == other.italic_bi &&
528
+ kerning == other.kerning &&
529
+ locale_id == other.locale_id &&
530
+ locale_id_bi == other.locale_id_bi &&
531
+ locale_id_far_east == other.locale_id_far_east &&
532
+ name == other.name &&
533
+ name_ascii == other.name_ascii &&
534
+ name_bi == other.name_bi &&
535
+ name_far_east == other.name_far_east &&
536
+ name_other == other.name_other &&
537
+ no_proofing == other.no_proofing &&
538
+ outline == other.outline &&
539
+ position == other.position &&
540
+ scaling == other.scaling &&
541
+ shadow == other.shadow &&
542
+ size == other.size &&
543
+ size_bi == other.size_bi &&
544
+ small_caps == other.small_caps &&
545
+ spacing == other.spacing &&
546
+ strike_through == other.strike_through &&
547
+ style_identifier == other.style_identifier &&
548
+ style_name == other.style_name &&
549
+ subscript == other.subscript &&
550
+ superscript == other.superscript &&
551
+ text_effect == other.text_effect &&
552
+ underline == other.underline &&
553
+ underline_color == other.underline_color
554
+ end
555
+
556
+ # @see the `==` method
557
+ # @param [Object] Object to be compared
558
+ def eql?(other)
559
+ self == other
560
+ end
561
+
562
+ # Calculates hash code according to all attributes.
563
+ # @return [Fixnum] Hash code
564
+ def hash
565
+ [link, all_caps, bidi, bold, bold_bi, border, color, complex_script, double_strike_through, emboss, engrave, hidden, highlight_color, italic, italic_bi, kerning, locale_id, locale_id_bi, locale_id_far_east, name, name_ascii, name_bi, name_far_east, name_other, no_proofing, outline, position, scaling, shadow, size, size_bi, small_caps, spacing, strike_through, style_identifier, style_name, subscript, superscript, text_effect, underline, underline_color].hash
566
+ end
567
+
568
+ # Builds the object from hash
569
+ # @param [Hash] attributes Model attributes in the form of hash
570
+ # @return [Object] Returns the model itself
571
+ def build_from_hash(attributes)
572
+ return nil unless attributes.is_a?(Hash)
573
+ self.class.swagger_types.each_pair do |key, type|
574
+ if type =~ /\AArray<(.*)>/i
575
+ # check to ensure the input is an array given that the the attribute
576
+ # is documented as an array but the input is not
577
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
578
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
579
+ end
580
+ elsif !attributes[self.class.attribute_map[key]].nil?
581
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
582
+ end
583
+ # or else data not found in attributes(hash), not an issue as the data can be optional
584
+ end
585
+
586
+ self
587
+ end
588
+
589
+ # Deserializes the data based on type
590
+ # @param string type Data type
591
+ # @param string value Value to be deserialized
592
+ # @return [Object] Deserialized data
593
+ def _deserialize(type, value)
594
+ case type.to_sym
595
+ when :DateTime
596
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
597
+ when :Date
598
+ Time.at(/\d/.match(value)[0].to_f).to_date
599
+ when :String
600
+ value.to_s
601
+ when :Integer
602
+ value.to_i
603
+ when :Float
604
+ value.to_f
605
+ when :BOOLEAN
606
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
607
+ true
608
+ else
609
+ false
610
+ end
611
+ when :Object
612
+ # generic object (usually a Hash), return directly
613
+ value
614
+ when /\AArray<(?<inner_type>.+)>\z/
615
+ inner_type = Regexp.last_match[:inner_type]
616
+ value.map { |v| _deserialize(inner_type, v) }
617
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
618
+ k_type = Regexp.last_match[:k_type]
619
+ v_type = Regexp.last_match[:v_type]
620
+ {}.tap do |hash|
621
+ value.each do |k, v|
622
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
623
+ end
624
+ end
625
+ else
626
+ # model
627
+ temp_model = WordsRubySdk.const_get(type).new
628
+ temp_model.build_from_hash(value)
629
+ end
630
+ end
631
+
632
+ # Returns the string representation of the object
633
+ # @return [String] String presentation of the object
634
+ def to_s
635
+ to_hash.to_s
636
+ end
637
+
638
+ # to_body is an alias to to_hash (backward compatibility)
639
+ # @return [Hash] Returns the object in the form of hash
640
+ def to_body
641
+ to_hash
642
+ end
643
+
644
+ # Returns the object in the form of hash
645
+ # @return [Hash] Returns the object in the form of hash
646
+ def to_hash
647
+ hash = {}
648
+ self.class.attribute_map.each_pair do |attr, param|
649
+ value = self.send(attr)
650
+ next if value.nil?
651
+ hash[param] = _to_hash(value)
652
+ end
653
+ hash
654
+ end
655
+
656
+ # Outputs non-array value in the form of hash
657
+ # For object, use to_hash. Otherwise, just return the value
658
+ # @param [Object] value Any valid value
659
+ # @return [Hash] Returns the value in the form of hash
660
+ def _to_hash(value)
661
+ if value.is_a?(Array)
662
+ value.compact.map { |v| _to_hash(v) }
663
+ elsif value.is_a?(Hash)
664
+ {}.tap do |hash|
665
+ value.each { |k, v| hash[k] = _to_hash(v) }
666
+ end
667
+ elsif value.respond_to? :to_hash
668
+ value.to_hash
669
+ else
670
+ value
671
+ end
672
+ end
673
+
674
+ end
675
+
676
+ end