aspose_cells_cloud 1.0.3 → 1.0.5

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
  SHA1:
3
- metadata.gz: b8eee75d390129e363828ff2b6400c6592352cdd
4
- data.tar.gz: 55bad3fa8a5691754de0452e8e3c9bbfe0fdf024
3
+ metadata.gz: 3d1270283bf803d5a4f71e9e9ffd9307ad048f32
4
+ data.tar.gz: e84331f1dc8af615b7ad0a315dda25c6e3ca9856
5
5
  SHA512:
6
- metadata.gz: 065660a3ab225d43045965227d0948074ccbe64da4bd35a3ed59ab34509312abe70b84db610b4f77c3515d7c90c82e94fc08239b0c7e3e153d6180a22cc6ac9f
7
- data.tar.gz: 4228476a19abf4a6297dd628e16def9e562bd38f339e7ca5c94446590d84cc2272d0042a5df50497838dc89e2976d5547589a0122c91e36eff4761dbe08b8e92
6
+ metadata.gz: 7b80dd37ecb2493579d51c4601ce970286df8f782fdfaa3acbed7cb809557dffa4ed2caf88a9b398491fa3e6b090cabfa519fcd85bbe22ae64584ceacf4034e3
7
+ data.tar.gz: 731794b89f8fa408f84e1f27e1a63547b25c4e2e5d52ec1b2791eca5b705a89304fb86c6b5e8ff4690a20a5a88396a10c4d25098f2a4108a5836f6d266b4d3a8
@@ -35,7 +35,6 @@ require_relative 'aspose_cells_cloud/models/workbook_replace_response'
35
35
  require_relative 'aspose_cells_cloud/models/split_result_response'
36
36
  require_relative 'aspose_cells_cloud/models/split_result'
37
37
  require_relative 'aspose_cells_cloud/models/split_result_document'
38
- require_relative 'aspose_cells_cloud/models/import_data_import_option'
39
38
  require_relative 'aspose_cells_cloud/models/auto_fitter_options'
40
39
  require_relative 'aspose_cells_cloud/models/workbook_settings_response'
41
40
  require_relative 'aspose_cells_cloud/models/workbook_settings'
@@ -137,6 +136,21 @@ require_relative 'aspose_cells_cloud/models/title_response'
137
136
  require_relative 'aspose_cells_cloud/models/base_response'
138
137
  require_relative 'aspose_cells_cloud/models/barcode_response_list'
139
138
  require_relative 'aspose_cells_cloud/models/barcode_response'
139
+ require_relative 'aspose_cells_cloud/models/copy_options'
140
+ require_relative 'aspose_cells_cloud/models/pdf_save_options'
141
+ require_relative 'aspose_cells_cloud/models/import_batch_data_option'
142
+ require_relative 'aspose_cells_cloud/models/cell_value'
143
+ require_relative 'aspose_cells_cloud/models/import_int_array_option'
144
+ require_relative 'aspose_cells_cloud/models/import_string_array_option'
145
+ require_relative 'aspose_cells_cloud/models/import_double_array_option'
146
+ require_relative 'aspose_cells_cloud/models/import_source'
147
+ require_relative 'aspose_cells_cloud/models/import_option'
148
+ require_relative 'aspose_cells_cloud/models/tasks_data'
149
+ require_relative 'aspose_cells_cloud/models/task_description'
150
+ require_relative 'aspose_cells_cloud/models/import_data_task_parameter'
151
+ require_relative 'aspose_cells_cloud/models/save_result_task_parameter'
152
+ require_relative 'aspose_cells_cloud/models/result_destination'
153
+
140
154
 
141
155
  # APIs
142
156
  require_relative 'aspose_cells_cloud/api/cells_api'
@@ -9,29 +9,94 @@ module AsposeCellsCloud
9
9
  end
10
10
 
11
11
  # Convert workbook from request content to some format.
12
- #
13
- # @param file
12
+ #
13
+ # @param file
14
14
  # @param [Hash] opts the optional parameters
