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