aspose_cells_cloud 21.7 → 21.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4b3aeb82d3f35e89665ef4b447a4827caa52c24308a9b6a273e971187a9e022
4
- data.tar.gz: 77a4444027f3e0999be2ecd4f4c5d3c2e9b95723f20aed7c912fc78a78da1d4a
3
+ metadata.gz: 5630e3450007702ca173e69e0a76f3aba9fe7d96656819215cd260444aa9879e
4
+ data.tar.gz: '058156ff060954d722d6637f1b50831fcb7d717abcf09936ff8bf3e1e3c21dea'
5
5
  SHA512:
6
- metadata.gz: 64177b41e23a8e48b1b10c5db9cd7962239835a23c6ece0095b4f48ca171c6c14d02aa9f79392af346a1689ad3135bff31765282cb41734c2983473d51ca0fee
7
- data.tar.gz: 59835936e9eedcd5dd040a2d37a381fc9471541314c9a893b7fa1f39a80c7892a53cd8f5226b0d1e764447b7e5c1da212aa59ad7ef25bb21349bfa85753fbdf4
6
+ metadata.gz: 88ccf6cdcadd9d25486fb2a48d8d9684348f2ddd5645605980d9a9a97966a145685d39f42a07289654427b14912f96c97218967b1438b303933be0a70309a4c2
7
+ data.tar.gz: d7273fd71845753efe8b6f4fb00c13f77baa359189d97580d1b943103ba559868590c2f56256ace08eaebaaf21e409f4c1d13961a9a5a2d1a381eb0da5cc85e0
data/README.md CHANGED
@@ -21,11 +21,11 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
21
21
  - Convert worksheets to PDF, XPS & SVG formats.
22
22
  - [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
23
23
 
24
- ## Feature & Enhancements in Version 21.7
24
+ ## Feature & Enhancements in Version 21.8
25
+
26
+ - Improvement for getting list object Api.
27
+ - Add import Api.
25
28
 
26
- - Fix search API.
27
- - Fix split API.
28
- - Fix update metadata API.
29
29
 
30
30
  ## Read & Write Spreadsheet Formats
31
31
 
@@ -4898,9 +4898,10 @@ module AsposeCellsCloud
4898
4898
  # @param sheet_name The worksheet name.
4899
4899
  # @param listobjectindex list object index.
4900
4900
  # @param [Hash] opts the optional parameters
4901
+ # @option opts [String] :format export format.
4901
4902
  # @option opts [String] :folder Document's folder.
4902
4903
  # @option opts [String] :storage_name storage name.
4903
- # @return [ListObjectResponse]
4904
+ # @return [File]
4904
4905
  def cells_list_objects_get_worksheet_list_object(name, sheet_name, listobjectindex, opts = {})
4905
4906
  data, _status_code, _headers = cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts)
4906
4907
  return data
@@ -4912,9 +4913,10 @@ module AsposeCellsCloud
4912
4913
  # @param sheet_name The worksheet name.
4913
4914
  # @param listobjectindex list object index.
4914
4915
  # @param [Hash] opts the optional parameters
4916
+ # @option opts [String] :format export format.
4915
4917
  # @option opts [String] :folder Document's folder.
4916
4918
  # @option opts [String] :storage_name storage name.
4917
- # @return [Array<(ListObjectResponse, Fixnum, Hash)>] ListObjectResponse data, response status code and response headers
4919
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4918
4920
  def cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts = {})
4919
4921
  if @api_client.config.debugging
4920
4922
  @api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_get_worksheet_list_object ..."
@@ -4937,6 +4939,7 @@ module AsposeCellsCloud
4937
4939
 
4938
4940
  # query parameters
4939
4941
  query_params = {}
4942
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
4940
4943
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
4941
4944
  query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
4942
4945
 
@@ -4960,7 +4963,7 @@ module AsposeCellsCloud
4960
4963
  :form_params => form_params,
