|
1 | 1 | =begin |
2 | 2 | -------------------------------------------------------------------------------------------------------------------- |
3 | | -Copyright (c) 2020 Aspose.Cells Cloud |
| 3 | +Copyright (c) 2021 Aspose.Cells Cloud |
4 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy |
5 | 5 | of this software and associated documentation files (the "Software"), to deal |
6 | 6 | in the Software without restriction, including without limitation the rights |
@@ -12158,6 +12158,89 @@ def cells_put_insert_worksheet_rows_with_http_info(name, sheet_name, startrow, o |
12158 | 12158 | return data, status_code, headers |
12159 | 12159 | end |
12160 | 12160 |
|
| 12161 | + # Delete range in the worksheet |
| 12162 | + # |
| 12163 | + # @param name workbook name |
| 12164 | + # @param sheet_name worksheet name |
| 12165 | + # @param range range |
| 12166 | + # @param shift Represent the shift options when deleting a range of cells. (Left,Up) |
| 12167 | + # @param [Hash] opts the optional parameters |
| 12168 | + # @option opts [String] :folder Workbook folder. |
| 12169 | + # @option opts [String] :storage_name storage name. |
| 12170 | + # @return [CellsCloudResponse] |
| 12171 | + def cells_ranges_delete_worksheet_cells_range(name, sheet_name, range, shift, opts = {}) |
| 12172 | + data, _status_code, _headers = cells_ranges_delete_worksheet_cells_range_with_http_info(name, sheet_name, range, shift, opts) |
| 12173 | + return data |
| 12174 | + end |
| 12175 | + |
| 12176 | + # Delete range in the worksheet |
| 12177 | + # |
| 12178 | + # @param name workbook name |
| 12179 | + # @param sheet_name worksheet name |
| 12180 | + # @param range range |
| 12181 | + # @param shift Represent the shift options when deleting a range of cells. (Left,Up) |
| 12182 | + # @param [Hash] opts the optional parameters |
| 12183 | + # @option opts [String] :folder Workbook folder. |
| 12184 | + # @option opts [String] :storage_name storage name. |
| 12185 | + # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers |
| 12186 | + def cells_ranges_delete_worksheet_cells_range_with_http_info(name, sheet_name, range, shift, opts = {}) |
| 12187 | + if @api_client.config.debugging |
| 12188 | + @api_client.config.logger.debug "Calling API: CellsApi.cells_ranges_delete_worksheet_cells_range ..." |
| 12189 | + end |
| 12190 | + @api_client.request_token_if_needed |
| 12191 | + # verify the required parameter 'name' is set |
| 12192 | + if @api_client.config.client_side_validation && name.nil? |
| 12193 | + fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_ranges_delete_worksheet_cells_range" |
| 12194 | + end |
| 12195 | + # verify the required parameter 'sheet_name' is set |
| 12196 | + if @api_client.config.client_side_validation && sheet_name.nil? |
| 12197 | + fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_ranges_delete_worksheet_cells_range" |
| 12198 | + end |
| 12199 | + # verify the required parameter 'range' is set |
| 12200 | + if @api_client.config.client_side_validation && range.nil? |
| 12201 | + fail ArgumentError, "Missing the required parameter 'range' when calling CellsApi.cells_ranges_delete_worksheet_cells_range" |
| 12202 | + end |
| 12203 | + # verify the required parameter 'shift' is set |
| 12204 | + if @api_client.config.client_side_validation && shift.nil? |
| 12205 | + fail ArgumentError, "Missing the required parameter 'shift' when calling CellsApi.cells_ranges_delete_worksheet_cells_range" |
| 12206 | + end |
| 12207 | + # resource path |
| 12208 | + local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s) |
| 12209 | + |
| 12210 | + # query parameters |
| 12211 | + query_params = {} |
| 12212 | + query_params[:'range'] = range |
| 12213 | + query_params[:'shift'] = shift |
| 12214 | + query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil? |
| 12215 | + query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil? |
| 12216 | + |
| 12217 | + # header parameters |
| 12218 | + header_params = {} |
| 12219 | + # HTTP header 'Accept' (if needed) |
| 12220 | + header_params['Accept'] = @api_client.select_header_accept(['application/json']) |
| 12221 | + # HTTP header 'Content-Type' |
| 12222 | + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) |
| 12223 | + |
| 12224 | + # form parameters |
| 12225 | + form_params = {} |
| 12226 | + |
| 12227 | + # http body (model) |
| 12228 | + post_body = nil |
| 12229 | + #auth_names = [] |
| 12230 | + auth_names = ['JWT'] |
| 12231 | + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, |
| 12232 | + :header_params => header_params, |
| 12233 | + :query_params => query_params, |
| 12234 | + :form_params => form_params, |
| 12235 | + :body => post_body, |
| 12236 | + :auth_names => auth_names, |
| 12237 | + :return_type => 'CellsCloudResponse') |
| 12238 | + if @api_client.config.debugging |
| 12239 | + @api_client.config.logger.debug "API called: CellsApi#cells_ranges_delete_worksheet_cells_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" |
| 12240 | + end |
| 12241 | + return data, status_code, headers |
| 12242 | + end |
| 12243 | + |
12161 | 12244 | # Get cells list in a range by range name or row column indexes |
12162 | 12245 | # |
12163 | 12246 | # @param name workbook name |
@@ -12922,6 +13005,89 @@ def cells_ranges_post_worksheet_cells_ranges_with_http_info(name, sheet_name, op |
12922 | 13005 | return data, status_code, headers |
12923 | 13006 | end |
12924 | 13007 |
|
| 13008 | + # Insert range in the worksheet |
| 13009 | + # |
| 13010 | + # @param name workbook name |
| 13011 | + # @param sheet_name worksheet name |
| 13012 | + # @param range range |
| 13013 | + # @param shift Represent the shift options when deleting a range of cells. (Right,Down) |
| 13014 | + # @param [Hash] opts the optional parameters |
| 13015 | + # @option opts [String] :folder Workbook folder. |
| 13016 | + # @option opts [String] :storage_name storage name. |
| 13017 | + # @return [CellsCloudResponse] |
| 13018 | + def cells_ranges_put_worksheet_cells_range(name, sheet_name, range, shift, opts = {}) |
| 13019 | + data, _status_code, _headers = cells_ranges_put_worksheet_cells_range_with_http_info(name, sheet_name, range, shift, opts) |
| 13020 | + return data |
| 13021 | + end |
| 13022 | + |
| 13023 | + # Insert range in the worksheet |
| 13024 | + # |
| 13025 | + # @param name workbook name |
| 13026 | + # @param sheet_name worksheet name |
| 13027 | + # @param range range |
| 13028 | + # @param shift Represent the shift options when deleting a range of cells. (Right,Down) |
| 13029 | + # @param [Hash] opts the optional parameters |
| 13030 | + # @option opts [String] :folder Workbook folder. |
| 13031 | + # @option opts [String] :storage_name storage name. |
| 13032 | + # @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers |
| 13033 | + def cells_ranges_put_worksheet_cells_range_with_http_info(name, sheet_name, range, shift, opts = {}) |
| 13034 | + if @api_client.config.debugging |
| 13035 | + @api_client.config.logger.debug "Calling API: CellsApi.cells_ranges_put_worksheet_cells_range ..." |
| 13036 | + end |
| 13037 | + @api_client.request_token_if_needed |
| 13038 | + # verify the required parameter 'name' is set |
| 13039 | + if @api_client.config.client_side_validation && name.nil? |
| 13040 | + fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_ranges_put_worksheet_cells_range" |
| 13041 | + end |
| 13042 | + # verify the required parameter 'sheet_name' is set |
| 13043 | + if @api_client.config.client_side_validation && sheet_name.nil? |
| 13044 | + fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_ranges_put_worksheet_cells_range" |
| 13045 | + end |
| 13046 | + # verify the required parameter 'range' is set |
| 13047 | + if @api_client.config.client_side_validation && range.nil? |
| 13048 | + fail ArgumentError, "Missing the required parameter 'range' when calling CellsApi.cells_ranges_put_worksheet_cells_range" |
| 13049 | + end |
| 13050 | + # verify the required parameter 'shift' is set |
| 13051 | + if @api_client.config.client_side_validation && shift.nil? |
| 13052 | + fail ArgumentError, "Missing the required parameter 'shift' when calling CellsApi.cells_ranges_put_worksheet_cells_range" |
| 13053 | + end |
| 13054 | + # resource path |
| 13055 | + local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s) |
| 13056 | + |
| 13057 | + # query parameters |
| 13058 | + query_params = {} |
| 13059 | + query_params[:'range'] = range |
| 13060 | + query_params[:'shift'] = shift |
| 13061 | + query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil? |
| 13062 | + query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil? |
| 13063 | + |
| 13064 | + # header parameters |
| 13065 | + header_params = {} |
| 13066 | + # HTTP header 'Accept' (if needed) |
| 13067 | + header_params['Accept'] = @api_client.select_header_accept(['application/json']) |
| 13068 | + # HTTP header 'Content-Type' |
| 13069 | + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) |
| 13070 | + |
| 13071 | + # form parameters |
| 13072 | + form_params = {} |
| 13073 | + |
| 13074 | + # http body (model) |
| 13075 | + post_body = nil |
| 13076 | + #auth_names = [] |
| 13077 | + auth_names = ['JWT'] |
| 13078 | + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, |
| 13079 | + :header_params => header_params, |
| 13080 | + :query_params => query_params, |
| 13081 | + :form_params => form_params, |
| 13082 | + :body => post_body, |
| 13083 | + :auth_names => auth_names, |
| 13084 | + :return_type => 'CellsCloudResponse') |
| 13085 | + if @api_client.config.debugging |
| 13086 | + @api_client.config.logger.debug "API called: CellsApi#cells_ranges_put_worksheet_cells_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" |
| 13087 | + end |
| 13088 | + return data, status_code, headers |
| 13089 | + end |
| 13090 | + |
12925 | 13091 | # Convert document and save result to storage. |
12926 | 13092 | # |
12927 | 13093 | # @param name The document name. |
|
0 commit comments