aspose_cells_cloud 21.11 → 21.12

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: a9a949da8788d07ad39b51340e7d04db22cb86b22bc8a3fb6b18b6bdc47f78de
4
- data.tar.gz: 33d626302b89084f222749af2a64f71058e92f3451a823d593e62273f78a62c9
3
+ metadata.gz: 224da044a3fdedd427da323200b74cb76939e318e3f979a30722bc1f3e9d24c8
4
+ data.tar.gz: 896b0052c470cfddf652bd920e12683f69671b7f05c06068ec1a35b2835c3d68
5
5
  SHA512:
6
- metadata.gz: ad074ccc260c50f67a43021472ed88527c7da58d4068fa807fcfcac3df0b9f6d6a2812fe7cc84d9af0df0789a1f065ce82808c91bda44389d0b619e6880133f6
7
- data.tar.gz: c16d8af7b9ce06d03c9734c93265b0fdbd25e52e90325627b8ac4491216bf2540c17de6286da61a9b1eb99a940ee1142b72bd892439c45e1bc35a5bf9736d79b
6
+ metadata.gz: 9cf89d0d45a4dfabf04cc46c401ff7e469bb546db2ddff4e17f1943d0bbf15a0454e28d95bfe6d7947a97ae155c571376574743defd81e698f97fcc9367ee232
7
+ data.tar.gz: 551f9777139cb1ba7e0f4b57553820b77382e08164ba321fdd0caf5b69caee7f5b9fbf7203e511cc59e4667f0c6c43c9618075c045bd8f1012f8cf35153ef969
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.11)
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.12)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -21,12 +21,15 @@ 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.11
24
+ ## Feature & Enhancements in Version 21.12
25
25
 
26
- - Add new API for workbook get page count on Aspose.Cells Cloud.
27
- - Add new API for worksheet get page count on Aspose.Cells Cloud.
28
- - Add new API for compress excel file on Aspose.Cells Cloud.
29
- - Add new feature for replace API.
26
+ - Improvement for conversion API.
27
+ - Improvement for batch data import to support to set cell formula.
28
+ - Improvement for setting row height and column wight to support to set multi-rows and multi-columns.
29
+ - Support to set cell formula in batch data import.
30
+ - Add a new API for updating the list column.
31
+ - Add a new API for reversing columns and rows.
32
+ - Add new APIs for grouping and ungrouping shapes.
30
33
 
31
34
 
32
35
  ## Read & Write Spreadsheet Formats
@@ -5039,6 +5039,166 @@ module AsposeCellsCloud
5039
5039
  return data, status_code, headers
5040
5040
  end
5041
5041
 
