Skip to content

Commit 9293aef

Browse files
committed
Release Aspose.Cells Cloud SDK 21.8
1 parent 93dd695 commit 9293aef

14 files changed

+612
-28
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
2121
- Convert worksheets to PDF, XPS & SVG formats.
2222
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
2323

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.
2528

26-
- Fix search API.
27-
- Fix split API.
28-
- Fix update metadata API.
2929

3030
## Read & Write Spreadsheet Formats
3131

lib/aspose_cells_cloud.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
require 'aspose_cells_cloud/models/import_data_task_parameter'
181181
require 'aspose_cells_cloud/models/import_double_array_option'
182182
require 'aspose_cells_cloud/models/import_int_array_option'
183+
require 'aspose_cells_cloud/models/import_picture_option'
183184
require 'aspose_cells_cloud/models/import_string_array_option'
184185
require 'aspose_cells_cloud/models/legend_response'
185186
require 'aspose_cells_cloud/models/line_format'

lib/aspose_cells_cloud/api/cells_api.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,9 +4898,10 @@ def cells_list_objects_delete_worksheet_list_objects_with_http_info(name, sheet_
48984898
# @param sheet_name The worksheet name.
48994899
# @param listobjectindex list object index.
49004900
# @param [Hash] opts the optional parameters
4901+
# @option opts [String] :format export format.
49014902
# @option opts [String] :folder Document's folder.
49024903
# @option opts [String] :storage_name storage name.
4903-
# @return [ListObjectResponse]
4904+
# @return [File]
49044905
def cells_list_objects_get_worksheet_list_object(name, sheet_name, listobjectindex, opts = {})
49054906
data, _status_code, _headers = cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts)
49064907
return data
@@ -4912,9 +4913,10 @@ def cells_list_objects_get_worksheet_list_object(name, sheet_name, listobjectind
49124913
# @param sheet_name The worksheet name.
49134914
# @param listobjectindex list object index.
49144915
# @param [Hash] opts the optional parameters
4916+
# @option opts [String] :format export format.
49154917
# @option opts [String] :folder Document's folder.
49164918
# @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
49184920
def cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts = {})
49194921
if @api_client.config.debugging
49204922
@api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_get_worksheet_list_object ..."
@@ -4937,6 +4939,7 @@ def cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name
49374939

49384940
# query parameters
49394941
query_params = {}
4942+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
49404943
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
49414944
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
49424945

@@ -4960,7 +4963,7 @@ def cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name
49604963
:form_params => form_params,
49614964
:body => post_body,
49624965
:auth_names => auth_names,
4963-
:return_type => 'ListObjectResponse')
4966+
:return_type => 'File')
49644967
if @api_client.config.debugging
49654968
@api_client.config.logger.debug "API called: CellsApi#cells_list_objects_get_worksheet_list_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
49664969
end

lib/aspose_cells_cloud/api/lite_cells_api.rb

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,80 @@ def post_export_with_http_info(file, object_type, format, opts = {})
376376
return data, status_code, headers
377377
end
378378

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+
379453
#
380454
#
381455
# @param file File to upload

lib/aspose_cells_cloud/api_client.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ def build_request(http_method, path, opts = {})
131131
if @config.access_token
132132
add_o_auth_token(req_opts)
133133
end
134-
#, :proxy => "http://127.0.0.1:8888"
134+
135135
conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
136136
f.request :multipart
137137
f.request :url_encoded
138138
f.adapter Faraday.default_adapter
139139
end
140-
140+
141141
if req_opts[:body] == {}
142142
req_opts[:body] = nil
143143
end
@@ -308,6 +308,7 @@ def build_request_body(header_params, form_params, body)
308308
case value
309309
when ::File
310310
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)
311312
when ::Array, nil
312313
# let typhoeus handle File, Array and nil parameters
313314
data[key] = value

lib/aspose_cells_cloud/models/access_token_response.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
module AsposeCellsCloud
2626