4961
4964
  :body => post_body,
4962
4965
  :auth_names => auth_names,
4963
- :return_type => 'ListObjectResponse')
4966
+ :return_type => 'File')
4964
4967
  if @api_client.config.debugging
4965
4968
  @api_client.config.logger.debug "API called: CellsApi#cells_list_objects_get_worksheet_list_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4966
4969
  end
@@ -376,6 +376,80 @@ module AsposeCellsCloud
376
376
  return data, status_code, headers
377
377
  end
378
378
 
379
+ #
380
+ #
381
+ # @param file File to upload
382
+ # @param import_data
383
+ # @param [Hash] opts the optional parameters
384
+ # @return [FilesResult]
385
+ def post_import(file, import_data, opts = {})
386
+ data, _status_code, _headers = post_import_with_http_info(file, import_data, opts)
387
+ return data
388
+ end
389
+
390
+ #
391
+ #
392
+ # @param file File to upload
393
+ # @param import_data
394
+ # @param [Hash] opts the optional parameters
395
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
396
+ def post_import_with_http_info(file, import_data, opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "Calling API: LiteCellsApi.post_import ..."
399
+ end
400
+ @api_client.request_token_if_needed
401
+ # verify the required parameter 'file' is set
402
+ if @api_client.config.client_side_validation && file.nil?
403
+ fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_import"
404
+ end
405
+ # verify the required parameter 'import_data' is set
406
+ if @api_client.config.client_side_validation && import_data.nil?
407
+ fail ArgumentError, "Missing the required parameter 'import_data' when calling LiteCellsApi.post_import"
408
+ end
409
+ # resource path
410
+ local_var_path = "/cells/import"
411
+
412
+ # query parameters
413
+ query_params = {}
414
+
415
+ # header parameters
416
+ header_params = {}
417
+ # HTTP header 'Accept' (if needed)
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
419
+ # HTTP header 'Content-Type'
420
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
421
+
422
+ # form parameters
423
+ form_params = {}
424
+ file.each do |filename , context|
425
+ form_params[filename] = context
426
+ end
427
+
428
+ # http body (model)
429
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
430
+ post_body = ""
431
+
432
+ # http body (model)
433
+ post_body = @api_client.object_to_http_body(import_data)
434
+ if post_body
435
+ form_params['documentproperties'] = post_body.to_json
436
+ end
437
+
438
+ #auth_names = []
439
+ auth_names = ['JWT']
440
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names,
446
+ :return_type => 'FilesResult')
447
+ if @api_client.config.debugging
448
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
449
+ end
450
+ return data, status_code, headers
451
+ end
452
+
379
453
  #
380
454
  #
381
455
  # @param file File to upload
@@ -131,13 +131,13 @@ module AsposeCellsCloud
131
131
  if @config.access_token
132
132
  add_o_auth_token(req_opts)
133
133
  end
134
- #, :proxy => "http://127.0.0.1:8888"
134
+
135
135
  conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
136
136
  f.request :multipart
137
137
  f.request :url_encoded
138
138
  f.adapter Faraday.default_adapter
139
139
  end
140
-
140
+
141
141
  if req_opts[:body] == {}
142
142
  req_opts[:body] = nil
143
143
  end
@@ -308,6 +308,7 @@ module AsposeCellsCloud
308
308
  case value
309
309
  when ::File
310
310
  data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key) #MimeMagic::by_magic(value).to_s
311
+ # data[key] = Faraday::UploadIO.new(value.path, MimeMagic.by_magic(value).to_s, key)
311
312
  when ::Array, nil
312
313
  # let typhoeus handle File, Array and nil parameters
313
314
  data[key] = value
@@ -25,11 +25,11 @@ require 'date'
25
25
  module AsposeCellsCloud
26
26
 
27
27
  class AccessTokenResponse
28
- attr_accessor :_expires
28
+ attr_accessor :expires
29
29
 