5042
+ #
5043
+ #
5044
+ # @param name
5045
+ # @param sheet_name
5046
+ # @param list_object_index
5047
+ # @param column_index
5048
+ # @param [Hash] opts the optional parameters
5049
+ # @option opts [ListColumn] :list_column
5050
+ # @option opts [String] :folder
5051
+ # @option opts [String] :storage_name storage name.
5052
+ # @return [CellsCloudResponse]
5053
+ def cells_list_objects_post_worksheet_list_column(name, sheet_name, list_object_index, column_index, opts = {})
5054
+ data, _status_code, _headers = cells_list_objects_post_worksheet_list_column_with_http_info(name, sheet_name, list_object_index, column_index, opts)
5055
+ return data
5056
+ end
5057
+
5058
+ #
5059
+ #
5060
+ # @param name
5061
+ # @param sheet_name
5062
+ # @param list_object_index
5063
+ # @param column_index
5064
+ # @param [Hash] opts the optional parameters
5065
+ # @option opts [ListColumn] :list_column
5066
+ # @option opts [String] :folder
5067
+ # @option opts [String] :storage_name storage name.
5068
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
5069
+ def cells_list_objects_post_worksheet_list_column_with_http_info(name, sheet_name, list_object_index, column_index, opts = {})
5070
+ if @api_client.config.debugging
5071
+ @api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_post_worksheet_list_column ..."
5072
+ end
5073
+ @api_client.request_token_if_needed
5074
+ # verify the required parameter 'name' is set
5075
+ if @api_client.config.client_side_validation && name.nil?
5076
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_list_objects_post_worksheet_list_column"
5077
+ end
5078
+ # verify the required parameter 'sheet_name' is set
5079
+ if @api_client.config.client_side_validation && sheet_name.nil?
5080
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_list_objects_post_worksheet_list_column"
5081
+ end
5082
+ # verify the required parameter 'list_object_index' is set
5083
+ if @api_client.config.client_side_validation && list_object_index.nil?
5084
+ fail ArgumentError, "Missing the required parameter 'list_object_index' when calling CellsApi.cells_list_objects_post_worksheet_list_column"
5085
+ end
5086
+ # verify the required parameter 'column_index' is set
5087
+ if @api_client.config.client_side_validation && column_index.nil?
5088
+ fail ArgumentError, "Missing the required parameter 'column_index' when calling CellsApi.cells_list_objects_post_worksheet_list_column"
5089
+ end
5090
+ # resource path
5091
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/listcolumns/{columnIndex}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'listObjectIndex' + '}', list_object_index.to_s).sub('{' + 'columnIndex' + '}', column_index.to_s)
5092
+
5093
+ # query parameters
5094
+ query_params = {}
5095
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
5096
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
5097
+
5098
+ # header parameters
5099
+ header_params = {}
5100
+ # HTTP header 'Accept' (if needed)
5101
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5102
+ # HTTP header 'Content-Type'
5103
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5104
+
5105
+ # form parameters
5106
+ form_params = {}
5107
+
5108
+ # http body (model)
5109
+ post_body = @api_client.object_to_http_body(opts[:'list_column'])
5110
+ #auth_names = []
5111
+ auth_names = ['JWT']
5112
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5113
+ :header_params => header_params,
5114
+ :query_params => query_params,
5115
+ :form_params => form_params,
5116
+ :body => post_body,
5117
+ :auth_names => auth_names,
5118
+ :return_type => 'CellsCloudResponse')
5119
+ if @api_client.config.debugging
5120
+ @api_client.config.logger.debug "API called: CellsApi#cells_list_objects_post_worksheet_list_column\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5121
+ end
5122
+ return data, status_code, headers
5123
+ end
5124
+
5125
+ #
5126
+ #
5127
+ # @param name
5128
+ # @param sheet_name
5129
+ # @param list_object_index
5130
+ # @param [Hash] opts the optional parameters
5131
+ # @option opts [Array<TableTotalRequest>] :table_total_requests
5132
+ # @option opts [String] :folder
5133
+ # @option opts [String] :storage_name storage name.
5134
+ # @return [CellsCloudResponse]
5135
+ def cells_list_objects_post_worksheet_list_columns_total(name, sheet_name, list_object_index, opts = {})
5136
+ data, _status_code, _headers = cells_list_objects_post_worksheet_list_columns_total_with_http_info(name, sheet_name, list_object_index, opts)
5137
+ return data
5138
+ end
5139
+
5140
+ #
5141
+ #
5142
+ # @param name
5143
+ # @param sheet_name
5144
+ # @param list_object_index
5145
+ # @param [Hash] opts the optional parameters
5146
+ # @option opts [Array<TableTotalRequest>] :table_total_requests
5147
+ # @option opts [String] :folder
5148
+ # @option opts [String] :storage_name storage name.
5149
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
5150
+ def cells_list_objects_post_worksheet_list_columns_total_with_http_info(name, sheet_name, list_object_index, opts = {})
5151
+ if @api_client.config.debugging
5152
+ @api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_post_worksheet_list_columns_total ..."
5153
+ end
5154
+ @api_client.request_token_if_needed
5155
+ # verify the required parameter 'name' is set
5156
+ if @api_client.config.client_side_validation && name.nil?
5157
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_list_objects_post_worksheet_list_columns_total"
5158
+ end
5159
+ # verify the required parameter 'sheet_name' is set
5160
+ if @api_client.config.client_side_validation && sheet_name.nil?
5161
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_list_objects_post_worksheet_list_columns_total"
5162
+ end
5163
+ # verify the required parameter 'list_object_index' is set
5164
+ if @api_client.config.client_side_validation && list_object_index.nil?
5165
+ fail ArgumentError, "Missing the required parameter 'list_object_index' when calling CellsApi.cells_list_objects_post_worksheet_list_columns_total"
5166
+ end
5167
+ # resource path
5168
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/listcolumns/total".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'listObjectIndex' + '}', list_object_index.to_s)
5169
+
5170
+ # query parameters
5171
+ query_params = {}
5172
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
5173
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
5174
+
5175
+ # header parameters
5176
+ header_params = {}
5177
+ # HTTP header 'Accept' (if needed)
5178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5179
+ # HTTP header 'Content-Type'
5180
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5181
+
5182
+ # form parameters
5183
+ form_params = {}
5184
+
5185
+ # http body (model)
5186
+ post_body = @api_client.object_to_http_body(opts[:'table_total_requests'])
5187
+ #auth_names = []
5188
+ auth_names = ['JWT']
5189
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5190
+ :header_params => header_params,
5191
+ :query_params => query_params,
5192
+ :form_params => form_params,
5193
+ :body => post_body,
5194
+ :auth_names => auth_names,
5195
+ :return_type => 'CellsCloudResponse')
5196
+ if @api_client.config.debugging
5197
+ @api_client.config.logger.debug "API called: CellsApi#cells_list_objects_post_worksheet_list_columns_total\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5198
+ end
5199
+ return data, status_code, headers
5200
+ end
5201
+
5042
5202
  # Update list object
5043
5203
  #
5044
5204
  # @param name Document name.
@@ -5362,6 +5522,8 @@ module AsposeCellsCloud
5362
5522
  # @param end_column The start row of the list range.
5363
5523
  # @param [Hash] opts the optional parameters
5364
5524
  # @option opts [BOOLEAN] :has_headers Whether the range has headers. (default to true)
5525
+ # @option opts [BOOLEAN] :display_name Gets and sets the display name.. (default to true)
5526
+ # @option opts [BOOLEAN] :show_totals Gets and sets whether this ListObject show total row.. (default to true)
5365
5527
  # @option opts [ListObject] :list_object List Object
