aspose_words_cloud 23.1.0 → 23.2.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 +428 -0
- data/lib/aspose_words_cloud/models/requests/delete_structured_document_tag_online_request.rb +211 -0
- data/lib/aspose_words_cloud/models/requests/delete_structured_document_tag_request.rb +210 -0
- data/lib/aspose_words_cloud/models/requests/get_structured_document_tag_online_request.rb +190 -0
- data/lib/aspose_words_cloud/models/requests/get_structured_document_tag_request.rb +189 -0
- data/lib/aspose_words_cloud/models/requests/get_structured_document_tags_online_request.rb +179 -0
- data/lib/aspose_words_cloud/models/requests/get_structured_document_tags_request.rb +178 -0
- data/lib/aspose_words_cloud/models/requests/insert_structured_document_tag_online_request.rb +223 -0
- data/lib/aspose_words_cloud/models/requests/insert_structured_document_tag_request.rb +225 -0
- data/lib/aspose_words_cloud/models/requests/update_structured_document_tag_online_request.rb +234 -0
- data/lib/aspose_words_cloud/models/requests/update_structured_document_tag_request.rb +236 -0
- data/lib/aspose_words_cloud/models/responses/insert_structured_document_tag_online_response.rb +46 -0
- data/lib/aspose_words_cloud/models/responses/update_structured_document_tag_online_response.rb +46 -0
- data/lib/aspose_words_cloud/models/structured_document_tag.rb +564 -0
- data/lib/aspose_words_cloud/models/structured_document_tag_collection.rb +216 -0
- data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +564 -0
- data/lib/aspose_words_cloud/models/structured_document_tag_list_item.rb +214 -0
- data/lib/aspose_words_cloud/models/structured_document_tag_response.rb +214 -0
- data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +564 -0
- data/lib/aspose_words_cloud/models/structured_document_tags_response.rb +214 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +17 -0
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21c2b575c7d2ad2c8b72fde5c54869f33fa949c01e5c2e3f0f8a20bfc0c5de75
|
4
|
+
data.tar.gz: 94b428e7e8e80dd8d10eab523947f638b5b46fc36671232404bb1dbc20d54f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc1d64f608adcce21eca489ae19422a10de97cbda56f6e9f0451fc5ee34d6e9ac43160bece64047d6f43bb2ea7542fb283ef88bbebc8a55e063b211405c401a
|
7
|
+
data.tar.gz: 20c1cf596db444692ec7171c5aa8d19d175e65c0f1a5950c3420b7ede00fe5dbe9e95521b530f200ad6e13ba627268e9a888a6cf84f6b133d609e6f5fde87389
|
@@ -3257,6 +3257,90 @@ module AsposeWordsCloud
|
|
3257
3257
|
[data, status_code, headers]
|
3258
3258
|
end
|
3259
3259
|
|
3260
|
+
# Removes a StructuredDocumentTag (SDT) from the document node.
|
3261
|
+
# @param request DeleteStructuredDocumentTagRequest
|
3262
|
+
# @return [nil]
|
3263
|
+
def delete_structured_document_tag(request)
|
3264
|
+
begin
|
3265
|
+
data, _status_code, _headers = delete_structured_document_tag_with_http_info(request)
|
3266
|
+
rescue ApiError => e
|
3267
|
+
if e.code == 401
|
3268
|
+
request_token
|
3269
|
+
data, _status_code, _headers = delete_structured_document_tag_with_http_info(request)
|
3270
|
+
else
|
3271
|
+
raise
|
3272
|
+
end
|
3273
|
+
end
|
3274
|
+
nil
|
3275
|
+
end
|
3276
|
+
|
3277
|
+
# Removes a StructuredDocumentTag (SDT) from the document node.
|
3278
|
+
# @param request DeleteStructuredDocumentTagRequest
|
3279
|
+
# @return [Array<(nil, Fixnum, Hash)>]
|
3280
|
+
# nil, response status code and response headers
|
3281
|
+
private def delete_structured_document_tag_with_http_info(request)
|
3282
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? DeleteStructuredDocumentTagRequest
|
3283
|
+
|
3284
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.delete_structured_document_tag ...' if @api_client.config.debugging
|
3285
|
+
request_data = request.create_http_request(@api_client)
|
3286
|
+
|
3287
|
+
data, status_code, headers = @api_client.call_api(
|
3288
|
+
request_data[:'method'],
|
3289
|
+
request_data[:'path'],
|
3290
|
+
header_params: request_data[:'header_params'],
|
3291
|
+
query_params: request_data[:'query_params'],
|
3292
|
+
body: request_data[:'body'])
|
3293
|
+
if @api_client.config.debugging
|
3294
|
+
@api_client.config.logger.debug "API called:
|
3295
|
+
WordsApi#delete_structured_document_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3296
|
+
end
|
3297
|
+
|
3298
|
+
[data, status_code, headers]
|
3299
|
+
end
|
3300
|
+
|
3301
|
+
# Removes a StructuredDocumentTag (SDT) from the document node.
|
3302
|
+
# @param request DeleteStructuredDocumentTagOnlineRequest
|
3303
|
+
# @return [FILES_COLLECTION]
|
3304
|
+
def delete_structured_document_tag_online(request)
|
3305
|
+
begin
|
3306
|
+
data, _status_code, _headers = delete_structured_document_tag_online_with_http_info(request)
|
3307
|
+
rescue ApiError => e
|
3308
|
+
if e.code == 401
|
3309
|
+
request_token
|
3310
|
+
data, _status_code, _headers = delete_structured_document_tag_online_with_http_info(request)
|
3311
|
+
else
|
3312
|
+
raise
|
3313
|
+
end
|
3314
|
+
end
|
3315
|
+
data
|
3316
|
+
end
|
3317
|
+
|
3318
|
+
# Removes a StructuredDocumentTag (SDT) from the document node.
|
3319
|
+
# @param request DeleteStructuredDocumentTagOnlineRequest
|
3320
|
+
# @return [Array<(FILES_COLLECTION, Fixnum, Hash)>]
|
3321
|
+
# FILES_COLLECTION, response status code and response headers
|
3322
|
+
private def delete_structured_document_tag_online_with_http_info(request)
|
3323
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? DeleteStructuredDocumentTagOnlineRequest
|
3324
|
+
|
3325
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.delete_structured_document_tag_online ...' if @api_client.config.debugging
|
3326
|
+
request_data = request.create_http_request(@api_client)
|
3327
|
+
|
3328
|
+
data, status_code, headers = @api_client.call_api(
|
3329
|
+
request_data[:'method'],
|
3330
|
+
request_data[:'path'],
|
3331
|
+
header_params: request_data[:'header_params'],
|
3332
|
+
query_params: request_data[:'query_params'],
|
3333
|
+
body: request_data[:'body'],
|
3334
|
+
return_type: 'FILES_COLLECTION')
|
3335
|
+
if @api_client.config.debugging
|
3336
|
+
@api_client.config.logger.debug "API called:
|
3337
|
+
WordsApi#delete_structured_document_tag_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3338
|
+
end
|
3339
|
+
|
3340
|
+
# FILES_COLLECTION #
|
3341
|
+
[data, status_code, headers]
|
3342
|
+
end
|
3343
|
+
|
3260
3344
|
# Removes a table from the document node.
|
3261
3345
|
# @param request DeleteTableRequest
|
3262
3346
|
# @return [nil]
|
@@ -7671,6 +7755,174 @@ module AsposeWordsCloud
|
|
7671
7755
|
[data, status_code, headers]
|
7672
7756
|
end
|
7673
7757
|
|
7758
|
+
# Reads a StructuredDocumentTag (SDT) from the document node.
|
7759
|
+
# @param request GetStructuredDocumentTagRequest
|
7760
|
+
# @return [StructuredDocumentTagResponse]
|
7761
|
+
def get_structured_document_tag(request)
|
7762
|
+
begin
|
7763
|
+
data, _status_code, _headers = get_structured_document_tag_with_http_info(request)
|
7764
|
+
rescue ApiError => e
|
7765
|
+
if e.code == 401
|
7766
|
+
request_token
|
7767
|
+
data, _status_code, _headers = get_structured_document_tag_with_http_info(request)
|
7768
|
+
else
|
7769
|
+
raise
|
7770
|
+
end
|
7771
|
+
end
|
7772
|
+
data
|
7773
|
+
end
|
7774
|
+
|
7775
|
+
# Reads a StructuredDocumentTag (SDT) from the document node.
|
7776
|
+
# @param request GetStructuredDocumentTagRequest
|
7777
|
+
# @return [Array<(StructuredDocumentTagResponse, Fixnum, Hash)>]
|
7778
|
+
# StructuredDocumentTagResponse, response status code and response headers
|
7779
|
+
private def get_structured_document_tag_with_http_info(request)
|
7780
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetStructuredDocumentTagRequest
|
7781
|
+
|
7782
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_structured_document_tag ...' if @api_client.config.debugging
|
7783
|
+
request_data = request.create_http_request(@api_client)
|
7784
|
+
|
7785
|
+
data, status_code, headers = @api_client.call_api(
|
7786
|
+
request_data[:'method'],
|
7787
|
+
request_data[:'path'],
|
7788
|
+
header_params: request_data[:'header_params'],
|
7789
|
+
query_params: request_data[:'query_params'],
|
7790
|
+
body: request_data[:'body'],
|
7791
|
+
return_type: 'StructuredDocumentTagResponse')
|
7792
|
+
if @api_client.config.debugging
|
7793
|
+
@api_client.config.logger.debug "API called:
|
7794
|
+
WordsApi#get_structured_document_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7795
|
+
end
|
7796
|
+
|
7797
|
+
[data, status_code, headers]
|
7798
|
+
end
|
7799
|
+
|
7800
|
+
# Reads a StructuredDocumentTag (SDT) from the document node.
|
7801
|
+
# @param request GetStructuredDocumentTagOnlineRequest
|
7802
|
+
# @return [StructuredDocumentTagResponse]
|
7803
|
+
def get_structured_document_tag_online(request)
|
7804
|
+
begin
|
7805
|
+
data, _status_code, _headers = get_structured_document_tag_online_with_http_info(request)
|
7806
|
+
rescue ApiError => e
|
7807
|
+
if e.code == 401
|
7808
|
+
request_token
|
7809
|
+
data, _status_code, _headers = get_structured_document_tag_online_with_http_info(request)
|
7810
|
+
else
|
7811
|
+
raise
|
7812
|
+
end
|
7813
|
+
end
|
7814
|
+
data
|
7815
|
+
end
|
7816
|
+
|
7817
|
+
# Reads a StructuredDocumentTag (SDT) from the document node.
|
7818
|
+
# @param request GetStructuredDocumentTagOnlineRequest
|
7819
|
+
# @return [Array<(StructuredDocumentTagResponse, Fixnum, Hash)>]
|
7820
|
+
# StructuredDocumentTagResponse, response status code and response headers
|
7821
|
+
private def get_structured_document_tag_online_with_http_info(request)
|
7822
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetStructuredDocumentTagOnlineRequest
|
7823
|
+
|
7824
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_structured_document_tag_online ...' if @api_client.config.debugging
|
7825
|
+
request_data = request.create_http_request(@api_client)
|
7826
|
+
|
7827
|
+
data, status_code, headers = @api_client.call_api(
|
7828
|
+
request_data[:'method'],
|
7829
|
+
request_data[:'path'],
|
7830
|
+
header_params: request_data[:'header_params'],
|
7831
|
+
query_params: request_data[:'query_params'],
|
7832
|
+
body: request_data[:'body'],
|
7833
|
+
return_type: 'StructuredDocumentTagResponse')
|
7834
|
+
if @api_client.config.debugging
|
7835
|
+
@api_client.config.logger.debug "API called:
|
7836
|
+
WordsApi#get_structured_document_tag_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7837
|
+
end
|
7838
|
+
|
7839
|
+
[data, status_code, headers]
|
7840
|
+
end
|
7841
|
+
|
7842
|
+
# Reads StructuredDocumentTags (SDT) from the document node.
|
7843
|
+
# @param request GetStructuredDocumentTagsRequest
|
7844
|
+
# @return [StructuredDocumentTagsResponse]
|
7845
|
+
def get_structured_document_tags(request)
|
7846
|
+
begin
|
7847
|
+
data, _status_code, _headers = get_structured_document_tags_with_http_info(request)
|
7848
|
+
rescue ApiError => e
|
7849
|
+
if e.code == 401
|
7850
|
+
request_token
|
7851
|
+
data, _status_code, _headers = get_structured_document_tags_with_http_info(request)
|
7852
|
+
else
|
7853
|
+
raise
|
7854
|
+
end
|
7855
|
+
end
|
7856
|
+
data
|
7857
|
+
end
|
7858
|
+
|
7859
|
+
# Reads StructuredDocumentTags (SDT) from the document node.
|
7860
|
+
# @param request GetStructuredDocumentTagsRequest
|
7861
|
+
# @return [Array<(StructuredDocumentTagsResponse, Fixnum, Hash)>]
|
7862
|
+
# StructuredDocumentTagsResponse, response status code and response headers
|
7863
|
+
private def get_structured_document_tags_with_http_info(request)
|
7864
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetStructuredDocumentTagsRequest
|
7865
|
+
|
7866
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_structured_document_tags ...' if @api_client.config.debugging
|
7867
|
+
request_data = request.create_http_request(@api_client)
|
7868
|
+
|
7869
|
+
data, status_code, headers = @api_client.call_api(
|
7870
|
+
request_data[:'method'],
|
7871
|
+
request_data[:'path'],
|
7872
|
+
header_params: request_data[:'header_params'],
|
7873
|
+
query_params: request_data[:'query_params'],
|
7874
|
+
body: request_data[:'body'],
|
7875
|
+
return_type: 'StructuredDocumentTagsResponse')
|
7876
|
+
if @api_client.config.debugging
|
7877
|
+
@api_client.config.logger.debug "API called:
|
7878
|
+
WordsApi#get_structured_document_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7879
|
+
end
|
7880
|
+
|
7881
|
+
[data, status_code, headers]
|
7882
|
+
end
|
7883
|
+
|
7884
|
+
# Reads StructuredDocumentTags (SDT) from the document node.
|
7885
|
+
# @param request GetStructuredDocumentTagsOnlineRequest
|
7886
|
+
# @return [StructuredDocumentTagsResponse]
|
7887
|
+
def get_structured_document_tags_online(request)
|
7888
|
+
begin
|
7889
|
+
data, _status_code, _headers = get_structured_document_tags_online_with_http_info(request)
|
7890
|
+
rescue ApiError => e
|
7891
|
+
if e.code == 401
|
7892
|
+
request_token
|
7893
|
+
data, _status_code, _headers = get_structured_document_tags_online_with_http_info(request)
|
7894
|
+
else
|
7895
|
+
raise
|
7896
|
+
end
|
7897
|
+
end
|
7898
|
+
data
|
7899
|
+
end
|
7900
|
+
|
7901
|
+
# Reads StructuredDocumentTags (SDT) from the document node.
|
7902
|
+
# @param request GetStructuredDocumentTagsOnlineRequest
|
7903
|
+
# @return [Array<(StructuredDocumentTagsResponse, Fixnum, Hash)>]
|
7904
|
+
# StructuredDocumentTagsResponse, response status code and response headers
|
7905
|
+
private def get_structured_document_tags_online_with_http_info(request)
|
7906
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetStructuredDocumentTagsOnlineRequest
|
7907
|
+
|
7908
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_structured_document_tags_online ...' if @api_client.config.debugging
|
7909
|
+
request_data = request.create_http_request(@api_client)
|
7910
|
+
|
7911
|
+
data, status_code, headers = @api_client.call_api(
|
7912
|
+
request_data[:'method'],
|
7913
|
+
request_data[:'path'],
|
7914
|
+
header_params: request_data[:'header_params'],
|
7915
|
+
query_params: request_data[:'query_params'],
|
7916
|
+
body: request_data[:'body'],
|
7917
|
+
return_type: 'StructuredDocumentTagsResponse')
|
7918
|
+
if @api_client.config.debugging
|
7919
|
+
@api_client.config.logger.debug "API called:
|
7920
|
+
WordsApi#get_structured_document_tags_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7921
|
+
end
|
7922
|
+
|
7923
|
+
[data, status_code, headers]
|
7924
|
+
end
|
7925
|
+
|
7674
7926
|
# Reads a style from the document.
|
7675
7927
|
# @param request GetStyleRequest
|
7676
7928
|
# @return [StyleResponse]
|
@@ -9655,6 +9907,94 @@ module AsposeWordsCloud
|
|
9655
9907
|
[mp_data, status_code, headers]
|
9656
9908
|
end
|
9657
9909
|
|
9910
|
+
# Inserts a new StructuredDocumentTag (SDT) to the document node.
|
9911
|
+
# @param request InsertStructuredDocumentTagRequest
|
9912
|
+
# @return [StructuredDocumentTagResponse]
|
9913
|
+
def insert_structured_document_tag(request)
|
9914
|
+
begin
|
9915
|
+
data, _status_code, _headers = insert_structured_document_tag_with_http_info(request)
|
9916
|
+
rescue ApiError => e
|
9917
|
+
if e.code == 401
|
9918
|
+
request_token
|
9919
|
+
data, _status_code, _headers = insert_structured_document_tag_with_http_info(request)
|
9920
|
+
else
|
9921
|
+
raise
|
9922
|
+
end
|
9923
|
+
end
|
9924
|
+
data
|
9925
|
+
end
|
9926
|
+
|
9927
|
+
# Inserts a new StructuredDocumentTag (SDT) to the document node.
|
9928
|
+
# @param request InsertStructuredDocumentTagRequest
|
9929
|
+
# @return [Array<(StructuredDocumentTagResponse, Fixnum, Hash)>]
|
9930
|
+
# StructuredDocumentTagResponse, response status code and response headers
|
9931
|
+
private def insert_structured_document_tag_with_http_info(request)
|
9932
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? InsertStructuredDocumentTagRequest
|
9933
|
+
|
9934
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.insert_structured_document_tag ...' if @api_client.config.debugging
|
9935
|
+
request_data = request.create_http_request(@api_client)
|
9936
|
+
|
9937
|
+
data, status_code, headers = @api_client.call_api(
|
9938
|
+
request_data[:'method'],
|
9939
|
+
request_data[:'path'],
|
9940
|
+
header_params: request_data[:'header_params'],
|
9941
|
+
query_params: request_data[:'query_params'],
|
9942
|
+
body: request_data[:'body'],
|
9943
|
+
return_type: 'StructuredDocumentTagResponse')
|
9944
|
+
if @api_client.config.debugging
|
9945
|
+
@api_client.config.logger.debug "API called:
|
9946
|
+
WordsApi#insert_structured_document_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9947
|
+
end
|
9948
|
+
|
9949
|
+
[data, status_code, headers]
|
9950
|
+
end
|
9951
|
+
|
9952
|
+
# Inserts a new StructuredDocumentTag (SDT) to the document node.
|
9953
|
+
# @param request InsertStructuredDocumentTagOnlineRequest
|
9954
|
+
# @return [InsertStructuredDocumentTagOnlineResponse]
|
9955
|
+
def insert_structured_document_tag_online(request)
|
9956
|
+
begin
|
9957
|
+
data, _status_code, _headers = insert_structured_document_tag_online_with_http_info(request)
|
9958
|
+
rescue ApiError => e
|
9959
|
+
if e.code == 401
|
9960
|
+
request_token
|
9961
|
+
data, _status_code, _headers = insert_structured_document_tag_online_with_http_info(request)
|
9962
|
+
else
|
9963
|
+
raise
|
9964
|
+
end
|
9965
|
+
end
|
9966
|
+
data
|
9967
|
+
end
|
9968
|
+
|
9969
|
+
# Inserts a new StructuredDocumentTag (SDT) to the document node.
|
9970
|
+
# @param request InsertStructuredDocumentTagOnlineRequest
|
9971
|
+
# @return [Array<(InsertStructuredDocumentTagOnlineResponse, Fixnum, Hash)>]
|
9972
|
+
# InsertStructuredDocumentTagOnlineResponse, response status code and response headers
|
9973
|
+
private def insert_structured_document_tag_online_with_http_info(request)
|
9974
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? InsertStructuredDocumentTagOnlineRequest
|
9975
|
+
|
9976
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.insert_structured_document_tag_online ...' if @api_client.config.debugging
|
9977
|
+
request_data = request.create_http_request(@api_client)
|
9978
|
+
|
9979
|
+
data, status_code, headers = @api_client.call_api(
|
9980
|
+
request_data[:'method'],
|
9981
|
+
request_data[:'path'],
|
9982
|
+
header_params: request_data[:'header_params'],
|
9983
|
+
query_params: request_data[:'query_params'],
|
9984
|
+
body: request_data[:'body'],
|
9985
|
+
multipart_response: true,
|
9986
|
+
return_type: 'InsertStructuredDocumentTagOnlineResponse')
|
9987
|
+
if @api_client.config.debugging
|
9988
|
+
@api_client.config.logger.debug "API called:
|
9989
|
+
WordsApi#insert_structured_document_tag_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9990
|
+
end
|
9991
|
+
|
9992
|
+
mp_data = InsertStructuredDocumentTagOnlineResponse.new()
|
9993
|
+
mp_data.model = @api_client.deserialize(data['Model'][:data], data['Model'][:headers], 'StructuredDocumentTagResponse')
|
9994
|
+
mp_data.document = @api_client.parse_files_collection(data['Document'][:data], data['Document'][:headers])
|
9995
|
+
[mp_data, status_code, headers]
|
9996
|
+
end
|
9997
|
+
|
9658
9998
|
# Inserts a new style to the document.
|
9659
9999
|
# @param request InsertStyleRequest
|
9660
10000
|
# @return [StyleResponse]
|
@@ -13265,6 +13605,94 @@ module AsposeWordsCloud
|
|
13265
13605
|
[mp_data, status_code, headers]
|
13266
13606
|
end
|
13267
13607
|
|
13608
|
+
# Updates a StructuredDocumentTag (SDT) in the document node.
|
13609
|
+
# @param request UpdateStructuredDocumentTagRequest
|
13610
|
+
# @return [StructuredDocumentTagResponse]
|
13611
|
+
def update_structured_document_tag(request)
|
13612
|
+
begin
|
13613
|
+
data, _status_code, _headers = update_structured_document_tag_with_http_info(request)
|
13614
|
+
rescue ApiError => e
|
13615
|
+
if e.code == 401
|
13616
|
+
request_token
|
13617
|
+
data, _status_code, _headers = update_structured_document_tag_with_http_info(request)
|
13618
|
+
else
|
13619
|
+
raise
|
13620
|
+
end
|
13621
|
+
end
|
13622
|
+
data
|
13623
|
+
end
|
13624
|
+
|
13625
|
+
# Updates a StructuredDocumentTag (SDT) in the document node.
|
13626
|
+
# @param request UpdateStructuredDocumentTagRequest
|
13627
|
+
# @return [Array<(StructuredDocumentTagResponse, Fixnum, Hash)>]
|
13628
|
+
# StructuredDocumentTagResponse, response status code and response headers
|
13629
|
+
private def update_structured_document_tag_with_http_info(request)
|
13630
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? UpdateStructuredDocumentTagRequest
|
13631
|
+
|
13632
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.update_structured_document_tag ...' if @api_client.config.debugging
|
13633
|
+
request_data = request.create_http_request(@api_client)
|
13634
|
+
|
13635
|
+
data, status_code, headers = @api_client.call_api(
|
13636
|
+
request_data[:'method'],
|
13637
|
+
request_data[:'path'],
|
13638
|
+
header_params: request_data[:'header_params'],
|
13639
|
+
query_params: request_data[:'query_params'],
|
13640
|
+
body: request_data[:'body'],
|
13641
|
+
return_type: 'StructuredDocumentTagResponse')
|
13642
|
+
if @api_client.config.debugging
|
13643
|
+
@api_client.config.logger.debug "API called:
|
13644
|
+
WordsApi#update_structured_document_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
13645
|
+
end
|
13646
|
+
|
13647
|
+
[data, status_code, headers]
|
13648
|
+
end
|
13649
|
+
|
13650
|
+
# Updates a StructuredDocumentTag (SDT) in the document node.
|
13651
|
+
# @param request UpdateStructuredDocumentTagOnlineRequest
|
13652
|
+
# @return [UpdateStructuredDocumentTagOnlineResponse]
|
13653
|
+
def update_structured_document_tag_online(request)
|
13654
|
+
begin
|
13655
|
+
data, _status_code, _headers = update_structured_document_tag_online_with_http_info(request)
|
13656
|
+
rescue ApiError => e
|
13657
|
+
if e.code == 401
|
13658
|
+
request_token
|
13659
|
+
data, _status_code, _headers = update_structured_document_tag_online_with_http_info(request)
|
13660
|
+
else
|
13661
|
+
raise
|
13662
|
+
end
|
13663
|
+
end
|
13664
|
+
data
|
13665
|
+
end
|
13666
|
+
|
13667
|
+
# Updates a StructuredDocumentTag (SDT) in the document node.
|
13668
|
+
# @param request UpdateStructuredDocumentTagOnlineRequest
|
13669
|
+
# @return [Array<(UpdateStructuredDocumentTagOnlineResponse, Fixnum, Hash)>]
|
13670
|
+
# UpdateStructuredDocumentTagOnlineResponse, response status code and response headers
|
13671
|
+
private def update_structured_document_tag_online_with_http_info(request)
|
13672
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? UpdateStructuredDocumentTagOnlineRequest
|
13673
|
+
|
13674
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.update_structured_document_tag_online ...' if @api_client.config.debugging
|
13675
|
+
request_data = request.create_http_request(@api_client)
|
13676
|
+
|
13677
|
+
data, status_code, headers = @api_client.call_api(
|
13678
|
+
request_data[:'method'],
|
13679
|
+
request_data[:'path'],
|
13680
|
+
header_params: request_data[:'header_params'],
|
13681
|
+
query_params: request_data[:'query_params'],
|
13682
|
+
body: request_data[:'body'],
|
13683
|
+
multipart_response: true,
|
13684
|
+
return_type: 'UpdateStructuredDocumentTagOnlineResponse')
|
13685
|
+
if @api_client.config.debugging
|
13686
|
+
@api_client.config.logger.debug "API called:
|
13687
|
+
WordsApi#update_structured_document_tag_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
13688
|
+
end
|
13689
|
+
|
13690
|
+
mp_data = UpdateStructuredDocumentTagOnlineResponse.new()
|
13691
|
+
mp_data.model = @api_client.deserialize(data['Model'][:data], data['Model'][:headers], 'StructuredDocumentTagResponse')
|
13692
|
+
mp_data.document = @api_client.parse_files_collection(data['Document'][:data], data['Document'][:headers])
|
13693
|
+
[mp_data, status_code, headers]
|
13694
|
+
end
|
13695
|
+
|
13268
13696
|
# Updates a style in the document.
|
13269
13697
|
# @param request UpdateStyleRequest
|
13270
13698
|
# @return [StyleResponse]
|