aspose_cells_cloud 21.8 → 21.10

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: 5630e3450007702ca173e69e0a76f3aba9fe7d96656819215cd260444aa9879e
4
- data.tar.gz: '058156ff060954d722d6637f1b50831fcb7d717abcf09936ff8bf3e1e3c21dea'
3
+ metadata.gz: 7948eb94d75db00e408f911c4d37fedb01c40f9db7f03e7f4923f6eb76c404cb
4
+ data.tar.gz: 30c9d55951d8d974ae497197f9606863d63110448128825b33c599d47e714424
5
5
  SHA512:
6
- metadata.gz: 88ccf6cdcadd9d25486fb2a48d8d9684348f2ddd5645605980d9a9a97966a145685d39f42a07289654427b14912f96c97218967b1438b303933be0a70309a4c2
7
- data.tar.gz: d7273fd71845753efe8b6f4fb00c13f77baa359189d97580d1b943103ba559868590c2f56256ace08eaebaaf21e409f4c1d13961a9a5a2d1a381eb0da5cc85e0
6
+ metadata.gz: 76d5d95f5398d0b2fe4188c24d4d4d0b169e7eda0a4dc00f22056fa3db7bf1df5f36d89ea90785f67568808d27896948480f5cb4b6650c586cd583b2cbbe672a
7
+ data.tar.gz: 4732bf1ace308211c4ff9912f2472d9bec95e149d3554a3c950949f573f55859952d0959dfcc683610c4844df0a8603d125706f6f4e01f2f8ca49a2554e62a99
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/21.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/21.10)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -21,10 +21,10 @@ 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.8
24
+ ## Feature & Enhancements in Version 21.10
25
25
 
26
- - Improvement for getting list object Api.
27
- - Add import Api.
26
+ - Add new API for support delete multiple worksheets in a single call.
27
+ - Add new API for supports batch convert excel files.
28
28
 
29
29
 
30
30
  ## Read & Write Spreadsheet Formats
@@ -1825,7 +1825,7 @@ module AsposeCellsCloud
1825
1825
  # @param [Hash] opts the optional parameters
1826
1826
  # @option opts [String] :folder The workbook folder.
1827
1827
  # @option opts [String] :storage_name storage name.
1828
- # @return [ChartsResponse]
1828
+ # @return [CellsCloudResponse]
1829
1829
  def cells_charts_delete_worksheet_delete_chart(name, sheet_name, chart_index, opts = {})
1830
1830
  data, _status_code, _headers = cells_charts_delete_worksheet_delete_chart_with_http_info(name, sheet_name, chart_index, opts)
1831
1831
  return data
@@ -1839,7 +1839,7 @@ module AsposeCellsCloud
1839
1839
  # @param [Hash] opts the optional parameters
1840
1840
  # @option opts [String] :folder The workbook folder.
1841
1841
  # @option opts [String] :storage_name storage name.
1842
- # @return [Array<(ChartsResponse, Fixnum, Hash)>] ChartsResponse data, response status code and response headers
1842
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
1843
1843
  def cells_charts_delete_worksheet_delete_chart_with_http_info(name, sheet_name, chart_index, opts = {})
1844
1844
  if @api_client.config.debugging
1845
1845
  @api_client.config.logger.debug "Calling API: CellsApi.cells_charts_delete_worksheet_delete_chart ..."
@@ -1885,7 +1885,7 @@ module AsposeCellsCloud
1885
1885
  :form_params => form_params,
1886
1886
  :body => post_body,
1887
1887
  :auth_names => auth_names,
1888
- :return_type => 'ChartsResponse')
1888
+ :return_type => 'CellsCloudResponse')
1889
1889
  if @api_client.config.debugging
1890
1890
  @api_client.config.logger.debug "API called: CellsApi#cells_charts_delete_worksheet_delete_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1891
1891
  end
@@ -2275,7 +2275,7 @@ module AsposeCellsCloud
2275
2275
  # @option opts [Legend] :legend
2276
2276
  # @option opts [String] :folder The workbook folder.
2277
2277
  # @option opts [String] :storage_name storage name.
2278
- # @return [LegendResponse]
2278
+ # @return [CellsCloudResponse]
2279
2279
  def cells_charts_post_worksheet_chart_legend(name, sheet_name, chart_index, opts = {})
2280
2280
  data, _status_code, _headers = cells_charts_post_worksheet_chart_legend_with_http_info(name, sheet_name, chart_index, opts)
2281
2281
  return data
@@ -2290,7 +2290,7 @@ module AsposeCellsCloud
2290
2290
  # @option opts [Legend] :legend
2291
2291
  # @option opts [String] :folder The workbook folder.
2292
2292
  # @option opts [String] :storage_name storage name.
2293
- # @return [Array<(LegendResponse, Fixnum, Hash)>] LegendResponse data, response status code and response headers
2293
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
2294
2294
  def cells_charts_post_worksheet_chart_legend_with_http_info(name, sheet_name, chart_index, opts = {})
2295
2295
  if @api_client.config.debugging
2296
2296
  @api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_worksheet_chart_legend ..."
@@ -2336,7 +2336,7 @@ module AsposeCellsCloud
2336
2336
  :form_params => form_params,
2337
2337
  :body => post_body,
2338
2338
  :auth_names => auth_names,
2339
- :return_type => 'LegendResponse')
2339
+ :return_type => 'CellsCloudResponse')
2340
2340
  if @api_client.config.debugging
2341
2341
  @api_client.config.logger.debug "API called: CellsApi#cells_charts_post_worksheet_chart_legend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2342
2342
  end
@@ -2352,7 +2352,7 @@ module AsposeCellsCloud
2352
2352
  # @option opts [Title] :title Chart title
2353
2353
  # @option opts [String] :folder The workbook folder.
2354
2354
  # @option opts [String] :storage_name storage name.
2355
- # @return [TitleResponse]
2355
+ # @return [CellsCloudResponse]
2356
2356
  def cells_charts_post_worksheet_chart_title(name, sheet_name, chart_index, opts = {})
2357
2357
  data, _status_code, _headers = cells_charts_post_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts)
2358
2358
  return data
@@ -2367,7 +2367,7 @@ module AsposeCellsCloud
2367
2367
  # @option opts [Title] :title Chart title