5366
5528
  # @option opts [String] :folder Document&#39;s folder.
5367
5529
  # @option opts [String] :storage_name storage name.
@@ -5381,6 +5543,8 @@ module AsposeCellsCloud
5381
5543
  # @param end_column The start row of the list range.
5382
5544
  # @param [Hash] opts the optional parameters
5383
5545
  # @option opts [BOOLEAN] :has_headers Whether the range has headers.
5546
+ # @option opts [BOOLEAN] :display_name Gets and sets the display name..
5547
+ # @option opts [BOOLEAN] :show_totals Gets and sets whether this ListObject show total row..
5384
5548
  # @option opts [ListObject] :list_object List Object
5385
5549
  # @option opts [String] :folder Document&#39;s folder.
5386
5550
  # @option opts [String] :storage_name storage name.
@@ -5424,6 +5588,8 @@ module AsposeCellsCloud
5424
5588
  query_params[:'endRow'] = end_row
5425
5589
  query_params[:'endColumn'] = end_column
5426
5590
  query_params[:'hasHeaders'] = opts[:'has_headers'] if !opts[:'has_headers'].nil?
5591
+ query_params[:'displayName'] = opts[:'display_name'] if !opts[:'display_name'].nil?
5592
+ query_params[:'showTotals'] = opts[:'show_totals'] if !opts[:'show_totals'].nil?
5427
5593
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
5428
5594
  query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
5429
5595
 
@@ -10656,12 +10822,13 @@ module AsposeCellsCloud
10656
10822
  # @param sheet_name The worksheet name.
10657
10823
  # @param column_index The column index.
10658
10824
  # @param width The width.
10825
+ # @param count column number.
10659
10826
  # @param [Hash] opts the optional parameters
10660
10827
  # @option opts [String] :folder The workbook folder.
10661
10828
  # @option opts [String] :storage_name storage name.
10662
10829
  # @return [CellsCloudResponse]
10663
- def cells_post_set_worksheet_column_width(name, sheet_name, column_index, width, opts = {})
10664
- data, _status_code, _headers = cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, opts)
10830
+ def cells_post_set_worksheet_column_width(name, sheet_name, column_index, width, count, opts = {})
10831
+ data, _status_code, _headers = cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, count, opts)
10665
10832
  return data
10666
10833
  end
10667
10834
 
@@ -10671,11 +10838,12 @@ module AsposeCellsCloud
10671
10838
  # @param sheet_name The worksheet name.
10672
10839
  # @param column_index The column index.
10673
10840
  # @param width The width.
10841
+ # @param count column number.
10674
10842
  # @param [Hash] opts the optional parameters
10675
10843
  # @option opts [String] :folder The workbook folder.
10676
10844
  # @option opts [String] :storage_name storage name.
10677
10845
  # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
10678
- def cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, opts = {})
10846
+ def cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, count, opts = {})
10679
10847
  if @api_client.config.debugging
10680
10848
  @api_client.config.logger.debug "Calling API: CellsApi.cells_post_set_worksheet_column_width ..."
10681
10849
  end
@@ -10696,12 +10864,17 @@ module AsposeCellsCloud
10696
10864
  if @api_client.config.client_side_validation && width.nil?
10697
10865
  fail ArgumentError, "Missing the required parameter 'width' when calling CellsApi.cells_post_set_worksheet_column_width"
10698
10866
  end
10867
+ # verify the required parameter 'count' is set
10868
+ if @api_client.config.client_side_validation && count.nil?
10869
+ fail ArgumentError, "Missing the required parameter 'count' when calling CellsApi.cells_post_set_worksheet_column_width"
10870
+ end
10699
10871
  # resource path
10700
10872
  local_var_path = "/cells/{name}/worksheets/{sheetName}/cells/columns/{columnIndex}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'columnIndex' + '}', column_index.to_s)
10701
10873
 
10702
10874
  # query parameters
10703
10875
  query_params = {}
10704
10876
  query_params[:'width'] = width
10877
+ query_params[:'count'] = count
10705
10878
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
10706
10879
  query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
10707
10880
 
@@ -11235,6 +11408,7 @@ module AsposeCellsCloud
11235
11408
  # @param row_index The row index.
11236
11409
  # @param [Hash] opts the optional parameters
11237
11410
  # @option opts [Float] :height The new row height. (default to 0.0)
11411
+ # @option opts [Integer] :count row number. (default to 0)
11238
11412
  # @option opts [String] :folder The document folder.
11239
11413
  # @option opts [String] :storage_name storage name.
11240
11414
  # @return [CellsCloudResponse]
@@ -11250,6 +11424,7 @@ module AsposeCellsCloud
11250
11424
  # @param row_index The row index.
11251
11425
  # @param [Hash] opts the optional parameters
11252
11426
  # @option opts [Float] :height The new row height.
11427
+ # @option opts [Integer] :count row number.
11253
11428
  # @option opts [String] :folder The document folder.
11254
11429
  # @option opts [String] :storage_name storage name.
11255
11430
  # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
@@ -11276,6 +11451,7 @@ module AsposeCellsCloud
11276
11451
  # query parameters