15
+ # @option opts [String] :save_options Save options.
15
16
  # @option opts [String] :format The format to convert.
16
17
  # @option opts [String] :password The workbook password.
17
18
  # @option opts [String] :out_path Path to save result
18
19
  # @return [File]
19
20
  def put_convert_work_book(file, opts = {})
21
+ if Configuration.debugging
22
+ Configuration.logger.debug "Calling API: CellsApi#put_convert_work_book ..."
23
+ end
24
+
25
+ # verify the required parameter 'file' is set
26
+ fail "Missing the required parameter 'file' when calling put_convert_work_book" if file.nil?
27
+
28
+ # resource path
29
+ path = "/cells/convert".sub('{format}','json')
30
+
31
+ # query parameters
32
+ query_params = {}
33
+ query_params[:'format'] = opts[:'format'] if opts[:'format']
34
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
35
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
36
+
37
+ # header parameters
38
+ header_params = {}
39
+
40
+ # HTTP header 'Accept' (if needed)
41
+ if opts[:'out_path']
42
+ _header_accept = ['application/json']
43
+ else
44
+ _header_accept = ['multipart/form-data']
45
+ end
46
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
47
+
48
+ # HTTP header 'Content-Type'
49
+ _header_content_type = ['multipart/form-data']
50
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
51
+
52
+ # form parameters
53
+ form_params = {}
54
+ form_params["file"] = file
55
+ form_params["saveOptions"] = opts[:'save_options'] if opts[:'save_options']
56
+
57
+ # http body (model)
58
+ post_body = nil
59
+
60
+ auth_names = []
61
+ if opts[:'out_path']
62
+ result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
63
+ else
64
+ result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'File')
65
+ end
66
+
67
+ if Configuration.debugging
68
+ Configuration.logger.debug "API called: CellsApi#put_convert_work_book. Result: #{result.inspect}"
69
+ end
70
+ return result
71
+ end
72
+
73
+ # Import data to workbook.
74
+ #
75
+ # @param name The workbook name.
76
+ # @param import_option The import option.
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [File] :file
79
+ # @option opts [String] :storage The workbook storage.
80
+ # @option opts [String] :folder The workbook folder.
81
+ # @return [BaseResponse]
82
+ def post_import_data(name, import_option, opts = {})
20
83
  if Configuration.debugging
21
- Configuration.logger.debug "Calling API: CellsApi#put_convert_work_book ..."
84
+ Configuration.logger.debug "Calling API: CellsApi#post_import_data ..."
22
85
  end
86
+
87
+ # verify the required parameter 'name' is set
88
+ fail "Missing the required parameter 'name' when calling post_import_data" if name.nil?
23
89
 
24
- # verify the required parameter 'file' is set
25
- fail "Missing the required parameter 'file' when calling put_convert_work_book" if file.nil?
90
+ # verify the required parameter 'import_option' is set
91
+ fail "Missing the required parameter 'import_option' when calling post_import_data" if import_option.nil?
26
92
 
27
93
  # resource path
28
- path = "/cells/convert".sub('{format}','json')
94
+ path = "/cells/{name}/importdata".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
29
95
 
30
96
  # query parameters
31
97
  query_params = {}
32
- query_params[:'format'] = opts[:'format'] if opts[:'format']
33
- query_params[:'password'] = opts[:'password'] if opts[:'password']
34
- query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
98
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
99
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
35
100
 
36
101
  # header parameters
37
102
  header_params = {}
@@ -41,33 +106,77 @@ module AsposeCellsCloud
41
106
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
42
107
 
43
108
  # HTTP header 'Content-Type'
44
- _header_content_type = ['multipart/form-data']
109
+ _header_content_type = ['application/json']
45
110
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
46
111
 
47
112
  # form parameters
48
113
  form_params = {}