30
30
  attr_accessor :access_token
31
31
 
32
- attr_accessor :_issued
32
+ attr_accessor :issued
33
33
 
34
34
  attr_accessor :client_refresh_token_life_time_in_minutes
35
35
 
@@ -45,9 +45,9 @@ module AsposeCellsCloud
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'_expires' => :'.expires',
48
+ :'expires' => :'expires',
49
49
  :'access_token' => :'access_token',
50
- :'_issued' => :'.issued',
50
+ :'issued' => :'issued',
51
51
  :'client_refresh_token_life_time_in_minutes' => :'clientRefreshTokenLifeTimeInMinutes',
52
52
  :'expires_in' => :'expires_in',
53
53
  :'token_type' => :'token_type',
@@ -59,9 +59,9 @@ module AsposeCellsCloud
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'_expires' => :'String',
62
+ :'expires' => :'String',
63
63
  :'access_token' => :'String',
64
- :'_issued' => :'String',
64
+ :'issued' => :'String',
65
65
  :'client_refresh_token_life_time_in_minutes' => :'String',
66
66
  :'expires_in' => :'Integer',
67
67
  :'token_type' => :'String',
@@ -78,16 +78,16 @@ module AsposeCellsCloud
78
78
  # convert string to symbol for hash key
79
79
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
80
 
81
- if attributes.has_key?(:'.expires')
82
- self._expires = attributes[:'.expires']
81
+ if attributes.has_key?(:'expires')
82
+ self.expires = attributes[:'expires']
83
83
  end
84
84
 
85
85
  if attributes.has_key?(:'access_token')
86
86
  self.access_token = attributes[:'access_token']
87
87
  end
88
88
 
89
- if attributes.has_key?(:'.issued')
90
- self._issued = attributes[:'.issued']
89
+ if attributes.has_key?(:'issued')
90
+ self.issued = attributes[:'issued']
91
91
  end
92
92
 
93
93
  if attributes.has_key?(:'clientRefreshTokenLifeTimeInMinutes')
@@ -130,9 +130,9 @@ module AsposeCellsCloud
130
130
  def ==(o)
131
131
  return true if self.equal?(o)
132
132
  self.class == o.class &&
133
- _expires == o._expires &&
133
+ expires == o.expires &&
134
134
  access_token == o.access_token &&
135
- _issued == o._issued &&
135
+ issued == o.issued &&
136
136
  client_refresh_token_life_time_in_minutes == o.client_refresh_token_life_time_in_minutes &&
137
137
  expires_in == o.expires_in &&
138
138
  token_type == o.token_type &&
@@ -149,7 +149,7 @@ module AsposeCellsCloud
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Fixnum] Hash code
151
151
  def hash
152
- [_expires, access_token, _issued, client_refresh_token_life_time_in_minutes, expires_in, token_type, client_id, refresh_token].hash
152
+ [expires, access_token, issued, client_refresh_token_life_time_in_minutes, expires_in, token_type, client_id, refresh_token].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash
@@ -49,7 +49,7 @@ module AsposeCellsCloud
49
49
  {
50
50
  :'is_gte' => :'BOOLEAN',
51
51
  :'type' => :'String',
52
- :'value' => :'Object'
52
+ :'value' => :'String'
53
53
  }
54
54
  end
55
55
 
@@ -42,7 +42,7 @@ module AsposeCellsCloud
42
42
  def self.swagger_types
