aspose_cells_cloud 22.7 → 22.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0def74a407c4a24e80749a740b1450ec8acce19c13f7df26fc63ed56202ca79
4
- data.tar.gz: 195f29b30be2e220a59c2c6a06265cbbf15c4829d402c6581adc48997e6718c9
3
+ metadata.gz: 629a50251eb7a9f031f77cb0730dfe8f8b2ae9a7639cd943db95cc06e8336f3a
4
+ data.tar.gz: 1c540d65ff3270bf8eb23103cd3eebc75561b864d228d9059d97c105c3a36af3
5
5
  SHA512:
6
- metadata.gz: b6c72f78993e7dc818eaf05b3c5262b795f9097169a6be8219e71bc50e02c0f552774026361ccdb8f3d34f52242b88fa989c31d2e235a3e25378b05c2d3462a9
7
- data.tar.gz: eb34ef8e5e47a996832a366de1eb1d3ca0cbb00fe04218b841966a4bac2b7449125753d7213ddb35fa70eb9c7291318ffe4f18ca42a34dee580e7300196240b8
6
+ metadata.gz: cd81608e9402aedd167e834892e302cb1c0823ebf1e82bddd58667a641a64da0e2717fe962f63760f93bd64746f628def542cd64746a6c25242a5a94ce8f0848
7
+ data.tar.gz: 2131b7e949782f89add97a5705e5f7384e95b3e4b6ecb366167957640b86177af53fbb032a601ae2d37ca13449e4692202daa51a94b8d17224a45a07afe2f8f3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.7)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.9)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -22,10 +22,11 @@ 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 22.7
25
+ ## Feature & Enhancements in Version 22.9
26
26
 
27
- - Add 4 kinds of Save Option.
28
- - Add the checkExcelRestriction parameter for multiple APIs.
27
+ - Add api for converting workbook to png.
28
+ - Add api for converting workbook to pdf.
29
+ - Add api for converting workbook to docx.
29
30
 
30
31
  ## Read & Write Spreadsheet Formats
31
32
 
@@ -20744,6 +20744,200 @@ module AsposeCellsCloud
20744
20744
  end
20745
20745
  return data, status_code, headers
20746
20746
  end