11277
11452
  query_params = {}
11278
11453
  query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
11454
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
11279
11455
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11280
11456
  query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
11281
11457
 
@@ -13453,6 +13629,81 @@ module AsposeCellsCloud
13453
13629
  return data, status_code, headers
13454
13630
  end
13455
13631
 
13632
+ # Update a shape in worksheet
13633
+ #
13634
+ # @param name document name.
13635
+ # @param sheet_name worksheet name.
13636
+ # @param list_shape group shape indexs in worksheet shapes.
13637
+ # @param [Hash] opts the optional parameters
13638
+ # @option opts [String] :folder Document&#39;s folder.
13639
+ # @option opts [String] :storage_name storage name.
13640
+ # @return [CellsCloudResponse]
13641
+ def cells_shapes_post_worksheet_group_shape(name, sheet_name, list_shape, opts = {})
13642
+ data, _status_code, _headers = cells_shapes_post_worksheet_group_shape_with_http_info(name, sheet_name, list_shape, opts)
13643
+ return data
13644
+ end
13645
+
13646
+ # Update a shape in worksheet
13647
+ #
13648
+ # @param name document name.
13649
+ # @param sheet_name worksheet name.
13650
+ # @param list_shape group shape indexs in worksheet shapes.
13651
+ # @param [Hash] opts the optional parameters
13652
+ # @option opts [String] :folder Document&#39;s folder.
13653
+ # @option opts [String] :storage_name storage name.
13654
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
13655
+ def cells_shapes_post_worksheet_group_shape_with_http_info(name, sheet_name, list_shape, opts = {})
13656
+ if @api_client.config.debugging
13657
+ @api_client.config.logger.debug "Calling API: CellsApi.cells_shapes_post_worksheet_group_shape ..."
13658
+ end
13659
+ @api_client.request_token_if_needed
13660
+ # verify the required parameter 'name' is set
13661
+ if @api_client.config.client_side_validation && name.nil?
13662
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_shapes_post_worksheet_group_shape"
13663
+ end
13664
+ # verify the required parameter 'sheet_name' is set
13665
+ if @api_client.config.client_side_validation && sheet_name.nil?
13666
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_shapes_post_worksheet_group_shape"
13667
+ end
13668
+ # verify the required parameter 'list_shape' is set
13669
+ if @api_client.config.client_side_validation && list_shape.nil?
13670
+ fail ArgumentError, "Missing the required parameter 'list_shape' when calling CellsApi.cells_shapes_post_worksheet_group_shape"
13671
+ end
13672
+ # resource path
13673
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/shapes/group".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
13674
+
13675
+ # query parameters
13676
+ query_params = {}
13677
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
13678
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
13679
+
13680
+ # header parameters
13681
+ header_params = {}
13682
+ # HTTP header 'Accept' (if needed)
13683
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13684
+ # HTTP header 'Content-Type'
13685
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
13686
+
13687
+ # form parameters
13688
+ form_params = {}
13689
+
13690
+ # http body (model)
13691
+ post_body = @api_client.object_to_http_body(list_shape)
13692
+ #auth_names = []
13693
+ auth_names = ['JWT']
13694
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13695
+ :header_params => header_params,
13696
+ :query_params => query_params,
13697
+ :form_params => form_params,
13698
+ :body => post_body,
13699
+ :auth_names => auth_names,
13700
+ :return_type => 'CellsCloudResponse')
13701
+ if @api_client.config.debugging
13702
+ @api_client.config.logger.debug "API called: CellsApi#cells_shapes_post_worksheet_group_shape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13703
+ end
13704
+ return data, status_code, headers
13705
+ end
13706
+
13456
13707
  # Update a shape in worksheet
13457
13708
  #
13458
13709
  # @param name document name.
@@ -13530,6 +13781,81 @@ module AsposeCellsCloud
13530
13781
  return data, status_code, headers
13531
13782
  end
13532
13783
 
