aspose_words_cloud 24.5.0 → 24.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud/api/words_api.rb +84 -0
- data/lib/aspose_words_cloud/models/azw3_save_options_data.rb +963 -0
- data/lib/aspose_words_cloud/models/document.rb +2 -2
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/translate_node_id_online_request.rb +183 -0
- data/lib/aspose_words_cloud/models/requests/translate_node_id_request.rb +182 -0
- data/lib/aspose_words_cloud/models/translate_node_id_response.rb +215 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c095972424b30a5cecb7e03b7637fbdbcb818ba259ab2aacd91ee7036e6d5b3
|
4
|
+
data.tar.gz: 61bbb19e0e2941c7f68bda43f49c51fd98fd95a35035896a683fbd554b5b5819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803caa8c75a0102de08e575078e1b7cb43fa3ebb36e6d9ed12bf3684d6a0d2246d0cb8c82103575a61356de9f9e1a74ee0e7863dd3f8766cf4b79de000ee7cf3
|
7
|
+
data.tar.gz: aceb0b5817079ff424380535e07c79d853dd00e580d060ae8fe709e2e635b0dc0ebbc18bf773cc72c213fc14c884d414fb75968a6706b667f33b18c68755bf42
|
@@ -12474,6 +12474,90 @@ module AsposeWordsCloud
|
|
12474
12474
|
[mp_data, status_code, headers]
|
12475
12475
|
end
|
12476
12476
|
|
12477
|
+
# Translate a node id to a node path.
|
12478
|
+
# @param request TranslateNodeIdRequest
|
12479
|
+
# @return [TranslateNodeIdResponse]
|
12480
|
+
def translate_node_id(request)
|
12481
|
+
begin
|
12482
|
+
data, _status_code, _headers = translate_node_id_with_http_info(request)
|
12483
|
+
rescue ApiError => e
|
12484
|
+
if e.code == 401
|
12485
|
+
request_token
|
12486
|
+
data, _status_code, _headers = translate_node_id_with_http_info(request)
|
12487
|
+
else
|
12488
|
+
raise
|
12489
|
+
end
|
12490
|
+
end
|
12491
|
+
data
|
12492
|
+
end
|
12493
|
+
|
12494
|
+
# Translate a node id to a node path.
|
12495
|
+
# @param request TranslateNodeIdRequest
|
12496
|
+
# @return [Array<(TranslateNodeIdResponse, Fixnum, Hash)>]
|
12497
|
+
# TranslateNodeIdResponse, response status code and response headers
|
12498
|
+
private def translate_node_id_with_http_info(request)
|
12499
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? TranslateNodeIdRequest
|
12500
|
+
|
12501
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.translate_node_id ...' if @api_client.config.debugging
|
12502
|
+
request_data = request.create_http_request(@api_client)
|
12503
|
+
|
12504
|
+
data, status_code, headers = @api_client.call_api(
|
12505
|
+
request_data[:'method'],
|
12506
|
+
request_data[:'path'],
|
12507
|
+
header_params: request_data[:'header_params'],
|
12508
|
+
query_params: request_data[:'query_params'],
|
12509
|
+
body: request_data[:'body'],
|
12510
|
+
return_type: 'TranslateNodeIdResponse')
|
12511
|
+
if @api_client.config.debugging
|
12512
|
+
@api_client.config.logger.debug "API called:
|
12513
|
+
WordsApi#translate_node_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12514
|
+
end
|
12515
|
+
|
12516
|
+
[data, status_code, headers]
|
12517
|
+
end
|
12518
|
+
|
12519
|
+
# Translate a node id to a node path.
|
12520
|
+
# @param request TranslateNodeIdOnlineRequest
|
12521
|
+
# @return [TranslateNodeIdResponse]
|
12522
|
+
def translate_node_id_online(request)
|
12523
|
+
begin
|
12524
|
+
data, _status_code, _headers = translate_node_id_online_with_http_info(request)
|
12525
|
+
rescue ApiError => e
|
12526
|
+
if e.code == 401
|
12527
|
+
request_token
|
12528
|
+
data, _status_code, _headers = translate_node_id_online_with_http_info(request)
|
12529
|
+
else
|
12530
|
+
raise
|
12531
|
+
end
|
12532
|
+
end
|
12533
|
+
data
|
12534
|
+
end
|
12535
|
+
|
12536
|
+
# Translate a node id to a node path.
|
12537
|
+
# @param request TranslateNodeIdOnlineRequest
|
12538
|
+
# @return [Array<(TranslateNodeIdResponse, Fixnum, Hash)>]
|
12539
|
+
# TranslateNodeIdResponse, response status code and response headers
|
12540
|
+
private def translate_node_id_online_with_http_info(request)
|
12541
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? TranslateNodeIdOnlineRequest
|
12542
|
+
|
12543
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.translate_node_id_online ...' if @api_client.config.debugging
|
12544
|
+
request_data = request.create_http_request(@api_client)
|
12545
|
+
|
12546
|
+
data, status_code, headers = @api_client.call_api(
|
12547
|
+
request_data[:'method'],
|
12548
|
+
request_data[:'path'],
|
12549
|
+
header_params: request_data[:'header_params'],
|
12550
|
+
query_params: request_data[:'query_params'],
|
12551
|
+
body: request_data[:'body'],
|
12552
|
+
return_type: 'TranslateNodeIdResponse')
|
12553
|
+
if @api_client.config.debugging
|
12554
|
+
@api_client.config.logger.debug "API called:
|
12555
|
+
WordsApi#translate_node_id_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12556
|
+
end
|
12557
|
+
|
12558
|
+
[data, status_code, headers]
|
12559
|
+
end
|
12560
|
+
|
12477
12561
|
# Removes protection from the document.
|
12478
12562
|
# @param request UnprotectDocumentRequest
|
12479
12563
|
# @return [ProtectionDataResponse]
|