2368
2368
  # @option opts [String] :folder The workbook folder.
2369
2369
  # @option opts [String] :storage_name storage name.
2370
- # @return [Array<(TitleResponse, Fixnum, Hash)>] TitleResponse data, response status code and response headers
2370
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
2371
2371
  def cells_charts_post_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts = {})
2372
2372
  if @api_client.config.debugging
2373
2373
  @api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_worksheet_chart_title ..."
@@ -2413,7 +2413,7 @@ module AsposeCellsCloud
2413
2413
  :form_params => form_params,
2414
2414
  :body => post_body,
2415
2415
  :auth_names => auth_names,
2416
- :return_type => 'TitleResponse')
2416
+ :return_type => 'CellsCloudResponse')
2417
2417
  if @api_client.config.debugging
2418
2418
  @api_client.config.logger.debug "API called: CellsApi#cells_charts_post_worksheet_chart_title\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2419
2419
  end
@@ -2441,7 +2441,7 @@ module AsposeCellsCloud
2441
2441
  # @option opts [String] :data_labels_position (default to Above)
2442
2442
  # @option opts [String] :pivot_table_sheet
2443
2443
  # @option opts [String] :pivot_table_name
2444
- # @return [ChartsResponse]
2444
+ # @return [CellsCloudResponse]
2445
2445
  def cells_charts_put_worksheet_add_chart(name, sheet_name, chart_type, opts = {})
2446
2446
  data, _status_code, _headers = cells_charts_put_worksheet_add_chart_with_http_info(name, sheet_name, chart_type, opts)
2447
2447
  return data
@@ -2468,7 +2468,7 @@ module AsposeCellsCloud
2468
2468
  # @option opts [String] :data_labels_position
2469
2469
  # @option opts [String] :pivot_table_sheet
2470
2470
  # @option opts [String] :pivot_table_name
2471
- # @return [Array<(ChartsResponse, Fixnum, Hash)>] ChartsResponse data, response status code and response headers
2471
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
2472
2472
  def cells_charts_put_worksheet_add_chart_with_http_info(name, sheet_name, chart_type, opts = {})
2473
2473
  if @api_client.config.debugging
2474
2474
  @api_client.config.logger.debug "Calling API: CellsApi.cells_charts_put_worksheet_add_chart ..."
@@ -2528,7 +2528,7 @@ module AsposeCellsCloud
2528
2528
  :form_params => form_params,
2529
2529
  :body => post_body,
2530
2530
  :auth_names => auth_names,
2531
- :return_type => 'ChartsResponse')
2531
+ :return_type => 'CellsCloudResponse')
2532
2532
  if @api_client.config.debugging
2533
2533
  @api_client.config.logger.debug "API called: CellsApi#cells_charts_put_worksheet_add_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2534
2534
  end
@@ -2619,7 +2619,7 @@ module AsposeCellsCloud
2619
2619
  # @option opts [Title] :title Chart title.
2620
2620
  # @option opts [String] :folder The workbook folder.
2621
2621
  # @option opts [String] :storage_name storage name.
2622
- # @return [TitleResponse]
2622
+ # @return [CellsCloudResponse]
2623
2623
  def cells_charts_put_worksheet_chart_title(name, sheet_name, chart_index, opts = {})
2624
2624
  data, _status_code, _headers = cells_charts_put_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts)
2625
2625
  return data
@@ -2634,7 +2634,7 @@ module AsposeCellsCloud
2634
2634
  # @option opts [Title] :title Chart title.
2635
2635
  # @option opts [String] :folder The workbook folder.
2636
2636
  # @option opts [String] :storage_name storage name.
2637
- # @return [Array<(TitleResponse, Fixnum, Hash)>] TitleResponse data, response status code and response headers
2637
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
2638
2638
  def cells_charts_put_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts = {})
2639
2639
  if @api_client.config.debugging
2640
2640
  @api_client.config.logger.debug "Calling API: CellsApi.cells_charts_put_worksheet_chart_title ..."
@@ -2680,7 +2680,7 @@ module AsposeCellsCloud
2680
2680
  :form_params => form_params,
2681
2681
  :body => post_body,
2682
2682
  :auth_names => auth_names,
2683
- :return_type => 'TitleResponse')
2683
+ :return_type => 'CellsCloudResponse')
2684
2684
  if @api_client.config.debugging
2685
2685
  @api_client.config.logger.debug "API called: CellsApi#cells_charts_put_worksheet_chart_title\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2686
2686
  end
@@ -4576,7 +4576,7 @@ module AsposeCellsCloud
4576
4576
  # @option opts [Hyperlink] :hyperlink Hyperlink object
4577
4577
  # @option opts [String] :folder The document folder.
4578
4578
  # @option opts [String] :storage_name storage name.
4579
- # @return [HyperlinkResponse]
4579
+ # @return [CellsCloudResponse]
4580
4580
  def cells_hypelinks_post_worksheet_hyperlink(name, sheet_name, hyperlink_index, opts = {})
4581
4581
  data, _status_code, _headers = cells_hypelinks_post_worksheet_hyperlink_with_http_info(name, sheet_name, hyperlink_index, opts)
4582
4582
  return data
@@ -4591,7 +4591,7 @@ module AsposeCellsCloud
4591
4591
  # @option opts [Hyperlink] :hyperlink Hyperlink object
4592
4592
  # @option opts [String] :folder The document folder.
4593
4593
  # @option opts [String] :storage_name storage name.
4594
- # @return [Array<(HyperlinkResponse, Fixnum, Hash)>] HyperlinkResponse data, response status code and response headers
4594
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
4595
4595
  def cells_hypelinks_post_worksheet_hyperlink_with_http_info(name, sheet_name, hyperlink_index, opts = {})
4596
4596
  if @api_client.config.debugging
4597
4597
  @api_client.config.logger.debug "Calling API: CellsApi.cells_hypelinks_post_worksheet_hyperlink ..."
@@ -4637,7 +4637,7 @@ module AsposeCellsCloud
4637
4637
  :form_params => form_params,
4638
4638
  :body => post_body,
4639
4639
  :auth_names => auth_names,