13784
+ # Update a shape in worksheet
13785
+ #
13786
+ # @param name document name.
13787
+ # @param sheet_name worksheet name.
13788
+ # @param shapeindex shape index in worksheet shapes.
13789
+ # @param [Hash] opts the optional parameters
13790
+ # @option opts [String] :folder Document&#39;s folder.
13791
+ # @option opts [String] :storage_name storage name.
13792
+ # @return [CellsCloudResponse]
13793
+ def cells_shapes_post_worksheet_ungroup_shape(name, sheet_name, shapeindex, opts = {})
13794
+ data, _status_code, _headers = cells_shapes_post_worksheet_ungroup_shape_with_http_info(name, sheet_name, shapeindex, opts)
13795
+ return data
13796
+ end
13797
+
13798
+ # Update a shape in worksheet
13799
+ #
13800
+ # @param name document name.
13801
+ # @param sheet_name worksheet name.
13802
+ # @param shapeindex shape index in worksheet shapes.
13803
+ # @param [Hash] opts the optional parameters
13804
+ # @option opts [String] :folder Document&#39;s folder.
13805
+ # @option opts [String] :storage_name storage name.
13806
+ # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
13807
+ def cells_shapes_post_worksheet_ungroup_shape_with_http_info(name, sheet_name, shapeindex, opts = {})
13808
+ if @api_client.config.debugging
13809
+ @api_client.config.logger.debug "Calling API: CellsApi.cells_shapes_post_worksheet_ungroup_shape ..."
13810
+ end
13811
+ @api_client.request_token_if_needed
13812
+ # verify the required parameter 'name' is set
13813
+ if @api_client.config.client_side_validation && name.nil?
13814
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_shapes_post_worksheet_ungroup_shape"
13815
+ end
13816
+ # verify the required parameter 'sheet_name' is set
13817
+ if @api_client.config.client_side_validation && sheet_name.nil?
13818
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_shapes_post_worksheet_ungroup_shape"
13819
+ end
13820
+ # verify the required parameter 'shapeindex' is set
13821
+ if @api_client.config.client_side_validation && shapeindex.nil?
13822
+ fail ArgumentError, "Missing the required parameter 'shapeindex' when calling CellsApi.cells_shapes_post_worksheet_ungroup_shape"
13823
+ end
13824
+ # resource path
13825
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/shapes/{shapeindex}/ungroup".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'shapeindex' + '}', shapeindex.to_s)
13826
+
13827
+ # query parameters
13828
+ query_params = {}
13829
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
13830
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
13831
+
13832
+ # header parameters
13833
+ header_params = {}
13834
+ # HTTP header 'Accept' (if needed)
13835
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13836
+ # HTTP header 'Content-Type'
13837
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
13838
+
13839
+ # form parameters
13840
+ form_params = {}
13841
+
13842
+ # http body (model)
13843
+ post_body = nil
13844
+ #auth_names = []
13845
+ auth_names = ['JWT']
13846
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13847
+ :header_params => header_params,
13848
+ :query_params => query_params,
13849
+ :form_params => form_params,
13850
+ :body => post_body,
13851
+ :auth_names => auth_names,
13852
+ :return_type => 'CellsCloudResponse')
13853
+ if @api_client.config.debugging
13854
+ @api_client.config.logger.debug "API called: CellsApi#cells_shapes_post_worksheet_ungroup_shape\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13855
+ end
13856
+ return data, status_code, headers
13857
+ end
13858
+
13533
13859
  # Add shape in worksheet
13534
13860
  #
13535
13861
  # @param name document name.
@@ -15915,6 +16241,7 @@ module AsposeCellsCloud
15915
16241
  # @option opts [String] :format The format to convert.
15916
16242
  # @option opts [String] :password The workbook password.
15917
16243
  # @option opts [String] :out_path Path to save result
16244
+ # @option opts [String] :storage_name storage name.
15918
16245
  # @return [File]
15919
16246
  def cells_workbook_put_convert_workbook(file, opts = {})
15920
16247
  data, _status_code, _headers = cells_workbook_put_convert_workbook_with_http_info(file, opts)
@@ -15928,6 +16255,7 @@ module AsposeCellsCloud
15928
16255
  # @option opts [String] :format The format to convert.
15929
16256
  # @option opts [String] :password The workbook password.
15930
16257
  # @option opts [String] :out_path Path to save result
16258
+ # @option opts [String] :storage_name storage name.
15931
16259
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
15932
16260
  def cells_workbook_put_convert_workbook_with_http_info(file, opts = {})
15933
16261
  if @api_client.config.debugging
@@ -15946,6 +16274,7 @@ module AsposeCellsCloud
15946
16274
  query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
15947
16275
  query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
15948
16276
  query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
16277
+ query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
15949
16278
 
15950
16279
  # header parameters
15951
16280
  header_params = {}
@@ -1098,9 +1098,81 @@ module AsposeCellsCloud
1098
1098
  :auth_names => auth_names,
1099
1099
  :return_type => 'FilesResult')
1100
1100
  if @api_client.config.debugging
1101
- @api_client.config.logger.debug "API called: LiteCellsApi#post_watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1101
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1102
1102
  end
1103
1103
  return data, status_code, headers
1104
1104
  end