20747
+ #
20748
+ #
20749
+ # @param file File to upload
20750
+ # @param [Hash] opts the optional parameters
20751
+ # @option opts [String] :password
20752
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20753
+ # @return [FileInfo]
20754
+ def post_convert_workbook_to_docx(file, opts = {})
20755
+ data, _status_code, _headers = post_convert_workbook_to_docx_with_http_info(file, opts)
20756
+ return data
20757
+ end
20758
+
20759
+ #
20760
+ #
20761
+ # @param file File to upload
20762
+ # @param [Hash] opts the optional parameters
20763
+ # @option opts [String] :password
20764
+ # @option opts [BOOLEAN] :check_excel_restriction
20765
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20766
+ def post_convert_workbook_to_docx_with_http_info(file, opts = {})
20767
+ if @api_client.config.debugging
20768
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_docx ..."
20769
+ end
20770
+ @api_client.request_token_if_needed
20771
+ # verify the required parameter 'file' is set
20772
+ if @api_client.config.client_side_validation && file.nil?
20773
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_docx"
20774
+ end
20775
+ # resource path
20776
+ local_var_path = "/cells/convert/docx"
20777
+
20778
+ # query parameters
20779
+ query_params = {}
20780
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20781
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20782
+
20783
+ # header parameters
20784
+ header_params = {}
20785
+ # HTTP header 'Accept' (if needed)
20786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20787
+ # HTTP header 'Content-Type'
20788
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20789
+
20790
+ # form parameters
20791
+ form_params = {}
20792
+
20793
+ # http body (model)
20794
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20795
+ post_body =''
20796
+ form_params['file'] = file
20797
+ #auth_names = []
20798
+ auth_names = ['JWT']
20799
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20800
+ :header_params => header_params,
20801
+ :query_params => query_params,
20802
+ :form_params => form_params,
20803
+ :body => post_body,
20804
+ :auth_names => auth_names,
20805
+ :return_type => 'FileInfo')
20806
+ if @api_client.config.debugging
20807
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20808
+ end
20809
+ return data, status_code, headers
20810
+ end
20811
+
20812
+ #
20813
+ #
20814
+ # @param file File to upload
20815
+ # @param [Hash] opts the optional parameters
20816
+ # @option opts [String] :password
20817
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20818
+ # @return [FileInfo]
20819
+ def post_convert_workbook_to_pdf(file, opts = {})
20820
+ data, _status_code, _headers = post_convert_workbook_to_pdf_with_http_info(file, opts)
20821
+ return data
20822
+ end
20823
+
20824
+ #
20825
+ #
20826
+ # @param file File to upload
20827
+ # @param [Hash] opts the optional parameters
20828
+ # @option opts [String] :password
20829
+ # @option opts [BOOLEAN] :check_excel_restriction
20830
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20831
+ def post_convert_workbook_to_pdf_with_http_info(file, opts = {})
20832
+ if @api_client.config.debugging
20833
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pdf ..."
20834
+ end
20835
+ @api_client.request_token_if_needed
20836
+ # verify the required parameter 'file' is set
20837
+ if @api_client.config.client_side_validation && file.nil?
20838
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pdf"
20839
+ end
20840
+ # resource path
20841
+ local_var_path = "/cells/convert/pdf"
20842
+
20843
+ # query parameters
20844
+ query_params = {}
20845
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20846
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20847
+
20848
+ # header parameters
20849
+ header_params = {}
20850
+ # HTTP header 'Accept' (if needed)
20851
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20852
+ # HTTP header 'Content-Type'
20853
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20854
+
20855
+ # form parameters
20856
+ form_params = {}
20857
+
20858
+ # http body (model)
20859
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20860
+ post_body =''
20861
+ form_params['file'] = file
20862
+ #auth_names = []
20863
+ auth_names = ['JWT']
20864
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20865
+ :header_params => header_params,
20866
+ :query_params => query_params,
20867
+ :form_params => form_params,
20868
+ :body => post_body,
20869
+ :auth_names => auth_names,
20870
+ :return_type => 'FileInfo')
20871
+ if @api_client.config.debugging
20872
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20873
+ end
20874
+ return data, status_code, headers
20875
+ end
20876
+
20877
+ #
20878
+ #
20879
+ # @param file File to upload
20880
+ # @param [Hash] opts the optional parameters
20881
+ # @option opts [String] :password
20882
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20883
+ # @return [FileInfo]
20884
+ def post_convert_workbook_to_png(file, opts = {})
20885
+ data, _status_code, _headers = post_convert_workbook_to_png_with_http_info(file, opts)
20886
+ return data
20887
+ end
20888
+
20889
+ #
20890
+ #
20891
+ # @param file File to upload
20892
+ # @param [Hash] opts the optional parameters
20893
+ # @option opts [String] :password
20894
+ # @option opts [BOOLEAN] :check_excel_restriction
20895
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20896
+ def post_convert_workbook_to_png_with_http_info(file, opts = {})
20897
+ if @api_client.config.debugging
20898
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_png ..."
20899
+ end
20900
+ @api_client.request_token_if_needed
20901
+ # verify the required parameter 'file' is set
20902
+ if @api_client.config.client_side_validation && file.nil?
20903
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_png"
20904
+ end
20905
+ # resource path
20906
+ local_var_path = "/cells/convert/png"
20907
+
20908
+ # query parameters
20909
+ query_params = {}
20910
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20911
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20912
+
20913
+ # header parameters
20914
+ header_params = {}
20915
+ # HTTP header 'Accept' (if needed)
20916
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20917
+ # HTTP header 'Content-Type'
20918
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20919
+
20920
+ # form parameters
20921
+ form_params = {}
20922
+
20923
+ # http body (model)
20924
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20925
+ post_body =''
20926
+ form_params['file'] = file
20927
+ #auth_names = []
20928
+ auth_names = ['JWT']
20929
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20930
+ :header_params => header_params,
20931
+ :query_params => query_params,
20932
+ :form_params => form_params,
20933
+ :body => post_body,
20934
+ :auth_names => auth_names,
20935
+ :return_type => 'FileInfo')
20936
+ if @api_client.config.debugging
20937
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20938
+ end
20939
+ return data, status_code, headers
20940
+ end
20747
20941
 