4640
- :return_type => 'HyperlinkResponse')
4640
+ :return_type => 'CellsCloudResponse')
4641
4641
  if @api_client.config.debugging
4642
4642
  @api_client.config.logger.debug "API called: CellsApi#cells_hypelinks_post_worksheet_hyperlink\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4643
4643
  end
@@ -4656,7 +4656,7 @@ module AsposeCellsCloud
4656
4656
  # @param [Hash] opts the optional parameters
4657
4657
  # @option opts [String] :folder The document folder.
4658
4658
  # @option opts [String] :storage_name storage name.
4659
- # @return [HyperlinkResponse]
4659
+ # @return [CellsCloudResponse]
4660
4660
  def cells_hypelinks_put_worksheet_hyperlink(name, sheet_name, first_row, first_column, total_rows, total_columns, address, opts = {})
4661
4661
  data, _status_code, _headers = cells_hypelinks_put_worksheet_hyperlink_with_http_info(name, sheet_name, first_row, first_column, total_rows, total_columns, address, opts)
4662
4662
  return data
@@ -4674,7 +4674,7 @@ module AsposeCellsCloud
4674
4674
  # @param [Hash] opts the optional parameters
4675
4675
  # @option opts [String] :folder The document folder.
4676
4676
  # @option opts [String] :storage_name storage name.
4677
- # @return [Array<(HyperlinkResponse, Fixnum, Hash)>] HyperlinkResponse data, response status code and response headers
4677
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
4678
4678
  def cells_hypelinks_put_worksheet_hyperlink_with_http_info(name, sheet_name, first_row, first_column, total_rows, total_columns, address, opts = {})
4679
4679
  if @api_client.config.debugging
4680
4680
  @api_client.config.logger.debug "Calling API: CellsApi.cells_hypelinks_put_worksheet_hyperlink ..."
@@ -4741,7 +4741,7 @@ module AsposeCellsCloud
4741
4741
  :form_params => form_params,
4742
4742
  :body => post_body,
4743
4743
  :auth_names => auth_names,
4744
- :return_type => 'HyperlinkResponse')
4744
+ :return_type => 'CellsCloudResponse')
4745
4745
  if @api_client.config.debugging
4746
4746
  @api_client.config.logger.debug "API called: CellsApi#cells_hypelinks_put_worksheet_hyperlink\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4747
4747
  end
@@ -5365,7 +5365,7 @@ module AsposeCellsCloud
5365
5365
  # @option opts [ListObject] :list_object List Object
5366
5366
  # @option opts [String] :folder Document&#39;s folder.
5367
5367
  # @option opts [String] :storage_name storage name.
5368
- # @return [ListObjectResponse]
5368
+ # @return [CellsCloudResponse]
5369
5369
  def cells_list_objects_put_worksheet_list_object(name, sheet_name, start_row, start_column, end_row, end_column, opts = {})
5370
5370
  data, _status_code, _headers = cells_list_objects_put_worksheet_list_object_with_http_info(name, sheet_name, start_row, start_column, end_row, end_column, opts)
5371
5371
  return data
@@ -5384,7 +5384,7 @@ module AsposeCellsCloud
5384
5384
  # @option opts [ListObject] :list_object List Object
5385
5385
  # @option opts [String] :folder Document&#39;s folder.
5386
5386
  # @option opts [String] :storage_name storage name.
5387
- # @return [Array<(ListObjectResponse, Fixnum, Hash)>] ListObjectResponse data, response status code and response headers
5387
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
5388
5388
  def cells_list_objects_put_worksheet_list_object_with_http_info(name, sheet_name, start_row, start_column, end_row, end_column, opts = {})
5389
5389
  if @api_client.config.debugging
5390
5390
  @api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_put_worksheet_list_object ..."
@@ -5447,7 +5447,7 @@ module AsposeCellsCloud
5447
5447
  :form_params => form_params,
5448
5448
  :body => post_body,
5449
5449
  :auth_names => auth_names,
5450
- :return_type => 'ListObjectResponse')
5450
+ :return_type => 'CellsCloudResponse')
5451
5451
  if @api_client.config.debugging
5452
5452
  @api_client.config.logger.debug "API called: CellsApi#cells_list_objects_put_worksheet_list_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5453
5453
  end
@@ -5836,7 +5836,7 @@ module AsposeCellsCloud
5836
5836
  # @option opts [String] :image_file Image filename
5837
5837
  # @option opts [String] :folder The workbook folder.
5838
5838
  # @option opts [String] :storage_name storage name.
5839
- # @return [OleObjectResponse]
5839
+ # @return [CellsCloudResponse]
5840
5840
  def cells_ole_objects_put_worksheet_ole_object(name, sheet_name, opts = {})
5841
5841
  data, _status_code, _headers = cells_ole_objects_put_worksheet_ole_object_with_http_info(name, sheet_name, opts)
5842
5842
  return data
@@ -5856,7 +5856,7 @@ module AsposeCellsCloud
5856
5856
  # @option opts [String] :image_file Image filename
5857
5857
  # @option opts [String] :folder The workbook folder.
5858
5858
  # @option opts [String] :storage_name storage name.
5859
- # @return [Array<(OleObjectResponse, Fixnum, Hash)>] OleObjectResponse data, response status code and response headers
5859
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
5860
5860
  def cells_ole_objects_put_worksheet_ole_object_with_http_info(name, sheet_name, opts = {})
5861
5861
  if @api_client.config.debugging
5862
5862
  @api_client.config.logger.debug "Calling API: CellsApi.cells_ole_objects_put_worksheet_ole_object ..."
@@ -5904,7 +5904,7 @@ module AsposeCellsCloud
5904
5904
  :form_params => form_params,
5905
5905
  :body => post_body,
5906
5906
  :auth_names => auth_names,
5907
- :return_type => 'OleObjectResponse')
5907
+ :return_type => 'CellsCloudResponse')
5908
5908
  if @api_client.config.debugging
5909
5909
  @api_client.config.logger.debug "API called: CellsApi#cells_ole_objects_put_worksheet_ole_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5910
5910
  end
@@ -7488,7 +7488,7 @@ module AsposeCellsCloud
7488
7488
  # @option opts [Picture] :picture Picture object