1105
+ #
1106
+ #
1107
+ # @param file File to upload
1108
+ # @param rotate_type
1109
+ # @param format
1110
+ # @return [FilesResult]
1111
+ def post_reverse(file, rotate_type, format, opts = {})
1112
+ data, _status_code, _headers = post_reverse_with_http_info(file, rotate_type, format, opts)
1113
+ return data
1114
+ end
1115
+
1116
+ #
1117
+ #
1118
+ # @param file File to upload
1119
+ # @param rotate_type
1120
+ # @param format
1121
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
1122
+ def post_reverse_with_http_info(file, rotate_type, format, opts = {})
1123
+ if @api_client.config.debugging
1124
+ @api_client.config.logger.debug "Calling API: LiteCellsApi.post_reverse ..."
1125
+ end
1126
+ @api_client.request_token_if_needed
1127
+ # verify the required parameter 'file' is set
1128
+ if @api_client.config.client_side_validation && file.nil?
1129
+ fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_reverse"
1130
+ end
1131
+ # verify the required parameter 'rotate_type' is set
1132
+ if @api_client.config.client_side_validation && rotate_type.nil?
1133
+ fail ArgumentError, "Missing the required parameter 'rotate_type' when calling LiteCellsApi.post_reverse"
1134
+ end
1135
+ # verify the required parameter 'color' is set
1136
+ if @api_client.config.client_side_validation && format.nil?
1137
+ fail ArgumentError, "Missing the required parameter 'format' when calling LiteCellsApi.post_reverse"
1138
+ end
1139
+ # resource path
1140
+ local_var_path = "/cells/reverse"
1141
+
1142
+ # query parameters
1143
+ query_params = {}
1144
+ query_params[:'rotateType'] = rotate_type
1145
+ query_params[:'format'] = format
1146
+ # header parameters
1147
+ header_params = {}
1148
+ # HTTP header 'Accept' (if needed)
1149
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1150
+ # HTTP header 'Content-Type'
1151
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1152
+
1153
+ # form parameters
1154
+ form_params = {}
1155
+ file.each do |filename , context|
1156
+ form_params[filename] = context
1157
+ end
1158
+
1159
+ # http body (model)
1160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1161
+ post_body = ""
1162
+ #auth_names = []
1163
+ auth_names = ['JWT']
1164
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1165
+ :header_params => header_params,
1166
+ :query_params => query_params,
1167
+ :form_params => form_params,
1168
+ :body => post_body,
1169
+ :auth_names => auth_names,
1170
+ :return_type => 'FilesResult')
1171
+ if @api_client.config.debugging
1172
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_reverse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1173
+ end
1174
+ return data, status_code, headers
1175
+ end
1176
+
1105
1177
  end
1106
1178
  end
@@ -35,6 +35,8 @@ module AsposeCellsCloud
35
35
 
36
36
  attr_accessor :value
37
37
 
38
+ attr_accessor :formula
39
+
38
40
 
39
41
  # Attribute mapping from ruby-style variable name to JSON key.
40
42
  def self.attribute_map
@@ -43,7 +45,8 @@ module AsposeCellsCloud
43
45
  :'column_index' => :'columnIndex',
44
46
  :'style' => :'style',
45
47
  :'type' => :'type',
46
- :'value' => :'value'
48
+ :'value' => :'value',
49
+ :'formula' => :'formula'
47
50
  }
48
51
  end
49
52
 
@@ -54,7 +57,8 @@ module AsposeCellsCloud
54
57
  :'column_index' => :'Integer',
55
58
  :'style' => :'Style',
56
59
  :'type' => :'String',
57
- :'value' => :'String'
60
+ :'value' => :'String',
61
+ :'formula' => :'String'
58
62
  }
59
63
  end
60
64
 
@@ -86,6 +90,10 @@ module AsposeCellsCloud
86
90
  self.value = attributes[:'value']
87
91
  end
88
92
 
93
+ if attributes.has_key?(:'formula')
94
+ self.formula = attributes[:'formula']
95
+ end
96
+
89
97
  end
90
98
 
91
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +118,8 @@ module AsposeCellsCloud
110
118
  column_index == o.column_index &&
111
119
  style == o.style &&
112
120
  type == o.type &&
113
- value == o.value
121
+ value == o.value &&
122
+ formula == o.formula
114
123
  end
115
124
 
116
125
  # @see the `==` method
@@ -122,7 +131,7 @@ module AsposeCellsCloud
122
131
  # Calculates hash code according to all attributes.
123
132
  # @return [Fixnum] Hash code
124
133
  def hash
125
- [row_index, column_index, style, type, value].hash
134
+ [row_index, column_index, style, type, value, formula].hash
126
135
  end
127
136
 
128
137
  # Builds the object from hash
@@ -31,12 +31,20 @@ module AsposeCellsCloud
31
31
  # Gets and sets the name of the column.
32
32
  attr_accessor :name
33
33
 
34
+ # Gets and sets the formula of the list column.
35
+ attr_accessor :formula
36
+
37
+ # Gets and sets the formula of the list column.
38
+ attr_accessor :range
39
+
34
40
 
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
38
44
  :'totals_calculation' => :'TotalsCalculation',
39
- :'name' => :'Name'
45
+ :'name' => :'Name',
46
+ :'formula' => :'Formula',
47
+ :'range' => :'Range'
40
48
  }
41
49
  end
42
50
 
@@ -44,7 +52,9 @@ module AsposeCellsCloud
44
52
  def self.swagger_types
45
53
  {
46
54
  :'totals_calculation' => :'String',
47
- :'name' => :'String'
55
+ :'name' => :'String',
56
+ :'formula' => :'String',
57
+ :'range' => :'Range'
48
58
  }
49
59
  end
50
60
 
@@ -64,6 +74,14 @@ module AsposeCellsCloud
64
74
  self.name = attributes[:'Name']
65
75
  end
66
76
 
77
+ if attributes.has_key?(:'Formula')
78
+ self.formula = attributes[:'Formula']
79
+ end
80
+
81
+ if attributes.has_key?(:'Range')
82
+ self.range = attributes[:'Range']
83
+ end
84
+
67
85
  end
68
86
 
69
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -85,7 +103,9 @@ module AsposeCellsCloud
85
103
  return true if self.equal?(o)
86
104
  self.class == o.class &&
