aspose_cells_cloud 25.2 → 25.3
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 -9
- data/lib/aspose_cells_cloud/api/cells_api.rb +51 -0
- data/lib/aspose_cells_cloud/models/chart_points.rb +1 -1
- data/lib/aspose_cells_cloud/models/charts.rb +1 -1
- data/lib/aspose_cells_cloud/models/convert_workbook_options.rb +282 -0
- data/lib/aspose_cells_cloud/models/data_cleansing.rb +1 -1
- data/lib/aspose_cells_cloud/models/dif_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/docx_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/files_result.rb +1 -1
- data/lib/aspose_cells_cloud/models/html_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/image_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/json_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/m_html_save_options.rb +392 -8
- data/lib/aspose_cells_cloud/models/markdown_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/ods_save_options.rb +100 -4
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/page_sections_response.rb +1 -1
- data/lib/aspose_cells_cloud/models/paginated_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/pptx_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
- data/lib/aspose_cells_cloud/models/save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/shapes.rb +1 -1
- data/lib/aspose_cells_cloud/models/specify_cells_object.rb +234 -0
- data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/styles.rb +1 -1
- data/lib/aspose_cells_cloud/models/styles_response.rb +234 -0
- data/lib/aspose_cells_cloud/models/svg_save_options.rb +208 -4
- data/lib/aspose_cells_cloud/models/txt_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/workbook.rb +1 -1
- data/lib/aspose_cells_cloud/models/xls_save_options.rb +88 -4
- data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +88 -4
- data/lib/aspose_cells_cloud/models/xps_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/requests/add_picture_in_cell_request.rb +149 -0
- data/lib/aspose_cells_cloud/requests/get_all_styles_request.rb +117 -0
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_to_image_request.rb +1 -1
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +6 -0
- data/spec/conversion/conversion_json_spec.rb +0 -21
- data/spec/conversion/conversion_png_spec.rb +0 -21
- data/spec/conversion/conversion_spec.rb +0 -81
- data/spec/document/light_cells_spec.rb +0 -98
- metadata +8 -2
@@ -89,6 +89,10 @@ module AsposeCellsCloud
|
|
89
89
|
attr_accessor :sort_names
|
90
90
|
#
|
91
91
|
attr_accessor :validate_merged_areas
|
92
|
+
#
|
93
|
+
attr_accessor :check_excel_restriction
|
94
|
+
#
|
95
|
+
attr_accessor :encrypt_document_properties
|
92
96
|
|
93
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
94
98
|
def self.attribute_map
|
@@ -121,7 +125,9 @@ module AsposeCellsCloud
|
|
121
125
|
:'enable_http_compression' => :'EnableHTTPCompression',
|
122
126
|
:'refresh_chart_cache' => :'RefreshChartCache',
|
123
127
|
:'sort_names' => :'SortNames',
|
124
|
-
:'validate_merged_areas' => :'ValidateMergedAreas'
|
128
|
+
:'validate_merged_areas' => :'ValidateMergedAreas',
|
129
|
+
:'check_excel_restriction' => :'CheckExcelRestriction',
|
130
|
+
:'encrypt_document_properties' => :'EncryptDocumentProperties'
|
125
131
|
}
|
126
132
|
end
|
127
133
|
|
@@ -156,7 +162,9 @@ module AsposeCellsCloud
|
|
156
162
|
:'enable_http_compression' => :'BOOLEAN',
|
157
163
|
:'refresh_chart_cache' => :'BOOLEAN',
|
158
164
|
:'sort_names' => :'BOOLEAN',
|
159
|
-
:'validate_merged_areas' => :'BOOLEAN'
|
165
|
+
:'validate_merged_areas' => :'BOOLEAN',
|
166
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
167
|
+
:'encrypt_document_properties' => :'BOOLEAN'
|
160
168
|
}
|
161
169
|
end
|
162
170
|
|
@@ -255,6 +263,12 @@ module AsposeCellsCloud
|
|
255
263
|
if attributes.has_key?(:'ValidateMergedAreas')
|
256
264
|
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
257
265
|
end
|
266
|
+
if attributes.has_key?(:'CheckExcelRestriction')
|
267
|
+
self.check_excel_restriction = attributes[:'CheckExcelRestriction']
|
268
|
+
end
|
269
|
+
if attributes.has_key?(:'EncryptDocumentProperties')
|
270
|
+
self.encrypt_document_properties = attributes[:'EncryptDocumentProperties']
|
271
|
+
end
|
258
272
|
|
259
273
|
end
|
260
274
|
|
@@ -349,6 +363,12 @@ module AsposeCellsCloud
|
|
349
363
|
if @validate_merged_areas.nil?
|
350
364
|
invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
|
351
365
|
end
|
366
|
+
if @check_excel_restriction.nil?
|
367
|
+
invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
|
368
|
+
end
|
369
|
+
if @encrypt_document_properties.nil?
|
370
|
+
invalid_properties.push("invalid value for 'encrypt_document_properties', encrypt_document_properties cannot be nil.")
|
371
|
+
end
|
352
372
|
|
353
373
|
return invalid_properties
|
354
374
|
end
|
@@ -385,6 +405,8 @@ module AsposeCellsCloud
|
|
385
405
|
return false if @refresh_chart_cache.nil?
|
386
406
|
return false if @sort_names.nil?
|
387
407
|
return false if @validate_merged_areas.nil?
|
408
|
+
return false if @check_excel_restriction.nil?
|
409
|
+
return false if @encrypt_document_properties.nil?
|
388
410
|
return true
|
389
411
|
end
|
390
412
|
|
@@ -421,7 +443,9 @@ module AsposeCellsCloud
|
|
421
443
|
enable_http_compression == o.enable_http_compression &&
|
422
444
|
refresh_chart_cache == o.refresh_chart_cache &&
|
423
445
|
sort_names == o.sort_names &&
|
424
|
-
validate_merged_areas == o.validate_merged_areas
|
446
|
+
validate_merged_areas == o.validate_merged_areas &&
|
447
|
+
check_excel_restriction == o.check_excel_restriction &&
|
448
|
+
encrypt_document_properties == o.encrypt_document_properties
|
425
449
|
std_dev == o.std_dev
|
426
450
|
end
|
427
451
|
|
@@ -434,7 +458,7 @@ module AsposeCellsCloud
|
|
434
458
|
# Calculates hash code according to all attributes.
|
435
459
|
# @return [Fixnum] Hash code
|
436
460
|
def hash
|
437
|
-
[ ignore_hidden_rows , adjust_font_size_for_row_type , export_view_type , default_font , check_workbook_default_font , check_font_compatibility , is_font_substitution_char_granularity , one_page_per_sheet , all_columns_in_one_page_per_sheet , ignore_error , output_blank_page_when_nothing_to_print , page_index , page_count , printing_page_type , gridline_type , text_cross_type , default_edit_language , emf_render_setting , merge_areas , sort_external_names , update_smart_art , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
461
|
+
[ ignore_hidden_rows , adjust_font_size_for_row_type , export_view_type , default_font , check_workbook_default_font , check_font_compatibility , is_font_substitution_char_granularity , one_page_per_sheet , all_columns_in_one_page_per_sheet , ignore_error , output_blank_page_when_nothing_to_print , page_index , page_count , printing_page_type , gridline_type , text_cross_type , default_edit_language , emf_render_setting , merge_areas , sort_external_names , update_smart_art , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas , check_excel_restriction , encrypt_document_properties ].hash
|
438
462
|
end
|
439
463
|
|
440
464
|
# Builds the object from hash
|
@@ -47,6 +47,16 @@ module AsposeCellsCloud
|
|
47
47
|
attr_accessor :sort_names
|
48
48
|
#Indicates whether validate merged areas before saving the file.The default value is false.
|
49
49
|
attr_accessor :validate_merged_areas
|
50
|
+
#
|
51
|
+
attr_accessor :merge_areas
|
52
|
+
#
|
53
|
+
attr_accessor :sort_external_names
|
54
|
+
#
|
55
|
+
attr_accessor :check_excel_restriction
|
56
|
+
#
|
57
|
+
attr_accessor :update_smart_art
|
58
|
+
#
|
59
|
+
attr_accessor :encrypt_document_properties
|
50
60
|
|
51
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
62
|
def self.attribute_map
|
@@ -58,7 +68,12 @@ module AsposeCellsCloud
|
|
58
68
|
:'enable_http_compression' => :'EnableHTTPCompression',
|
59
69
|
:'refresh_chart_cache' => :'RefreshChartCache',
|
60
70
|
:'sort_names' => :'SortNames',
|
61
|
-
:'validate_merged_areas' => :'ValidateMergedAreas'
|
71
|
+
:'validate_merged_areas' => :'ValidateMergedAreas',
|
72
|
+
:'merge_areas' => :'MergeAreas',
|
73
|
+
:'sort_external_names' => :'SortExternalNames',
|
74
|
+
:'check_excel_restriction' => :'CheckExcelRestriction',
|
75
|
+
:'update_smart_art' => :'UpdateSmartArt',
|
76
|
+
:'encrypt_document_properties' => :'EncryptDocumentProperties'
|
62
77
|
}
|
63
78
|
end
|
64
79
|
|
@@ -72,7 +87,12 @@ module AsposeCellsCloud
|
|
72
87
|
:'enable_http_compression' => :'BOOLEAN',
|
73
88
|
:'refresh_chart_cache' => :'BOOLEAN',
|
74
89
|
:'sort_names' => :'BOOLEAN',
|
75
|
-
:'validate_merged_areas' => :'BOOLEAN'
|
90
|
+
:'validate_merged_areas' => :'BOOLEAN',
|
91
|
+
:'merge_areas' => :'BOOLEAN',
|
92
|
+
:'sort_external_names' => :'BOOLEAN',
|
93
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
94
|
+
:'update_smart_art' => :'BOOLEAN',
|
95
|
+
:'encrypt_document_properties' => :'BOOLEAN'
|
76
96
|
}
|
77
97
|
end
|
78
98
|
|
@@ -108,6 +128,21 @@ module AsposeCellsCloud
|
|
108
128
|
if attributes.has_key?(:'ValidateMergedAreas')
|
109
129
|
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
110
130
|
end
|
131
|
+
if attributes.has_key?(:'MergeAreas')
|
132
|
+
self.merge_areas = attributes[:'MergeAreas']
|
133
|
+
end
|
134
|
+
if attributes.has_key?(:'SortExternalNames')
|
135
|
+
self.sort_external_names = attributes[:'SortExternalNames']
|
136
|
+
end
|
137
|
+
if attributes.has_key?(:'CheckExcelRestriction')
|
138
|
+
self.check_excel_restriction = attributes[:'CheckExcelRestriction']
|
139
|
+
end
|
140
|
+
if attributes.has_key?(:'UpdateSmartArt')
|
141
|
+
self.update_smart_art = attributes[:'UpdateSmartArt']
|
142
|
+
end
|
143
|
+
if attributes.has_key?(:'EncryptDocumentProperties')
|
144
|
+
self.encrypt_document_properties = attributes[:'EncryptDocumentProperties']
|
145
|
+
end
|
111
146
|
|
112
147
|
end
|
113
148
|
|
@@ -139,6 +174,21 @@ module AsposeCellsCloud
|
|
139
174
|
if @validate_merged_areas.nil?
|
140
175
|
invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
|
141
176
|
end
|
177
|
+
if @merge_areas.nil?
|
178
|
+
invalid_properties.push("invalid value for 'merge_areas', merge_areas cannot be nil.")
|
179
|
+
end
|
180
|
+
if @sort_external_names.nil?
|
181
|
+
invalid_properties.push("invalid value for 'sort_external_names', sort_external_names cannot be nil.")
|
182
|
+
end
|
183
|
+
if @check_excel_restriction.nil?
|
184
|
+
invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
|
185
|
+
end
|
186
|
+
if @update_smart_art.nil?
|
187
|
+
invalid_properties.push("invalid value for 'update_smart_art', update_smart_art cannot be nil.")
|
188
|
+
end
|
189
|
+
if @encrypt_document_properties.nil?
|
190
|
+
invalid_properties.push("invalid value for 'encrypt_document_properties', encrypt_document_properties cannot be nil.")
|
191
|
+
end
|
142
192
|
|
143
193
|
return invalid_properties
|
144
194
|
end
|
@@ -154,6 +204,11 @@ module AsposeCellsCloud
|
|
154
204
|
return false if @refresh_chart_cache.nil?
|
155
205
|
return false if @sort_names.nil?
|
156
206
|
return false if @validate_merged_areas.nil?
|
207
|
+
return false if @merge_areas.nil?
|
208
|
+
return false if @sort_external_names.nil?
|
209
|
+
return false if @check_excel_restriction.nil?
|
210
|
+
return false if @update_smart_art.nil?
|
211
|
+
return false if @encrypt_document_properties.nil?
|
157
212
|
return true
|
158
213
|
end
|
159
214
|
|
@@ -169,7 +224,12 @@ module AsposeCellsCloud
|
|
169
224
|
enable_http_compression == o.enable_http_compression &&
|
170
225
|
refresh_chart_cache == o.refresh_chart_cache &&
|
171
226
|
sort_names == o.sort_names &&
|
172
|
-
validate_merged_areas == o.validate_merged_areas
|
227
|
+
validate_merged_areas == o.validate_merged_areas &&
|
228
|
+
merge_areas == o.merge_areas &&
|
229
|
+
sort_external_names == o.sort_external_names &&
|
230
|
+
check_excel_restriction == o.check_excel_restriction &&
|
231
|
+
update_smart_art == o.update_smart_art &&
|
232
|
+
encrypt_document_properties == o.encrypt_document_properties
|
173
233
|
std_dev == o.std_dev
|
174
234
|
end
|
175
235
|
|
@@ -182,7 +242,7 @@ module AsposeCellsCloud
|
|
182
242
|
# Calculates hash code according to all attributes.
|
183
243
|
# @return [Fixnum] Hash code
|
184
244
|
def hash
|
185
|
-
[ save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
245
|
+
[ 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
|
186
246
|
end
|
187
247
|
|
188
248
|
# Builds the object from hash
|
@@ -0,0 +1,234 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="SpecifyCellsObjectrb.cs">
|
4
|
+
Copyright (c) 2025 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 SpecifyCellsObject
|
34
|
+
#
|
35
|
+
attr_accessor :worksheet_name
|
36
|
+
#
|
37
|
+
attr_accessor :page_index
|
38
|
+
#
|
39
|
+
attr_accessor :region
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'worksheet_name' => :'WorksheetName',
|
45
|
+
:'page_index' => :'PageIndex',
|
46
|
+
:'region' => :'Region'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.swagger_types
|
52
|
+
{
|
53
|
+
:'worksheet_name' => :'String',
|
54
|
+
:'page_index' => :'Integer',
|
55
|
+
:'region' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
66
|
+
|
67
|
+
if attributes.has_key?(:'WorksheetName')
|
68
|
+
self.worksheet_name = attributes[:'WorksheetName']
|
69
|
+
end
|
70
|
+
if attributes.has_key?(:'PageIndex')
|
71
|
+
self.page_index = attributes[:'PageIndex']
|
72
|
+
end
|
73
|
+
if attributes.has_key?(:'Region')
|
74
|
+
self.region = attributes[:'Region']
|
75
|
+
end
|
76
|
+
|
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 = Array.new
|
83
|
+
if @worksheet_name.nil?
|
84
|
+
invalid_properties.push("invalid value for 'worksheet_name', worksheet_name cannot be nil.")
|
85
|
+
end
|
86
|
+
if @page_index.nil?
|
87
|
+
invalid_properties.push("invalid value for 'page_index', page_index cannot be nil.")
|
88
|
+
end
|
89
|
+
if @region.nil?
|
90
|
+
invalid_properties.push("invalid value for 'region', region cannot be nil.")
|
91
|
+
end
|
92
|
+
|
93
|
+
return invalid_properties
|
94
|
+
end
|
95
|
+
|
96
|
+
# Check to see if the all the properties in the model are valid
|
97
|
+
# @return true if the model is valid
|
98
|
+
def valid?
|
99
|
+
return false if @worksheet_name.nil?
|
100
|
+
return false if @page_index.nil?
|
101
|
+
return false if @region.nil?
|
102
|
+
return true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
worksheet_name == o.worksheet_name &&
|
111
|
+
page_index == o.page_index &&
|
112
|
+
region == o.region
|
113
|
+
std_dev == o.std_dev
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Fixnum] Hash code
|
124
|
+
def hash
|
125
|
+
[ worksheet_name , page_index , region ].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def build_from_hash(attributes)
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
133
|
+
self.class.swagger_types.each_pair do |key, type|
|
134
|
+
if type =~ /\AArray<(.*)>/i
|
135
|
+
# check to ensure the input is an array given that the the attribute
|
136
|
+
# is documented as an array but the input is not
|
137
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
138
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
139
|
+
end
|
140
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
141
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
142
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
143
|
+
end
|
144
|
+
|
145
|
+
self
|
146
|
+
end
|
147
|
+
|
148
|
+
# Deserializes the data based on type
|
149
|
+
# @param string type Data type
|
150
|
+
# @param string value Value to be deserialized
|
151
|
+
# @return [Object] Deserialized data
|
152
|
+
def _deserialize(type, value)
|
153
|
+
case type.to_sym
|
154
|
+
when :DateTime
|
155
|
+
DateTime.parse(value)
|
156
|
+
when :Date
|
157
|
+
Date.parse(value)
|
158
|
+
when :String
|
159
|
+
value.to_s
|
160
|
+
when :Integer
|
161
|
+
value.to_i
|
162
|
+
when :Float
|
163
|
+
value.to_f
|
164
|
+
when :BOOLEAN
|
165
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
166
|
+
true
|
167
|
+
else
|
168
|
+
false
|
169
|
+
end
|
170
|
+
when :Object
|
171
|
+
# generic object (usually a Hash), return directly
|
172
|
+
value
|
173
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
174
|
+
inner_type = Regexp.last_match[:inner_type]
|
175
|
+
value.map { |v| _deserialize(inner_type, v) }
|
176
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
177
|
+
k_type = Regexp.last_match[:k_type]
|
178
|
+
v_type = Regexp.last_match[:v_type]
|
179
|
+
{}.tap do |hash|
|
180
|
+
value.each do |k, v|
|
181
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
else # model
|
185
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
186
|
+
temp_model.build_from_hash(value)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the string representation of the object
|
191
|
+
# @return [String] String presentation of the object
|
192
|
+
def to_s
|
193
|
+
to_hash.to_s
|
194
|
+
end
|
195
|
+
|
196
|
+
# to_body is an alias to to_hash (backward compatibility)
|
197
|
+
# @return [Hash] Returns the object in the form of hash
|
198
|
+
def to_body
|
199
|
+
to_hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the object in the form of hash
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_hash
|
205
|
+
hash = {}
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
207
|
+
value = self.send(attr)
|
208
|
+
next if value.nil?
|
209
|
+
hash[param] = _to_hash(value)
|
210
|
+
end
|
211
|
+
hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Outputs non-array value in the form of hash
|
215
|
+
# For object, use to_hash. Otherwise, just return the value
|
216
|
+
# @param [Object] value Any valid value
|
217
|
+
# @return [Hash] Returns the value in the form of hash
|
218
|
+
def _to_hash(value)
|
219
|
+
if value.is_a?(Array)
|
220
|
+
value.compact.map{ |v| _to_hash(v) }
|
221
|
+
elsif value.is_a?(Hash)
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
224
|
+
end
|
225
|
+
elsif value.respond_to? :to_hash
|
226
|
+
value.to_hash
|
227
|
+
else
|
228
|
+
value
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
end
|
233
|
+
|
234
|
+
end
|
@@ -53,6 +53,16 @@ module AsposeCellsCloud
|
|
53
53
|
attr_accessor :sort_names
|
54
54
|
#
|
55
55
|
attr_accessor :validate_merged_areas
|
56
|
+
#
|
57
|
+
attr_accessor :merge_areas
|
58
|
+
#
|
59
|
+
attr_accessor :sort_external_names
|
60
|
+
#
|
61
|
+
attr_accessor :check_excel_restriction
|
62
|
+
#
|
63
|
+
attr_accessor :update_smart_art
|
64
|
+
#
|
65
|
+
attr_accessor :encrypt_document_properties
|
56
66
|
|
57
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
68
|
def self.attribute_map
|
@@ -67,7 +77,12 @@ module AsposeCellsCloud
|
|
67
77
|
:'enable_http_compression' => :'EnableHTTPCompression',
|
68
78
|
:'refresh_chart_cache' => :'RefreshChartCache',
|
69
79
|
:'sort_names' => :'SortNames',
|
70
|
-
:'validate_merged_areas' => :'ValidateMergedAreas'
|
80
|
+
:'validate_merged_areas' => :'ValidateMergedAreas',
|
81
|
+
:'merge_areas' => :'MergeAreas',
|
82
|
+
:'sort_external_names' => :'SortExternalNames',
|
83
|
+
:'check_excel_restriction' => :'CheckExcelRestriction',
|
84
|
+
:'update_smart_art' => :'UpdateSmartArt',
|
85
|
+
:'encrypt_document_properties' => :'EncryptDocumentProperties'
|
71
86
|
}
|
72
87
|
end
|
73
88
|
|
@@ -84,7 +99,12 @@ module AsposeCellsCloud
|
|
84
99
|
:'enable_http_compression' => :'BOOLEAN',
|
85
100
|
:'refresh_chart_cache' => :'BOOLEAN',
|
86
101
|
:'sort_names' => :'BOOLEAN',
|
87
|
-
:'validate_merged_areas' => :'BOOLEAN'
|
102
|
+
:'validate_merged_areas' => :'BOOLEAN',
|
103
|
+
:'merge_areas' => :'BOOLEAN',
|
104
|
+
:'sort_external_names' => :'BOOLEAN',
|
105
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
106
|
+
:'update_smart_art' => :'BOOLEAN',
|
107
|
+
:'encrypt_document_properties' => :'BOOLEAN'
|
88
108
|
}
|
89
109
|
end
|
90
110
|
|
@@ -129,6 +149,21 @@ module AsposeCellsCloud
|
|
129
149
|
if attributes.has_key?(:'ValidateMergedAreas')
|
130
150
|
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
131
151
|
end
|
152
|
+
if attributes.has_key?(:'MergeAreas')
|
153
|
+
self.merge_areas = attributes[:'MergeAreas']
|
154
|
+
end
|
155
|
+
if attributes.has_key?(:'SortExternalNames')
|
156
|
+
self.sort_external_names = attributes[:'SortExternalNames']
|
157
|
+
end
|
158
|
+
if attributes.has_key?(:'CheckExcelRestriction')
|
159
|
+
self.check_excel_restriction = attributes[:'CheckExcelRestriction']
|
160
|
+
end
|
161
|
+
if attributes.has_key?(:'UpdateSmartArt')
|
162
|
+
self.update_smart_art = attributes[:'UpdateSmartArt']
|
163
|
+
end
|
164
|
+
if attributes.has_key?(:'EncryptDocumentProperties')
|
165
|
+
self.encrypt_document_properties = attributes[:'EncryptDocumentProperties']
|
166
|
+
end
|
132
167
|
|
133
168
|
end
|
134
169
|
|
@@ -169,6 +204,21 @@ module AsposeCellsCloud
|
|
169
204
|
if @validate_merged_areas.nil?
|
170
205
|
invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
|
171
206
|
end
|
207
|
+
if @merge_areas.nil?
|
208
|
+
invalid_properties.push("invalid value for 'merge_areas', merge_areas cannot be nil.")
|
209
|
+
end
|
210
|
+
if @sort_external_names.nil?
|
211
|
+
invalid_properties.push("invalid value for 'sort_external_names', sort_external_names cannot be nil.")
|
212
|
+
end
|
213
|
+
if @check_excel_restriction.nil?
|
214
|
+
invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
|
215
|
+
end
|
216
|
+
if @update_smart_art.nil?
|
217
|
+
invalid_properties.push("invalid value for 'update_smart_art', update_smart_art cannot be nil.")
|
218
|
+
end
|
219
|
+
if @encrypt_document_properties.nil?
|
220
|
+
invalid_properties.push("invalid value for 'encrypt_document_properties', encrypt_document_properties cannot be nil.")
|
221
|
+
end
|
172
222
|
|
173
223
|
return invalid_properties
|
174
224
|
end
|
@@ -187,6 +237,11 @@ module AsposeCellsCloud
|
|
187
237
|
return false if @refresh_chart_cache.nil?
|
188
238
|
return false if @sort_names.nil?
|
189
239
|
return false if @validate_merged_areas.nil?
|
240
|
+
return false if @merge_areas.nil?
|
241
|
+
return false if @sort_external_names.nil?
|
242
|
+
return false if @check_excel_restriction.nil?
|
243
|
+
return false if @update_smart_art.nil?
|
244
|
+
return false if @encrypt_document_properties.nil?
|
190
245
|
return true
|
191
246
|
end
|
192
247
|
|
@@ -205,7 +260,12 @@ module AsposeCellsCloud
|
|
205
260
|
enable_http_compression == o.enable_http_compression &&
|
206
261
|
refresh_chart_cache == o.refresh_chart_cache &&
|
207
262
|
sort_names == o.sort_names &&
|
208
|
-
validate_merged_areas == o.validate_merged_areas
|
263
|
+
validate_merged_areas == o.validate_merged_areas &&
|
264
|
+
merge_areas == o.merge_areas &&
|
265
|
+
sort_external_names == o.sort_external_names &&
|
266
|
+
check_excel_restriction == o.check_excel_restriction &&
|
267
|
+
update_smart_art == o.update_smart_art &&
|
268
|
+
encrypt_document_properties == o.encrypt_document_properties
|
209
269
|
std_dev == o.std_dev
|
210
270
|
end
|
211
271
|
|
@@ -218,7 +278,7 @@ module AsposeCellsCloud
|
|
218
278
|
# Calculates hash code according to all attributes.
|
219
279
|
# @return [Fixnum] Hash code
|
220
280
|
def hash
|
221
|
-
[ export_column_index_of_cell , is_indented_formatting , limit_as_xls , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
281
|
+
[ export_column_index_of_cell , is_indented_formatting , limit_as_xls , 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
|
222
282
|
end
|
223
283
|
|
224
284
|
# Builds the object from hash
|