7489
7489
  # @option opts [String] :folder The document folder.
7490
7490
  # @option opts [String] :storage_name storage name.
7491
- # @return [PictureResponse]
7491
+ # @return [CellsCloudResponse]
7492
7492
  def cells_pictures_post_worksheet_picture(name, sheet_name, picture_index, opts = {})
7493
7493
  data, _status_code, _headers = cells_pictures_post_worksheet_picture_with_http_info(name, sheet_name, picture_index, opts)
7494
7494
  return data
@@ -7503,7 +7503,7 @@ module AsposeCellsCloud
7503
7503
  # @option opts [Picture] :picture Picture object
7504
7504
  # @option opts [String] :folder The document folder.
7505
7505
  # @option opts [String] :storage_name storage name.
7506
- # @return [Array<(PictureResponse, Fixnum, Hash)>] PictureResponse data, response status code and response headers
7506
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
7507
7507
  def cells_pictures_post_worksheet_picture_with_http_info(name, sheet_name, picture_index, opts = {})
7508
7508
  if @api_client.config.debugging
7509
7509
  @api_client.config.logger.debug "Calling API: CellsApi.cells_pictures_post_worksheet_picture ..."
@@ -7549,7 +7549,7 @@ module AsposeCellsCloud
7549
7549
  :form_params => form_params,
7550
7550
  :body => post_body,
7551
7551
  :auth_names => auth_names,
7552
- :return_type => 'PictureResponse')
7552
+ :return_type => 'CellsCloudResponse')
7553
7553
  if @api_client.config.debugging
7554
7554
  @api_client.config.logger.debug "API called: CellsApi#cells_pictures_post_worksheet_picture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7555
7555
  end
@@ -7569,7 +7569,7 @@ module AsposeCellsCloud
7569
7569
  # @option opts [String] :picture_path The picture path, if not provided the picture data is inspected in the request body.
7570
7570
  # @option opts [String] :folder The workbook folder.
7571
7571
  # @option opts [String] :storage_name storage name.
7572
- # @return [PicturesResponse]
7572
+ # @return [CellsCloudResponse]
7573
7573
  def cells_pictures_put_worksheet_add_picture(name, sheet_name, opts = {})
7574
7574
  data, _status_code, _headers = cells_pictures_put_worksheet_add_picture_with_http_info(name, sheet_name, opts)
7575
7575
  return data
@@ -7588,7 +7588,7 @@ module AsposeCellsCloud
7588
7588
  # @option opts [String] :picture_path The picture path, if not provided the picture data is inspected in the request body.
7589
7589
  # @option opts [String] :folder The workbook folder.
7590
7590
  # @option opts [String] :storage_name storage name.
7591
- # @return [Array<(PicturesResponse, Fixnum, Hash)>] PicturesResponse data, response status code and response headers
7591
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
7592
7592
  def cells_pictures_put_worksheet_add_picture_with_http_info(name, sheet_name, opts = {})
7593
7593
  if @api_client.config.debugging
7594
7594
  @api_client.config.logger.debug "Calling API: CellsApi.cells_pictures_put_worksheet_add_picture ..."
@@ -7635,7 +7635,7 @@ module AsposeCellsCloud
7635
7635
  :form_params => form_params,
7636
7636
  :body => post_body,
7637
7637
  :auth_names => auth_names,
7638
- :return_type => 'PicturesResponse')
7638
+ :return_type => 'CellsCloudResponse')
7639
7639
  if @api_client.config.debugging
7640
7640
  @api_client.config.logger.debug "API called: CellsApi#cells_pictures_put_worksheet_add_picture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7641
7641
  end
@@ -9237,7 +9237,7 @@ module AsposeCellsCloud
9237
9237
  # @option opts [String] :dest_cell_name The cell in the upper-left corner of the PivotTable report&#39;s destination range.
9238
9238
  # @option opts [String] :table_name The name of the new PivotTable report.
9239
9239
  # @option opts [BOOLEAN] :use_same_source Indicates whether using same data source when another existing pivot table has used this data source. If the property is true, it will save memory.
9240
- # @return [PivotTableResponse]
9240
+ # @return [CellsCloudResponse]
9241
9241
  def cells_pivot_tables_put_worksheet_pivot_table(name, sheet_name, opts = {})
9242
9242
  data, _status_code, _headers = cells_pivot_tables_put_worksheet_pivot_table_with_http_info(name, sheet_name, opts)
9243
9243
  return data
@@ -9255,7 +9255,7 @@ module AsposeCellsCloud
9255
9255
  # @option opts [String] :dest_cell_name The cell in the upper-left corner of the PivotTable report&#39;s destination range.
9256
9256
  # @option opts [String] :table_name The name of the new PivotTable report.
9257
9257
  # @option opts [BOOLEAN] :use_same_source Indicates whether using same data source when another existing pivot table has used this data source. If the property is true, it will save memory.
9258
- # @return [Array<(PivotTableResponse, Fixnum, Hash)>] PivotTableResponse data, response status code and response headers
9258
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
9259
9259
  def cells_pivot_tables_put_worksheet_pivot_table_with_http_info(name, sheet_name, opts = {})
9260
9260
  if @api_client.config.debugging
9261
9261
  @api_client.config.logger.debug "Calling API: CellsApi.cells_pivot_tables_put_worksheet_pivot_table ..."
@@ -9301,7 +9301,7 @@ module AsposeCellsCloud
9301
9301
  :form_params => form_params,
9302
9302
  :body => post_body,
9303
9303
  :auth_names => auth_names,
9304
- :return_type => 'PivotTableResponse')
9304
+ :return_type => 'CellsCloudResponse')
9305
9305
  if @api_client.config.debugging
9306
9306
  @api_client.config.logger.debug "API called: CellsApi#cells_pivot_tables_put_worksheet_pivot_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9307
9307
  end
@@ -11590,7 +11590,7 @@ module AsposeCellsCloud
11590
11590
  # @param [Hash] opts the optional parameters
11591
11591
  # @option opts [String] :folder The document folder.
11592
11592
  # @option opts [String] :storage_name storage name.
11593
- # @return [CellsDocumentPropertiesResponse]
11593
+ # @return [CellsCloudResponse]
11594
11594
  def cells_properties_delete_document_properties(name, opts = {})