20748
20942
  # Check if storage exists
20749
20943
  #
@@ -1192,6 +1192,78 @@ module AsposeCellsCloud
1192
1192
  end
1193
1193
  return data, status_code, headers
1194
1194
  end
1195
+ #
1196
+ #
1197
+ # @param file File to upload
1198
+ # @param rotate_type
1199
+ # @param format
1200
+ # @return [FilesResult]
1201
+ def post_rotate(file, rotate_type, format, opts = {})
1202
+ data, _status_code, _headers = post_rotate_with_http_info(file, rotate_type, format, opts)
1203
+ return data
1204
+ end
1205
+
1206
+ #
1207
+ #
1208
+ # @param file File to upload
1209
+ # @param rotate_type
1210
+ # @param format
1211
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
1212
+ def post_rotate_with_http_info(file, rotate_type, format, opts = {})
1213
+ if @api_client.config.debugging
1214
+ @api_client.config.logger.debug "Calling API: LightCellsApi.post_rotate ..."
1215
+ end
1216
+ @api_client.request_token_if_needed
1217
+ # verify the required parameter 'file' is set
1218
+ if @api_client.config.client_side_validation && file.nil?
1219
+ fail ArgumentError, "Missing the required parameter 'file' when calling LightCellsApi.post_rotate"
1220
+ end
1221
+ # verify the required parameter 'rotate_type' is set
1222
+ if @api_client.config.client_side_validation && rotate_type.nil?
1223
+ fail ArgumentError, "Missing the required parameter 'rotate_type' when calling LightCellsApi.post_rotate"
1224
+ end
1225
+ # verify the required parameter 'color' is set
1226
+ if @api_client.config.client_side_validation && format.nil?
1227
+ fail ArgumentError, "Missing the required parameter 'format' when calling LightCellsApi.post_rotate"
1228
+ end
1229
+ # resource path
1230
+ local_var_path = "/cells/rotate"
1231
+
1232
+ # query parameters
1233
+ query_params = {}
1234
+ query_params[:'rotateType'] = rotate_type
1235
+ query_params[:'format'] = format
1236
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
1237
+ # header parameters
1238
+ header_params = {}
1239
+ # HTTP header 'Accept' (if needed)
1240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1241
+ # HTTP header 'Content-Type'
1242
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1243
+
1244
+ # form parameters
1245
+ form_params = {}
1246
+ file.each do |filename , context|
1247
+ form_params[filename] = context
1248
+ end
1249
+
1250
+ # http body (model)
1251
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1252
+ post_body = ""
1253
+ #auth_names = []
1254
+ auth_names = ['JWT']
1255
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1256
+ :header_params => header_params,
1257
+ :query_params => query_params,
1258
+ :form_params => form_params,
1259
+ :body => post_body,
1260
+ :auth_names => auth_names,
1261
+ :return_type => 'FilesResult')
1262
+ if @api_client.config.debugging
1263
+ @api_client.config.logger.debug "API called: LightCellsApi#post_reverse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1264
+ end
1265
+ return data, status_code, headers
1266
+ end
1195
1267
 
1196
1268
  end
1197
1269
  end
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "22.7"
24
+ VERSION = "22.9"
25
25
  end
@@ -168,6 +168,7 @@ require 'aspose_cells_cloud/models/conditional_formattings_response'
168
168
  require 'aspose_cells_cloud/models/convert_task_parameter'
169
169
  require 'aspose_cells_cloud/models/convert_worksheet_task_parameter'
170
170
  require 'aspose_cells_cloud/models/dif_save_options'
171
+ require 'aspose_cells_cloud/models/docx_save_options'
171
172
  require 'aspose_cells_cloud/models/file_version'
