@@ -10885,6 +10885,90 @@ def load_web_document(request)
1088510885 [data, status_code, headers]
1088610886 end
1088710887
10888+ # Merge the section with the next one.
10889+ # @param request MergeWithNextRequest
10890+ # @return [nil]
10891+ def merge_with_next(request)
10892+ begin
10893+ data, _status_code, _headers = merge_with_next_with_http_info(request)
10894+ rescue ApiError => e
10895+ if e.code == 401
10896+ request_token
10897+ data, _status_code, _headers = merge_with_next_with_http_info(request)
10898+ else
10899+ raise
10900+ end
10901+ end
10902+ nil
10903+ end
10904+
10905+ # Merge the section with the next one.
10906+ # @param request MergeWithNextRequest
10907+ # @return [Array<(nil, Fixnum, Hash)>]
10908+ # nil, response status code and response headers
10909+ private def merge_with_next_with_http_info(request)
10910+ raise ArgumentError, 'Incorrect request type' unless request.is_a? MergeWithNextRequest
10911+
10912+ @api_client.config.logger.debug 'Calling API: WordsApi.merge_with_next ...' if @api_client.config.debugging
10913+ request_data = request.create_http_request(@api_client)
10914+
10915+ data, status_code, headers = @api_client.call_api(
10916+ request_data[:'method'],
10917+ request_data[:'path'],
10918+ header_params: request_data[:'header_params'],
10919+ query_params: request_data[:'query_params'],
10920+ body: request_data[:'body'])
10921+ if @api_client.config.debugging
10922+ @api_client.config.logger.debug "API called:
10923+ WordsApi#merge_with_next\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10924+ end
10925+
10926+ [data, status_code, headers]
10927+ end
10928+
10929+ # Merge the section with the next one.
10930+ # @param request MergeWithNextOnlineRequest
10931+ # @return [FILES_COLLECTION]
10932+ def merge_with_next_online(request)
10933+ begin
10934+ data, _status_code, _headers = merge_with_next_online_with_http_info(request)
10935+ rescue ApiError => e
10936+ if e.code == 401
10937+ request_token
10938+ data, _status_code, _headers = merge_with_next_online_with_http_info(request)
10939+ else
10940+ raise
10941+ end
10942+ end
10943+ data
10944+ end
10945+
10946+ # Merge the section with the next one.
10947+ # @param request MergeWithNextOnlineRequest
10948+ # @return [Array<(FILES_COLLECTION, Fixnum, Hash)>]
10949+ # FILES_COLLECTION, response status code and response headers
10950+ private def merge_with_next_online_with_http_info(request)
10951+ raise ArgumentError, 'Incorrect request type' unless request.is_a? MergeWithNextOnlineRequest
10952+
10953+ @api_client.config.logger.debug 'Calling API: WordsApi.merge_with_next_online ...' if @api_client.config.debugging
10954+ request_data = request.create_http_request(@api_client)
10955+
10956+ data, status_code, headers = @api_client.call_api(
10957+ request_data[:'method'],
10958+ request_data[:'path'],
10959+ header_params: request_data[:'header_params'],
10960+ query_params: request_data[:'query_params'],
10961+ body: request_data[:'body'],
10962+ return_type: 'FILES_COLLECTION')
10963+ if @api_client.config.debugging
10964+ @api_client.config.logger.debug "API called:
10965+ WordsApi#merge_with_next_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10966+ end
10967+
10968+ # FILES_COLLECTION #
10969+ [data, status_code, headers]
10970+ end
10971+
1088810972 # Move file.
1088910973 # @param request MoveFileRequest
1089010974 # @return [nil]
0 commit comments