11595
11595
  data, _status_code, _headers = cells_properties_delete_document_properties_with_http_info(name, opts)
11596
11596
  return data
@@ -11602,7 +11602,7 @@ module AsposeCellsCloud
11602
11602
  # @param [Hash] opts the optional parameters
11603
11603
  # @option opts [String] :folder The document folder.
11604
11604
  # @option opts [String] :storage_name storage name.
11605
- # @return [Array<(CellsDocumentPropertiesResponse, Fixnum, Hash)>] CellsDocumentPropertiesResponse data, response status code and response headers
11605
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
11606
11606
  def cells_properties_delete_document_properties_with_http_info(name, opts = {})
11607
11607
  if @api_client.config.debugging
11608
11608
  @api_client.config.logger.debug "Calling API: CellsApi.cells_properties_delete_document_properties ..."
@@ -11640,7 +11640,7 @@ module AsposeCellsCloud
11640
11640
  :form_params => form_params,
11641
11641
  :body => post_body,
11642
11642
  :auth_names => auth_names,
11643
- :return_type => 'CellsDocumentPropertiesResponse')
11643
+ :return_type => 'CellsCloudResponse')
11644
11644
  if @api_client.config.debugging
11645
11645
  @api_client.config.logger.debug "API called: CellsApi#cells_properties_delete_document_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11646
11646
  end
@@ -11654,7 +11654,7 @@ module AsposeCellsCloud
11654
11654
  # @param [Hash] opts the optional parameters
11655
11655
  # @option opts [String] :folder The document folder.
11656
11656
  # @option opts [String] :storage_name storage name.
11657
- # @return [CellsDocumentPropertiesResponse]
11657
+ # @return [CellsCloudResponse]
11658
11658
  def cells_properties_delete_document_property(name, property_name, opts = {})
11659
11659
  data, _status_code, _headers = cells_properties_delete_document_property_with_http_info(name, property_name, opts)
11660
11660
  return data
@@ -11667,7 +11667,7 @@ module AsposeCellsCloud
11667
11667
  # @param [Hash] opts the optional parameters
11668
11668
  # @option opts [String] :folder The document folder.
11669
11669
  # @option opts [String] :storage_name storage name.
11670
- # @return [Array<(CellsDocumentPropertiesResponse, Fixnum, Hash)>] CellsDocumentPropertiesResponse data, response status code and response headers
11670
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
11671
11671
  def cells_properties_delete_document_property_with_http_info(name, property_name, opts = {})
11672
11672
  if @api_client.config.debugging
11673
11673
  @api_client.config.logger.debug "Calling API: CellsApi.cells_properties_delete_document_property ..."
@@ -11709,7 +11709,7 @@ module AsposeCellsCloud
11709
11709
  :form_params => form_params,
11710
11710
  :body => post_body,
11711
11711
  :auth_names => auth_names,
11712
- :return_type => 'CellsDocumentPropertiesResponse')
11712
+ :return_type => 'CellsCloudResponse')
11713
11713
  if @api_client.config.debugging
11714
11714
  @api_client.config.logger.debug "API called: CellsApi#cells_properties_delete_document_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11715
11715
  end
@@ -11856,7 +11856,7 @@ module AsposeCellsCloud
11856
11856
  # @option opts [CellsDocumentProperty] :property with new property value.
11857
11857
  # @option opts [String] :folder The document folder.
11858
11858
  # @option opts [String] :storage_name storage name.
11859
- # @return [CellsDocumentPropertyResponse]
11859
+ # @return [CellsCloudResponse]
11860
11860
  def cells_properties_put_document_property(name, property_name, opts = {})
11861
11861
  data, _status_code, _headers = cells_properties_put_document_property_with_http_info(name, property_name, opts)
11862
11862
  return data
@@ -11870,7 +11870,7 @@ module AsposeCellsCloud
11870
11870
  # @option opts [CellsDocumentProperty] :property with new property value.
11871
11871
  # @option opts [String] :folder The document folder.
11872
11872
  # @option opts [String] :storage_name storage name.
11873
- # @return [Array<(CellsDocumentPropertyResponse, Fixnum, Hash)>] CellsDocumentPropertyResponse data, response status code and response headers
11873
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
11874
11874
  def cells_properties_put_document_property_with_http_info(name, property_name, opts = {})
11875
11875
  if @api_client.config.debugging
11876
11876
  @api_client.config.logger.debug "Calling API: CellsApi.cells_properties_put_document_property ..."
@@ -11912,7 +11912,7 @@ module AsposeCellsCloud
11912
11912
  :form_params => form_params,
11913
11913
  :body => post_body,
11914
11914
  :auth_names => auth_names,
11915
- :return_type => 'CellsDocumentPropertyResponse')
11915
+ :return_type => 'CellsCloudResponse')
11916
11916
  if @api_client.config.debugging
11917
11917
  @api_client.config.logger.debug "API called: CellsApi#cells_properties_put_document_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11918
11918
  end
@@ -12904,7 +12904,7 @@ module AsposeCellsCloud
12904
12904
 
12905
12905
  # query parameters
12906
12906
  query_params = {}
12907
- query_params[:'Value'] = value
12907
+ query_params[:'value'] = value
12908
12908
  query_params[:'isConverted'] = opts[:'is_converted'] if !opts[:'is_converted'].nil?
12909
12909
  query_params[:'setStyle'] = opts[:'set_style'] if !opts[:'set_style'].nil?
12910
12910
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
@@ -13545,7 +13545,7 @@ module AsposeCellsCloud
13545
13545
  # @option opts [Integer] :height Represents the width of Spinner, in unit of pixel.
13546
13546
  # @option opts [String] :folder Document&#39;s folder.
13547
13547
  # @option opts [String] :storage_name storage name.
13548
- # @return [ShapeResponse]
13548
+ # @return [CellsCloudResponse]
13549
13549
  def cells_shapes_put_worksheet_shape(name, sheet_name, opts = {})
13550
13550
  data, _status_code, _headers = cells_shapes_put_worksheet_shape_with_http_info(name, sheet_name, opts)
13551
13551
  return data