172
173
  require 'aspose_cells_cloud/models/fill_format_response'
173
174
  require 'aspose_cells_cloud/models/format_condition'
@@ -187,6 +188,7 @@ require 'aspose_cells_cloud/models/import_double_array_option'
187
188
  require 'aspose_cells_cloud/models/import_int_array_option'
188
189
  require 'aspose_cells_cloud/models/import_picture_option'
189
190
  require 'aspose_cells_cloud/models/import_string_array_option'
191
+ require 'aspose_cells_cloud/models/json_save_options'
190
192
  require 'aspose_cells_cloud/models/legend_response'
191
193
  require 'aspose_cells_cloud/models/line_format'
192
194
  require 'aspose_cells_cloud/models/line_response'
@@ -227,6 +229,7 @@ require 'aspose_cells_cloud/models/pivot_table_operate_parameter'
227
229
  require 'aspose_cells_cloud/models/pivot_table_response'
228
230
  require 'aspose_cells_cloud/models/pivot_tables'
229
231
  require 'aspose_cells_cloud/models/pivot_tables_response'
232
+ require 'aspose_cells_cloud/models/pptx_save_options'
230
233
  require 'aspose_cells_cloud/models/range_value_response'
231
234
  require 'aspose_cells_cloud/models/ranges_response'
232
235
  require 'aspose_cells_cloud/models/row'
@@ -248,6 +251,7 @@ require 'aspose_cells_cloud/models/split_result_document'
248
251
  require 'aspose_cells_cloud/models/split_result_response'
249
252
  require 'aspose_cells_cloud/models/split_workbook_task_parameter'
250
253
  require 'aspose_cells_cloud/models/spreadsheet_ml2003_save_options'
254
+ require 'aspose_cells_cloud/models/sql_script_save_options'
251
255
  require 'aspose_cells_cloud/models/style'
252
256
  require 'aspose_cells_cloud/models/style_response'
253
257
  require 'aspose_cells_cloud/models/svg_save_options'
@@ -0,0 +1,45 @@
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 'CellsConvertApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::CellsApi.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 'cells_unit test' do
30
+ it "should work" do
31
+ result = @instance.post_convert_workbook_to_docx(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
32
+ end
33
+ end
34
+ describe 'cells_unit test' do
35
+ it "should work" do
36
+ result = @instance.post_convert_workbook_to_png(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
37
+ end
38
+ end
39
+ describe 'cells_unit test' do
40
+ it "should work" do
41
+ result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
42
+ end
43
+ end
44
+ end
45
+
@@ -0,0 +1,44 @@
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 'LightCellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::LightCellsApi.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 rotate test' do
30
+ it "should work" do
31
+ files = {}
32
+
33
+ name = $DataSourceXlsx
34
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
35
+ name =$AssemblyTestXlsx
36
+ files[name] = ::File.open(File.expand_path("data/"+name),"r") #{|io| io.read(io.size) }
37
+
38
+ result = @instance.post_rotate(files ,"270","pdf")
39
+
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+ end
44
+
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.7'
4
+ version: '22.9'
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-07-28 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -507,6 +507,7 @@ files:
507
507
  - spec/api/cells_clear_objects_spec.rb
508
508
  - spec/api/cells_compress_spec.rb
509
509
  - spec/api/cells_conditional_formattings_api_spec.rb
510
+ - spec/api/cells_convert_spec.rb
510
511
  - spec/api/cells_export_spec.rb
511
512
  - spec/api/cells_hypelinks_api_spec.rb
512
513
  - spec/api/cells_import_spec.rb
@@ -524,6 +525,7 @@ files:
524
525
  - spec/api/cells_ranges_api_spec.rb
525
526
  - spec/api/cells_replace_spec.rb
526
527
  - spec/api/cells_reverse_spec.rb
528
+ - spec/api/cells_rotate_spec.rb
527
529
  - spec/api/cells_save_as_api_spec.rb
528
530
  - spec/api/cells_search_spec.rb
529
531
  - spec/api/cells_shapes_api_spec.rb