aspose_cells_cloud 23.6 → 23.8
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 +6 -10
- data/lib/aspose_cells_cloud/api/cells_api.rb +6 -82
- data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
- data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
- data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
- data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
- data/lib/aspose_cells_cloud/models/protection.rb +402 -0
- data/lib/aspose_cells_cloud/models/rendering_font.rb +258 -0
- data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
- data/lib/aspose_cells_cloud/requests/{get_extract_barcodes_request.rb → post_lock_request.rb} +30 -47
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
- data/lib/aspose_cells_cloud/requests/post_repair_request.rb +116 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +8 -1
- data/spec/document/light_cells_spec.rb +58 -1
- data/spec/onecase_spec.rb +28 -0
- metadata +15 -8
- data/spec/api/cells_barcodes_controller_spec.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ca0c313c39a3b7d43e262ff2be26af211dfbe07158b2a291c65df27e2cc9f36
|
4
|
+
data.tar.gz: fb7489269efdd4d5473ff97f02658586805b99bb32b6c90b4945d6e32a3b2860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ca1006a6daa1a623e52d3449007910e518a3b71eb92abc1d2a625409fec709f658aa2d95fc9f4044e7fda35ce4fbfb2fc413371f9f201c41ccb605de83ea641
|
7
|
+
data.tar.gz: 1ccd961c385a3b1e1ea8f0096e1d5d432173fa0b3a1bfda724104d385bfbaae1f48887bc99e781c64e505fd38a2cfe31a5435c6341524146356903b6725a82b6
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
   [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE)    [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -22,16 +22,12 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
|
|
22
22
|
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
|
23
23
|
|
24
24
|
|
25
|
-
## Feature & Enhancements in Version 23.
|
25
|
+
## Feature & Enhancements in Version 23.8
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
- Support to
|
30
|
-
-
|
31
|
-
- Support to batch unlock multi-files.
|
32
|
-
- Support to protect lock multi-files.
|
33
|
-
- Support to split lock multi-files.
|
34
|
-
- Fix put document property api.
|
27
|
+
Full list of issues covering all changes in this release:
|
28
|
+
|
29
|
+
- Support to lock API.
|
30
|
+
- Optimize protect API.
|
35
31
|
|
36
32
|
## Read & Write Spreadsheet Formats
|
37
33
|
|
@@ -191,13 +191,6 @@ module AsposeCellsCloud
|
|
191
191
|
return data
|
192
192
|
end
|
193
193
|
|
194
|
-
# Extract barcodes from worksheet picture.
|
195
|
-
|
196
|
-
def get_extract_barcodes( get_extract_barcodes_request, opts = {})
|
197
|
-
|
198
|
-
data, _status_code, _headers = get_extract_barcodes_request.create_http_request(@api_client,opts )
|
199
|
-
return data
|
200
|
-
end
|
201
194
|
|
202
195
|
# Clear cells contents in worksheet.
|
203
196
|
|
@@ -1048,6 +1041,12 @@ module AsposeCellsCloud
|
|
1048
1041
|
data, _status_code, _headers = post_reverse_request.create_http_request(@api_client,opts )
|
1049
1042
|
return data
|
1050
1043
|
end
|
1044
|
+
|
1045
|
+
def post_repair( post_repair_request, opts = {})
|
1046
|
+
|
1047
|
+
data, _status_code, _headers = post_repair_request.create_http_request(@api_client,opts )
|
1048
|
+
return data
|
1049
|
+
end
|
1051
1050
|
|
1052
1051
|
# Reverse rows or columns of Excel files, save as kinds of format files.
|
1053
1052
|
|
@@ -10850,82 +10849,7 @@ module AsposeCellsCloud
|
|
10850
10849
|
end
|
10851
10850
|
return data, status_code, headers
|
10852
10851
|
end
|
10853
|
-
# Get chart area border info.
|
10854
|
-
#
|
10855
|
-
# @param name Workbook name.
|
10856
|
-
# @param sheet_name Worksheet name.
|
10857
|
-
# @param picture_index The picture index.
|
10858
|
-
# @param [Hash] opts the optional parameters
|
10859
|
-
# @option opts [String] :folder Workbook folder.
|
10860
|
-
# @option opts [String] :storage_name storage name.
|
10861
|
-
# @return [BarcodeResponseList]
|
10862
|
-
def cells_picture_get_extract_barcodes(name, sheet_name, picture_index, opts = {})
|
10863
|
-
warn "Warning: #cells_picture_get_extract_barcodes() is deprecated."
|
10864
|
-
data, _status_code, _headers = cells_picture_get_extract_barcodes_with_http_info(name, sheet_name, picture_index, opts)
|
10865
|
-
return data
|
10866
|
-
end
|
10867
|
-
|
10868
|
-
# Get chart area border info.
|
10869
|
-
#
|
10870
|
-
# @param name Workbook name.
|
10871
|
-
# @param sheet_name Worksheet name.
|
10872
|
-
# @param picture_index The picture index.
|
10873
|
-
# @param [Hash] opts the optional parameters
|
10874
|
-
# @option opts [String] :folder Workbook folder.
|
10875
|
-
# @option opts [String] :storage_name storage name.
|
10876
|
-
# @return [Array<(BarcodeResponseList, Fixnum, Hash)>] BarcodeResponseList data, response status code and response headers
|
10877
|
-
def cells_picture_get_extract_barcodes_with_http_info(name, sheet_name, picture_index, opts = {})
|
10878
|
-
warn "Warning: #cells_picture_get_extract_barcodes_with_http_info() is deprecated."
|
10879
|
-
if @api_client.config.debugging
|
10880
|
-
@api_client.config.logger.debug "Calling API: CellsApi.cells_picture_get_extract_barcodes ..."
|
10881
|
-
end
|
10882
|
-
@api_client.request_token_if_needed
|
10883
|
-
# verify the required parameter 'name' is set
|
10884
|
-
if @api_client.config.client_side_validation && name.nil?
|
10885
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_picture_get_extract_barcodes"
|
10886
|
-
end
|
10887
|
-
# verify the required parameter 'sheet_name' is set
|
10888
|
-
if @api_client.config.client_side_validation && sheet_name.nil?
|
10889
|
-
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_picture_get_extract_barcodes"
|
10890
|
-
end
|
10891
|
-
# verify the required parameter 'picture_index' is set
|
10892
|
-
if @api_client.config.client_side_validation && picture_index.nil?
|
10893
|
-
fail ArgumentError, "Missing the required parameter 'picture_index' when calling CellsApi.cells_picture_get_extract_barcodes"
|
10894
|
-
end
|
10895
|
-
# resource path
|
10896
|
-
local_var_path = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'pictureIndex' + '}', picture_index.to_s)
|
10897
|
-
|
10898
|
-
# query parameters
|
10899
|
-
query_params = {}
|
10900
|
-
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
10901
|
-
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
10902
|
-
|
10903
|
-
# header parameters
|
10904
|
-
header_params = {}
|
10905
|
-
# HTTP header 'Accept' (if needed)
|
10906
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
10907
|
-
# HTTP header 'Content-Type'
|
10908
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10909
10852
|
|
10910
|
-
# form parameters
|
10911
|
-
form_params = {}
|
10912
|
-
|
10913
|
-
# http body (model)
|
10914
|
-
post_body = nil
|
10915
|
-
#auth_names = []
|
10916
|
-
auth_names = ['JWT']
|
10917
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
10918
|
-
:header_params => header_params,
|
10919
|
-
:query_params => query_params,
|
10920
|
-
:form_params => form_params,
|
10921
|
-
:body => post_body,
|
10922
|
-
:auth_names => auth_names,
|
10923
|
-
:return_type => 'BarcodeResponseList')
|
10924
|
-
if @api_client.config.debugging
|
10925
|
-
@api_client.config.logger.debug "API called: CellsApi#cells_picture_get_extract_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10926
|
-
end
|
10927
|
-
return data, status_code, headers
|
10928
|
-
end
|
10929
10853
|
# Delete a picture object in worksheet
|
10930
10854
|
#
|
10931
10855
|
# @param name The workbook name.
|
@@ -0,0 +1,294 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="DigitalSignaturerb.cs">
|
4
|
+
Copyright (c) 2023 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 DigitalSignature
|
34
|
+
#
|
35
|
+
attr_accessor :comments
|
36
|
+
#
|
37
|
+
attr_accessor :sign_time
|
38
|
+
#
|
39
|
+
attr_accessor :id
|
40
|
+
#
|
41
|
+
attr_accessor :password
|
42
|
+
#
|
43
|
+
attr_accessor :image
|
44
|
+
#
|
45
|
+
attr_accessor :provider_id
|
46
|
+
#
|
47
|
+
attr_accessor :is_valid
|
48
|
+
#
|
49
|
+
attr_accessor :x_ad_es_type
|
50
|
+
|
51
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
52
|
+
def self.attribute_map
|
53
|
+
{
|
54
|
+
:'comments' => :'Comments',
|
55
|
+
:'sign_time' => :'SignTime',
|
56
|
+
:'id' => :'Id',
|
57
|
+
:'password' => :'Password',
|
58
|
+
:'image' => :'Image',
|
59
|
+
:'provider_id' => :'ProviderId',
|
60
|
+
:'is_valid' => :'IsValid',
|
61
|
+
:'x_ad_es_type' => :'XAdESType'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.swagger_types
|
67
|
+
{
|
68
|
+
:'comments' => :'String',
|
69
|
+
:'sign_time' => :'String',
|
70
|
+
:'id' => :'String',
|
71
|
+
:'password' => :'String',
|
72
|
+
:'image' => :'Array<Integer>',
|
73
|
+
:'provider_id' => :'String',
|
74
|
+
:'is_valid' => :'BOOLEAN',
|
75
|
+
:'x_ad_es_type' => :'String'
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
# Initializes the object
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
def initialize(attributes = {})
|
82
|
+
return unless attributes.is_a?(Hash)
|
83
|
+
|
84
|
+
# convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
86
|
+
|
87
|
+
if attributes.has_key?(:'Comments')
|
88
|
+
self.comments = attributes[:'Comments']
|
89
|
+
end
|
90
|
+
if attributes.has_key?(:'SignTime')
|
91
|
+
self.sign_time = attributes[:'SignTime']
|
92
|
+
end
|
93
|
+
if attributes.has_key?(:'Id')
|
94
|
+
self.id = attributes[:'Id']
|
95
|
+
end
|
96
|
+
if attributes.has_key?(:'Password')
|
97
|
+
self.password = attributes[:'Password']
|
98
|
+
end
|
99
|
+
if attributes.has_key?(:'Image')
|
100
|
+
self.image = attributes[:'Image']
|
101
|
+
end
|
102
|
+
if attributes.has_key?(:'ProviderId')
|
103
|
+
self.provider_id = attributes[:'ProviderId']
|
104
|
+
end
|
105
|
+
if attributes.has_key?(:'IsValid')
|
106
|
+
self.is_valid = attributes[:'IsValid']
|
107
|
+
end
|
108
|
+
if attributes.has_key?(:'XAdESType')
|
109
|
+
self.x_ad_es_type = attributes[:'XAdESType']
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
115
|
+
# @return Array for valid properies with the reasons
|
116
|
+
def list_invalid_properties
|
117
|
+
invalid_properties = Array.new
|
118
|
+
if @comments.nil?
|
119
|
+
invalid_properties.push("invalid value for 'comments', comments cannot be nil.")
|
120
|
+
end
|
121
|
+
if @sign_time.nil?
|
122
|
+
invalid_properties.push("invalid value for 'sign_time', sign_time cannot be nil.")
|
123
|
+
end
|
124
|
+
if @id.nil?
|
125
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
126
|
+
end
|
127
|
+
if @password.nil?
|
128
|
+
invalid_properties.push("invalid value for 'password', password cannot be nil.")
|
129
|
+
end
|
130
|
+
if @image.nil?
|
131
|
+
invalid_properties.push("invalid value for 'image', image cannot be nil.")
|
132
|
+
end
|
133
|
+
if @provider_id.nil?
|
134
|
+
invalid_properties.push("invalid value for 'provider_id', provider_id cannot be nil.")
|
135
|
+
end
|
136
|
+
if @is_valid.nil?
|
137
|
+
invalid_properties.push("invalid value for 'is_valid', is_valid cannot be nil.")
|
138
|
+
end
|
139
|
+
if @x_ad_es_type.nil?
|
140
|
+
invalid_properties.push("invalid value for 'x_ad_es_type', x_ad_es_type cannot be nil.")
|
141
|
+
end
|
142
|
+
|
143
|
+
return invalid_properties
|
144
|
+
end
|
145
|
+
|
146
|
+
# Check to see if the all the properties in the model are valid
|
147
|
+
# @return true if the model is valid
|
148
|
+
def valid?
|
149
|
+
return false if @comments.nil?
|
150
|
+
return false if @sign_time.nil?
|
151
|
+
return false if @id.nil?
|
152
|
+
return false if @password.nil?
|
153
|
+
return false if @image.nil?
|
154
|
+
return false if @provider_id.nil?
|
155
|
+
return false if @is_valid.nil?
|
156
|
+
return false if @x_ad_es_type.nil?
|
157
|
+
return true
|
158
|
+
end
|
159
|
+
|
160
|
+
# Checks equality by comparing each attribute.
|
161
|
+
# @param [Object] Object to be compared
|
162
|
+
def ==(o)
|
163
|
+
return true if self.equal?(o)
|
164
|
+
self.class == o.class &&
|
165
|
+
comments == o.comments &&
|
166
|
+
sign_time == o.sign_time &&
|
167
|
+
id == o.id &&
|
168
|
+
password == o.password &&
|
169
|
+
image == o.image &&
|
170
|
+
provider_id == o.provider_id &&
|
171
|
+
is_valid == o.is_valid &&
|
172
|
+
x_ad_es_type == o.x_ad_es_type
|
173
|
+
std_dev == o.std_dev
|
174
|
+
end
|
175
|
+
|
176
|
+
# @see the `==` method
|
177
|
+
# @param [Object] Object to be compared
|
178
|
+
def eql?(o)
|
179
|
+
self == o
|
180
|
+
end
|
181
|
+
|
182
|
+
# Calculates hash code according to all attributes.
|
183
|
+
# @return [Fixnum] Hash code
|
184
|
+
def hash
|
185
|
+
[ comments , sign_time , id , password , image , provider_id , is_valid , x_ad_es_type ].hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Builds the object from hash
|
189
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
190
|
+
# @return [Object] Returns the model itself
|
191
|
+
def build_from_hash(attributes)
|
192
|
+
return nil unless attributes.is_a?(Hash)
|
193
|
+
self.class.swagger_types.each_pair do |key, type|
|
194
|
+
if type =~ /\AArray<(.*)>/i
|
195
|
+
# check to ensure the input is an array given that the the attribute
|
196
|
+
# is documented as an array but the input is not
|
197
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
198
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
199
|
+
end
|
200
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
201
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
202
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
203
|
+
end
|
204
|
+
|
205
|
+
self
|
206
|
+
end
|
207
|
+
|
208
|
+
# Deserializes the data based on type
|
209
|
+
# @param string type Data type
|
210
|
+
# @param string value Value to be deserialized
|
211
|
+
# @return [Object] Deserialized data
|
212
|
+
def _deserialize(type, value)
|
213
|
+
case type.to_sym
|
214
|
+
when :DateTime
|
215
|
+
DateTime.parse(value)
|
216
|
+
when :Date
|
217
|
+
Date.parse(value)
|
218
|
+
when :String
|
219
|
+
value.to_s
|
220
|
+
when :Integer
|
221
|
+
value.to_i
|
222
|
+
when :Float
|
223
|
+
value.to_f
|
224
|
+
when :BOOLEAN
|
225
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
226
|
+
true
|
227
|
+
else
|
228
|
+
false
|
229
|
+
end
|
230
|
+
when :Object
|
231
|
+
# generic object (usually a Hash), return directly
|
232
|
+
value
|
233
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
234
|
+
inner_type = Regexp.last_match[:inner_type]
|
235
|
+
value.map { |v| _deserialize(inner_type, v) }
|
236
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
237
|
+
k_type = Regexp.last_match[:k_type]
|
238
|
+
v_type = Regexp.last_match[:v_type]
|
239
|
+
{}.tap do |hash|
|
240
|
+
value.each do |k, v|
|
241
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
else # model
|
245
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
246
|
+
temp_model.build_from_hash(value)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# Returns the string representation of the object
|
251
|
+
# @return [String] String presentation of the object
|
252
|
+
def to_s
|
253
|
+
to_hash.to_s
|
254
|
+
end
|
255
|
+
|
256
|
+
# to_body is an alias to to_hash (backward compatibility)
|
257
|
+
# @return [Hash] Returns the object in the form of hash
|
258
|
+
def to_body
|
259
|
+
to_hash
|
260
|
+
end
|
261
|
+
|
262
|
+
# Returns the object in the form of hash
|
263
|
+
# @return [Hash] Returns the object in the form of hash
|
264
|
+
def to_hash
|
265
|
+
hash = {}
|
266
|
+
self.class.attribute_map.each_pair do |attr, param|
|
267
|
+
value = self.send(attr)
|
268
|
+
next if value.nil?
|
269
|
+
hash[param] = _to_hash(value)
|
270
|
+
end
|
271
|
+
hash
|
272
|
+
end
|
273
|
+
|
274
|
+
# Outputs non-array value in the form of hash
|
275
|
+
# For object, use to_hash. Otherwise, just return the value
|
276
|
+
# @param [Object] value Any valid value
|
277
|
+
# @return [Hash] Returns the value in the form of hash
|
278
|
+
def _to_hash(value)
|
279
|
+
if value.is_a?(Array)
|
280
|
+
value.compact.map{ |v| _to_hash(v) }
|
281
|
+
elsif value.is_a?(Hash)
|
282
|
+
{}.tap do |hash|
|
283
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
284
|
+
end
|
285
|
+
elsif value.respond_to? :to_hash
|
286
|
+
value.to_hash
|
287
|
+
else
|
288
|
+
value
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
end
|
293
|
+
|
294
|
+
end
|
@@ -31,6 +31,16 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class HtmlSaveOptions
|
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
|
34
44
|
#
|
35
45
|
attr_accessor :save_as_single_file
|
36
46
|
#
|
@@ -117,6 +127,11 @@ module AsposeCellsCloud
|
|
117
127
|
# Attribute mapping from ruby-style variable name to JSON key.
|
118
128
|
def self.attribute_map
|
119
129
|
{
|
130
|
+
:'export_page_headers' => :'ExportPageHeaders',
|
131
|
+
:'export_page_footers' => :'ExportPageFooters',
|
132
|
+
:'export_row_column_headings' => :'ExportRowColumnHeadings',
|
133
|
+
:'show_all_sheets' => :'ShowAllSheets',
|
134
|
+
:'image_options' => :'ImageOptions',
|
120
135
|
:'save_as_single_file' => :'SaveAsSingleFile',
|
121
136
|
:'export_hidden_worksheet' => :'ExportHiddenWorksheet',
|
122
137
|
:'export_grid_lines' => :'ExportGridLines',
|
@@ -164,6 +179,11 @@ module AsposeCellsCloud
|
|
164
179
|
# Attribute type mapping.
|
165
180
|
def self.swagger_types
|
166
181
|
{
|
182
|
+
:'export_page_headers' => :'BOOLEAN',
|
183
|
+
:'export_page_footers' => :'BOOLEAN',
|
184
|
+
:'export_row_column_headings' => :'BOOLEAN',
|
185
|
+
:'show_all_sheets' => :'BOOLEAN',
|
186
|
+
:'image_options' => :'ImageOrPrintOptions',
|
167
187
|
:'save_as_single_file' => :'BOOLEAN',
|
168
188
|
:'export_hidden_worksheet' => :'BOOLEAN',
|
169
189
|
:'export_grid_lines' => :'BOOLEAN',
|
@@ -216,6 +236,21 @@ module AsposeCellsCloud
|
|
216
236
|
# convert string to symbol for hash key
|
217
237
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
218
238
|
|
239
|
+
if attributes.has_key?(:'ExportPageHeaders')
|
240
|
+
self.export_page_headers = attributes[:'ExportPageHeaders']
|
241
|
+
end
|
242
|
+
if attributes.has_key?(:'ExportPageFooters')
|
243
|
+
self.export_page_footers = attributes[:'ExportPageFooters']
|
244
|
+
end
|
245
|
+
if attributes.has_key?(:'ExportRowColumnHeadings')
|
246
|
+
self.export_row_column_headings = attributes[:'ExportRowColumnHeadings']
|
247
|
+
end
|
248
|
+
if attributes.has_key?(:'ShowAllSheets')
|
249
|
+
self.show_all_sheets = attributes[:'ShowAllSheets']
|
250
|
+
end
|
251
|
+
if attributes.has_key?(:'ImageOptions')
|
252
|
+
self.image_options = attributes[:'ImageOptions']
|
253
|
+
end
|
219
254
|
if attributes.has_key?(:'SaveAsSingleFile')
|
220
255
|
self.save_as_single_file = attributes[:'SaveAsSingleFile']
|
221
256
|
end
|
@@ -346,6 +381,21 @@ module AsposeCellsCloud
|
|
346
381
|
# @return Array for valid properies with the reasons
|
347
382
|
def list_invalid_properties
|
348
383
|
invalid_properties = Array.new
|
384
|
+
if @export_page_headers.nil?
|
385
|
+
invalid_properties.push("invalid value for 'export_page_headers', export_page_headers cannot be nil.")
|
386
|
+
end
|
387
|
+
if @export_page_footers.nil?
|
388
|
+
invalid_properties.push("invalid value for 'export_page_footers', export_page_footers cannot be nil.")
|
389
|
+
end
|
390
|
+
if @export_row_column_headings.nil?
|
391
|
+
invalid_properties.push("invalid value for 'export_row_column_headings', export_row_column_headings cannot be nil.")
|
392
|
+
end
|
393
|
+
if @show_all_sheets.nil?
|
394
|
+
invalid_properties.push("invalid value for 'show_all_sheets', show_all_sheets cannot be nil.")
|
395
|
+
end
|
396
|
+
if @image_options.nil?
|
397
|
+
invalid_properties.push("invalid value for 'image_options', image_options cannot be nil.")
|
398
|
+
end
|
349
399
|
if @save_as_single_file.nil?
|
350
400
|
invalid_properties.push("invalid value for 'save_as_single_file', save_as_single_file cannot be nil.")
|
351
401
|
end
|
@@ -476,6 +526,11 @@ module AsposeCellsCloud
|
|
476
526
|
# Check to see if the all the properties in the model are valid
|
477
527
|
# @return true if the model is valid
|
478
528
|
def valid?
|
529
|
+
return false if @export_page_headers.nil?
|
530
|
+
return false if @export_page_footers.nil?
|
531
|
+
return false if @export_row_column_headings.nil?
|
532
|
+
return false if @show_all_sheets.nil?
|
533
|
+
return false if @image_options.nil?
|
479
534
|
return false if @save_as_single_file.nil?
|
480
535
|
return false if @export_hidden_worksheet.nil?
|
481
536
|
return false if @export_grid_lines.nil?
|
@@ -525,6 +580,11 @@ module AsposeCellsCloud
|
|
525
580
|
def ==(o)
|
526
581
|
return true if self.equal?(o)
|
527
582
|
self.class == o.class &&
|
583
|
+
export_page_headers == o.export_page_headers &&
|
584
|
+
export_page_footers == o.export_page_footers &&
|
585
|
+
export_row_column_headings == o.export_row_column_headings &&
|
586
|
+
show_all_sheets == o.show_all_sheets &&
|
587
|
+
image_options == o.image_options &&
|
528
588
|
save_as_single_file == o.save_as_single_file &&
|
529
589
|
export_hidden_worksheet == o.export_hidden_worksheet &&
|
530
590
|
export_grid_lines == o.export_grid_lines &&
|
@@ -578,7 +638,7 @@ module AsposeCellsCloud
|
|
578
638
|
# Calculates hash code according to all attributes.
|
579
639
|
# @return [Fixnum] Hash code
|
580
640
|
def hash
|
581
|
-
[ 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 , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
641
|
+
[ 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 , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
582
642
|
end
|
583
643
|
|
584
644
|
# Builds the object from hash
|