@@ -13566,7 +13566,7 @@ module AsposeCellsCloud
13566
13566
  # @option opts [Integer] :height Represents the width of Spinner, in unit of pixel.
13567
13567
  # @option opts [String] :folder Document&#39;s folder.
13568
13568
  # @option opts [String] :storage_name storage name.
13569
- # @return [Array<(ShapeResponse, Fixnum, Hash)>] ShapeResponse data, response status code and response headers
13569
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
13570
13570
  def cells_shapes_put_worksheet_shape_with_http_info(name, sheet_name, opts = {})
13571
13571
  if @api_client.config.debugging
13572
13572
  @api_client.config.logger.debug "Calling API: CellsApi.cells_shapes_put_worksheet_shape ..."
@@ -13585,7 +13585,7 @@ module AsposeCellsCloud
13585
13585
 
13586
13586
  # query parameters
13587
13587
  query_params = {}
13588
- query_params[:'DrawingType'] = opts[:'drawing_type'] if !opts[:'drawing_type'].nil?
13588
+ query_params[:'drawingType'] = opts[:'drawing_type'] if !opts[:'drawing_type'].nil?
13589
13589
  query_params[:'upperLeftRow'] = opts[:'upper_left_row'] if !opts[:'upper_left_row'].nil?
13590
13590
  query_params[:'upperLeftColumn'] = opts[:'upper_left_column'] if !opts[:'upper_left_column'].nil?
13591
13591
  query_params[:'top'] = opts[:'top'] if !opts[:'top'].nil?
@@ -13615,7 +13615,7 @@ module AsposeCellsCloud
13615
13615
  :form_params => form_params,
13616
13616
  :body => post_body,
13617
13617
  :auth_names => auth_names,
13618
- :return_type => 'ShapeResponse')
13618
+ :return_type => 'CellsCloudResponse')
13619
13619
  if @api_client.config.debugging
13620
13620
  @api_client.config.logger.debug "API called: CellsApi#cells_shapes_put_worksheet_shape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13621
13621
  end
@@ -16191,7 +16191,7 @@ module AsposeCellsCloud
16191
16191
  # @param [Hash] opts the optional parameters
16192
16192
  # @option opts [String] :folder Document&#39;s folder.
16193
16193
  # @option opts [String] :storage_name storage name.
16194
- # @return [ValidationResponse]
16194
+ # @return [CellsCloudResponse]
16195
16195
  def cells_worksheet_validations_delete_worksheet_validation(name, sheet_name, validation_index, opts = {})
16196
16196
  data, _status_code, _headers = cells_worksheet_validations_delete_worksheet_validation_with_http_info(name, sheet_name, validation_index, opts)
16197
16197
  return data
@@ -16205,7 +16205,7 @@ module AsposeCellsCloud
16205
16205
  # @param [Hash] opts the optional parameters
16206
16206
  # @option opts [String] :folder Document&#39;s folder.
16207
16207
  # @option opts [String] :storage_name storage name.
16208
- # @return [Array<(ValidationResponse, Fixnum, Hash)>] ValidationResponse data, response status code and response headers
16208
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
16209
16209
  def cells_worksheet_validations_delete_worksheet_validation_with_http_info(name, sheet_name, validation_index, opts = {})
16210
16210
  if @api_client.config.debugging
16211
16211
  @api_client.config.logger.debug "Calling API: CellsApi.cells_worksheet_validations_delete_worksheet_validation ..."
@@ -16251,7 +16251,7 @@ module AsposeCellsCloud
16251
16251
  :form_params => form_params,
16252
16252
  :body => post_body,
16253
16253
  :auth_names => auth_names,
16254
- :return_type => 'ValidationResponse')
16254
+ :return_type => 'CellsCloudResponse')
16255
16255
  if @api_client.config.debugging
16256
16256
  @api_client.config.logger.debug "API called: CellsApi#cells_worksheet_validations_delete_worksheet_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16257
16257
  end
@@ -17072,6 +17072,75 @@ module AsposeCellsCloud
17072
17072
  return data, status_code, headers
17073
17073
  end
17074
17074
 
17075
+ # Read worksheets info.
17076
+ #
17077
+ # @param name
17078
+ # @param match_condition
17079
+ # @param [Hash] opts the optional parameters
17080
+ # @option opts [String] :folder
17081
+ # @option opts [String] :storage_name
17082
+ # @return [CellsCloudResponse]
17083
+ def cells_worksheets_delete_worksheets(name, match_condition, opts = {})
17084
+ data, _status_code, _headers = cells_worksheets_delete_worksheets_with_http_info(name, match_condition, opts)
17085
+ return data
17086
+ end
17087
+
17088
+ # Read worksheets info.
17089
+ #
17090
+ # @param name
17091
+ # @param match_condition
17092
+ # @param [Hash] opts the optional parameters
17093
+ # @option opts [String] :folder
17094
+ # @option opts [String] :storage_name
17095
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
17096
+ def cells_worksheets_delete_worksheets_with_http_info(name, match_condition, opts = {})
17097
+ if @api_client.config.debugging
17098
+ @api_client.config.logger.debug "Calling API: CellsApi.cells_worksheets_delete_worksheets ..."
17099
+ end
17100
+ @api_client.request_token_if_needed
17101
+ # verify the required parameter 'name' is set
17102
+ if @api_client.config.client_side_validation && name.nil?
17103
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_worksheets_delete_worksheets"
17104
+ end
17105
+ # verify the required parameter 'match_condition' is set
17106
+ if @api_client.config.client_side_validation && match_condition.nil?
17107
+ fail ArgumentError, "Missing the required parameter 'match_condition' when calling CellsApi.cells_worksheets_delete_worksheets"
17108
+ end
17109
+ # resource path
17110
+ local_var_path = "/cells/{name}/worksheets".sub('{' + 'name' + '}', name.to_s)
17111
+
17112
+ # query parameters
17113
+ query_params = {}
17114
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
17115
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
17116
+
17117
+ # header parameters
17118
+ header_params = {}
17119
+ # HTTP header 'Accept' (if needed)
17120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17121
+ # HTTP header 'Content-Type'
17122
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
17123
+
17124
+ # form parameters
17125
+ form_params = {}
17126
+
17127
+ # http body (model)
17128
+ post_body = @api_client.object_to_http_body(match_condition)
17129
+ #auth_names = []
17130
+ auth_names = ['JWT']
17131
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
17132
+ :header_params => header_params,
17133
+ :query_params => query_params,
17134
+ :form_params => form_params,
17135
+ :body => post_body,
17136
+ :auth_names => auth_names,
17137
+ :return_type => 'CellsCloudResponse')
17138
+ if @api_client.config.debugging
17139
+ @api_client.config.logger.debug "API called: CellsApi#cells_worksheets_delete_worksheets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17140
+ end
17141
+ return data, status_code, headers
17142
+ end
17143
+
17075
17144
  # Read worksheets ranges info.
