aspose_words_cloud 23.9.0 → 23.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +28 -4
  3. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +39 -1
  4. data/lib/aspose_words_cloud/models/bookmark_insert.rb +14 -14
  5. data/lib/aspose_words_cloud/models/bookmark_response.rb +1 -0
  6. data/lib/aspose_words_cloud/models/bookmarks_response.rb +1 -0
  7. data/lib/aspose_words_cloud/models/border.rb +5 -0
  8. data/lib/aspose_words_cloud/models/border_response.rb +1 -0
  9. data/lib/aspose_words_cloud/models/borders_response.rb +1 -0
  10. data/lib/aspose_words_cloud/models/classification_response.rb +1 -0
  11. data/lib/aspose_words_cloud/models/comment.rb +3 -0
  12. data/lib/aspose_words_cloud/models/comment_insert.rb +15 -11
  13. data/lib/aspose_words_cloud/models/comment_response.rb +1 -0
  14. data/lib/aspose_words_cloud/models/comment_update.rb +15 -11
  15. data/lib/aspose_words_cloud/models/comments_response.rb +1 -0
  16. data/lib/aspose_words_cloud/models/csv_data_load_options.rb +5 -0
  17. data/lib/aspose_words_cloud/models/custom_xml_part.rb +2 -0
  18. data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +2 -0
  19. data/lib/aspose_words_cloud/models/custom_xml_part_response.rb +1 -0
  20. data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +2 -0
  21. data/lib/aspose_words_cloud/models/custom_xml_parts_response.rb +1 -0
  22. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +11 -0
  23. data/lib/aspose_words_cloud/models/docm_save_options_data.rb +11 -0
  24. data/lib/aspose_words_cloud/models/document_properties_response.rb +1 -0
  25. data/lib/aspose_words_cloud/models/document_property_response.rb +1 -0
  26. data/lib/aspose_words_cloud/models/docx_save_options_data.rb +11 -0
  27. data/lib/aspose_words_cloud/models/dot_save_options_data.rb +11 -0
  28. data/lib/aspose_words_cloud/models/dotm_save_options_data.rb +11 -0
  29. data/lib/aspose_words_cloud/models/dotx_save_options_data.rb +11 -0
  30. data/lib/aspose_words_cloud/models/downsample_options_data.rb +3 -0
  31. data/lib/aspose_words_cloud/models/drawing_object_insert.rb +21 -21
  32. data/lib/aspose_words_cloud/models/drawing_object_update.rb +18 -18
  33. data/lib/aspose_words_cloud/models/drawing_objects_response.rb +1 -0
  34. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +39 -1
  35. data/lib/aspose_words_cloud/models/eps_save_options_data.rb +719 -0
  36. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +16 -0
  37. data/lib/aspose_words_cloud/models/error.rb +4 -4
  38. data/lib/aspose_words_cloud/models/error_details.rb +2 -2
  39. data/lib/aspose_words_cloud/models/field_insert.rb +14 -14
  40. data/lib/aspose_words_cloud/models/field_names_response.rb +1 -0
  41. data/lib/aspose_words_cloud/models/field_options.rb +16 -16
  42. data/lib/aspose_words_cloud/models/field_response.rb +1 -0
  43. data/lib/aspose_words_cloud/models/field_update.rb +14 -14
  44. data/lib/aspose_words_cloud/models/fields_response.rb +1 -0
  45. data/lib/aspose_words_cloud/models/flat_opc_macro_save_options_data.rb +11 -0
  46. data/lib/aspose_words_cloud/models/flat_opc_save_options_data.rb +11 -0
  47. data/lib/aspose_words_cloud/models/flat_opc_template_macro_save_options_data.rb +11 -0
  48. data/lib/aspose_words_cloud/models/flat_opc_template_save_options_data.rb +11 -0
  49. data/lib/aspose_words_cloud/models/font.rb +4 -0
  50. data/lib/aspose_words_cloud/models/font_response.rb +1 -0
  51. data/lib/aspose_words_cloud/models/footnote.rb +2 -0
  52. data/lib/aspose_words_cloud/models/footnote_insert.rb +13 -11
  53. data/lib/aspose_words_cloud/models/footnote_response.rb +1 -0
  54. data/lib/aspose_words_cloud/models/footnote_update.rb +13 -11
  55. data/lib/aspose_words_cloud/models/footnotes_response.rb +1 -0
  56. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +8 -0
  57. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +9 -0
  58. data/lib/aspose_words_cloud/models/form_field_response.rb +1 -0
  59. data/lib/aspose_words_cloud/models/form_field_text_input.rb +10 -0
  60. data/lib/aspose_words_cloud/models/form_fields_response.rb +1 -0
  61. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +39 -1
  62. data/lib/aspose_words_cloud/models/header_footer_response.rb +1 -0
  63. data/lib/aspose_words_cloud/models/header_footers_response.rb +1 -0
  64. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +18 -0
  65. data/lib/aspose_words_cloud/models/html_save_options_data.rb +16 -0
  66. data/lib/aspose_words_cloud/models/hyperlink_response.rb +1 -0
  67. data/lib/aspose_words_cloud/models/hyperlinks_response.rb +1 -0
  68. data/lib/aspose_words_cloud/models/image_entry_list.rb +1 -0
  69. data/lib/aspose_words_cloud/models/info_response.rb +3 -3
  70. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +39 -1
  71. data/lib/aspose_words_cloud/models/json_data_load_options.rb +15 -0
  72. data/lib/aspose_words_cloud/models/list_format.rb +2 -0
  73. data/lib/aspose_words_cloud/models/list_format_update.rb +17 -14
  74. data/lib/aspose_words_cloud/models/list_info.rb +7 -0
  75. data/lib/aspose_words_cloud/models/list_insert.rb +1 -0
  76. data/lib/aspose_words_cloud/models/list_level.rb +11 -0
  77. data/lib/aspose_words_cloud/models/list_level_update.rb +72 -62
  78. data/lib/aspose_words_cloud/models/list_levels.rb +1 -0
  79. data/lib/aspose_words_cloud/models/list_response.rb +1 -0
  80. data/lib/aspose_words_cloud/models/list_update.rb +1 -0
  81. data/lib/aspose_words_cloud/models/lists_response.rb +1 -0
  82. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +11 -0
  83. data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +1 -0
  84. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +17 -0
  85. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +12 -0
  86. data/lib/aspose_words_cloud/models/office_math_object.rb +2 -0
  87. data/lib/aspose_words_cloud/models/office_math_object_response.rb +1 -0
  88. data/lib/aspose_words_cloud/models/office_math_objects_response.rb +1 -0
  89. data/lib/aspose_words_cloud/models/open_xps_save_options_data.rb +13 -0
  90. data/lib/aspose_words_cloud/models/ott_save_options_data.rb +12 -0
  91. data/lib/aspose_words_cloud/models/outline_options_data.rb +17 -16
  92. data/lib/aspose_words_cloud/models/page_setup.rb +7 -0
  93. data/lib/aspose_words_cloud/models/paragraph_format.rb +7 -0
  94. data/lib/aspose_words_cloud/models/paragraph_format_response.rb +1 -0
  95. data/lib/aspose_words_cloud/models/paragraph_format_update.rb +7 -0
  96. data/lib/aspose_words_cloud/models/paragraph_link_collection_response.rb +1 -0
  97. data/lib/aspose_words_cloud/models/paragraph_list_format_response.rb +1 -0
  98. data/lib/aspose_words_cloud/models/paragraph_response.rb +1 -0
  99. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +15 -0
  100. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +29 -0
  101. data/lib/aspose_words_cloud/models/png_save_options_data.rb +39 -1
  102. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +13 -0
  103. data/lib/aspose_words_cloud/models/range_text_response.rb +1 -0
  104. data/lib/aspose_words_cloud/models/requests/insert_watermark_image_online_request.rb +1 -11
  105. data/lib/aspose_words_cloud/models/responses/accept_all_revisions_online_response.rb +1 -1
  106. data/lib/aspose_words_cloud/models/responses/append_document_online_response.rb +1 -1
  107. data/lib/aspose_words_cloud/models/responses/apply_style_to_document_element_online_response.rb +1 -1
  108. data/lib/aspose_words_cloud/models/responses/compare_document_online_response.rb +1 -1
  109. data/lib/aspose_words_cloud/models/responses/compress_document_online_response.rb +1 -1
  110. data/lib/aspose_words_cloud/models/responses/copy_style_online_response.rb +2 -1
  111. data/lib/aspose_words_cloud/models/responses/create_or_update_document_property_online_response.rb +2 -1
  112. data/lib/aspose_words_cloud/models/responses/delete_all_paragraph_tab_stops_online_response.rb +2 -1
  113. data/lib/aspose_words_cloud/models/responses/delete_border_online_response.rb +2 -1
  114. data/lib/aspose_words_cloud/models/responses/delete_borders_online_response.rb +2 -1
  115. data/lib/aspose_words_cloud/models/responses/delete_paragraph_list_format_online_response.rb +2 -1
  116. data/lib/aspose_words_cloud/models/responses/delete_paragraph_tab_stop_online_response.rb +2 -1
  117. data/lib/aspose_words_cloud/models/responses/delete_watermark_online_response.rb +1 -1
  118. data/lib/aspose_words_cloud/models/responses/insert_bookmark_online_response.rb +2 -1
  119. data/lib/aspose_words_cloud/models/responses/insert_comment_online_response.rb +2 -1
  120. data/lib/aspose_words_cloud/models/responses/insert_custom_xml_part_online_response.rb +2 -1
  121. data/lib/aspose_words_cloud/models/responses/insert_drawing_object_online_response.rb +1 -1
  122. data/lib/aspose_words_cloud/models/responses/insert_field_online_response.rb +2 -1
  123. data/lib/aspose_words_cloud/models/responses/insert_footnote_online_response.rb +2 -1
  124. data/lib/aspose_words_cloud/models/responses/insert_form_field_online_response.rb +2 -1
  125. data/lib/aspose_words_cloud/models/responses/insert_header_footer_online_response.rb +2 -1
  126. data/lib/aspose_words_cloud/models/responses/insert_list_online_response.rb +2 -1
  127. data/lib/aspose_words_cloud/models/responses/insert_or_update_paragraph_tab_stop_online_response.rb +2 -1
  128. data/lib/aspose_words_cloud/models/responses/insert_page_numbers_online_response.rb +1 -1
  129. data/lib/aspose_words_cloud/models/responses/insert_paragraph_online_response.rb +2 -1
  130. data/lib/aspose_words_cloud/models/responses/insert_run_online_response.rb +2 -1
  131. data/lib/aspose_words_cloud/models/responses/insert_structured_document_tag_online_response.rb +1 -1
  132. data/lib/aspose_words_cloud/models/responses/insert_style_online_response.rb +2 -1
  133. data/lib/aspose_words_cloud/models/responses/insert_table_cell_online_response.rb +2 -1
  134. data/lib/aspose_words_cloud/models/responses/insert_table_online_response.rb +2 -1
  135. data/lib/aspose_words_cloud/models/responses/insert_table_row_online_response.rb +2 -1
  136. data/lib/aspose_words_cloud/models/responses/insert_watermark_image_online_response.rb +1 -1
  137. data/lib/aspose_words_cloud/models/responses/insert_watermark_text_online_response.rb +1 -1
  138. data/lib/aspose_words_cloud/models/responses/protect_document_online_response.rb +1 -1
  139. data/lib/aspose_words_cloud/models/responses/reject_all_revisions_online_response.rb +1 -1
  140. data/lib/aspose_words_cloud/models/responses/remove_range_online_response.rb +1 -1
  141. data/lib/aspose_words_cloud/models/responses/replace_text_online_response.rb +1 -1
  142. data/lib/aspose_words_cloud/models/responses/replace_with_text_online_response.rb +1 -1
  143. data/lib/aspose_words_cloud/models/responses/save_as_online_response.rb +1 -1
  144. data/lib/aspose_words_cloud/models/responses/save_as_range_online_response.rb +1 -1
  145. data/lib/aspose_words_cloud/models/responses/save_as_tiff_online_response.rb +1 -1
  146. data/lib/aspose_words_cloud/models/responses/split_document_online_response.rb +2 -1
  147. data/lib/aspose_words_cloud/models/responses/unprotect_document_online_response.rb +1 -1
  148. data/lib/aspose_words_cloud/models/responses/update_bookmark_online_response.rb +2 -1
  149. data/lib/aspose_words_cloud/models/responses/update_border_online_response.rb +2 -1
  150. data/lib/aspose_words_cloud/models/responses/update_comment_online_response.rb +2 -1
  151. data/lib/aspose_words_cloud/models/responses/update_custom_xml_part_online_response.rb +2 -1
  152. data/lib/aspose_words_cloud/models/responses/update_drawing_object_online_response.rb +1 -1
  153. data/lib/aspose_words_cloud/models/responses/update_field_online_response.rb +2 -1
  154. data/lib/aspose_words_cloud/models/responses/update_fields_online_response.rb +1 -1
  155. data/lib/aspose_words_cloud/models/responses/update_footnote_online_response.rb +2 -1
  156. data/lib/aspose_words_cloud/models/responses/update_form_field_online_response.rb +2 -1
  157. data/lib/aspose_words_cloud/models/responses/update_list_level_online_response.rb +2 -1
  158. data/lib/aspose_words_cloud/models/responses/update_list_online_response.rb +2 -1
  159. data/lib/aspose_words_cloud/models/responses/update_paragraph_format_online_response.rb +2 -1
  160. data/lib/aspose_words_cloud/models/responses/update_paragraph_list_format_online_response.rb +2 -1
  161. data/lib/aspose_words_cloud/models/responses/update_run_font_online_response.rb +2 -1
  162. data/lib/aspose_words_cloud/models/responses/update_run_online_response.rb +2 -1
  163. data/lib/aspose_words_cloud/models/responses/update_section_page_setup_online_response.rb +2 -1
  164. data/lib/aspose_words_cloud/models/responses/update_structured_document_tag_online_response.rb +1 -1
  165. data/lib/aspose_words_cloud/models/responses/update_style_online_response.rb +2 -1
  166. data/lib/aspose_words_cloud/models/responses/update_table_cell_format_online_response.rb +2 -1
  167. data/lib/aspose_words_cloud/models/responses/update_table_properties_online_response.rb +2 -1
  168. data/lib/aspose_words_cloud/models/responses/update_table_row_format_online_response.rb +2 -1
  169. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +11 -0
  170. data/lib/aspose_words_cloud/models/run_response.rb +1 -0
  171. data/lib/aspose_words_cloud/models/runs_response.rb +1 -0
  172. data/lib/aspose_words_cloud/models/search_response.rb +1 -0
  173. data/lib/aspose_words_cloud/models/section_link_collection_response.rb +1 -0
  174. data/lib/aspose_words_cloud/models/section_page_setup_response.rb +1 -0
  175. data/lib/aspose_words_cloud/models/section_response.rb +1 -0
  176. data/lib/aspose_words_cloud/models/split_document_response.rb +1 -0
  177. data/lib/aspose_words_cloud/models/structured_document_tag.rb +30 -4
  178. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +30 -4
  179. data/lib/aspose_words_cloud/models/structured_document_tag_list_item.rb +2 -0
  180. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +30 -4
  181. data/lib/aspose_words_cloud/models/structured_document_tags_response.rb +1 -0
  182. data/lib/aspose_words_cloud/models/style.rb +6 -0
  183. data/lib/aspose_words_cloud/models/style_response.rb +1 -0
  184. data/lib/aspose_words_cloud/models/style_update.rb +17 -14
  185. data/lib/aspose_words_cloud/models/styles_response.rb +1 -0
  186. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +13 -0
  187. data/lib/aspose_words_cloud/models/tab_stops_response.rb +1 -0
  188. data/lib/aspose_words_cloud/models/table_cell_format.rb +3 -0
  189. data/lib/aspose_words_cloud/models/table_cell_format_response.rb +1 -0
  190. data/lib/aspose_words_cloud/models/table_cell_response.rb +1 -0
  191. data/lib/aspose_words_cloud/models/table_link_collection_response.rb +1 -0
  192. data/lib/aspose_words_cloud/models/table_properties.rb +3 -0
  193. data/lib/aspose_words_cloud/models/table_properties_response.rb +1 -0
  194. data/lib/aspose_words_cloud/models/table_response.rb +1 -0
  195. data/lib/aspose_words_cloud/models/table_row_format_response.rb +1 -0
  196. data/lib/aspose_words_cloud/models/table_row_response.rb +1 -0
  197. data/lib/aspose_words_cloud/models/text_save_options_data.rb +11 -0
  198. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +39 -1
  199. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +11 -0
  200. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +15 -0
  201. data/lib/aspose_words_cloud/models/xaml_flow_pack_save_options_data.rb +11 -0
  202. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +11 -0
  203. data/lib/aspose_words_cloud/models/xml_color.rb +20 -4
  204. data/lib/aspose_words_cloud/models/xml_data_load_options.rb +2 -0
  205. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +13 -0
  206. data/lib/aspose_words_cloud/version.rb +1 -1
  207. data/lib/aspose_words_cloud.rb +1 -9
  208. metadata +3 -11
  209. data/lib/aspose_words_cloud/models/font_dto.rb +0 -199
  210. data/lib/aspose_words_cloud/models/range_document_dto.rb +0 -208
  211. data/lib/aspose_words_cloud/models/replace_range_dto.rb +0 -259
  212. data/lib/aspose_words_cloud/models/table_cell_format_dto.rb +0 -199
  213. data/lib/aspose_words_cloud/models/table_cell_insert_dto.rb +0 -208
  214. data/lib/aspose_words_cloud/models/table_insert_dto.rb +0 -228
  215. data/lib/aspose_words_cloud/models/table_properties_dto.rb +0 -199
  216. data/lib/aspose_words_cloud/models/table_row_format_dto.rb +0 -199
  217. data/lib/aspose_words_cloud/models/table_row_insert_dto.rb +0 -218
