aspose_cells_cloud 26.4 → 26.6.4
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.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +87 -0
- data/lib/aspose_cells_cloud/models/ebook_save_options.rb +822 -0
- data/lib/aspose_cells_cloud/requests/add_text_in_remote_spreadsheet_request.rb +196 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_text_in_remote_spreadsheet_request.rb +184 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/get_spreadsheet_structure_request.rb +123 -0
- data/lib/aspose_cells_cloud/requests/get_structure_in_remote_spreadsheet_request.rb +134 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_by_position_in_remote_spreadsheet_request.rb +196 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_in_remote_spreadsheet_request.rb +188 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_in_remote_spreadsheet_request.rb +184 -0
- data/lib/aspose_cells_cloud/requests/report_ai_analysis_request.rb +122 -0
- data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/summarize_spreadsheet_request.rb +123 -0
- data/lib/aspose_cells_cloud/requests/trim_character_in_remote_spreadsheet_request.rb +212 -0
- data/lib/aspose_cells_cloud/requests/update_word_case_in_remote_spreadsheet_request.rb +168 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +12 -0
- data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
- data/spec/TestData/Book1.xlsx +0 -0
- data/spec/TestData/BookCsvDuplicateData.csv +21 -0
- data/spec/TestData/BookDuplicateData.xlsx +0 -0
- data/spec/TestData/BookFormula.xlsx +0 -0
- data/spec/TestData/BookTableL2W.xlsx +0 -0
- data/spec/TestData/BookText.xlsx +0 -0
- data/spec/TestData/CompanySales.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
- data/spec/TestData/Formula tutorial.xlsx +0 -0
- data/spec/TestData/Group.xlsx +0 -0
- data/spec/TestData/Home inventory.xlsx +0 -0
- data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
- data/spec/TestData/OLEDoc.docx +0 -0
- data/spec/TestData/ReportData.xml +1 -0
- data/spec/TestData/Simple invoice.xlsx +0 -0
- data/spec/TestData/Template.xlsx +0 -0
- data/spec/TestData/TestCase.xlsx +0 -0
- data/spec/TestData/TestTables.xlsx +0 -0
- data/spec/TestData/WaterMark.png +0 -0
- data/spec/TestData/assemblytest.xlsx +0 -0
- data/spec/TestData/data.xml +1 -0
- data/spec/TestData/datasource.xlsx +0 -0
- data/spec/TestData/myDocument.xlsx +0 -0
- data/spec/TestData/needUnlock.xlsx +0 -0
- data/spec/TestData/needlock.xlsx +0 -0
- data/spec/TestData/roywang.pfx +0 -0
- data/spec/TestData/word.jpg +0 -0
- data/spec/calculate/calculate_spec.rb +29 -0
- data/spec/cells_cloud30/auto_filter_controller_spec.rb +211 -0
- data/spec/cells_cloud30/batch_controller_spec.rb +113 -0
- data/spec/cells_cloud30/cells_controller_spec.rb +627 -0
- data/spec/cells_cloud30/cells_status_controller_spec.rb +43 -0
- data/spec/cells_cloud30/chart_area_controller_spec.rb +58 -0
- data/spec/cells_cloud30/charts_controller_spec.rb +227 -0
- data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +149 -0
- data/spec/cells_cloud30/conversion30_spec.rb +1112 -0
- data/spec/cells_cloud30/data_processing_controller_spec.rb +97 -0
- data/spec/cells_cloud30/hypelinks_controller_spec.rb +104 -0
- data/spec/cells_cloud30/light_cells_spec.rb +1059 -0
- data/spec/cells_cloud30/list_objects_controller_spec.rb +225 -0
- data/spec/cells_cloud30/ole_objects_controller_spec.rb +108 -0
- data/spec/cells_cloud30/page_breaks_controller_spec.rb +163 -0
- data/spec/cells_cloud30/page_setup_controller_spec.rb +149 -0
- data/spec/cells_cloud30/pictures_controller_spec.rb +106 -0
- data/spec/cells_cloud30/pivot_tables_controller_spec.rb +312 -0
- data/spec/cells_cloud30/properties_controller_spec.rb +89 -0
- data/spec/cells_cloud30/ranges_controller_spec.rb +227 -0
- data/spec/cells_cloud30/shapes_controller_spec.rb +139 -0
- data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +104 -0
- data/spec/cells_cloud30/text_processing_controller_spec.rb +67 -0
- data/spec/cells_cloud30/workbook_controller_spec.rb +519 -0
- data/spec/cells_cloud30/worksheet_controller_spec.rb +609 -0
- data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +104 -0
- data/spec/cells_cloud30/xml_controller_spec.rb +48 -0
- data/spec/data_processing/conversion_spec.rb +428 -0
- data/spec/data_processing/import_data_spec.rb +24 -0
- data/spec/data_processing/merger_spec.rb +28 -0
- data/spec/data_processing/protection_spec.rb +29 -0
- data/spec/data_processing/splitter_spec.rb +47 -0
- data/spec/data_processing/transform_spec.rb +43 -0
- data/spec/dynabic/file_controller_spec.rb +60 -0
- data/spec/dynabic/folder_controller_spec.rb +88 -0
- data/spec/dynabic/storage_controller_spec.rb +73 -0
- data/spec/management/management_spec.rb +111 -0
- data/spec/search2_replace/replacer_spec.rb +46 -0
- data/spec/search2_replace/searcher_spec.rb +131 -0
- data/spec/spec_helper.rb +134 -0
- data/spec/text_processing/add_text_spec.rb +45 -0
- data/spec/text_processing/convert_text_spec.rb +37 -0
- data/spec/text_processing/extract_text_spec.rb +37 -0
- data/spec/text_processing/remove_characters_spec.rb +53 -0
- data/spec/text_processing/split_text_spec.rb +21 -0
- data/spec/text_processing/trim_spreadsheet_spec.rb +29 -0
- data/spec/text_processing/update_word_case_spec.rb +37 -0
- metadata +92 -3
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="EbookSaveOptionsrb.cs">
|
|
4
|
+
Copyright (c) 2026 Aspose.Cells Cloud
|
|
5
|
+
</copyright>
|
|
6
|
+
<summary>
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
24
|
+
</summary>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require 'date'
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
|
|
33
|
+
class EbookSaveOptions
|
|
34
|
+
#
|
|
35
|
+
attr_accessor :export_page_headers
|
|
36
|
+
#
|
|
37
|
+
attr_accessor :export_page_footers
|
|
38
|
+
#
|
|
39
|
+
attr_accessor :export_row_column_headings
|
|
40
|
+
#
|
|
41
|
+
attr_accessor :show_all_sheets
|
|
42
|
+
#
|
|
43
|
+
attr_accessor :image_options
|
|
44
|
+
#
|
|
45
|
+
attr_accessor :save_as_single_file
|
|
46
|
+
#
|
|
47
|
+
attr_accessor :export_hidden_worksheet
|
|
48
|
+
#
|
|
49
|
+
attr_accessor :export_grid_lines
|
|
50
|
+
#
|
|
51
|
+
attr_accessor :presentation_preference
|
|
52
|
+
#
|
|
53
|
+
attr_accessor :cell_css_prefix
|
|
54
|
+
#
|
|
55
|
+
attr_accessor :table_css_id
|
|
56
|
+
#
|
|
57
|
+
attr_accessor :is_full_path_link
|
|
58
|
+
#
|
|
59
|
+
attr_accessor :export_worksheet_css_separately
|
|
60
|
+
#
|
|
61
|
+
attr_accessor :export_similar_border_style
|
|
62
|
+
#
|
|
63
|
+
attr_accessor :merge_empty_td_forcely
|
|
64
|
+
#
|
|
65
|
+
attr_accessor :export_cell_coordinate
|
|
66
|
+
#
|
|
67
|
+
attr_accessor :export_extra_headings
|
|
68
|
+
#
|
|
69
|
+
attr_accessor :export_headings
|
|
70
|
+
#
|
|
71
|
+
attr_accessor :export_formula
|
|
72
|
+
#
|
|
73
|
+
attr_accessor :add_tooltip_text
|
|
74
|
+
#
|
|
75
|
+
attr_accessor :export_bogus_row_data
|
|
76
|
+
#
|
|
77
|
+
attr_accessor :exclude_unused_styles
|
|
78
|
+
#
|
|
79
|
+
attr_accessor :export_document_properties
|
|
80
|
+
#
|
|
81
|
+
attr_accessor :export_worksheet_properties
|
|
82
|
+
#
|
|
83
|
+
attr_accessor :export_workbook_properties
|
|
84
|
+
#
|
|
85
|
+
attr_accessor :export_frame_scripts_and_properties
|
|
86
|
+
#
|
|
87
|
+
attr_accessor :attached_files_directory
|
|
88
|
+
#
|
|
89
|
+
attr_accessor :attached_files_url_prefix
|
|
90
|
+
#
|
|
91
|
+
attr_accessor :encoding
|
|
92
|
+
#
|
|
93
|
+
attr_accessor :export_active_worksheet_only
|
|
94
|
+
#
|
|
95
|
+
attr_accessor :export_chart_image_format
|
|
96
|
+
#
|
|
97
|
+
attr_accessor :export_images_as_base64
|
|
98
|
+
#
|
|
99
|
+
attr_accessor :hidden_col_display_type
|
|
100
|
+
#
|
|
101
|
+
attr_accessor :hidden_row_display_type
|
|
102
|
+
#
|
|
103
|
+
attr_accessor :html_cross_string_type
|
|
104
|
+
#
|
|
105
|
+
attr_accessor :is_exp_image_to_temp_dir
|
|
106
|
+
#
|
|
107
|
+
attr_accessor :page_title
|
|
108
|
+
#
|
|
109
|
+
attr_accessor :parse_html_tag_in_cell
|
|
110
|
+
#
|
|
111
|
+
attr_accessor :cell_name_attribute
|
|
112
|
+
#
|
|
113
|
+
attr_accessor :save_format
|
|
114
|
+
#
|
|
115
|
+
attr_accessor :cached_file_folder
|
|
116
|
+
#
|
|
117
|
+
attr_accessor :clear_data
|
|
118
|
+
#
|
|
119
|
+
attr_accessor :create_directory
|
|
120
|
+
#
|
|
121
|
+
attr_accessor :enable_http_compression
|
|
122
|
+
#
|
|
123
|
+
attr_accessor :refresh_chart_cache
|
|
124
|
+
#
|
|
125
|
+
attr_accessor :sort_names
|
|
126
|
+
#
|
|
127
|
+
attr_accessor :validate_merged_areas
|
|
128
|
+
#
|
|
129
|
+
attr_accessor :merge_areas
|
|
130
|
+
#
|
|
131
|
+
attr_accessor :sort_external_names
|
|
132
|
+
#
|
|
133
|
+
attr_accessor :check_excel_restriction
|
|
134
|
+
#
|
|
135
|
+
attr_accessor :update_smart_art
|
|
136
|
+
#
|
|
137
|
+
attr_accessor :encrypt_document_properties
|
|
138
|
+
|
|
139
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
140
|
+
def self.attribute_map
|
|
141
|
+
{
|
|
142
|
+
:'export_page_headers' => :'ExportPageHeaders',
|
|
143
|
+
:'export_page_footers' => :'ExportPageFooters',
|
|
144
|
+
:'export_row_column_headings' => :'ExportRowColumnHeadings',
|
|
145
|
+
:'show_all_sheets' => :'ShowAllSheets',
|
|
146
|
+
:'image_options' => :'ImageOptions',
|
|
147
|
+
:'save_as_single_file' => :'SaveAsSingleFile',
|
|
148
|
+
:'export_hidden_worksheet' => :'ExportHiddenWorksheet',
|
|
149
|
+
:'export_grid_lines' => :'ExportGridLines',
|
|
150
|
+
:'presentation_preference' => :'PresentationPreference',
|
|
151
|
+
:'cell_css_prefix' => :'CellCssPrefix',
|
|
152
|
+
:'table_css_id' => :'TableCssId',
|
|
153
|
+
:'is_full_path_link' => :'IsFullPathLink',
|
|
154
|
+
:'export_worksheet_css_separately' => :'ExportWorksheetCSSSeparately',
|
|
155
|
+
:'export_similar_border_style' => :'ExportSimilarBorderStyle',
|
|
156
|
+
:'merge_empty_td_forcely' => :'MergeEmptyTdForcely',
|
|
157
|
+
:'export_cell_coordinate' => :'ExportCellCoordinate',
|
|
158
|
+
:'export_extra_headings' => :'ExportExtraHeadings',
|
|
159
|
+
:'export_headings' => :'ExportHeadings',
|
|
160
|
+
:'export_formula' => :'ExportFormula',
|
|
161
|
+
:'add_tooltip_text' => :'AddTooltipText',
|
|
162
|
+
:'export_bogus_row_data' => :'ExportBogusRowData',
|
|
163
|
+
:'exclude_unused_styles' => :'ExcludeUnusedStyles',
|
|
164
|
+
:'export_document_properties' => :'ExportDocumentProperties',
|
|
165
|
+
:'export_worksheet_properties' => :'ExportWorksheetProperties',
|
|
166
|
+
:'export_workbook_properties' => :'ExportWorkbookProperties',
|
|
167
|
+
:'export_frame_scripts_and_properties' => :'ExportFrameScriptsAndProperties',
|
|
168
|
+
:'attached_files_directory' => :'AttachedFilesDirectory',
|
|
169
|
+
:'attached_files_url_prefix' => :'AttachedFilesUrlPrefix',
|
|
170
|
+
:'encoding' => :'Encoding',
|
|
171
|
+
:'export_active_worksheet_only' => :'ExportActiveWorksheetOnly',
|
|
172
|
+
:'export_chart_image_format' => :'ExportChartImageFormat',
|
|
173
|
+
:'export_images_as_base64' => :'ExportImagesAsBase64',
|
|
174
|
+
:'hidden_col_display_type' => :'HiddenColDisplayType',
|
|
175
|
+
:'hidden_row_display_type' => :'HiddenRowDisplayType',
|
|
176
|
+
:'html_cross_string_type' => :'HtmlCrossStringType',
|
|
177
|
+
:'is_exp_image_to_temp_dir' => :'IsExpImageToTempDir',
|
|
178
|
+
:'page_title' => :'PageTitle',
|
|
179
|
+
:'parse_html_tag_in_cell' => :'ParseHtmlTagInCell',
|
|
180
|
+
:'cell_name_attribute' => :'CellNameAttribute',
|
|
181
|
+
:'save_format' => :'SaveFormat',
|
|
182
|
+
:'cached_file_folder' => :'CachedFileFolder',
|
|
183
|
+
:'clear_data' => :'ClearData',
|
|
184
|
+
:'create_directory' => :'CreateDirectory',
|
|
185
|
+
:'enable_http_compression' => :'EnableHTTPCompression',
|
|
186
|
+
:'refresh_chart_cache' => :'RefreshChartCache',
|
|
187
|
+
:'sort_names' => :'SortNames',
|
|
188
|
+
:'validate_merged_areas' => :'ValidateMergedAreas',
|
|
189
|
+
:'merge_areas' => :'MergeAreas',
|
|
190
|
+
:'sort_external_names' => :'SortExternalNames',
|
|
191
|
+
:'check_excel_restriction' => :'CheckExcelRestriction',
|
|
192
|
+
:'update_smart_art' => :'UpdateSmartArt',
|
|
193
|
+
:'encrypt_document_properties' => :'EncryptDocumentProperties'
|
|
194
|
+
}
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Attribute type mapping.
|
|
198
|
+
def self.swagger_types
|
|
199
|
+
{
|
|
200
|
+
:'export_page_headers' => :'BOOLEAN',
|
|
201
|
+
:'export_page_footers' => :'BOOLEAN',
|
|
202
|
+
:'export_row_column_headings' => :'BOOLEAN',
|
|
203
|
+
:'show_all_sheets' => :'BOOLEAN',
|
|
204
|
+
:'image_options' => :'ImageOrPrintOptions',
|
|
205
|
+
:'save_as_single_file' => :'BOOLEAN',
|
|
206
|
+
:'export_hidden_worksheet' => :'BOOLEAN',
|
|
207
|
+
:'export_grid_lines' => :'BOOLEAN',
|
|
208
|
+
:'presentation_preference' => :'BOOLEAN',
|
|
209
|
+
:'cell_css_prefix' => :'String',
|
|
210
|
+
:'table_css_id' => :'String',
|
|
211
|
+
:'is_full_path_link' => :'BOOLEAN',
|
|
212
|
+
:'export_worksheet_css_separately' => :'BOOLEAN',
|
|
213
|
+
:'export_similar_border_style' => :'BOOLEAN',
|
|
214
|
+
:'merge_empty_td_forcely' => :'BOOLEAN',
|
|
215
|
+
:'export_cell_coordinate' => :'BOOLEAN',
|
|
216
|
+
:'export_extra_headings' => :'BOOLEAN',
|
|
217
|
+
:'export_headings' => :'BOOLEAN',
|
|
218
|
+
:'export_formula' => :'BOOLEAN',
|
|
219
|
+
:'add_tooltip_text' => :'BOOLEAN',
|
|
220
|
+
:'export_bogus_row_data' => :'BOOLEAN',
|
|
221
|
+
:'exclude_unused_styles' => :'BOOLEAN',
|
|
222
|
+
:'export_document_properties' => :'BOOLEAN',
|
|
223
|
+
:'export_worksheet_properties' => :'BOOLEAN',
|
|
224
|
+
:'export_workbook_properties' => :'BOOLEAN',
|
|
225
|
+
:'export_frame_scripts_and_properties' => :'BOOLEAN',
|
|
226
|
+
:'attached_files_directory' => :'String',
|
|
227
|
+
:'attached_files_url_prefix' => :'String',
|
|
228
|
+
:'encoding' => :'String',
|
|
229
|
+
:'export_active_worksheet_only' => :'BOOLEAN',
|
|
230
|
+
:'export_chart_image_format' => :'String',
|
|
231
|
+
:'export_images_as_base64' => :'BOOLEAN',
|
|
232
|
+
:'hidden_col_display_type' => :'String',
|
|
233
|
+
:'hidden_row_display_type' => :'String',
|
|
234
|
+
:'html_cross_string_type' => :'String',
|
|
235
|
+
:'is_exp_image_to_temp_dir' => :'BOOLEAN',
|
|
236
|
+
:'page_title' => :'String',
|
|
237
|
+
:'parse_html_tag_in_cell' => :'BOOLEAN',
|
|
238
|
+
:'cell_name_attribute' => :'String',
|
|
239
|
+
:'save_format' => :'String',
|
|
240
|
+
:'cached_file_folder' => :'String',
|
|
241
|
+
:'clear_data' => :'BOOLEAN',
|
|
242
|
+
:'create_directory' => :'BOOLEAN',
|
|
243
|
+
:'enable_http_compression' => :'BOOLEAN',
|
|
244
|
+
:'refresh_chart_cache' => :'BOOLEAN',
|
|
245
|
+
:'sort_names' => :'BOOLEAN',
|
|
246
|
+
:'validate_merged_areas' => :'BOOLEAN',
|
|
247
|
+
:'merge_areas' => :'BOOLEAN',
|
|
248
|
+
:'sort_external_names' => :'BOOLEAN',
|
|
249
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
|
250
|
+
:'update_smart_art' => :'BOOLEAN',
|
|
251
|
+
:'encrypt_document_properties' => :'BOOLEAN'
|
|
252
|
+
}
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Initializes the object
|
|
256
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
257
|
+
def initialize(attributes = {})
|
|
258
|
+
return unless attributes.is_a?(Hash)
|
|
259
|
+
|
|
260
|
+
# convert string to symbol for hash key
|
|
261
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
262
|
+
|
|
263
|
+
if attributes.has_key?(:'ExportPageHeaders')
|
|
264
|
+
self.export_page_headers = attributes[:'ExportPageHeaders']
|
|
265
|
+
end
|
|
266
|
+
if attributes.has_key?(:'ExportPageFooters')
|
|
267
|
+
self.export_page_footers = attributes[:'ExportPageFooters']
|
|
268
|
+
end
|
|
269
|
+
if attributes.has_key?(:'ExportRowColumnHeadings')
|
|
270
|
+
self.export_row_column_headings = attributes[:'ExportRowColumnHeadings']
|
|
271
|
+
end
|
|
272
|
+
if attributes.has_key?(:'ShowAllSheets')
|
|
273
|
+
self.show_all_sheets = attributes[:'ShowAllSheets']
|
|
274
|
+
end
|
|
275
|
+
if attributes.has_key?(:'ImageOptions')
|
|
276
|
+
self.image_options = attributes[:'ImageOptions']
|
|
277
|
+
end
|
|
278
|
+
if attributes.has_key?(:'SaveAsSingleFile')
|
|
279
|
+
self.save_as_single_file = attributes[:'SaveAsSingleFile']
|
|
280
|
+
end
|
|
281
|
+
if attributes.has_key?(:'ExportHiddenWorksheet')
|
|
282
|
+
self.export_hidden_worksheet = attributes[:'ExportHiddenWorksheet']
|
|
283
|
+
end
|
|
284
|
+
if attributes.has_key?(:'ExportGridLines')
|
|
285
|
+
self.export_grid_lines = attributes[:'ExportGridLines']
|
|
286
|
+
end
|
|
287
|
+
if attributes.has_key?(:'PresentationPreference')
|
|
288
|
+
self.presentation_preference = attributes[:'PresentationPreference']
|
|
289
|
+
end
|
|
290
|
+
if attributes.has_key?(:'CellCssPrefix')
|
|
291
|
+
self.cell_css_prefix = attributes[:'CellCssPrefix']
|
|
292
|
+
end
|
|
293
|
+
if attributes.has_key?(:'TableCssId')
|
|
294
|
+
self.table_css_id = attributes[:'TableCssId']
|
|
295
|
+
end
|
|
296
|
+
if attributes.has_key?(:'IsFullPathLink')
|
|
297
|
+
self.is_full_path_link = attributes[:'IsFullPathLink']
|
|
298
|
+
end
|
|
299
|
+
if attributes.has_key?(:'ExportWorksheetCSSSeparately')
|
|
300
|
+
self.export_worksheet_css_separately = attributes[:'ExportWorksheetCSSSeparately']
|
|
301
|
+
end
|
|
302
|
+
if attributes.has_key?(:'ExportSimilarBorderStyle')
|
|
303
|
+
self.export_similar_border_style = attributes[:'ExportSimilarBorderStyle']
|
|
304
|
+
end
|
|
305
|
+
if attributes.has_key?(:'MergeEmptyTdForcely')
|
|
306
|
+
self.merge_empty_td_forcely = attributes[:'MergeEmptyTdForcely']
|
|
307
|
+
end
|
|
308
|
+
if attributes.has_key?(:'ExportCellCoordinate')
|
|
309
|
+
self.export_cell_coordinate = attributes[:'ExportCellCoordinate']
|
|
310
|
+
end
|
|
311
|
+
if attributes.has_key?(:'ExportExtraHeadings')
|
|
312
|
+
self.export_extra_headings = attributes[:'ExportExtraHeadings']
|
|
313
|
+
end
|
|
314
|
+
if attributes.has_key?(:'ExportHeadings')
|
|
315
|
+
self.export_headings = attributes[:'ExportHeadings']
|
|
316
|
+
end
|
|
317
|
+
if attributes.has_key?(:'ExportFormula')
|
|
318
|
+
self.export_formula = attributes[:'ExportFormula']
|
|
319
|
+
end
|
|
320
|
+
if attributes.has_key?(:'AddTooltipText')
|
|
321
|
+
self.add_tooltip_text = attributes[:'AddTooltipText']
|
|
322
|
+
end
|
|
323
|
+
if attributes.has_key?(:'ExportBogusRowData')
|
|
324
|
+
self.export_bogus_row_data = attributes[:'ExportBogusRowData']
|
|
325
|
+
end
|
|
326
|
+
if attributes.has_key?(:'ExcludeUnusedStyles')
|
|
327
|
+
self.exclude_unused_styles = attributes[:'ExcludeUnusedStyles']
|
|
328
|
+
end
|
|
329
|
+
if attributes.has_key?(:'ExportDocumentProperties')
|
|
330
|
+
self.export_document_properties = attributes[:'ExportDocumentProperties']
|
|
331
|
+
end
|
|
332
|
+
if attributes.has_key?(:'ExportWorksheetProperties')
|
|
333
|
+
self.export_worksheet_properties = attributes[:'ExportWorksheetProperties']
|
|
334
|
+
end
|
|
335
|
+
if attributes.has_key?(:'ExportWorkbookProperties')
|
|
336
|
+
self.export_workbook_properties = attributes[:'ExportWorkbookProperties']
|
|
337
|
+
end
|
|
338
|
+
if attributes.has_key?(:'ExportFrameScriptsAndProperties')
|
|
339
|
+
self.export_frame_scripts_and_properties = attributes[:'ExportFrameScriptsAndProperties']
|
|
340
|
+
end
|
|
341
|
+
if attributes.has_key?(:'AttachedFilesDirectory')
|
|
342
|
+
self.attached_files_directory = attributes[:'AttachedFilesDirectory']
|
|
343
|
+
end
|
|
344
|
+
if attributes.has_key?(:'AttachedFilesUrlPrefix')
|
|
345
|
+
self.attached_files_url_prefix = attributes[:'AttachedFilesUrlPrefix']
|
|
346
|
+
end
|
|
347
|
+
if attributes.has_key?(:'Encoding')
|
|
348
|
+
self.encoding = attributes[:'Encoding']
|
|
349
|
+
end
|
|
350
|
+
if attributes.has_key?(:'ExportActiveWorksheetOnly')
|
|
351
|
+
self.export_active_worksheet_only = attributes[:'ExportActiveWorksheetOnly']
|
|
352
|
+
end
|
|
353
|
+
if attributes.has_key?(:'ExportChartImageFormat')
|
|
354
|
+
self.export_chart_image_format = attributes[:'ExportChartImageFormat']
|
|
355
|
+
end
|
|
356
|
+
if attributes.has_key?(:'ExportImagesAsBase64')
|
|
357
|
+
self.export_images_as_base64 = attributes[:'ExportImagesAsBase64']
|
|
358
|
+
end
|
|
359
|
+
if attributes.has_key?(:'HiddenColDisplayType')
|
|
360
|
+
self.hidden_col_display_type = attributes[:'HiddenColDisplayType']
|
|
361
|
+
end
|
|
362
|
+
if attributes.has_key?(:'HiddenRowDisplayType')
|
|
363
|
+
self.hidden_row_display_type = attributes[:'HiddenRowDisplayType']
|
|
364
|
+
end
|
|
365
|
+
if attributes.has_key?(:'HtmlCrossStringType')
|
|
366
|
+
self.html_cross_string_type = attributes[:'HtmlCrossStringType']
|
|
367
|
+
end
|
|
368
|
+
if attributes.has_key?(:'IsExpImageToTempDir')
|
|
369
|
+
self.is_exp_image_to_temp_dir = attributes[:'IsExpImageToTempDir']
|
|
370
|
+
end
|
|
371
|
+
if attributes.has_key?(:'PageTitle')
|
|
372
|
+
self.page_title = attributes[:'PageTitle']
|
|
373
|
+
end
|
|
374
|
+
if attributes.has_key?(:'ParseHtmlTagInCell')
|
|
375
|
+
self.parse_html_tag_in_cell = attributes[:'ParseHtmlTagInCell']
|
|
376
|
+
end
|
|
377
|
+
if attributes.has_key?(:'CellNameAttribute')
|
|
378
|
+
self.cell_name_attribute = attributes[:'CellNameAttribute']
|
|
379
|
+
end
|
|
380
|
+
if attributes.has_key?(:'SaveFormat')
|
|
381
|
+
self.save_format = attributes[:'SaveFormat']
|
|
382
|
+
end
|
|
383
|
+
if attributes.has_key?(:'CachedFileFolder')
|
|
384
|
+
self.cached_file_folder = attributes[:'CachedFileFolder']
|
|
385
|
+
end
|
|
386
|
+
if attributes.has_key?(:'ClearData')
|
|
387
|
+
self.clear_data = attributes[:'ClearData']
|
|
388
|
+
end
|
|
389
|
+
if attributes.has_key?(:'CreateDirectory')
|
|
390
|
+
self.create_directory = attributes[:'CreateDirectory']
|
|
391
|
+
end
|
|
392
|
+
if attributes.has_key?(:'EnableHTTPCompression')
|
|
393
|
+
self.enable_http_compression = attributes[:'EnableHTTPCompression']
|
|
394
|
+
end
|
|
395
|
+
if attributes.has_key?(:'RefreshChartCache')
|
|
396
|
+
self.refresh_chart_cache = attributes[:'RefreshChartCache']
|
|
397
|
+
end
|
|
398
|
+
if attributes.has_key?(:'SortNames')
|
|
399
|
+
self.sort_names = attributes[:'SortNames']
|
|
400
|
+
end
|
|
401
|
+
if attributes.has_key?(:'ValidateMergedAreas')
|
|
402
|
+
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
|
403
|
+
end
|
|
404
|
+
if attributes.has_key?(:'MergeAreas')
|
|
405
|
+
self.merge_areas = attributes[:'MergeAreas']
|
|
406
|
+
end
|
|
407
|
+
if attributes.has_key?(:'SortExternalNames')
|
|
408
|
+
self.sort_external_names = attributes[:'SortExternalNames']
|
|
409
|
+
end
|
|
410
|
+
if attributes.has_key?(:'CheckExcelRestriction')
|
|
411
|
+
self.check_excel_restriction = attributes[:'CheckExcelRestriction']
|
|
412
|
+
end
|
|
413
|
+
if attributes.has_key?(:'UpdateSmartArt')
|
|
414
|
+
self.update_smart_art = attributes[:'UpdateSmartArt']
|
|
415
|
+
end
|
|
416
|
+
if attributes.has_key?(:'EncryptDocumentProperties')
|
|
417
|
+
self.encrypt_document_properties = attributes[:'EncryptDocumentProperties']
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
423
|
+
# @return Array for valid properies with the reasons
|
|
424
|
+
def list_invalid_properties
|
|
425
|
+
invalid_properties = Array.new
|
|
426
|
+
if @export_page_headers.nil?
|
|
427
|
+
invalid_properties.push("invalid value for 'export_page_headers', export_page_headers cannot be nil.")
|
|
428
|
+
end
|
|
429
|
+
if @export_page_footers.nil?
|
|
430
|
+
invalid_properties.push("invalid value for 'export_page_footers', export_page_footers cannot be nil.")
|
|
431
|
+
end
|
|
432
|
+
if @export_row_column_headings.nil?
|
|
433
|
+
invalid_properties.push("invalid value for 'export_row_column_headings', export_row_column_headings cannot be nil.")
|
|
434
|
+
end
|
|
435
|
+
if @show_all_sheets.nil?
|
|
436
|
+
invalid_properties.push("invalid value for 'show_all_sheets', show_all_sheets cannot be nil.")
|
|
437
|
+
end
|
|
438
|
+
if @image_options.nil?
|
|
439
|
+
invalid_properties.push("invalid value for 'image_options', image_options cannot be nil.")
|
|
440
|
+
end
|
|
441
|
+
if @save_as_single_file.nil?
|
|
442
|
+
invalid_properties.push("invalid value for 'save_as_single_file', save_as_single_file cannot be nil.")
|
|
443
|
+
end
|
|
444
|
+
if @export_hidden_worksheet.nil?
|
|
445
|
+
invalid_properties.push("invalid value for 'export_hidden_worksheet', export_hidden_worksheet cannot be nil.")
|
|
446
|
+
end
|
|
447
|
+
if @export_grid_lines.nil?
|
|
448
|
+
invalid_properties.push("invalid value for 'export_grid_lines', export_grid_lines cannot be nil.")
|
|
449
|
+
end
|
|
450
|
+
if @presentation_preference.nil?
|
|
451
|
+
invalid_properties.push("invalid value for 'presentation_preference', presentation_preference cannot be nil.")
|
|
452
|
+
end
|
|
453
|
+
if @cell_css_prefix.nil?
|
|
454
|
+
invalid_properties.push("invalid value for 'cell_css_prefix', cell_css_prefix cannot be nil.")
|
|
455
|
+
end
|
|
456
|
+
if @table_css_id.nil?
|
|
457
|
+
invalid_properties.push("invalid value for 'table_css_id', table_css_id cannot be nil.")
|
|
458
|
+
end
|
|
459
|
+
if @is_full_path_link.nil?
|
|
460
|
+
invalid_properties.push("invalid value for 'is_full_path_link', is_full_path_link cannot be nil.")
|
|
461
|
+
end
|
|
462
|
+
if @export_worksheet_css_separately.nil?
|
|
463
|
+
invalid_properties.push("invalid value for 'export_worksheet_css_separately', export_worksheet_css_separately cannot be nil.")
|
|
464
|
+
end
|
|
465
|
+
if @export_similar_border_style.nil?
|
|
466
|
+
invalid_properties.push("invalid value for 'export_similar_border_style', export_similar_border_style cannot be nil.")
|
|
467
|
+
end
|
|
468
|
+
if @merge_empty_td_forcely.nil?
|
|
469
|
+
invalid_properties.push("invalid value for 'merge_empty_td_forcely', merge_empty_td_forcely cannot be nil.")
|
|
470
|
+
end
|
|
471
|
+
if @export_cell_coordinate.nil?
|
|
472
|
+
invalid_properties.push("invalid value for 'export_cell_coordinate', export_cell_coordinate cannot be nil.")
|
|
473
|
+
end
|
|
474
|
+
if @export_extra_headings.nil?
|
|
475
|
+
invalid_properties.push("invalid value for 'export_extra_headings', export_extra_headings cannot be nil.")
|
|
476
|
+
end
|
|
477
|
+
if @export_headings.nil?
|
|
478
|
+
invalid_properties.push("invalid value for 'export_headings', export_headings cannot be nil.")
|
|
479
|
+
end
|
|
480
|
+
if @export_formula.nil?
|
|
481
|
+
invalid_properties.push("invalid value for 'export_formula', export_formula cannot be nil.")
|
|
482
|
+
end
|
|
483
|
+
if @add_tooltip_text.nil?
|
|
484
|
+
invalid_properties.push("invalid value for 'add_tooltip_text', add_tooltip_text cannot be nil.")
|
|
485
|
+
end
|
|
486
|
+
if @export_bogus_row_data.nil?
|
|
487
|
+
invalid_properties.push("invalid value for 'export_bogus_row_data', export_bogus_row_data cannot be nil.")
|
|
488
|
+
end
|
|
489
|
+
if @exclude_unused_styles.nil?
|
|
490
|
+
invalid_properties.push("invalid value for 'exclude_unused_styles', exclude_unused_styles cannot be nil.")
|
|
491
|
+
end
|
|
492
|
+
if @export_document_properties.nil?
|
|
493
|
+
invalid_properties.push("invalid value for 'export_document_properties', export_document_properties cannot be nil.")
|
|
494
|
+
end
|
|
495
|
+
if @export_worksheet_properties.nil?
|
|
496
|
+
invalid_properties.push("invalid value for 'export_worksheet_properties', export_worksheet_properties cannot be nil.")
|
|
497
|
+
end
|
|
498
|
+
if @export_workbook_properties.nil?
|
|
499
|
+
invalid_properties.push("invalid value for 'export_workbook_properties', export_workbook_properties cannot be nil.")
|
|
500
|
+
end
|
|
501
|
+
if @export_frame_scripts_and_properties.nil?
|
|
502
|
+
invalid_properties.push("invalid value for 'export_frame_scripts_and_properties', export_frame_scripts_and_properties cannot be nil.")
|
|
503
|
+
end
|
|
504
|
+
if @attached_files_directory.nil?
|
|
505
|
+
invalid_properties.push("invalid value for 'attached_files_directory', attached_files_directory cannot be nil.")
|
|
506
|
+
end
|
|
507
|
+
if @attached_files_url_prefix.nil?
|
|
508
|
+
invalid_properties.push("invalid value for 'attached_files_url_prefix', attached_files_url_prefix cannot be nil.")
|
|
509
|
+
end
|
|
510
|
+
if @encoding.nil?
|
|
511
|
+
invalid_properties.push("invalid value for 'encoding', encoding cannot be nil.")
|
|
512
|
+
end
|
|
513
|
+
if @export_active_worksheet_only.nil?
|
|
514
|
+
invalid_properties.push("invalid value for 'export_active_worksheet_only', export_active_worksheet_only cannot be nil.")
|
|
515
|
+
end
|
|
516
|
+
if @export_chart_image_format.nil?
|
|
517
|
+
invalid_properties.push("invalid value for 'export_chart_image_format', export_chart_image_format cannot be nil.")
|
|
518
|
+
end
|
|
519
|
+
if @export_images_as_base64.nil?
|
|
520
|
+
invalid_properties.push("invalid value for 'export_images_as_base64', export_images_as_base64 cannot be nil.")
|
|
521
|
+
end
|
|
522
|
+
if @hidden_col_display_type.nil?
|
|
523
|
+
invalid_properties.push("invalid value for 'hidden_col_display_type', hidden_col_display_type cannot be nil.")
|
|
524
|
+
end
|
|
525
|
+
if @hidden_row_display_type.nil?
|
|
526
|
+
invalid_properties.push("invalid value for 'hidden_row_display_type', hidden_row_display_type cannot be nil.")
|
|
527
|
+
end
|
|
528
|
+
if @html_cross_string_type.nil?
|
|
529
|
+
invalid_properties.push("invalid value for 'html_cross_string_type', html_cross_string_type cannot be nil.")
|
|
530
|
+
end
|
|
531
|
+
if @is_exp_image_to_temp_dir.nil?
|
|
532
|
+
invalid_properties.push("invalid value for 'is_exp_image_to_temp_dir', is_exp_image_to_temp_dir cannot be nil.")
|
|
533
|
+
end
|
|
534
|
+
if @page_title.nil?
|
|
535
|
+
invalid_properties.push("invalid value for 'page_title', page_title cannot be nil.")
|
|
536
|
+
end
|
|
537
|
+
if @parse_html_tag_in_cell.nil?
|
|
538
|
+
invalid_properties.push("invalid value for 'parse_html_tag_in_cell', parse_html_tag_in_cell cannot be nil.")
|
|
539
|
+
end
|
|
540
|
+
if @cell_name_attribute.nil?
|
|
541
|
+
invalid_properties.push("invalid value for 'cell_name_attribute', cell_name_attribute cannot be nil.")
|
|
542
|
+
end
|
|
543
|
+
if @save_format.nil?
|
|
544
|
+
invalid_properties.push("invalid value for 'save_format', save_format cannot be nil.")
|
|
545
|
+
end
|
|
546
|
+
if @cached_file_folder.nil?
|
|
547
|
+
invalid_properties.push("invalid value for 'cached_file_folder', cached_file_folder cannot be nil.")
|
|
548
|
+
end
|
|
549
|
+
if @clear_data.nil?
|
|
550
|
+
invalid_properties.push("invalid value for 'clear_data', clear_data cannot be nil.")
|
|
551
|
+
end
|
|
552
|
+
if @create_directory.nil?
|
|
553
|
+
invalid_properties.push("invalid value for 'create_directory', create_directory cannot be nil.")
|
|
554
|
+
end
|
|
555
|
+
if @enable_http_compression.nil?
|
|
556
|
+
invalid_properties.push("invalid value for 'enable_http_compression', enable_http_compression cannot be nil.")
|
|
557
|
+
end
|
|
558
|
+
if @refresh_chart_cache.nil?
|
|
559
|
+
invalid_properties.push("invalid value for 'refresh_chart_cache', refresh_chart_cache cannot be nil.")
|
|
560
|
+
end
|
|
561
|
+
if @sort_names.nil?
|
|
562
|
+
invalid_properties.push("invalid value for 'sort_names', sort_names cannot be nil.")
|
|
563
|
+
end
|
|
564
|
+
if @validate_merged_areas.nil?
|
|
565
|
+
invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
|
|
566
|
+
end
|
|
567
|
+
if @merge_areas.nil?
|
|
568
|
+
invalid_properties.push("invalid value for 'merge_areas', merge_areas cannot be nil.")
|
|
569
|
+
end
|
|
570
|
+
if @sort_external_names.nil?
|
|
571
|
+
invalid_properties.push("invalid value for 'sort_external_names', sort_external_names cannot be nil.")
|
|
572
|
+
end
|
|
573
|
+
if @check_excel_restriction.nil?
|
|
574
|
+
invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
|
|
575
|
+
end
|
|
576
|
+
if @update_smart_art.nil?
|
|
577
|
+
invalid_properties.push("invalid value for 'update_smart_art', update_smart_art cannot be nil.")
|
|
578
|
+
end
|
|
579
|
+
if @encrypt_document_properties.nil?
|
|
580
|
+
invalid_properties.push("invalid value for 'encrypt_document_properties', encrypt_document_properties cannot be nil.")
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
return invalid_properties
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
# Check to see if the all the properties in the model are valid
|
|
587
|
+
# @return true if the model is valid
|
|
588
|
+
def valid?
|
|
589
|
+
return false if @export_page_headers.nil?
|
|
590
|
+
return false if @export_page_footers.nil?
|
|
591
|
+
return false if @export_row_column_headings.nil?
|
|
592
|
+
return false if @show_all_sheets.nil?
|
|
593
|
+
return false if @image_options.nil?
|
|
594
|
+
return false if @save_as_single_file.nil?
|
|
595
|
+
return false if @export_hidden_worksheet.nil?
|
|
596
|
+
return false if @export_grid_lines.nil?
|
|
597
|
+
return false if @presentation_preference.nil?
|
|
598
|
+
return false if @cell_css_prefix.nil?
|
|
599
|
+
return false if @table_css_id.nil?
|
|
600
|
+
return false if @is_full_path_link.nil?
|
|
601
|
+
return false if @export_worksheet_css_separately.nil?
|
|
602
|
+
return false if @export_similar_border_style.nil?
|
|
603
|
+
return false if @merge_empty_td_forcely.nil?
|
|
604
|
+
return false if @export_cell_coordinate.nil?
|
|
605
|
+
return false if @export_extra_headings.nil?
|
|
606
|
+
return false if @export_headings.nil?
|
|
607
|
+
return false if @export_formula.nil?
|
|
608
|
+
return false if @add_tooltip_text.nil?
|
|
609
|
+
return false if @export_bogus_row_data.nil?
|
|
610
|
+
return false if @exclude_unused_styles.nil?
|
|
611
|
+
return false if @export_document_properties.nil?
|
|
612
|
+
return false if @export_worksheet_properties.nil?
|
|
613
|
+
return false if @export_workbook_properties.nil?
|
|
614
|
+
return false if @export_frame_scripts_and_properties.nil?
|
|
615
|
+
return false if @attached_files_directory.nil?
|
|
616
|
+
return false if @attached_files_url_prefix.nil?
|
|
617
|
+
return false if @encoding.nil?
|
|
618
|
+
return false if @export_active_worksheet_only.nil?
|
|
619
|
+
return false if @export_chart_image_format.nil?
|
|
620
|
+
return false if @export_images_as_base64.nil?
|
|
621
|
+
return false if @hidden_col_display_type.nil?
|
|
622
|
+
return false if @hidden_row_display_type.nil?
|
|
623
|
+
return false if @html_cross_string_type.nil?
|
|
624
|
+
return false if @is_exp_image_to_temp_dir.nil?
|
|
625
|
+
return false if @page_title.nil?
|
|
626
|
+
return false if @parse_html_tag_in_cell.nil?
|
|
627
|
+
return false if @cell_name_attribute.nil?
|
|
628
|
+
return false if @save_format.nil?
|
|
629
|
+
return false if @cached_file_folder.nil?
|
|
630
|
+
return false if @clear_data.nil?
|
|
631
|
+
return false if @create_directory.nil?
|
|
632
|
+
return false if @enable_http_compression.nil?
|
|
633
|
+
return false if @refresh_chart_cache.nil?
|
|
634
|
+
return false if @sort_names.nil?
|
|
635
|
+
return false if @validate_merged_areas.nil?
|
|
636
|
+
return false if @merge_areas.nil?
|
|
637
|
+
return false if @sort_external_names.nil?
|
|
638
|
+
return false if @check_excel_restriction.nil?
|
|
639
|
+
return false if @update_smart_art.nil?
|
|
640
|
+
return false if @encrypt_document_properties.nil?
|
|
641
|
+
return true
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# Checks equality by comparing each attribute.
|
|
645
|
+
# @param [Object] Object to be compared
|
|
646
|
+
def ==(o)
|
|
647
|
+
return true if self.equal?(o)
|
|
648
|
+
self.class == o.class &&
|
|
649
|
+
export_page_headers == o.export_page_headers &&
|
|
650
|
+
export_page_footers == o.export_page_footers &&
|
|
651
|
+
export_row_column_headings == o.export_row_column_headings &&
|
|
652
|
+
show_all_sheets == o.show_all_sheets &&
|
|
653
|
+
image_options == o.image_options &&
|
|
654
|
+
save_as_single_file == o.save_as_single_file &&
|
|
655
|
+
export_hidden_worksheet == o.export_hidden_worksheet &&
|
|
656
|
+
export_grid_lines == o.export_grid_lines &&
|
|
657
|
+
presentation_preference == o.presentation_preference &&
|
|
658
|
+
cell_css_prefix == o.cell_css_prefix &&
|
|
659
|
+
table_css_id == o.table_css_id &&
|
|
660
|
+
is_full_path_link == o.is_full_path_link &&
|
|
661
|
+
export_worksheet_css_separately == o.export_worksheet_css_separately &&
|
|
662
|
+
export_similar_border_style == o.export_similar_border_style &&
|
|
663
|
+
merge_empty_td_forcely == o.merge_empty_td_forcely &&
|
|
664
|
+
export_cell_coordinate == o.export_cell_coordinate &&
|
|
665
|
+
export_extra_headings == o.export_extra_headings &&
|
|
666
|
+
export_headings == o.export_headings &&
|
|
667
|
+
export_formula == o.export_formula &&
|
|
668
|
+
add_tooltip_text == o.add_tooltip_text &&
|
|
669
|
+
export_bogus_row_data == o.export_bogus_row_data &&
|
|
670
|
+
exclude_unused_styles == o.exclude_unused_styles &&
|
|
671
|
+
export_document_properties == o.export_document_properties &&
|
|
672
|
+
export_worksheet_properties == o.export_worksheet_properties &&
|
|
673
|
+
export_workbook_properties == o.export_workbook_properties &&
|
|
674
|
+
export_frame_scripts_and_properties == o.export_frame_scripts_and_properties &&
|
|
675
|
+
attached_files_directory == o.attached_files_directory &&
|
|
676
|
+
attached_files_url_prefix == o.attached_files_url_prefix &&
|
|
677
|
+
encoding == o.encoding &&
|
|
678
|
+
export_active_worksheet_only == o.export_active_worksheet_only &&
|
|
679
|
+
export_chart_image_format == o.export_chart_image_format &&
|
|
680
|
+
export_images_as_base64 == o.export_images_as_base64 &&
|
|
681
|
+
hidden_col_display_type == o.hidden_col_display_type &&
|
|
682
|
+
hidden_row_display_type == o.hidden_row_display_type &&
|
|
683
|
+
html_cross_string_type == o.html_cross_string_type &&
|
|
684
|
+
is_exp_image_to_temp_dir == o.is_exp_image_to_temp_dir &&
|
|
685
|
+
page_title == o.page_title &&
|
|
686
|
+
parse_html_tag_in_cell == o.parse_html_tag_in_cell &&
|
|
687
|
+
cell_name_attribute == o.cell_name_attribute &&
|
|
688
|
+
save_format == o.save_format &&
|
|
689
|
+
cached_file_folder == o.cached_file_folder &&
|
|
690
|
+
clear_data == o.clear_data &&
|
|
691
|
+
create_directory == o.create_directory &&
|
|
692
|
+
enable_http_compression == o.enable_http_compression &&
|
|
693
|
+
refresh_chart_cache == o.refresh_chart_cache &&
|
|
694
|
+
sort_names == o.sort_names &&
|
|
695
|
+
validate_merged_areas == o.validate_merged_areas &&
|
|
696
|
+
merge_areas == o.merge_areas &&
|
|
697
|
+
sort_external_names == o.sort_external_names &&
|
|
698
|
+
check_excel_restriction == o.check_excel_restriction &&
|
|
699
|
+
update_smart_art == o.update_smart_art &&
|
|
700
|
+
encrypt_document_properties == o.encrypt_document_properties
|
|
701
|
+
std_dev == o.std_dev
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# @see the `==` method
|
|
705
|
+
# @param [Object] Object to be compared
|
|
706
|
+
def eql?(o)
|
|
707
|
+
self == o
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Calculates hash code according to all attributes.
|
|
711
|
+
# @return [Fixnum] Hash code
|
|
712
|
+
def hash
|
|
713
|
+
[ export_page_headers , export_page_footers , export_row_column_headings , show_all_sheets , image_options , save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , cell_name_attribute , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas , merge_areas , sort_external_names , check_excel_restriction , update_smart_art , encrypt_document_properties ].hash
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Builds the object from hash
|
|
717
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
718
|
+
# @return [Object] Returns the model itself
|
|
719
|
+
def build_from_hash(attributes)
|
|
720
|
+
return nil unless attributes.is_a?(Hash)
|
|
721
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
722
|
+
if type =~ /\AArray<(.*)>/i
|
|
723
|
+
# check to ensure the input is an array given that the the attribute
|
|
724
|
+
# is documented as an array but the input is not
|
|
725
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
726
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
727
|
+
end
|
|
728
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
729
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
730
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
self
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Deserializes the data based on type
|
|
737
|
+
# @param string type Data type
|
|
738
|
+
# @param string value Value to be deserialized
|
|
739
|
+
# @return [Object] Deserialized data
|
|
740
|
+
def _deserialize(type, value)
|
|
741
|
+
case type.to_sym
|
|
742
|
+
when :DateTime
|
|
743
|
+
DateTime.parse(value)
|
|
744
|
+
when :Date
|
|
745
|
+
Date.parse(value)
|
|
746
|
+
when :String
|
|
747
|
+
value.to_s
|
|
748
|
+
when :Integer
|
|
749
|
+
value.to_i
|
|
750
|
+
when :Float
|
|
751
|
+
value.to_f
|
|
752
|
+
when :BOOLEAN
|
|
753
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
754
|
+
true
|
|
755
|
+
else
|
|
756
|
+
false
|
|
757
|
+
end
|
|
758
|
+
when :Object
|
|
759
|
+
# generic object (usually a Hash), return directly
|
|
760
|
+
value
|
|
761
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
762
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
763
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
764
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
765
|
+
k_type = Regexp.last_match[:k_type]
|
|
766
|
+
v_type = Regexp.last_match[:v_type]
|
|
767
|
+
{}.tap do |hash|
|
|
768
|
+
value.each do |k, v|
|
|
769
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
770
|
+
end
|
|
771
|
+
end
|
|
772
|
+
else # model
|
|
773
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
|
774
|
+
temp_model.build_from_hash(value)
|
|
775
|
+
end
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
# Returns the string representation of the object
|
|
779
|
+
# @return [String] String presentation of the object
|
|
780
|
+
def to_s
|
|
781
|
+
to_hash.to_s
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
785
|
+
# @return [Hash] Returns the object in the form of hash
|
|
786
|
+
def to_body
|
|
787
|
+
to_hash
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
# Returns the object in the form of hash
|
|
791
|
+
# @return [Hash] Returns the object in the form of hash
|
|
792
|
+
def to_hash
|
|
793
|
+
hash = {}
|
|
794
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
795
|
+
value = self.send(attr)
|
|
796
|
+
next if value.nil?
|
|
797
|
+
hash[param] = _to_hash(value)
|
|
798
|
+
end
|
|
799
|
+
hash
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Outputs non-array value in the form of hash
|
|
803
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
804
|
+
# @param [Object] value Any valid value
|
|
805
|
+
# @return [Hash] Returns the value in the form of hash
|
|
806
|
+
def _to_hash(value)
|
|
807
|
+
if value.is_a?(Array)
|
|
808
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
809
|
+
elsif value.is_a?(Hash)
|
|
810
|
+
{}.tap do |hash|
|
|
811
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
812
|
+
end
|
|
813
|
+
elsif value.respond_to? :to_hash
|
|
814
|
+
value.to_hash
|
|
815
|
+
else
|
|
816
|
+
value
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
end
|