17076
17145
  #
17077
17146
  # @param name Document name.
@@ -19980,6 +20049,63 @@ module AsposeCellsCloud
19980
20049
  return data, status_code, headers
19981
20050
  end
19982
20051
 
20052
+ #
20053
+ #
20054
+ # @param batch_convert_request
20055
+ # @param [Hash] opts the optional parameters
20056
+ # @return [File]
20057
+ def post_batch_convert(batch_convert_request, opts = {})
20058
+ data, _status_code, _headers = post_batch_convert_with_http_info(batch_convert_request, opts)
20059
+ return data
20060
+ end
20061
+
20062
+ #
20063
+ #
20064
+ # @param batch_convert_request
20065
+ # @param [Hash] opts the optional parameters
20066
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
20067
+ def post_batch_convert_with_http_info(batch_convert_request, opts = {})
20068
+ if @api_client.config.debugging
20069
+ @api_client.config.logger.debug "Calling API: CellsApi.post_batch_convert ..."
20070
+ end
20071
+ @api_client.request_token_if_needed
20072
+ # verify the required parameter 'batch_convert_request' is set
20073
+ if @api_client.config.client_side_validation && batch_convert_request.nil?
20074
+ fail ArgumentError, "Missing the required parameter 'batch_convert_request' when calling CellsApi.post_batch_convert"
20075
+ end
20076
+ # resource path
20077
+ local_var_path = "/cells/batch/convert"
20078
+
20079
+ # query parameters
20080
+ query_params = {}
20081
+
20082
+ # header parameters
20083
+ header_params = {}
20084
+ # HTTP header 'Accept' (if needed)
20085
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20086
+ # HTTP header 'Content-Type'
20087
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
20088
+
20089
+ # form parameters
20090
+ form_params = {}
20091
+
20092
+ # http body (model)
20093
+ post_body = @api_client.object_to_http_body(batch_convert_request)
20094
+ #auth_names = []
20095
+ auth_names = ['JWT']
20096
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20097
+ :header_params => header_params,
20098
+ :query_params => query_params,
20099
+ :form_params => form_params,
20100
+ :body => post_body,
20101
+ :auth_names => auth_names,
20102
+ :return_type => 'File')
20103
+ if @api_client.config.debugging
20104
+ @api_client.config.logger.debug "API called: CellsApi#post_batch_convert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
20105
+ end
20106
+ return data, status_code, headers
20107
+ end
20108
+
19983
20109
  # Check if storage exists
19984
20110
  #
19985
20111
  # @param storage_name Storage name
@@ -0,0 +1,234 @@
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 BatchConvertRequest
28
+ attr_accessor :source_folder
29
+
30
+ attr_accessor :match_condition
31
+
32
+ attr_accessor :format
33
+
34
+ attr_accessor :out_folder
35
+
36
+ attr_accessor :save_options
37
+
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'source_folder' => :'SourceFolder',
43
+ :'match_condition' => :'MatchCondition',
44
+ :'format' => :'Format',
45
+ :'out_folder' => :'OutFolder',
46
+ :'save_options' => :'SaveOptions'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'source_folder' => :'String',
54
+ :'match_condition' => :'MatchConditionRequest',
55
+ :'format' => :'String',
56
+ :'out_folder' => :'String',
57
+ :'save_options' => :'SaveOptions'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
68
+
69
+ if attributes.has_key?(:'SourceFolder')
70
+ self.source_folder = attributes[:'SourceFolder']
71
+ end
72
+
73
+ if attributes.has_key?(:'MatchCondition')
74
+ self.match_condition = attributes[:'MatchCondition']
75
+ end
76
+
77
+ if attributes.has_key?(:'Format')
78
+ self.format = attributes[:'Format']
79
+ end
80
+
81
+ if attributes.has_key?(:'OutFolder')
82
+ self.out_folder = attributes[:'OutFolder']
83
+ end
84
+
85
+ if attributes.has_key?(:'SaveOptions')
86
+ self.save_options = attributes[:'SaveOptions']
87
+ end
88
+
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properies with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = Array.new
95
+ return invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ return true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ source_folder == o.source_folder &&
110
+ match_condition == o.match_condition &&
111
+ format == o.format &&
112
+ out_folder == o.out_folder &&
113
+ save_options == o.save_options
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [source_folder, match_condition, format, out_folder, save_options].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,209 @@
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 MatchConditionRequest
28
+ attr_accessor :regex_pattern
29
+
30
+ attr_accessor :full_match_conditions
31
+
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'regex_pattern' => :'RegexPattern',
37
+ :'full_match_conditions' => :'FullMatchConditions'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'regex_pattern' => :'String',
45
+ :'full_match_conditions' => :'Array<String>'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+
57
+ if attributes.has_key?(:'RegexPattern')
58
+ self.regex_pattern = attributes[:'RegexPattern']
59
+ end
60
+
61
+ if attributes.has_key?(:'FullMatchConditions')
62
+ if (value = attributes[:'FullMatchConditions']).is_a?(Array)
63
+ self.full_match_conditions = value
64
+ end
65
+ end
66
+
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properies with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ return invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ regex_pattern == o.regex_pattern &&
88
+ full_match_conditions == o.full_match_conditions
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [regex_pattern, full_match_conditions].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = AsposeCellsCloud.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "21.8"
24
+ VERSION = "21.10"
25
25
  end
@@ -31,6 +31,7 @@ require 'aspose_cells_cloud/models/above_average'
31
31
  require 'aspose_cells_cloud/models/access_token_response'
32
32
  require 'aspose_cells_cloud/models/area'