43
43
  {
44
44
  :'filter_operator_type' => :'String',
45
- :'criteria' => :'Object'
45
+ :'criteria' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -45,8 +45,8 @@ module AsposeCellsCloud
45
45
  def self.swagger_types
46
46
  {
47
47
  :'dynamic_filter_type' => :'String',
48
- :'max_value' => :'Object',
49
- :'value' => :'Object'
48
+ :'max_value' => :'Integer',
49
+ :'value' => :'Integer'
50
50
  }
51
51
  end
52
52
 
@@ -0,0 +1,285 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2021 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 ImportPictureOption
28
+ attr_accessor :source
29
+
30
+ attr_accessor :import_data_type
31
+
32
+ attr_accessor :destination_worksheet
33
+
34
+ attr_accessor :is_insert
35
+
36
+ # Upper Left Row.
37
+ attr_accessor :upper_left_row
38
+
39
+ # Upper Left Column.
40
+ attr_accessor :upper_left_column
41
+
42
+ # Lower Right Row.
43
+ attr_accessor :lower_right_row
44
+
45
+ # Lower Right Column.
46
+ attr_accessor :lower_right_column
47
+
48
+ # Filename.
49
+ attr_accessor :filename
50
+
51
+ # data : base64 string.
52
+ attr_accessor :data
53
+
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'source' => :'Source',
59
+ :'import_data_type' => :'ImportDataType',
60
+ :'destination_worksheet' => :'DestinationWorksheet',
61
+ :'is_insert' => :'IsInsert',
62
+ :'upper_left_row' => :'UpperLeftRow',
63
+ :'upper_left_column' => :'UpperLeftColumn',
64
+ :'lower_right_row' => :'LowerRightRow',
65
+ :'lower_right_column' => :'LowerRightColumn',
66
+ :'filename' => :'Filename',
67
+ :'data' => :'Data'
68
+ }
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.swagger_types
73
+ {
74
+ :'source' => :'FileSource',
75
+ :'import_data_type' => :'String',
76
+ :'destination_worksheet' => :'String',
77
+ :'is_insert' => :'BOOLEAN',
78
+ :'upper_left_row' => :'Integer',
79
+ :'upper_left_column' => :'Integer',
80
+ :'lower_right_row' => :'Integer',
81
+ :'lower_right_column' => :'Integer',
82
+ :'filename' => :'String',
83
+ :'data' => :'String'
84
+ }
85
+ end
86
+
87
+ # Initializes the object
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ def initialize(attributes = {})
90
+ return unless attributes.is_a?(Hash)
91
+
92
+ # convert string to symbol for hash key
93
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
94
+
95
+ if attributes.has_key?(:'Source')
96
+ self.source = attributes[:'Source']
97
+ end
98
+
99
+ if attributes.has_key?(:'ImportDataType')
100
+ self.import_data_type = attributes[:'ImportDataType']
101
+ end
102
+
103
+ if attributes.has_key?(:'DestinationWorksheet')
104
+ self.destination_worksheet = attributes[:'DestinationWorksheet']
105
+ end
106
+
107
+ if attributes.has_key?(:'IsInsert')
108
+ self.is_insert = attributes[:'IsInsert']
109
+ end
110
+
111
+ if attributes.has_key?(:'UpperLeftRow')
112
+ self.upper_left_row = attributes[:'UpperLeftRow']
113
+ end
114
+
115
+ if attributes.has_key?(:'UpperLeftColumn')
116
+ self.upper_left_column = attributes[:'UpperLeftColumn']
117
+ end
118
+
119
+ if attributes.has_key?(:'LowerRightRow')
120
+ self.lower_right_row = attributes[:'LowerRightRow']
121
+ end
122
+
123
+ if attributes.has_key?(:'LowerRightColumn')
124
+ self.lower_right_column = attributes[:'LowerRightColumn']
125
+ end
126
+
127
+ if attributes.has_key?(:'Filename')
128
+ self.filename = attributes[:'Filename']
129
+ end
130
+
131
+ if attributes.has_key?(:'Data')
132
+ self.data = attributes[:'Data']
133
+ end
134
+
135
+ end
136
+
137
+ # Show invalid properties with the reasons. Usually used together with valid?
138
+ # @return Array for valid properies with the reasons
139
+ def list_invalid_properties
140
+ invalid_properties = Array.new
141
+ return invalid_properties
142
+ end
143
+
144
+ # Check to see if the all the properties in the model are valid
145
+ # @return true if the model is valid
146
+ def valid?
147
+ return true
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ source == o.source &&
156
+ import_data_type == o.import_data_type &&
157
+ destination_worksheet == o.destination_worksheet &&
158
+ is_insert == o.is_insert &&
159
+ upper_left_row == o.upper_left_row &&
160
+ upper_left_column == o.upper_left_column &&
161
+ lower_right_row == o.lower_right_row &&
162
+ lower_right_column == o.lower_right_column &&
163
+ filename == o.filename &&
164
+ data == o.data
165
+ end
166
+
167
+ # @see the `==` method
168
+ # @param [Object] Object to be compared
169
+ def eql?(o)
170
+ self == o
171
+ end
172
+
173
+ # Calculates hash code according to all attributes.
174
+ # @return [Fixnum] Hash code
175
+ def hash
176
+ [source, import_data_type, destination_worksheet, is_insert, upper_left_row, upper_left_column, lower_right_row, lower_right_column, filename, data].hash
177
+ end
178
+
179
+ # Builds the object from hash
180
+ # @param [Hash] attributes Model attributes in the form of hash
181
+ # @return [Object] Returns the model itself
182
+ def build_from_hash(attributes)
183
+ return nil unless attributes.is_a?(Hash)
184
+ self.class.swagger_types.each_pair do |key, type|
185
+ if type =~ /\AArray<(.*)>/i
186
+ # check to ensure the input is an array given that the the attribute
187
+ # is documented as an array but the input is not
188
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
189
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
190
+ end
191
+ elsif !attributes[self.class.attribute_map[key]].nil?
192
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
194
+ end
195
+
196
+ self
197
+ end
198
+
199
+ # Deserializes the data based on type
200
+ # @param string type Data type
201
+ # @param string value Value to be deserialized
202
+ # @return [Object] Deserialized data
203
+ def _deserialize(type, value)
204
+ case type.to_sym
205
+ when :DateTime
206
+ DateTime.parse(value)
207
+ when :Date
208
+ Date.parse(value)
209
+ when :String
210
+ value.to_s
211
+ when :Integer
212
+ value.to_i
213
+ when :Float
214
+ value.to_f
215
+ when :BOOLEAN
216
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
217
+ true
218
+ else
219
+ false
220
+ end
221
+ when :Object
222
+ # generic object (usually a Hash), return directly
223
+ value
224
+ when /\AArray<(?<inner_type>.+)>\z/
225
+ inner_type = Regexp.last_match[:inner_type]
226
+ value.map { |v| _deserialize(inner_type, v) }
227
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
228
+ k_type = Regexp.last_match[:k_type]
229
+ v_type = Regexp.last_match[:v_type]
230
+ {}.tap do |hash|
231
+ value.each do |k, v|
232
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
233
+ end
234
+ end
235
+ else # model
236
+ temp_model = AsposeCellsCloud.const_get(type).new
237
+ temp_model.build_from_hash(value)
238
+ end
239
+ end
240
+
241
+ # Returns the string representation of the object
242
+ # @return [String] String presentation of the object
243
+ def to_s
244
+ to_hash.to_s
245
+ end
246
+
247
+ # to_body is an alias to to_hash (backward compatibility)
248
+ # @return [Hash] Returns the object in the form of hash
249
+ def to_body
250
+ to_hash
251
+ end
252
+
253
+ # Returns the object in the form of hash
254
+ # @return [Hash] Returns the object in the form of hash
255
+ def to_hash
256
+ hash = {}
257
+ self.class.attribute_map.each_pair do |attr, param|
258
+ value = self.send(attr)
259
+ next if value.nil?
260
+ hash[param] = _to_hash(value)
261
+ end
262
+ hash
263
+ end
264
+
265
+ # Outputs non-array value in the form of hash
266
+ # For object, use to_hash. Otherwise, just return the value
267
+ # @param [Object] value Any valid value
268
+ # @return [Hash] Returns the value in the form of hash
269
+ def _to_hash(value)
270
+ if value.is_a?(Array)
271
+ value.compact.map{ |v| _to_hash(v) }
272
+ elsif value.is_a?(Hash)
273
+ {}.tap do |hash|
274
+ value.each { |k, v| hash[k] = _to_hash(v) }
275
+ end
276
+ elsif value.respond_to? :to_hash
277
+ value.to_hash
278
+ else
279
+ value
280
+ end
281
+ end
282
+
283
+ end
284
+
285
+ end
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "21.7"
24
+ VERSION = "21.8"
25
25
  end