2727
class AccessTokenResponse
28-
attr_accessor :_expires
28+
attr_accessor :expires
2929

3030
attr_accessor :access_token
3131

32-
attr_accessor :_issued
32+
attr_accessor :issued
3333

3434
attr_accessor :client_refresh_token_life_time_in_minutes
3535

@@ -45,9 +45,9 @@ class AccessTokenResponse
4545
# Attribute mapping from ruby-style variable name to JSON key.
4646
def self.attribute_map
4747
{
48-
:'_expires' => :'.expires',
48+
:'expires' => :'expires',
4949
:'access_token' => :'access_token',
50-
:'_issued' => :'.issued',
50+
:'issued' => :'issued',
5151
:'client_refresh_token_life_time_in_minutes' => :'clientRefreshTokenLifeTimeInMinutes',
5252
:'expires_in' => :'expires_in',
5353
:'token_type' => :'token_type',
@@ -59,9 +59,9 @@ def self.attribute_map
5959
# Attribute type mapping.
6060
def self.swagger_types
6161
{
62-
:'_expires' => :'String',
62+
:'expires' => :'String',
6363
:'access_token' => :'String',
64-
:'_issued' => :'String',
64+
:'issued' => :'String',
6565
:'client_refresh_token_life_time_in_minutes' => :'String',
6666
:'expires_in' => :'Integer',
6767
:'token_type' => :'String',
@@ -78,16 +78,16 @@ def initialize(attributes = {})
7878
# convert string to symbol for hash key
7979
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
8080

81-
if attributes.has_key?(:'.expires')
82-
self._expires = attributes[:'.expires']
81+
if attributes.has_key?(:'expires')
82+
self.expires = attributes[:'expires']
8383
end
8484

8585
if attributes.has_key?(:'access_token')
8686
self.access_token = attributes[:'access_token']
8787
end
8888

89-
if attributes.has_key?(:'.issued')
90-
self._issued = attributes[:'.issued']
89+
if attributes.has_key?(:'issued')
90+
self.issued = attributes[:'issued']
9191
end
9292

9393
if attributes.has_key?(:'clientRefreshTokenLifeTimeInMinutes')
@@ -130,9 +130,9 @@ def valid?
130130
def ==(o)
131131
return true if self.equal?(o)
132132
self.class == o.class &&
133-
_expires == o._expires &&
133+
expires == o.expires &&
134134
access_token == o.access_token &&
135-
_issued == o._issued &&
135+
issued == o.issued &&
136136
client_refresh_token_life_time_in_minutes == o.client_refresh_token_life_time_in_minutes &&
137137
expires_in == o.expires_in &&
138138
token_type == o.token_type &&
@@ -149,7 +149,7 @@ def eql?(o)
149149
# Calculates hash code according to all attributes.
150150
# @return [Fixnum] Hash code
151151
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
153153
end
154154

155155
# Builds the object from hash

lib/aspose_cells_cloud/models/conditional_formatting_value.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def self.swagger_types
4949
{
5050
:'is_gte' => :'BOOLEAN',
5151
:'type' => :'String',
52-
:'value' => :'Object'
52+
:'value' => :'String'
5353
}
5454
end
5555

lib/aspose_cells_cloud/models/custom_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.attribute_map
4242
def self.swagger_types
4343
{
4444
:'filter_operator_type' => :'String',
45-
:'criteria' => :'Object'
45+
:'criteria' => :'String'
4646
}
4747
end
4848

lib/aspose_cells_cloud/models/dynamic_filter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def self.attribute_map
4545
def self.swagger_types
4646
{
4747
:'dynamic_filter_type' => :'String',
48-
:'max_value' => :'Object',
49-
:'value' => :'Object'
48+
:'max_value' => :'Integer',
49+
:'value' => :'Integer'
5050
}
5151
end
5252

0 commit comments

Comments
 (0)