@@ -1,199 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="table_properties_dto.rb">
3
- # Copyright (c) 2023 Aspose.Words for Cloud
4
- # </copyright>
5
- # <summary>
6
- # Permission is hereby granted, free of charge, to any person obtaining a copy
7
- # of this software and associated documentation files (the "Software"), to deal
8
- # in the Software without restriction, including without limitation the rights
9
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- # copies of the Software, and to permit persons to whom the Software is
11
- # furnished to do so, subject to the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be included in all
14
- # copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- # SOFTWARE.
23
- # </summary>
24
- # ------------------------------------------------------------------------------------
25
-
26
- require 'date'
27
-
28
- module AsposeWordsCloud
29
-
30
- class TablePropertiesDto
31
- # Attribute mapping from ruby-style variable name to JSON key.
32
- def self.attribute_map
33
- {
34
- }
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.swagger_types
39
- {
40
- }
41
- end
42
-
43
- # Initializes the object
44
- # @param [Hash] attributes Model attributes in the form of hash
45
- def initialize(attributes = {})
46
- return unless attributes.is_a?(Hash)
47
-
48
- # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
-
51
- end
52
-
53
- # Show invalid properties with the reasons. Usually used together with valid?
54
- # @return Array for valid properies with the reasons
55
- def list_invalid_properties
56
- invalid_properties = []
57
- return invalid_properties
58
- end
59
-
60
- # Check to see if the all the properties in the model are valid
61
- # @return true if the model is valid
62
- def valid?
63
- return true
64
- end
65
-
66
- # Checks equality by comparing each attribute.
67
- # @param [Object] Object to be compared
68
- def ==(other)
69
- return true if self.equal?(other)
70
- self.class == other.class
71
- end
72
-
73
- # @see the `==` method
74
- # @param [Object] Object to be compared
75
- def eql?(other)
76
- self == other
77
- end
78
-
79
- # Calculates hash code according to all attributes.
80
- # @return [Fixnum] Hash code
81
- def hash
82
- [].hash
83
- end
84
-
85
- # Builds the object from hash
86
- # @param [Hash] attributes Model attributes in the form of hash
87
- # @return [Object] Returns the model itself
88
- def build_from_hash(attributes)
89
- return nil unless attributes.is_a?(Hash)
90
- self.class.swagger_types.each_pair do |key, type|
91
- if type =~ /\AArray<(.*)>/i
92
- # check to ensure the input is an array given that the the attribute
93
- # is documented as an array but the input is not
94
- if attributes[self.class.attribute_map[key]].is_a?(Array)
95
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
96
- end
97
- elsif !attributes[self.class.attribute_map[key]].nil?
98
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
99
- end
100
- # or else data not found in attributes(hash), not an issue as the data can be optional
101
- end
102
-
103
- self
104
- end
105
-
106
- # Deserializes the data based on type
107
- # @param string type Data type
108
- # @param string value Value to be deserialized
109
- # @return [Object] Deserialized data
110
- def _deserialize(type, value)
111
- case type.to_sym
112
- when :DateTime
113
- Time.at(/\d/.match(value)[0].to_f).to_datetime
114
- when :Date
115
- Time.at(/\d/.match(value)[0].to_f).to_date
116
- when :String
117
- value.to_s
118
- when :Integer
119
- value.to_i
120
- when :Float
121
- value.to_f
122
- when :BOOLEAN
123
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
- true
125
- else
126
- false
127
- end
128
- when :Object
129
- # generic object (usually a Hash), return directly
130
- value
131
- when /\AArray<(?<inner_type>.+)>\z/
132
- inner_type = Regexp.last_match[:inner_type]
133
- value.map { |v| _deserialize(inner_type, v) }
134
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
- k_type = Regexp.last_match[:k_type]
136
- v_type = Regexp.last_match[:v_type]
137
- {}.tap do |hash|
138
- value.each do |k, v|
139
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
- end
141
- end
142
- else
143
- # model
144
- if value[:'$type']
145
- type = value[:'$type'][0..-4]
146
- end
147
-
148
- temp_model = AsposeWordsCloud.const_get(type).new
149
- temp_model.build_from_hash(value)
150
- end
151
- end
152
-
153
- # Returns the string representation of the object
154
- # @return [String] String presentation of the object
155
- def to_s
156
- to_hash.to_s
157
- end
158
-
159
- # to_body is an alias to to_hash (backward compatibility)
160
- # @return [Hash] Returns the object in the form of hash
161
- def to_body
162
- to_hash
163
- end
164
-
165
- # Returns the object in the form of hash
166
- # @return [Hash] Returns the object in the form of hash
167
- def to_hash
168
- hash = {}
169
- self.class.attribute_map.each_pair do |attr, param|
170
- value = self.send(attr)
171
- next if value.nil?
172
- hash[param] = _to_hash(value)
173
- end
174
- hash
175
- end
176
-
177
- # Outputs non-array value in the form of hash
178
- # For object, use to_hash. Otherwise, just return the value
179
- # @param [Object] value Any valid value
180
- # @return [Hash] Returns the value in the form of hash
181
- def _to_hash(value)
182
- if value.is_a?(Array)
183
- value.compact.map { |v| _to_hash(v) }
184
- elsif value.is_a?(Hash)
185
- {}.tap do |hash|
186
- value.each { |k, v| hash[k] = _to_hash(v) }
187
- end
188
- elsif value.respond_to? :to_hash
189
- value.to_hash
190
- else
191
- value
192
- end
193
- end
194
-
195
- def collectFilesContent(resultFilesContent)
196
- end
197
-
198
- end
199
- end
@@ -1,199 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="table_row_format_dto.rb">
3
- # Copyright (c) 2023 Aspose.Words for Cloud
4
- # </copyright>
5
- # <summary>
6
- # Permission is hereby granted, free of charge, to any person obtaining a copy
7
- # of this software and associated documentation files (the "Software"), to deal
8
- # in the Software without restriction, including without limitation the rights
9
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- # copies of the Software, and to permit persons to whom the Software is
11
- # furnished to do so, subject to the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be included in all
14
- # copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- # SOFTWARE.
23
- # </summary>
24
- # ------------------------------------------------------------------------------------
25
-
26
- require 'date'
27
-
28
- module AsposeWordsCloud
29
-
30
- class TableRowFormatDto
31
- # Attribute mapping from ruby-style variable name to JSON key.
32
- def self.attribute_map
33
- {
34
- }
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.swagger_types
39
- {
40
- }
41
- end
42
-
43
- # Initializes the object
44
- # @param [Hash] attributes Model attributes in the form of hash
45
- def initialize(attributes = {})
46
- return unless attributes.is_a?(Hash)
47
-
48
- # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
-
51
- end
52
-
53
- # Show invalid properties with the reasons. Usually used together with valid?
54
- # @return Array for valid properies with the reasons
55
- def list_invalid_properties
56
- invalid_properties = []
57
- return invalid_properties
58
- end
59
-
60
- # Check to see if the all the properties in the model are valid
61
- # @return true if the model is valid
62
- def valid?
63
- return true
64
- end
65
-
66
- # Checks equality by comparing each attribute.
67
- # @param [Object] Object to be compared
68
- def ==(other)
69
- return true if self.equal?(other)
70
- self.class == other.class
71
- end
72
-
73
- # @see the `==` method
74
- # @param [Object] Object to be compared
75
- def eql?(other)
76
- self == other
77
- end
78
-
79
- # Calculates hash code according to all attributes.
80
- # @return [Fixnum] Hash code
81
- def hash
82
- [].hash
83
- end
84
-
85
- # Builds the object from hash
86
- # @param [Hash] attributes Model attributes in the form of hash
87
- # @return [Object] Returns the model itself
88
- def build_from_hash(attributes)
89
- return nil unless attributes.is_a?(Hash)
90
- self.class.swagger_types.each_pair do |key, type|
91
- if type =~ /\AArray<(.*)>/i
92
- # check to ensure the input is an array given that the the attribute
93
- # is documented as an array but the input is not
94
- if attributes[self.class.attribute_map[key]].is_a?(Array)
95
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
96
- end
97
- elsif !attributes[self.class.attribute_map[key]].nil?
98
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
99
- end
100
- # or else data not found in attributes(hash), not an issue as the data can be optional
101
- end
102
-
103
- self
104
- end
105
-
106
- # Deserializes the data based on type
107
- # @param string type Data type
108
- # @param string value Value to be deserialized
109
- # @return [Object] Deserialized data
110
- def _deserialize(type, value)
111
- case type.to_sym
112
- when :DateTime
113
- Time.at(/\d/.match(value)[0].to_f).to_datetime
114
- when :Date
115
- Time.at(/\d/.match(value)[0].to_f).to_date
116
- when :String
117
- value.to_s
118
- when :Integer
119
- value.to_i
120
- when :Float
121
- value.to_f
122
- when :BOOLEAN
123
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
- true
125
- else
126
- false
127
- end
128
- when :Object
129
- # generic object (usually a Hash), return directly
130
- value
131
- when /\AArray<(?<inner_type>.+)>\z/
132
- inner_type = Regexp.last_match[:inner_type]
133
- value.map { |v| _deserialize(inner_type, v) }
134
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
- k_type = Regexp.last_match[:k_type]
136
- v_type = Regexp.last_match[:v_type]
137
- {}.tap do |hash|
138
- value.each do |k, v|
139
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
- end
141
- end
142
- else
143
- # model
144
- if value[:'$type']
145
- type = value[:'$type'][0..-4]
146
- end
147
-
148
- temp_model = AsposeWordsCloud.const_get(type).new
149
- temp_model.build_from_hash(value)
150
- end
151
- end
152
-
153
- # Returns the string representation of the object
154
- # @return [String] String presentation of the object
155
- def to_s
156
- to_hash.to_s
157
- end
158
-
159
- # to_body is an alias to to_hash (backward compatibility)
160
- # @return [Hash] Returns the object in the form of hash
161
- def to_body
162
- to_hash
163
- end
164
-
165
- # Returns the object in the form of hash
166
- # @return [Hash] Returns the object in the form of hash
167
- def to_hash
168
- hash = {}
169
- self.class.attribute_map.each_pair do |attr, param|
170
- value = self.send(attr)
171
- next if value.nil?
172
- hash[param] = _to_hash(value)
173
- end
174
- hash
175
- end
176
-
177
- # Outputs non-array value in the form of hash
178
- # For object, use to_hash. Otherwise, just return the value
179
- # @param [Object] value Any valid value
180
- # @return [Hash] Returns the value in the form of hash
181
- def _to_hash(value)
182
- if value.is_a?(Array)
183
- value.compact.map { |v| _to_hash(v) }
184
- elsif value.is_a?(Hash)
185
- {}.tap do |hash|
186
- value.each { |k, v| hash[k] = _to_hash(v) }
187
- end
188
- elsif value.respond_to? :to_hash
189
- value.to_hash
190
- else
191
- value
192
- end
193
- end
194
-
195
- def collectFilesContent(resultFilesContent)
196
- end
197
-
198
- end
199
- end
@@ -1,218 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="table_row_insert_dto.rb">
3
- # Copyright (c) 2023 Aspose.Words for Cloud
4
- # </copyright>
5
- # <summary>
6
- # Permission is hereby granted, free of charge, to any person obtaining a copy
7
- # of this software and associated documentation files (the "Software"), to deal
8
- # in the Software without restriction, including without limitation the rights
9
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- # copies of the Software, and to permit persons to whom the Software is
11
- # furnished to do so, subject to the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be included in all
14
- # copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- # SOFTWARE.
23
- # </summary>
24
- # ------------------------------------------------------------------------------------
25
-
26
- require 'date'
27
-
28
- module AsposeWordsCloud
29
-
30
- # DTO container with a table row element.
31
- class TableRowInsertDto
32
- # Gets or sets the count of columns. The default value is 1.
33
- attr_accessor :columns_count
34
-
35
- # Gets or sets table row will be inserted after row with specified 0-based index.
36
- attr_accessor :insert_after
37
- # Attribute mapping from ruby-style variable name to JSON key.
38
- def self.attribute_map
39
- {
40
- :'columns_count' => :'ColumnsCount',
41
- :'insert_after' => :'InsertAfter'
42
- }
43
- end
44
-
45
- # Attribute type mapping.
46
- def self.swagger_types
47
- {
48
- :'columns_count' => :'Integer',
49
- :'insert_after' => :'Integer'
50
- }
51
- end
52
-
53
- # Initializes the object
54
- # @param [Hash] attributes Model attributes in the form of hash
55
- def initialize(attributes = {})
56
- return unless attributes.is_a?(Hash)
57
-
58
- # convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
-
61
- if attributes.key?(:'ColumnsCount')
62
- self.columns_count = attributes[:'ColumnsCount']
63
- end
64
-
65
- if attributes.key?(:'InsertAfter')
66
- self.insert_after = attributes[:'InsertAfter']
67
- end
68
- end
69
-
70
- # Show invalid properties with the reasons. Usually used together with valid?
71
- # @return Array for valid properies with the reasons
72
- def list_invalid_properties
73
- invalid_properties = []
74
- return invalid_properties
75
- end
76
-
77
- # Check to see if the all the properties in the model are valid
78
- # @return true if the model is valid
79
- def valid?
80
- return true
81
- end
82
-
83
- # Checks equality by comparing each attribute.
84
- # @param [Object] Object to be compared
85
- def ==(other)
86
- return true if self.equal?(other)
87
- self.class == other.class &&
88
- columns_count == other.columns_count &&
89
- insert_after == other.insert_after
90
- end
91
-
92
- # @see the `==` method
93
- # @param [Object] Object to be compared
94
- def eql?(other)
95
- self == other
96
- end
97
-
98
- # Calculates hash code according to all attributes.
99
- # @return [Fixnum] Hash code
100
- def hash
101
- [columns_count, insert_after].hash
102
- end
103
-
104
- # Builds the object from hash
105
- # @param [Hash] attributes Model attributes in the form of hash
106
- # @return [Object] Returns the model itself
107
- def build_from_hash(attributes)
108
- return nil unless attributes.is_a?(Hash)
109
- self.class.swagger_types.each_pair do |key, type|
110
- if type =~ /\AArray<(.*)>/i
111
- # check to ensure the input is an array given that the the attribute
112
- # is documented as an array but the input is not
113
- if attributes[self.class.attribute_map[key]].is_a?(Array)
114
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
- end
116
- elsif !attributes[self.class.attribute_map[key]].nil?
117
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
- end
119
- # or else data not found in attributes(hash), not an issue as the data can be optional
120
- end
121
-
122
- self
123
- end
124
-
125
- # Deserializes the data based on type
126
- # @param string type Data type
127
- # @param string value Value to be deserialized
128
- # @return [Object] Deserialized data
129
- def _deserialize(type, value)
130
- case type.to_sym
131
- when :DateTime
132
- Time.at(/\d/.match(value)[0].to_f).to_datetime
133
- when :Date
134
- Time.at(/\d/.match(value)[0].to_f).to_date
135
- when :String
136
- value.to_s
137
- when :Integer
138
- value.to_i
139
- when :Float
140
- value.to_f
141
- when :BOOLEAN
142
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
- true
144
- else
145
- false
146
- end
147
- when :Object
148
- # generic object (usually a Hash), return directly
149
- value
150
- when /\AArray<(?<inner_type>.+)>\z/
151
- inner_type = Regexp.last_match[:inner_type]
152
- value.map { |v| _deserialize(inner_type, v) }
153
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
- k_type = Regexp.last_match[:k_type]
155
- v_type = Regexp.last_match[:v_type]
156
- {}.tap do |hash|
157
- value.each do |k, v|
158
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
- end
160
- end
161
- else
162
- # model
163
- if value[:'$type']
164
- type = value[:'$type'][0..-4]
165
- end
166
-
167
- temp_model = AsposeWordsCloud.const_get(type).new
168
- temp_model.build_from_hash(value)
169
- end
170
- end
171
-
172
- # Returns the string representation of the object
173
- # @return [String] String presentation of the object
174
- def to_s
175
- to_hash.to_s
176
- end
177
-
178
- # to_body is an alias to to_hash (backward compatibility)
179
- # @return [Hash] Returns the object in the form of hash
180
- def to_body
181
- to_hash
182
- end
183
-
184
- # Returns the object in the form of hash
185
- # @return [Hash] Returns the object in the form of hash
186
- def to_hash
187
- hash = {}
188
- self.class.attribute_map.each_pair do |attr, param|
189
- value = self.send(attr)
190
- next if value.nil?
191
- hash[param] = _to_hash(value)
192
- end
193
- hash
194
- end
195
-
196
- # Outputs non-array value in the form of hash
197
- # For object, use to_hash. Otherwise, just return the value
198
- # @param [Object] value Any valid value
199
- # @return [Hash] Returns the value in the form of hash
200
- def _to_hash(value)
201
- if value.is_a?(Array)
202
- value.compact.map { |v| _to_hash(v) }
203
- elsif value.is_a?(Hash)
204
- {}.tap do |hash|
205
- value.each { |k, v| hash[k] = _to_hash(v) }
206
- end
207
- elsif value.respond_to? :to_hash
208
- value.to_hash
209
- else
210
- value
211
- end
212
- end
213
-
214
- def collectFilesContent(resultFilesContent)
215
- end
216
-
217
- end
218
- end