@@ -180,6 +180,7 @@ require 'aspose_cells_cloud/models/import_csv_data_option'
180
180
  require 'aspose_cells_cloud/models/import_data_task_parameter'
181
181
  require 'aspose_cells_cloud/models/import_double_array_option'
182
182
  require 'aspose_cells_cloud/models/import_int_array_option'
183
+ require 'aspose_cells_cloud/models/import_picture_option'
183
184
  require 'aspose_cells_cloud/models/import_string_array_option'
184
185
  require 'aspose_cells_cloud/models/legend_response'
185
186
  require 'aspose_cells_cloud/models/line_format'
@@ -36,6 +36,183 @@ describe 'LiteCellsApi' do
36
36
 
37
37
  result = @instance.post_export(files ,"chart","pdf")
38
38
 
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+ describe 'lite_cells_unit export object test' do
43
+ it "should work" do
44
+ files = {}
45
+ name = $DataSourceXlsx
46
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
47
+ name =$AssemblyTestXlsx
48
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
49
+
50
+ result = @instance.post_export(files ,"chart","tiff")
51
+
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'lite_cells_unit export object test' do
57
+ it "should work" do
58
+ files = {}
59
+ name = $DataSourceXlsx
60
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
61
+ name =$AssemblyTestXlsx
62
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
63
+
64
+ result = @instance.post_export(files ,"chart","png")
65
+
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'lite_cells_unit export object test' do
71
+ it "should work" do
72
+ files = {}
73
+ name = $DataSourceXlsx
74
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
75
+ name =$AssemblyTestXlsx
76
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
77
+
78
+ result = @instance.post_export(files ,"picture","png")
79
+
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ describe 'lite_cells_unit export object test' do
85
+ it "should work" do
86
+ files = {}
87
+ name = $DataSourceXlsx
88
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
89
+ name =$AssemblyTestXlsx
90
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
91
+
92
+ result = @instance.post_export(files ,"shape","png")
93
+
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ describe 'lite_cells_unit export object test' do
99
+ it "should work" do
100
+ files = {}
101
+ name = $DataSourceXlsx
102
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
103
+ name =$AssemblyTestXlsx
104
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
105
+
106
+ result = @instance.post_export(files ,"sheet","png")
107
+
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ describe 'lite_cells_unit export object test' do
113
+ it "should work" do
114
+ files = {}
115
+ name = $DataSourceXlsx
116
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
117
+ name =$AssemblyTestXlsx
118
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
119
+
120
+ result = @instance.post_export(files ,"sheet","pdf")
121
+
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+ describe 'lite_cells_unit export object test' do
126
+ it "should work" do
127
+ files = {}
128
+ name = $DataSourceXlsx
129
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
130
+ name =$AssemblyTestXlsx
131
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
132
+
133
+ result = @instance.post_export(files ,"sheet","ods")
134
+
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+ describe 'lite_cells_unit export object test' do
139
+ it "should work" do
140
+ files = {}
141
+ name = $DataSourceXlsx
142
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
143
+ name =$AssemblyTestXlsx
144
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
145
+
146
+ result = @instance.post_export(files ,"workbook","png")
147
+
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+ describe 'lite_cells_unit export object test' do
152
+ it "should work" do
153
+ files = {}
154
+ name = $DataSourceXlsx
155
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
156
+ name =$AssemblyTestXlsx
157
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
158
+
159
+ result = @instance.post_export(files ,"workbook","ods")
160
+
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+ describe 'lite_cells_unit export object test' do
165
+ it "should work" do
166
+ files = {}
167
+ name = $DataSourceXlsx
168
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
169
+ name =$AssemblyTestXlsx
170
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
171
+
172
+ result = @instance.post_export(files ,"workbook","pdf")
173
+
174
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
175
+ end
176
+ end
177
+
178
+ describe 'lite_cells_unit export object test' do
179
+ it "should work" do
180
+ files = {}
181
+ name = $DataSourceXlsx
182
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
183
+ name =$AssemblyTestXlsx
184
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
185
+
186
+ result = @instance.post_export(files ,"listobject","png")
187
+
188
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
189
+ end
190
+ end
191
+
192
+ describe 'lite_cells_unit export object test' do
193
+ it "should work" do
194
+ files = {}
195
+ name = $DataSourceXlsx
196
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
197
+ name =$AssemblyTestXlsx
198
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
199
+
200
+ result = @instance.post_export(files ,"listobject","pdf")
201
+
202
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
203
+ end
204
+ end
205
+
206
+ describe 'lite_cells_unit export object test' do
207
+ it "should work" do
208
+ files = {}
209
+ name = $DataSourceXlsx
210
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
211
+ name =$AssemblyTestXlsx
212
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
213
+
214
+ result = @instance.post_export(files ,"listobject","xlsx")
215
+
39
216
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
217
  end