33
33
  require 'aspose_cells_cloud/models/auto_fitter_options'
34
+ require 'aspose_cells_cloud/models/batch_convert_request'
34
35
  require 'aspose_cells_cloud/models/border'
35
36
  require 'aspose_cells_cloud/models/calculation_options'
36
37
  require 'aspose_cells_cloud/models/cell_area'
@@ -75,6 +76,7 @@ require 'aspose_cells_cloud/models/line'
75
76
  require 'aspose_cells_cloud/models/link'
76
77
  require 'aspose_cells_cloud/models/link_element'
77
78
  require 'aspose_cells_cloud/models/list_column'
79
+ require 'aspose_cells_cloud/models/match_condition_request'
78
80
  require 'aspose_cells_cloud/models/multiple_filter'
79
81
  require 'aspose_cells_cloud/models/multiple_filters'
80
82
  require 'aspose_cells_cloud/models/negative_bar_format'
@@ -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 'CellsBatchApi' 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
+ folder = $TEMPFOLDER
32
+ result = @instance.upload_file( folder+"/"+ $BOOK1, ::File.open(File.expand_path("data/"+ $BOOK1),"r") {|io| io.read(io.size) })
33
+ expect(result.uploaded.size).to be > 0
34
+ result = @instance.upload_file( folder+"/"+$MYDOC, ::File.open(File.expand_path("data/"+$MYDOC),"r") {|io| io.read(io.size) })
35
+ expect(result.uploaded.size).to be > 0
36
+ match_condition = AsposeCellsCloud::MatchConditionRequest.new({:FullMatchConditions=>[ $BOOK1,$MYDOC]})
37
+ batch_convert_request = AsposeCellsCloud::BatchConvertRequest.new({:Format=>'pdf',:SourceFolder=>folder,:MatchCondition=>batch_convert_request})
38
+
39
+ result = @instance.post_batch_convert(batch_convert_request)
40
+ # expect(result.code).to eql(200)
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+ end
45
+
@@ -28,15 +28,16 @@ describe 'CellsApi' do
28
28
 
29
29
  describe 'cells_unit test' do
30
30
  it "should work" do
31
- name = $BOOK1
32
- sheet_name = $SHEET1
33
- cell_area = $CELLAREA
34
- formatcondition = AsposeCellsCloud::FormatCondition.new({:'Type'=> 'CellValue', :'Operator'=>'Between',:'Formula1'=>'v1',:'Formula2'=>'v1'})
35
31
  folder = $TEMPFOLDER
36
- result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
32
+ result = @instance.upload_file( folder+"/"+ $BOOK1, ::File.open(File.expand_path("data/"+ $BOOK1),"r") {|io| io.read(io.size) })
37
33
  expect(result.uploaded.size).to be > 0
38
- result = @instance.cells_conditional_formattings_put_worksheet_conditional_formatting(name, sheet_name, cell_area, {:format_condition=>formatcondition, :folder=>folder})
39
- expect(result.code).to eql(200)
34
+ result = @instance.upload_file( folder+"/"+$MYDOC, ::File.open(File.expand_path("data/"+$MYDOC),"r") {|io| io.read(io.size) })
35
+ expect(result.uploaded.size).to be > 0
36
+ match_condition = AsposeCellsCloud::MatchConditionRequest.new({:FullMatchConditions=>[ $BOOK1,$MYDOC]})
37
+ batch_convert_request = AsposeCellsCloud::BatchConvertRequest.new({:Format=>'pdf',:SourceFolder=>folder,:MatchCondition=>batch_convert_request})
38
+
39
+ result = @instance.post_batch_convert(batch_convert_request)
40
+ # expect(result.code).to eql(200)
40
41
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
42
  end
42
43
  end
@@ -840,4 +840,17 @@ describe 'CellsWorksheetsApi' do
840
840
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
841
841
  end
842
842
  end
843
+
844
+ describe 'cells_worksheets_delete_worksheets test' do
845
+ it "should work" do
846
+ name = $BOOK1
847
+ folder = $TEMPFOLDER
848
+ match_condition = AsposeCellsCloud::MatchConditionRequest.new({:FullMatchConditions=>[$SHEET3,$SHEET5]})
849
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
850
+ expect(result.uploaded.size).to be > 0
851
+ result = @instance.cells_worksheets_delete_worksheets(name, match_condition, { :folder=>folder})
852
+ expect(result.code).to eql(200)
853
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
854
+ end
855
+ end
843
856
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_cells_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '21.8'
4
+ version: '21.10'
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-09-17 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -245,6 +245,7 @@ files:
245
245
  - lib/aspose_cells_cloud/models/auto_shape_response.rb
246
246
  - lib/aspose_cells_cloud/models/auto_shapes.rb
247
247
  - lib/aspose_cells_cloud/models/auto_shapes_response.rb
248
+ - lib/aspose_cells_cloud/models/batch_convert_request.rb
248
249
  - lib/aspose_cells_cloud/models/border.rb
249
250
  - lib/aspose_cells_cloud/models/calculation_options.rb
250
251
  - lib/aspose_cells_cloud/models/cell.rb
@@ -350,6 +351,7 @@ files:
350
351
  - lib/aspose_cells_cloud/models/list_objects_response.rb
351
352
  - lib/aspose_cells_cloud/models/m_html_save_options.rb
352
353
  - lib/aspose_cells_cloud/models/markdown_save_options.rb
354
+ - lib/aspose_cells_cloud/models/match_condition_request.rb
353
355
  - lib/aspose_cells_cloud/models/merged_cell.rb
354
356
  - lib/aspose_cells_cloud/models/merged_cell_response.rb
355
357
  - lib/aspose_cells_cloud/models/merged_cells.rb
@@ -490,6 +492,7 @@ files:
490
492
  - spec/api/cells_api_spec.rb
491
493
  - spec/api/cells_assembly_spec.rb
492
494
  - spec/api/cells_auto_filter_api_spec.rb
495
+ - spec/api/cells_batch_spec.rb
493
496
  - spec/api/cells_chart_area_api_spec.rb
494
497
  - spec/api/cells_charts_api_spec.rb
495
498
  - spec/api/cells_clear_objects_spec.rb