aspose_words_cloud 23.9.0 → 23.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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="font_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 FontDto
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,208 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="range_document_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 Range element.
31
- class RangeDocumentDto
32
- # Gets or sets the name for a new document.
33
- attr_accessor :document_name
34
- # Attribute mapping from ruby-style variable name to JSON key.
35
- def self.attribute_map
36
- {
37
- :'document_name' => :'DocumentName'
38
- }
39
- end
40
-
41
- # Attribute type mapping.
42
- def self.swagger_types
43
- {
44
- :'document_name' => :'String'
45
- }
46
- end
47
-
48
- # Initializes the object
49
- # @param [Hash] attributes Model attributes in the form of hash
50
- def initialize(attributes = {})
51
- return unless attributes.is_a?(Hash)
52
-
53
- # convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
-
56
- if attributes.key?(:'DocumentName')
57
- self.document_name = attributes[:'DocumentName']
58
- end
59
- end
60
-
61
- # Show invalid properties with the reasons. Usually used together with valid?
62
- # @return Array for valid properies with the reasons
63
- def list_invalid_properties
64
- invalid_properties = []
65
- return invalid_properties
66
- end
67
-
68
- # Check to see if the all the properties in the model are valid
69
- # @return true if the model is valid
70
- def valid?
71
- return true
72
- end
73
-
74
- # Checks equality by comparing each attribute.
75
- # @param [Object] Object to be compared
76
- def ==(other)
77
- return true if self.equal?(other)
78
- self.class == other.class &&
79
- document_name == other.document_name
80
- end
81
-
82
- # @see the `==` method
83
- # @param [Object] Object to be compared
84
- def eql?(other)
85
- self == other
86
- end
87
-
88
- # Calculates hash code according to all attributes.
89
- # @return [Fixnum] Hash code
90
- def hash
91
- [document_name].hash
92
- end
93
-
94
- # Builds the object from hash
95
- # @param [Hash] attributes Model attributes in the form of hash
96
- # @return [Object] Returns the model itself
97
- def build_from_hash(attributes)
98
- return nil unless attributes.is_a?(Hash)
99
- self.class.swagger_types.each_pair do |key, type|
100
- if type =~ /\AArray<(.*)>/i
101
- # check to ensure the input is an array given that the the attribute
102
- # is documented as an array but the input is not
103
- if attributes[self.class.attribute_map[key]].is_a?(Array)
104
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
105
- end
106
- elsif !attributes[self.class.attribute_map[key]].nil?
107
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
108
- end
109
- # or else data not found in attributes(hash), not an issue as the data can be optional
110
- end
111
-
112
- self
113
- end
114
-
115
- # Deserializes the data based on type
116
- # @param string type Data type
117
- # @param string value Value to be deserialized
118
- # @return [Object] Deserialized data
119
- def _deserialize(type, value)
120
- case type.to_sym
121
- when :DateTime
122
- Time.at(/\d/.match(value)[0].to_f).to_datetime
123
- when :Date
124
- Time.at(/\d/.match(value)[0].to_f).to_date
125
- when :String
126
- value.to_s
127
- when :Integer
128
- value.to_i
129
- when :Float
130
- value.to_f
131
- when :BOOLEAN
132
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
133
- true
134
- else
135
- false
136
- end
137
- when :Object
138
- # generic object (usually a Hash), return directly
139
- value
140
- when /\AArray<(?<inner_type>.+)>\z/
141
- inner_type = Regexp.last_match[:inner_type]
142
- value.map { |v| _deserialize(inner_type, v) }
143
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
144
- k_type = Regexp.last_match[:k_type]
145
- v_type = Regexp.last_match[:v_type]
146
- {}.tap do |hash|
147
- value.each do |k, v|
148
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
149
- end
150
- end
151
- else
152
- # model
153
- if value[:'$type']
154
- type = value[:'$type'][0..-4]
155
- end
156
-
157
- temp_model = AsposeWordsCloud.const_get(type).new
158
- temp_model.build_from_hash(value)
159
- end
160
- end
161
-
162
- # Returns the string representation of the object
163
- # @return [String] String presentation of the object
164
- def to_s
165
- to_hash.to_s
166
- end
167
-
168
- # to_body is an alias to to_hash (backward compatibility)
169
- # @return [Hash] Returns the object in the form of hash
170
- def to_body
171
- to_hash
172
- end
173
-
174
- # Returns the object in the form of hash
175
- # @return [Hash] Returns the object in the form of hash
176
- def to_hash
177
- hash = {}
178
- self.class.attribute_map.each_pair do |attr, param|
179
- value = self.send(attr)
180
- next if value.nil?
181
- hash[param] = _to_hash(value)
182
- end
183
- hash
184
- end
185
-
186
- # Outputs non-array value in the form of hash
187
- # For object, use to_hash. Otherwise, just return the value
188
- # @param [Object] value Any valid value
189
- # @return [Hash] Returns the value in the form of hash
190
- def _to_hash(value)
191
- if value.is_a?(Array)
192
- value.compact.map { |v| _to_hash(v) }
193
- elsif value.is_a?(Hash)
194
- {}.tap do |hash|
195
- value.each { |k, v| hash[k] = _to_hash(v) }
196
- end
197
- elsif value.respond_to? :to_hash
198
- value.to_hash
199
- else
200
- value
201
- end
202
- end
203
-
204
- def collectFilesContent(resultFilesContent)
205
- end
206
-
207
- end
208
- end
@@ -1,259 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="replace_range_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 range element.
31
- class ReplaceRangeDto
32
- # Gets or sets the range's text.
33
- attr_accessor :text
34
-
35
- # Gets or sets the range's text type.
36
- attr_accessor :text_type
37
-
38
- class EnumAttributeValidator
39
- attr_reader :datatype
40
- attr_reader :allowable_values
41
-
42
- def initialize(datatype, allowable_values)
43
- @allowable_values = allowable_values.map do |value|
44
- case datatype.to_s
45
- when /Integer/i
46
- value.to_i
47
- when /Float/i
48
- value.to_f
49
- else
50
- value
51
- end
52
- end
53
- end
54
-
55
- def valid?(value)
56
- !value || allowable_values.include?(value)
57
- end
58
- end
59
-
60
- # Attribute mapping from ruby-style variable name to JSON key.
61
- def self.attribute_map
62
- {
63
- :'text' => :'Text',
64
- :'text_type' => :'TextType'
65
- }
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.swagger_types
70
- {
71
- :'text' => :'String',
72
- :'text_type' => :'String'
73
- }
74
- end
75
-
76
- # Initializes the object
77
- # @param [Hash] attributes Model attributes in the form of hash
78
- def initialize(attributes = {})
79
- return unless attributes.is_a?(Hash)
80
-
81
- # convert string to symbol for hash key
82
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
83
-
84
- if attributes.key?(:'Text')
85
- self.text = attributes[:'Text']
86
- end
87
-
88
- if attributes.key?(:'TextType')
89
- self.text_type = attributes[:'TextType']
90
- end
91
- end
92
-
93
- # Show invalid properties with the reasons. Usually used together with valid?
94
- # @return Array for valid properies with the reasons
95
- def list_invalid_properties
96
- invalid_properties = []
97
- return invalid_properties
98
- end
99
-
100
- # Check to see if the all the properties in the model are valid
101
- # @return true if the model is valid
102
- def valid?
103
- text_type_validator = EnumAttributeValidator.new('String', ["Text", "Html"])
104
- return false unless text_type_validator.valid?(@text_type)
105
-
106
- return true
107
- end
108
-
109
- # Custom attribute writer method checking allowed values (enum).
110
- # @param [Object] text_type Object to be assigned
111
- def text_type=(text_type)
112
- validator = EnumAttributeValidator.new('String', ["Text", "Html"])
113
- if text_type.to_i == 0
114
- unless validator.valid?(text_type)
115
- raise ArgumentError, "invalid value for 'text_type', must be one of #{validator.allowable_values}."
116
- end
117
- @text_type = text_type
118
- else
119
- @text_type = validator.allowable_values[text_type.to_i]
120
- end
121
- end
122
-
123
-
124
- # Checks equality by comparing each attribute.
125
- # @param [Object] Object to be compared
126
- def ==(other)
127
- return true if self.equal?(other)
128
- self.class == other.class &&
129
- text == other.text &&
130
- text_type == other.text_type
131
- end
132
-
133
- # @see the `==` method
134
- # @param [Object] Object to be compared
135
- def eql?(other)
136
- self == other
137
- end
138
-
139
- # Calculates hash code according to all attributes.
140
- # @return [Fixnum] Hash code
141
- def hash
142
- [text, text_type].hash
143
- end
144
-
145
- # Builds the object from hash
146
- # @param [Hash] attributes Model attributes in the form of hash
147
- # @return [Object] Returns the model itself
148
- def build_from_hash(attributes)
149
- return nil unless attributes.is_a?(Hash)
150
- self.class.swagger_types.each_pair do |key, type|
151
- if type =~ /\AArray<(.*)>/i
152
- # check to ensure the input is an array given that the the attribute
153
- # is documented as an array but the input is not
154
- if attributes[self.class.attribute_map[key]].is_a?(Array)
155
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
- end
157
- elsif !attributes[self.class.attribute_map[key]].nil?
158
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
- end
160
- # or else data not found in attributes(hash), not an issue as the data can be optional
161
- end
162
-
163
- self
164
- end
165
-
166
- # Deserializes the data based on type
167
- # @param string type Data type
168
- # @param string value Value to be deserialized
169
- # @return [Object] Deserialized data
170
- def _deserialize(type, value)
171
- case type.to_sym
172
- when :DateTime
173
- Time.at(/\d/.match(value)[0].to_f).to_datetime
174
- when :Date
175
- Time.at(/\d/.match(value)[0].to_f).to_date
176
- when :String
177
- value.to_s
178
- when :Integer
179
- value.to_i
180
- when :Float
181
- value.to_f
182
- when :BOOLEAN
183
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
- true
185
- else
186
- false
187
- end
188
- when :Object
189
- # generic object (usually a Hash), return directly
190
- value
191
- when /\AArray<(?<inner_type>.+)>\z/
192
- inner_type = Regexp.last_match[:inner_type]
193
- value.map { |v| _deserialize(inner_type, v) }
194
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
- k_type = Regexp.last_match[:k_type]
196
- v_type = Regexp.last_match[:v_type]
197
- {}.tap do |hash|
198
- value.each do |k, v|
199
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
- end
201
- end
202
- else
203
- # model
204
- if value[:'$type']
205
- type = value[:'$type'][0..-4]
206
- end
207
-
208
- temp_model = AsposeWordsCloud.const_get(type).new
209
- temp_model.build_from_hash(value)
210
- end
211
- end
212
-
213
- # Returns the string representation of the object
214
- # @return [String] String presentation of the object
215
- def to_s
216
- to_hash.to_s
217
- end
218
-
219
- # to_body is an alias to to_hash (backward compatibility)
220
- # @return [Hash] Returns the object in the form of hash
221
- def to_body
222
- to_hash
223
- end
224
-
225
- # Returns the object in the form of hash
226
- # @return [Hash] Returns the object in the form of hash
227
- def to_hash
228
- hash = {}
229
- self.class.attribute_map.each_pair do |attr, param|
230
- value = self.send(attr)
231
- next if value.nil?
232
- hash[param] = _to_hash(value)
233
- end
234
- hash
235
- end
236
-
237
- # Outputs non-array value in the form of hash
238
- # For object, use to_hash. Otherwise, just return the value
239
- # @param [Object] value Any valid value
240
- # @return [Hash] Returns the value in the form of hash
241
- def _to_hash(value)
242
- if value.is_a?(Array)
243
- value.compact.map { |v| _to_hash(v) }
244
- elsif value.is_a?(Hash)
245
- {}.tap do |hash|
246
- value.each { |k, v| hash[k] = _to_hash(v) }
247
- end
248
- elsif value.respond_to? :to_hash
249
- value.to_hash
250
- else
251
- value
252
- end
253
- end
254
-
255
- def collectFilesContent(resultFilesContent)
256
- end
257
-
258
- end
259
- end