87
105
  totals_calculation == o.totals_calculation &&
88
- name == o.name
106
+ name == o.name &&
107
+ formula == o.formula &&
108
+ range == o.range
89
109
  end
90
110
 
91
111
  # @see the `==` method
@@ -97,7 +117,7 @@ module AsposeCellsCloud
97
117
  # Calculates hash code according to all attributes.
98
118
  # @return [Fixnum] Hash code
99
119
  def hash
100
- [totals_calculation, name].hash
120
+ [totals_calculation, name, formula, range].hash
101
121
  end
102
122
 
103
123
  # Builds the object from hash
@@ -31,22 +31,34 @@ module AsposeCellsCloud
31
31
 
32
32
  attr_accessor :key
33
33
 
34
+ attr_accessor :order
35
+
36
+ attr_accessor :type
37
+
38
+ attr_accessor :index
39
+
34
40
 
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
38
44
  :'custom_list' => :'CustomList',
39
45
  :'sort_order' => :'SortOrder',
40
- :'key' => :'Key'
46
+ :'key' => :'Key',
47
+ :'order' => :'Order',
48
+ :'type' => :'Type',
49
+ :'index' => :'Index'
41
50
  }
42
51
  end
43
52
 
44
53
  # Attribute type mapping.
45
54
  def self.swagger_types
46
55
  {
47
- :'custom_list' => :'String',
56
+ :'custom_list' => :'Array<String>',
48
57
  :'sort_order' => :'String',
49
- :'key' => :'Integer'
58
+ :'key' => :'Integer',
59
+ :'order' => :'String',
60
+ :'type' => :'String',
61
+ :'index' => :'Integer'
50
62
  }
51
63
  end
52
64
 
@@ -59,7 +71,9 @@ module AsposeCellsCloud
59
71
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
72
 
61
73
  if attributes.has_key?(:'CustomList')
62
- self.custom_list = attributes[:'CustomList']
74
+ if (value = attributes[:'CustomList']).is_a?(Array)
75
+ self.custom_list = value
76
+ end
63
77
  end
64
78
 
65
79
  if attributes.has_key?(:'SortOrder')
@@ -70,6 +84,18 @@ module AsposeCellsCloud
70
84
  self.key = attributes[:'Key']
71
85
  end
72
86
 
87
+ if attributes.has_key?(:'Order')
88
+ self.order = attributes[:'Order']
89
+ end
90
+
91
+ if attributes.has_key?(:'Type')
92
+ self.type = attributes[:'Type']
93
+ end
94
+
95
+ if attributes.has_key?(:'Index')
96
+ self.index = attributes[:'Index']
97
+ end
98
+
73
99
  end
74
100
 
75
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +123,10 @@ module AsposeCellsCloud
97
123
  self.class == o.class &&
98
124
  custom_list == o.custom_list &&
99
125
  sort_order == o.sort_order &&
100
- key == o.key
126
+ key == o.key &&
127
+ order == o.order &&
128
+ type == o.type &&
129
+ index == o.index
101
130
  end
102
131
 
103
132
  # @see the `==` method
@@ -109,7 +138,7 @@ module AsposeCellsCloud
109
138
  # Calculates hash code according to all attributes.
110
139
  # @return [Fixnum] Hash code
111
140
  def hash
112
- [custom_list, sort_order, key].hash
141
+ [custom_list, sort_order, key, order, type, index].hash
113
142
  end
114
143
 
115
144
  # Builds the object from hash