41
218
  end
@@ -0,0 +1,43 @@
1
+ =begin
2
+ #Web API Swagger specification
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for AsposeCellsCloud::CellsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'LiteCellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'lite_cells_unit import object test' do
30
+ it "should work" do
31
+ files = {}
32
+ name = $DataSourceXlsx
33
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
34
+ name =$AssemblyTestXlsx
35
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
36
+ importdata = AsposeCellsCloud::ImportIntArrayOption.new({:DestinationWorksheet=>$SHEET1,:FirstColumn=>1,:FirstRow=>3,:ImportDataType=>'IntArray',:IsVertical=>true,:Data=>[1,2,3,4]})
37
+ result = @instance.post_import(files ,importdata)
38
+
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+ end
43
+
data/spec/spec_helper.rb CHANGED
@@ -11,7 +11,7 @@ Swagger Codegen version: 2.3.0-SNAPSHOT
11
11
  =end
12
12
  require 'openssl'
13
13
  require 'bundler'
14
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
14
+ # OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
15
15
  # load the gem
16
16
  require 'aspose_cells_cloud'
17
17
  $grant_type = 'client_credentials' # replace NULL with a proper value
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: '21.7'
4
+ version: '21.8'
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: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -333,6 +333,7 @@ files:
333
333
  - lib/aspose_cells_cloud/models/import_double_array_option.rb
334
334
  - lib/aspose_cells_cloud/models/import_int_array_option.rb
335
335
  - lib/aspose_cells_cloud/models/import_option.rb
336
+ - lib/aspose_cells_cloud/models/import_picture_option.rb
336
337
  - lib/aspose_cells_cloud/models/import_string_array_option.rb
337
338
  - lib/aspose_cells_cloud/models/legend.rb
338
339
  - lib/aspose_cells_cloud/models/legend_response.rb
@@ -495,6 +496,7 @@ files:
495
496
  - spec/api/cells_conditional_formattings_api_spec.rb
496
497
  - spec/api/cells_export_spec.rb
497
498
  - spec/api/cells_hypelinks_api_spec.rb
499
+ - spec/api/cells_import_spec.rb
498
500
  - spec/api/cells_list_objects_api_spec.rb
499
501
  - spec/api/cells_merge_spec.rb
500
502
  - spec/api/cells_metadata_spec.rb