aspose_cells_cloud 22.6 → 22.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/aspose_cells_cloud/api/light_cells_api.rb +13 -0
- data/lib/aspose_cells_cloud/models/docx_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/json_save_options.rb +301 -0
- data/lib/aspose_cells_cloud/models/pptx_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- metadata +6 -2
@@ -0,0 +1,373 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2022 Aspose.Cells Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeCellsCloud
|
26
|
+
|
27
|
+
class SqlScriptSaveOptions
|
28
|
+
attr_accessor :enable_http_compression
|
29
|
+
|
30
|
+
attr_accessor :save_format
|
31
|
+
|
32
|
+
# Make the workbook empty after saving the file.
|
33
|
+
attr_accessor :clear_data
|
34
|
+
|
35
|
+
# The cached file folder is used to store some large data.
|
36
|
+
attr_accessor :cached_file_folder
|
37
|
+
|
38
|
+
# Indicates whether validate merged areas before saving the file. The default value is false.
|
39
|
+
attr_accessor :validate_merged_areas
|
40
|
+
|
41
|
+
attr_accessor :refresh_chart_cache
|
42
|
+
|
43
|
+
# If true and the directory does not exist, the directory will be automatically created before saving the file.
|
44
|
+
attr_accessor :create_directory
|
45
|
+
|
46
|
+
attr_accessor :sort_names
|
47
|
+
|
48
|
+
attr_accessor :check_if_table_exists
|
49
|
+
|
50
|
+
attr_accessor :column_type_map
|
51
|
+
|
52
|
+
attr_accessor :check_all_data_for_column_type
|
53
|
+
|
54
|
+
attr_accessor :add_blank_line_between_rows
|
55
|
+
|
56
|
+
attr_accessor :operator_type
|
57
|
+
|
58
|
+
attr_accessor :create_table
|
59
|
+
|
60
|
+
attr_accessor :id_name
|
61
|
+
|
62
|
+
attr_accessor :start_id
|
63
|
+
|
64
|
+
attr_accessor :table_name
|
65
|
+
|
66
|
+
attr_accessor :export_as_string
|
67
|
+
|
68
|
+
attr_accessor :export_area
|
69
|
+
|
70
|
+
attr_accessor :has_header_row
|
71
|
+
|
72
|
+
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
74
|
+
def self.attribute_map
|
75
|
+
{
|
76
|
+
:'enable_http_compression' => :'EnableHTTPCompression',
|
77
|
+
:'save_format' => :'SaveFormat',
|
78
|
+
:'clear_data' => :'ClearData',
|
79
|
+
:'cached_file_folder' => :'CachedFileFolder',
|
80
|
+
:'validate_merged_areas' => :'ValidateMergedAreas',
|
81
|
+
:'refresh_chart_cache' => :'RefreshChartCache',
|
82
|
+
:'create_directory' => :'CreateDirectory',
|
83
|
+
:'sort_names' => :'SortNames',
|
84
|
+
:'check_if_table_exists' => :'CheckIfTableExists',
|
85
|
+
:'column_type_map' => :'ColumnTypeMap',
|
86
|
+
:'check_all_data_for_column_type' => :'CheckAllDataForColumnType',
|
87
|
+
:'add_blank_line_between_rows' => :'AddBlankLineBetweenRows',
|
88
|
+
:'operator_type' => :'OperatorType',
|
89
|
+
:'create_table' => :'CreateTable',
|
90
|
+
:'id_name' => :'IdName',
|
91
|
+
:'start_id' => :'StartId',
|
92
|
+
:'table_name' => :'TableName',
|
93
|
+
:'export_as_string' => :'ExportAsString',
|
94
|
+
:'export_area' => :'ExportArea',
|
95
|
+
:'has_header_row' => :'HasHeaderRow'
|
96
|
+
}
|
97
|
+
end
|
98
|
+
|
99
|
+
# Attribute type mapping.
|
100
|
+
def self.swagger_types
|
101
|
+
{
|
102
|
+
:'enable_http_compression' => :'BOOLEAN',
|
103
|
+
:'save_format' => :'String',
|
104
|
+
:'clear_data' => :'BOOLEAN',
|
105
|
+
:'cached_file_folder' => :'String',
|
106
|
+
:'validate_merged_areas' => :'BOOLEAN',
|
107
|
+
:'refresh_chart_cache' => :'BOOLEAN',
|
108
|
+
:'create_directory' => :'BOOLEAN',
|
109
|
+
:'sort_names' => :'BOOLEAN',
|
110
|
+
:'check_if_table_exists' => :'BOOLEAN',
|
111
|
+
:'column_type_map' => :'String',
|
112
|
+
:'check_all_data_for_column_type' => :'BOOLEAN',
|
113
|
+
:'add_blank_line_between_rows' => :'BOOLEAN',
|
114
|
+
:'operator_type' => :'String',
|
115
|
+
:'create_table' => :'BOOLEAN',
|
116
|
+
:'id_name' => :'String',
|
117
|
+
:'start_id' => :'Integer',
|
118
|
+
:'table_name' => :'String',
|
119
|
+
:'export_as_string' => :'BOOLEAN',
|
120
|
+
:'export_area' => :'CellArea',
|
121
|
+
:'has_header_row' => :'BOOLEAN'
|
122
|
+
}
|
123
|
+
end
|
124
|
+
|
125
|
+
# Initializes the object
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
def initialize(attributes = {})
|
128
|
+
return unless attributes.is_a?(Hash)
|
129
|
+
|
130
|
+
# convert string to symbol for hash key
|
131
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
132
|
+
|
133
|
+
if attributes.has_key?(:'EnableHTTPCompression')
|
134
|
+
self.enable_http_compression = attributes[:'EnableHTTPCompression']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'SaveFormat')
|
138
|
+
self.save_format = attributes[:'SaveFormat']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'ClearData')
|
142
|
+
self.clear_data = attributes[:'ClearData']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'CachedFileFolder')
|
146
|
+
self.cached_file_folder = attributes[:'CachedFileFolder']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'ValidateMergedAreas')
|
150
|
+
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'RefreshChartCache')
|
154
|
+
self.refresh_chart_cache = attributes[:'RefreshChartCache']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'CreateDirectory')
|
158
|
+
self.create_directory = attributes[:'CreateDirectory']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'SortNames')
|
162
|
+
self.sort_names = attributes[:'SortNames']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'CheckIfTableExists')
|
166
|
+
self.check_if_table_exists = attributes[:'CheckIfTableExists']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'ColumnTypeMap')
|
170
|
+
self.column_type_map = attributes[:'ColumnTypeMap']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'CheckAllDataForColumnType')
|
174
|
+
self.check_all_data_for_column_type = attributes[:'CheckAllDataForColumnType']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'AddBlankLineBetweenRows')
|
178
|
+
self.add_blank_line_between_rows = attributes[:'AddBlankLineBetweenRows']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'OperatorType')
|
182
|
+
self.operator_type = attributes[:'OperatorType']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.has_key?(:'CreateTable')
|
186
|
+
self.create_table = attributes[:'CreateTable']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.has_key?(:'IdName')
|
190
|
+
self.id_name = attributes[:'IdName']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.has_key?(:'StartId')
|
194
|
+
self.start_id = attributes[:'StartId']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.has_key?(:'TableName')
|
198
|
+
self.table_name = attributes[:'TableName']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.has_key?(:'ExportAsString')
|
202
|
+
self.export_as_string = attributes[:'ExportAsString']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'ExportArea')
|
206
|
+
self.export_area = attributes[:'ExportArea']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.has_key?(:'HasHeaderRow')
|
210
|
+
self.has_header_row = attributes[:'HasHeaderRow']
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
|
215
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
216
|
+
# @return Array for valid properies with the reasons
|
217
|
+
def list_invalid_properties
|
218
|
+
invalid_properties = Array.new
|
219
|
+
return invalid_properties
|
220
|
+
end
|
221
|
+
|
222
|
+
# Check to see if the all the properties in the model are valid
|
223
|
+
# @return true if the model is valid
|
224
|
+
def valid?
|
225
|
+
return true
|
226
|
+
end
|
227
|
+
|
228
|
+
# Checks equality by comparing each attribute.
|
229
|
+
# @param [Object] Object to be compared
|
230
|
+
def ==(o)
|
231
|
+
return true if self.equal?(o)
|
232
|
+
self.class == o.class &&
|
233
|
+
enable_http_compression == o.enable_http_compression &&
|
234
|
+
save_format == o.save_format &&
|
235
|
+
clear_data == o.clear_data &&
|
236
|
+
cached_file_folder == o.cached_file_folder &&
|
237
|
+
validate_merged_areas == o.validate_merged_areas &&
|
238
|
+
refresh_chart_cache == o.refresh_chart_cache &&
|
239
|
+
create_directory == o.create_directory &&
|
240
|
+
sort_names == o.sort_names &&
|
241
|
+
check_if_table_exists == o.check_if_table_exists &&
|
242
|
+
column_type_map == o.column_type_map &&
|
243
|
+
check_all_data_for_column_type == o.check_all_data_for_column_type &&
|
244
|
+
add_blank_line_between_rows == o.add_blank_line_between_rows &&
|
245
|
+
operator_type == o.operator_type &&
|
246
|
+
create_table == o.create_table &&
|
247
|
+
id_name == o.id_name &&
|
248
|
+
start_id == o.start_id &&
|
249
|
+
table_name == o.table_name &&
|
250
|
+
export_as_string == o.export_as_string &&
|
251
|
+
export_area == o.export_area &&
|
252
|
+
has_header_row == o.has_header_row
|
253
|
+
end
|
254
|
+
|
255
|
+
# @see the `==` method
|
256
|
+
# @param [Object] Object to be compared
|
257
|
+
def eql?(o)
|
258
|
+
self == o
|
259
|
+
end
|
260
|
+
|
261
|
+
# Calculates hash code according to all attributes.
|
262
|
+
# @return [Fixnum] Hash code
|
263
|
+
def hash
|
264
|
+
[enable_http_compression, save_format, clear_data, cached_file_folder, validate_merged_areas, refresh_chart_cache, create_directory, sort_names, check_if_table_exists, column_type_map, check_all_data_for_column_type, add_blank_line_between_rows, operator_type, create_table, id_name, start_id, table_name, export_as_string, export_area, has_header_row].hash
|
265
|
+
end
|
266
|
+
|
267
|
+
# Builds the object from hash
|
268
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
269
|
+
# @return [Object] Returns the model itself
|
270
|
+
def build_from_hash(attributes)
|
271
|
+
return nil unless attributes.is_a?(Hash)
|
272
|
+
self.class.swagger_types.each_pair do |key, type|
|
273
|
+
if type =~ /\AArray<(.*)>/i
|
274
|
+
# check to ensure the input is an array given that the the attribute
|
275
|
+
# is documented as an array but the input is not
|
276
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
277
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
278
|
+
end
|
279
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
280
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
281
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
282
|
+
end
|
283
|
+
|
284
|
+
self
|
285
|
+
end
|
286
|
+
|
287
|
+
# Deserializes the data based on type
|
288
|
+
# @param string type Data type
|
289
|
+
# @param string value Value to be deserialized
|
290
|
+
# @return [Object] Deserialized data
|
291
|
+
def _deserialize(type, value)
|
292
|
+
case type.to_sym
|
293
|
+
when :DateTime
|
294
|
+
DateTime.parse(value)
|
295
|
+
when :Date
|
296
|
+
Date.parse(value)
|
297
|
+
when :String
|
298
|
+
value.to_s
|
299
|
+
when :Integer
|
300
|
+
value.to_i
|
301
|
+
when :Float
|
302
|
+
value.to_f
|
303
|
+
when :BOOLEAN
|
304
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
305
|
+
true
|
306
|
+
else
|
307
|
+
false
|
308
|
+
end
|
309
|
+
when :Object
|
310
|
+
# generic object (usually a Hash), return directly
|
311
|
+
value
|
312
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
313
|
+
inner_type = Regexp.last_match[:inner_type]
|
314
|
+
value.map { |v| _deserialize(inner_type, v) }
|
315
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
316
|
+
k_type = Regexp.last_match[:k_type]
|
317
|
+
v_type = Regexp.last_match[:v_type]
|
318
|
+
{}.tap do |hash|
|
319
|
+
value.each do |k, v|
|
320
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
321
|
+
end
|
322
|
+
end
|
323
|
+
else # model
|
324
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
325
|
+
temp_model.build_from_hash(value)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
# Returns the string representation of the object
|
330
|
+
# @return [String] String presentation of the object
|
331
|
+
def to_s
|
332
|
+
to_hash.to_s
|
333
|
+
end
|
334
|
+
|
335
|
+
# to_body is an alias to to_hash (backward compatibility)
|
336
|
+
# @return [Hash] Returns the object in the form of hash
|
337
|
+
def to_body
|
338
|
+
to_hash
|
339
|
+
end
|
340
|
+
|
341
|
+
# Returns the object in the form of hash
|
342
|
+
# @return [Hash] Returns the object in the form of hash
|
343
|
+
def to_hash
|
344
|
+
hash = {}
|
345
|
+
self.class.attribute_map.each_pair do |attr, param|
|
346
|
+
value = self.send(attr)
|
347
|
+
next if value.nil?
|
348
|
+
hash[param] = _to_hash(value)
|
349
|
+
end
|
350
|
+
hash
|
351
|
+
end
|
352
|
+
|
353
|
+
# Outputs non-array value in the form of hash
|
354
|
+
# For object, use to_hash. Otherwise, just return the value
|
355
|
+
# @param [Object] value Any valid value
|
356
|
+
# @return [Hash] Returns the value in the form of hash
|
357
|
+
def _to_hash(value)
|
358
|
+
if value.is_a?(Array)
|
359
|
+
value.compact.map{ |v| _to_hash(v) }
|
360
|
+
elsif value.is_a?(Hash)
|
361
|
+
{}.tap do |hash|
|
362
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
363
|
+
end
|
364
|
+
elsif value.respond_to? :to_hash
|
365
|
+
value.to_hash
|
366
|
+
else
|
367
|
+
value
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
end
|
372
|
+
|
373
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_cells_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '22.
|
4
|
+
version: '22.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose Cells Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -302,6 +302,7 @@ files:
|
|
302
302
|
- lib/aspose_cells_cloud/models/data_sorter.rb
|
303
303
|
- lib/aspose_cells_cloud/models/dif_save_options.rb
|
304
304
|
- lib/aspose_cells_cloud/models/disc_usage.rb
|
305
|
+
- lib/aspose_cells_cloud/models/docx_save_options.rb
|
305
306
|
- lib/aspose_cells_cloud/models/dynamic_filter.rb
|
306
307
|
- lib/aspose_cells_cloud/models/error_details.rb
|
307
308
|
- lib/aspose_cells_cloud/models/file_info.rb
|
@@ -339,6 +340,7 @@ files:
|
|
339
340
|
- lib/aspose_cells_cloud/models/import_option.rb
|
340
341
|
- lib/aspose_cells_cloud/models/import_picture_option.rb
|
341
342
|
- lib/aspose_cells_cloud/models/import_string_array_option.rb
|
343
|
+
- lib/aspose_cells_cloud/models/json_save_options.rb
|
342
344
|
- lib/aspose_cells_cloud/models/legend.rb
|
343
345
|
- lib/aspose_cells_cloud/models/legend_response.rb
|
344
346
|
- lib/aspose_cells_cloud/models/line.rb
|
@@ -404,6 +406,7 @@ files:
|
|
404
406
|
- lib/aspose_cells_cloud/models/pivot_table_response.rb
|
405
407
|
- lib/aspose_cells_cloud/models/pivot_tables.rb
|
406
408
|
- lib/aspose_cells_cloud/models/pivot_tables_response.rb
|
409
|
+
- lib/aspose_cells_cloud/models/pptx_save_options.rb
|
407
410
|
- lib/aspose_cells_cloud/models/protect_sheet_parameter.rb
|
408
411
|
- lib/aspose_cells_cloud/models/range.rb
|
409
412
|
- lib/aspose_cells_cloud/models/range_copy_request.rb
|
@@ -442,6 +445,7 @@ files:
|
|
442
445
|
- lib/aspose_cells_cloud/models/split_result_response.rb
|
443
446
|
- lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb
|
444
447
|
- lib/aspose_cells_cloud/models/spreadsheet_ml2003_save_options.rb
|
448
|
+
- lib/aspose_cells_cloud/models/sql_script_save_options.rb
|
445
449
|
- lib/aspose_cells_cloud/models/storage_exist.rb
|
446
450
|
- lib/aspose_cells_cloud/models/storage_file.rb
|
447
451
|
- lib/aspose_cells_cloud/models/style.rb
|