@@ -0,0 +1,216 @@
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 TableTotalRequest
28
+ attr_accessor :list_column_index
29
+
30
+ attr_accessor :totals_calculation
31
+
32
+ attr_accessor :custom_formula
33
+
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'list_column_index' => :'ListColumnIndex',
39
+ :'totals_calculation' => :'TotalsCalculation',
40
+ :'custom_formula' => :'CustomFormula'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'list_column_index' => :'Integer',
48
+ :'totals_calculation' => :'String',
49
+ :'custom_formula' => :'String'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+
61
+ if attributes.has_key?(:'ListColumnIndex')
62
+ self.list_column_index = attributes[:'ListColumnIndex']
63
+ end
64
+
65
+ if attributes.has_key?(:'TotalsCalculation')
66
+ self.totals_calculation = attributes[:'TotalsCalculation']
67
+ end
68
+
69
+ if attributes.has_key?(:'CustomFormula')
70
+ self.custom_formula = attributes[:'CustomFormula']
71
+ end
72
+
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properies with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ return invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ list_column_index == o.list_column_index &&
94
+ totals_calculation == o.totals_calculation &&
95
+ custom_formula == o.custom_formula
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [list_column_index, totals_calculation, custom_formula].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = AsposeCellsCloud.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map{ |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ end
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "21.11"
24
+ VERSION = "21.12"
25
25
  end
@@ -113,6 +113,7 @@ require 'aspose_cells_cloud/models/sparkline_groups'
113
113
  require 'aspose_cells_cloud/models/split_result'
114
114
  require 'aspose_cells_cloud/models/storage_exist'
115
115
  require 'aspose_cells_cloud/models/storage_file'
116
+ require 'aspose_cells_cloud/models/table_total_request'
116
117
  require 'aspose_cells_cloud/models/task_data'
117
118
  require 'aspose_cells_cloud/models/task_description'
118
119
  require 'aspose_cells_cloud/models/task_parameter'
@@ -765,7 +765,7 @@ describe 'CellsApi' do
765
765
  storage = nil
766
766
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
767
767
  expect(result.uploaded.size).to be > 0
768
- result = @instance.cells_post_set_worksheet_column_width(name, sheet_name, column_index, width, { :folder=>folder})
768
+ result = @instance.cells_post_set_worksheet_column_width(name, sheet_name, column_index, width,10, { :folder=>folder})
769
769
  expect(result.code).to eql(200)
770
770
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
771
771
  end
@@ -241,5 +241,32 @@ describe 'CellsListObjectsApi' do
241
241
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
242
242
  end
243
243
  end
244
-
244
+ describe 'cells_list_objects_post_worksheet_list_column test' do
245
+ it "should work" do
246
+ name = $BOOK1
247
+ sheet_name = $SHEET7
248
+ list_object_index = 0
249
+ request = AsposeCellsCloud::ListColumn.new({:Name=>'Test', :TotalsCalculation=>'Average'})
250
+ folder = $TEMPFOLDER
251
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
252
+ expect(result.uploaded.size).to be > 0
253
+ result = @instance.cells_list_objects_post_worksheet_list_column(name, sheet_name, list_object_index,0, { :list_column=>request, :folder=>folder})
254
+ expect(result.code).to eql(200)
255
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
256
+ end
257
+ end
258
+ describe 'cells_list_objects_post_worksheet_list_columns_total test' do
259
+ it "should work" do
260
+ name = $BOOK1
261
+ sheet_name = $SHEET7
262
+ list_object_index = 0
263
+ request = AsposeCellsCloud::TableTotalRequest.new({:ListColumnIndex=>'1', :TotalsCalculation=>'Average'})
264
+ folder = $TEMPFOLDER
265
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
266
+ expect(result.uploaded.size).to be > 0
267
+ result = @instance.cells_list_objects_post_worksheet_list_columns_total(name, sheet_name, list_object_index,{ :table_total_requests=>[request], :folder=>folder})
268
+ expect(result.code).to eql(200)
269
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
+ end
271
+ end
245
272
  end
@@ -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 'LiteCellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'lite_cells_unit replreverseace 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_reverse(files ,"rows","pdf")
39
+
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+ end
44
+
@@ -171,4 +171,28 @@ describe 'CellsShapesApi' do
171
171
  end
172
172
  end
173
173
 
174
+ describe 'cells_shapes_post_worksheet_group_shape test' do
175
+ it "should work" do
176
+ name = $BOOK1
177
+ sheet_name = $SHEET6
178
+ folder = $TEMPFOLDER
179
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
180
+ expect(result.uploaded.size).to be > 0
181
+ result = @instance.cells_shapes_post_worksheet_group_shape(name, sheet_name,[0,2], { :folder=>folder})
182
+ expect(result.code).to eql(200)
183
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
184
+ end
185
+ end
186
+ describe 'cells_shapes_post_worksheet_ungroup_shape test' do
187
+ it "should work" do
188
+ name = $BOOK1
189
+ sheet_name = $SHEET6
190
+ folder = $TEMPFOLDER
191
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
192
+ expect(result.uploaded.size).to be > 0
193
+ result = @instance.cells_shapes_post_worksheet_ungroup_shape(name, sheet_name, 6, { :folder=>folder})
194
+ expect(result.code).to eql(200)
195
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
196
+ end
197
+ end
174
198
  end
@@ -790,7 +790,7 @@ describe 'CellsWorksheetsApi' do
790
790
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
791
791
  expect(result.uploaded.size).to be > 0
792
792
  result = @instance.cells_worksheets_put_add_new_worksheet(name, sheet_name, {:position=>position, :sheettype=>sheettype, :folder=>folder})
793
- expect(result.code).to eql(201)
793
+ expect(result.code).to eql(200)
794
794
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
795
795
  end
796
796
  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.11'
4
+ version: '21.12'
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-11-30 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -444,6 +444,7 @@ files:
444
444
  - lib/aspose_cells_cloud/models/style.rb
445
445
  - lib/aspose_cells_cloud/models/style_response.rb
446
446
  - lib/aspose_cells_cloud/models/svg_save_options.rb
447
+ - lib/aspose_cells_cloud/models/table_total_request.rb
447
448
  - lib/aspose_cells_cloud/models/task_data.rb
448
449
  - lib/aspose_cells_cloud/models/task_description.rb
449
450
  - lib/aspose_cells_cloud/models/task_parameter.rb
@@ -513,6 +514,7 @@ files:
513
514
  - spec/api/cells_protect_spec.rb
514
515
  - spec/api/cells_ranges_api_spec.rb
515
516
  - spec/api/cells_replace_spec.rb
517
+ - spec/api/cells_reverse_spec.rb
516
518
  - spec/api/cells_save_as_api_spec.rb
517
519
  - spec/api/cells_search_spec.rb
518
520
  - spec/api/cells_shapes_api_spec.rb