49
- form_params["file"] = file
114
+ form_params["file"] = opts[:'file'] if opts[:'file']
115
+
116
+ # http body (model)
117
+ post_body = @api_client.object_to_http_body(import_option)
118
+
119
+ auth_names = []
120
+ result = @api_client.call_api(:POST, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
121
+ if Configuration.debugging
122
+ Configuration.logger.debug "API called: CellsApi#post_import_data. Result: #{result.inspect}"
123
+ end
124
+ return result
125
+ end
126
+
127
+ #
128
+ #
129
+ # @param task_data
130
+ # @param files
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [BaseResponse]
133
+ def post_run_task(task_data, files, opts = {})
134
+ if Configuration.debugging
135
+ Configuration.logger.debug "Calling API: CellsApi#post_run_task ..."
136
+ end
137
+
138
+ # verify the required parameter 'task_data' is set
139
+ fail "Missing the required parameter 'task_data' when calling post_run_task" if task_data.nil?
140
+
141
+ # verify the required parameter 'files' is set
142
+ fail "Missing the required parameter 'files' when calling post_run_task" if files.nil?
143
+
144
+ # resource path
145
+ path = "/cells/task/runtask".sub('{format}','json')
146
+
147
+ # query parameters
148
+ query_params = {}
149
+
150
+ # header parameters
151
+ header_params = {}
152
+
153
+ # HTTP header 'Accept' (if needed)
154
+ _header_accept = ['multipart/form-data']
155
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
156
+
157
+ # HTTP header 'Content-Type'
158
+ _header_content_type = ['application/json']
159
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
160
+
161
+ # form parameters
162
+ form_params = {}
163
+ form_params["taskData"] = task_data
164
+ form_params["files"] = files
50
165
 
51
166
  # http body (model)
52
167
  post_body = nil
53
168
 
54
169
 
55
170
  auth_names = []
56
- result = @api_client.call_api(:PUT, path,
57
- :header_params => header_params,
58
- :query_params => query_params,
59
- :form_params => form_params,
60
- :body => post_body,
61
- :auth_names => auth_names,
62
- :return_type => 'File')
171
+ response = @api_client.call_api(:POST, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
63
172
  if Configuration.debugging
64
- Configuration.logger.debug "API called: CellsApi#put_convert_work_book. Result: #{result.inspect}"
173
+ Configuration.logger.debug "API called: CellsApi#post_run_task. Result: #{result.inspect}"
65
174
  end
66
- return result
175
+ result
67
176
  end
68
177
 
69
178
  # Convert Excel Workbook to Different File Formats.
70
- #
179
+ #
71
180
  # @param name The document name.
72
181
  # @param format Convert the document to this format.
73
182
  # @param [Hash] opts the optional parameters
@@ -249,7 +358,7 @@ module AsposeCellsCloud
249
358
  end
250
359
  return result
251
360
  end
252
-
361
+
253
362
  # Convert document and save result to storage.
254
363
  #
255
364
  # @param name The document name.
@@ -265,7 +374,7 @@ module AsposeCellsCloud
265
374
  if Configuration.debugging
266
375
  Configuration.logger.debug "Calling API: CellsApi#post_document_save_as ..."
267
376
  end
268
-
377
+
269
378
  # verify the required parameter 'name' is set
270
379
  fail "Missing the required parameter 'name' when calling post_document_save_as" if name.nil?
271
380
 
@@ -299,16 +408,10 @@ module AsposeCellsCloud
299
408
 
300
409
  # http body (model)
301
410
  post_body = @api_client.object_to_http_body(save_options)
302
-
411
+ puts "JSON: #{post_body}"
303
412
 
304
413
  auth_names = []
305
- result = @api_client.call_api(:POST, path,
306
- :header_params => header_params,
307
- :query_params => query_params,
308
- :form_params => form_params,
309
- :body => post_body,
310
- :auth_names => auth_names,
311
- :return_type => 'SaveResponse')
414
+ result = @api_client.call_api(:POST, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SaveResponse')
312
415
  if Configuration.debugging
313
416
  Configuration.logger.debug "API called: CellsApi#post_document_save_as. Result: #{result.inspect}"
314
417
  end
@@ -316,7 +419,7 @@ module AsposeCellsCloud
316
419
  end
317
420
 
318
421
  # Autofit workbook rows.
319
- #
422
+ #
320
423
  # @param name Document name.
321
424
  # @param auto_fitter_options Auto Fitter Options.
322
425
  # @param [Hash] opts the optional parameters
@@ -959,65 +1062,6 @@ module AsposeCellsCloud
959
1062
  return result
960
1063
  end
961
1064
 
962
- # Import data to workbook.
963
- #
964
- # @param name The workbook name.
965
- # @param import_option The import option.
966
- # @param [Hash] opts the optional parameters
967
- # @option opts [String] :storage The workbook storage.
968
- # @option opts [String] :folder The workbook folder.
969
- # @return [BaseResponse]
970
- def post_import_data(name, import_option, opts = {})
971
- if Configuration.debugging
972
- Configuration.logger.debug "Calling API: CellsApi#post_import_data ..."
973
- end
974
-
975
- # verify the required parameter 'name' is set
976
- fail "Missing the required parameter 'name' when calling post_import_data" if name.nil?
977
-
978
- # verify the required parameter 'import_option' is set
979
- fail "Missing the required parameter 'import_option' when calling post_import_data" if import_option.nil?
980
-
981
- # resource path
982
- path = "/cells/{name}/importdata".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
983
-
984
- # query parameters
985
- query_params = {}
986
- query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
987
- query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
988
-
989
- # header parameters
990
- header_params = {}
991
-
992
- # HTTP header 'Accept' (if needed)
993
- _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
994
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
995
-
996
- # HTTP header 'Content-Type'
997
- _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
998
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
999
-
1000
- # form parameters
1001
- form_params = {}
1002
-
1003
- # http body (model)
1004
- post_body = @api_client.object_to_http_body(import_option)
1005
-
1006
-
1007
- auth_names = []
1008
- result = @api_client.call_api(:POST, path,
1009
- :header_params => header_params,
1010
- :query_params => query_params,
1011
- :form_params => form_params,
1012
- :body => post_body,
1013
- :auth_names => auth_names,
1014
- :return_type => 'BaseResponse')
1015
- if Configuration.debugging
1016
- Configuration.logger.debug "API called: CellsApi#post_import_data. Result: #{result.inspect}"
1017
- end
1018
- return result
1019
- end
1020
-
1021
1065
  # Merge workbooks.
1022
1066
  #
1023
1067
  # @param name Workbook name.
@@ -4744,12 +4788,12 @@ module AsposeCellsCloud
4744
4788
  return result
4745
4789
  end
4746
4790
 
4747
- # Update cell's style.
4748
- #
4791
+ # Update cell's style.
4792
+ #
4749
4793
  # @param name Workbook name.
4750
4794
  # @param sheet_name Worksheet name.
4751
4795
  # @param cell_name The cell name.
4752
- # @param style {Style} with update style settings.
4796
+ # @param style Update style settings.
4753
4797
  # @param [Hash] opts the optional parameters
4754
4798
  # @option opts [String] :storage Workbook storage.
4755
4799
  # @option opts [String] :folder The workbook folder.
@@ -4773,46 +4817,107 @@ module AsposeCellsCloud
4773
4817
 
4774
4818
  # resource path
4775
4819
  path = "/cells/{name}/worksheets/{sheetName}/cells/{cellName}/style".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'cellName' + '}', cell_name.to_s)
4776
-
4820
+
4777
4821
  # query parameters
4778
4822
  query_params = {}
4779
4823
  query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4780
4824
  query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4781
-
4825
+
4782
4826
  # header parameters
4783
4827
  header_params = {}
4784
-
4828
+
4785
4829
  # HTTP header 'Accept' (if needed)
4786
- _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
4830
+ _header_accept = ['application/json']
4787
4831
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4788
-
4832
+
4789
4833
  # HTTP header 'Content-Type'
4790
- _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
4834
+ _header_content_type = ['application/json']
4791
4835
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4792
-
4836
+
4793
4837
  # form parameters
4794
4838
  form_params = {}
4795
-
4839
+
4796
4840
  # http body (model)
4797
4841
  post_body = @api_client.object_to_http_body(style)
4798
4842
 
4799
-
4843
+
4800
4844
  auth_names = []
4801
- result = @api_client.call_api(:POST, path,
4802
- :header_params => header_params,
4803
- :query_params => query_params,
4804
- :form_params => form_params,
4805
- :body => post_body,
4806
- :auth_names => auth_names,
4807
- :return_type => 'StyleResponse')
4845
+ result = @api_client.call_api(:POST, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StyleResponse')
4808
4846
  if Configuration.debugging
4809
4847
  Configuration.logger.debug "API called: CellsApi#post_update_worksheet_cell_style. Result: #{result.inspect}"
4810
4848
  end
4811
4849
  return result
4812
4850
  end
4813
4851
 
4852
+ # Copy worksheet
4853
+ #
4854
+ # @param name
4855
+ # @param sheet_name
4856
+ # @param source_sheet
4857
+ # @param options
4858
+ # @param [Hash] opts the optional parameters
4859
+ # @option opts [String] :source_workbook
4860
+ # @option opts [String] :source_folder
4861
+ # @option opts [String] :folder
4862
+ # @option opts [String] :storage
4863
+ # @return [BaseResponse]
4864
+ def post_copy_worksheet(name, sheet_name, source_sheet, options, opts = {})
4865
+ if Configuration.debugging
4866
+ Configuration.logger.debug "Calling API: CellsApi#post_copy_worksheet ..."
4867
+ end
4868
+
4869
+ # verify the required parameter 'name' is set
4870
+ fail "Missing the required parameter 'name' when calling post_copy_worksheet" if name.nil?
4871
+
4872
+ # verify the required parameter 'sheet_name' is set
4873
+ fail "Missing the required parameter 'sheet_name' when calling post_copy_worksheet" if sheet_name.nil?
4874
+
4875
+ # verify the required parameter 'source_sheet' is set
4876
+ fail "Missing the required parameter 'source_sheet' when calling post_copy_worksheet" if source_sheet.nil?
4877
+
4878
+ # verify the required parameter 'options' is set
4879
+ fail "Missing the required parameter 'options' when calling post_copy_worksheet" if options.nil?
4880
+
4881
+ # resource path
4882
+ path = "/cells/{name}/worksheets/{sheetName}/copy".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
4883
+
4884
+ # query parameters
4885
+ query_params = {}
4886
+ query_params[:'sourceSheet'] = source_sheet
4887
+ query_params[:'sourceWorkbook'] = opts[:'source_workbook'] if opts[:'source_workbook']
4888
+ query_params[:'sourceFolder'] = opts[:'source_folder'] if opts[:'source_folder']
4889
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4890
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4891
+
4892
+ # header parameters
4893
+ header_params = {}
4894
+
4895
+ # HTTP header 'Accept' (if needed)
4896
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
4897
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4898
+
4899
+ # HTTP header 'Content-Type'
4900
+ _header_content_type = ['application/json']
4901
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4902
+
4903
+ # form parameters
4904
+ form_params = {}
4905
+
4906
+ # http body (model)
4907
+ post_body = @api_client.object_to_http_body(options)
4908
+
4909
+
4910
+ auth_names = []
4911
+ result = @api_client.call_api(:POST, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
4912
+
4913
+ if Configuration.debugging
4914
+ Configuration.logger.debug "API called: CellsApi#post_copy_worksheet. Result: #{result.inspect}"
4915
+ end
4916
+ return result
4917
+ end
4918
+
4814
4919
  # Read cell data by cell's name.
4815
- #
4920
+ #
4816
4921
  # @param name Document name.
4817
4922
  # @param sheet_name Worksheet name.
4818
4923
  # @param cell_or_method_name The cell's or method name. (Method name like firstcell, endcell etc.)
@@ -6303,35 +6408,30 @@ module AsposeCellsCloud
6303
6408
  return result
6304
6409
  end
6305
6410
 
6306
- # Copy worksheet
6411
+ # Delete all comments from a worksheet.
6307
6412
  #
6308
6413
  # @param name
6309
6414
  # @param sheet_name
6310
- # @param source_sheet
6311
6415
  # @param [Hash] opts the optional parameters
6312
6416
  # @option opts [String] :folder
6313
- # @option opts [String] :storage
6417
+ # @option opts [String] :storage The document storage.
6314
6418
  # @return [BaseResponse]
6315
- def post_copy_worksheet(name, sheet_name, source_sheet, opts = {})
6419
+ def delete_work_sheet_comments(name, sheet_name, opts = {})
6316
6420
  if Configuration.debugging
6317
- Configuration.logger.debug "Calling API: CellsApi#post_copy_worksheet ..."
6421
+ Configuration.logger.debug "Calling API: CellsApi#delete_work_sheet_comments ..."
6318
6422
  end
6319
-
6423
+
6320
6424
  # verify the required parameter 'name' is set
6321
- fail "Missing the required parameter 'name' when calling post_copy_worksheet" if name.nil?
6425
+ fail "Missing the required parameter 'name' when calling delete_work_sheet_comments" if name.nil?
6322
6426
 
6323
6427
  # verify the required parameter 'sheet_name' is set
6324
- fail "Missing the required parameter 'sheet_name' when calling post_copy_worksheet" if sheet_name.nil?
6325
-
6326
- # verify the required parameter 'source_sheet' is set
6327
- fail "Missing the required parameter 'source_sheet' when calling post_copy_worksheet" if source_sheet.nil?
6428
+ fail "Missing the required parameter 'sheet_name' when calling delete_work_sheet_comments" if sheet_name.nil?
6328
6429
 
6329
6430
  # resource path
6330
- path = "/cells/{name}/worksheets/{sheetName}/copy".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
6431
+ path = "/cells/{name}/worksheets/{sheetName}/comments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
6331
6432
 
6332
6433
  # query parameters
6333
6434
  query_params = {}
6334
- query_params[:'sourceSheet'] = source_sheet
6335
6435
  query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
6336
6436
  query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
6337
6437
 
@@ -6339,11 +6439,11 @@ module AsposeCellsCloud
6339
6439
  header_params = {}
6340
6440
 
6341
6441
  # HTTP header 'Accept' (if needed)
6342
- _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
6442
+ _header_accept = ['application/json']
6343
6443
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
6344
6444
 
6345
6445
  # HTTP header 'Content-Type'
6346
- _header_content_type = []
6446
+ _header_content_type = ['application/json']
6347
6447
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
6348
6448
 
6349
6449
  # form parameters
@@ -6354,21 +6454,15 @@ module AsposeCellsCloud
6354
6454
 
6355
6455
 
6356
6456
  auth_names = []
6357
- result = @api_client.call_api(:POST, path,
6358
- :header_params => header_params,
6359
- :query_params => query_params,
6360
- :form_params => form_params,
6361
- :body => post_body,
6362
- :auth_names => auth_names,
6363
- :return_type => 'BaseResponse')
6457
+ result = @api_client.call_api(:DELETE, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
6364
6458
  if Configuration.debugging
6365
- Configuration.logger.debug "API called: CellsApi#post_copy_worksheet. Result: #{result.inspect}"
6459
+ Configuration.logger.debug "API called: CellsApi#delete_work_sheet_comments. Result: #{result.inspect}"
6366
6460
  end
6367
6461
  return result
6368
6462
  end
6369
6463
 
6370
6464
  # Search text.
6371
- #
6465
+ #
6372
6466
  # @param name Document name.
6373
6467
  # @param sheet_name The worksheet name.
6374
6468
  # @param text Text to search.