aws-sdk-translate 1.24.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-translate.rb +4 -3
- data/lib/aws-sdk-translate/client.rb +296 -16
- data/lib/aws-sdk-translate/client_api.rb +176 -0
- data/lib/aws-sdk-translate/errors.rb +32 -0
- data/lib/aws-sdk-translate/types.rb +524 -14
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504b2d0ccbd82bb551fbcac41d3a516cdd2fcfd3828f7c8e68fa57734d7ff62d
|
4
|
+
data.tar.gz: 5b7e1c98c818543a727c45a55c3f66ac5e776959785aa4ed9b4e80c79d6f84e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d478a88f3b4d5594fb18a94f9a27a0b48fe5eec367d07a16b5b9e0773a5523c858b03f8ab386f271bf181ff39c755bbb45b1711b6cc57f93207f9c62ff36693b
|
7
|
+
data.tar.gz: 8aa059f610d7838124815e726f1db49407af07d221b9d2c9d4185307bf4f8af589ac3d72d316300573f39571bacfc6c1b5662b31f34c9cb29386a59610befafe
|
data/lib/aws-sdk-translate.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -27,7 +28,7 @@ require_relative 'aws-sdk-translate/customizations'
|
|
27
28
|
# structure.
|
28
29
|
#
|
29
30
|
# translate = Aws::Translate::Client.new
|
30
|
-
# resp = translate.
|
31
|
+
# resp = translate.create_parallel_data(params)
|
31
32
|
#
|
32
33
|
# See {Client} for more information.
|
33
34
|
#
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-translate/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::Translate
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.29.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::Translate
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::Translate
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -322,6 +337,98 @@ module Aws::Translate
|
|
322
337
|
|
323
338
|
# @!group API Operations
|
324
339
|
|
340
|
+
# Creates a parallel data resource in Amazon Translate by importing an
|
341
|
+
# input file from Amazon S3. Parallel data files contain examples of
|
342
|
+
# source phrases and their translations from your translation memory. By
|
343
|
+
# adding parallel data, you can influence the style, tone, and word
|
344
|
+
# choice in your translation output.
|
345
|
+
#
|
346
|
+
# @option params [required, String] :name
|
347
|
+
# A custom name for the parallel data resource in Amazon Translate. You
|
348
|
+
# must assign a name that is unique in the account and region.
|
349
|
+
#
|
350
|
+
# @option params [String] :description
|
351
|
+
# A custom description for the parallel data resource in Amazon
|
352
|
+
# Translate.
|
353
|
+
#
|
354
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
355
|
+
# Specifies the format and S3 location of the parallel data input file.
|
356
|
+
#
|
357
|
+
# @option params [Types::EncryptionKey] :encryption_key
|
358
|
+
# The encryption key used to encrypt this object.
|
359
|
+
#
|
360
|
+
# @option params [required, String] :client_token
|
361
|
+
# A unique identifier for the request. This token is automatically
|
362
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
363
|
+
#
|
364
|
+
# **A suitable default value is auto-generated.** You should normally
|
365
|
+
# not need to pass this option.**
|
366
|
+
#
|
367
|
+
# @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
368
|
+
#
|
369
|
+
# * {Types::CreateParallelDataResponse#name #name} => String
|
370
|
+
# * {Types::CreateParallelDataResponse#status #status} => String
|
371
|
+
#
|
372
|
+
# @example Request syntax with placeholder values
|
373
|
+
#
|
374
|
+
# resp = client.create_parallel_data({
|
375
|
+
# name: "ResourceName", # required
|
376
|
+
# description: "Description",
|
377
|
+
# parallel_data_config: { # required
|
378
|
+
# s3_uri: "S3Uri", # required
|
379
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
380
|
+
# },
|
381
|
+
# encryption_key: {
|
382
|
+
# type: "KMS", # required, accepts KMS
|
383
|
+
# id: "EncryptionKeyID", # required
|
384
|
+
# },
|
385
|
+
# client_token: "ClientTokenString", # required
|
386
|
+
# })
|
387
|
+
#
|
388
|
+
# @example Response structure
|
389
|
+
#
|
390
|
+
# resp.name #=> String
|
391
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
392
|
+
#
|
393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelData AWS API Documentation
|
394
|
+
#
|
395
|
+
# @overload create_parallel_data(params = {})
|
396
|
+
# @param [Hash] params ({})
|
397
|
+
def create_parallel_data(params = {}, options = {})
|
398
|
+
req = build_request(:create_parallel_data, params)
|
399
|
+
req.send_request(options)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Deletes a parallel data resource in Amazon Translate.
|
403
|
+
#
|
404
|
+
# @option params [required, String] :name
|
405
|
+
# The name of the parallel data resource that is being deleted.
|
406
|
+
#
|
407
|
+
# @return [Types::DeleteParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
408
|
+
#
|
409
|
+
# * {Types::DeleteParallelDataResponse#name #name} => String
|
410
|
+
# * {Types::DeleteParallelDataResponse#status #status} => String
|
411
|
+
#
|
412
|
+
# @example Request syntax with placeholder values
|
413
|
+
#
|
414
|
+
# resp = client.delete_parallel_data({
|
415
|
+
# name: "ResourceName", # required
|
416
|
+
# })
|
417
|
+
#
|
418
|
+
# @example Response structure
|
419
|
+
#
|
420
|
+
# resp.name #=> String
|
421
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
422
|
+
#
|
423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelData AWS API Documentation
|
424
|
+
#
|
425
|
+
# @overload delete_parallel_data(params = {})
|
426
|
+
# @param [Hash] params ({})
|
427
|
+
def delete_parallel_data(params = {}, options = {})
|
428
|
+
req = build_request(:delete_parallel_data, params)
|
429
|
+
req.send_request(options)
|
430
|
+
end
|
431
|
+
|
325
432
|
# A synchronous action that deletes a custom terminology.
|
326
433
|
#
|
327
434
|
# @option params [required, String] :name
|
@@ -376,6 +483,8 @@ module Aws::Translate
|
|
376
483
|
# resp.text_translation_job_properties.target_language_codes[0] #=> String
|
377
484
|
# resp.text_translation_job_properties.terminology_names #=> Array
|
378
485
|
# resp.text_translation_job_properties.terminology_names[0] #=> String
|
486
|
+
# resp.text_translation_job_properties.parallel_data_names #=> Array
|
487
|
+
# resp.text_translation_job_properties.parallel_data_names[0] #=> String
|
379
488
|
# resp.text_translation_job_properties.message #=> String
|
380
489
|
# resp.text_translation_job_properties.submitted_time #=> Time
|
381
490
|
# resp.text_translation_job_properties.end_time #=> Time
|
@@ -393,6 +502,62 @@ module Aws::Translate
|
|
393
502
|
req.send_request(options)
|
394
503
|
end
|
395
504
|
|
505
|
+
# Provides information about a parallel data resource.
|
506
|
+
#
|
507
|
+
# @option params [required, String] :name
|
508
|
+
# The name of the parallel data resource that is being retrieved.
|
509
|
+
#
|
510
|
+
# @return [Types::GetParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
511
|
+
#
|
512
|
+
# * {Types::GetParallelDataResponse#parallel_data_properties #parallel_data_properties} => Types::ParallelDataProperties
|
513
|
+
# * {Types::GetParallelDataResponse#data_location #data_location} => Types::ParallelDataDataLocation
|
514
|
+
# * {Types::GetParallelDataResponse#auxiliary_data_location #auxiliary_data_location} => Types::ParallelDataDataLocation
|
515
|
+
# * {Types::GetParallelDataResponse#latest_update_attempt_auxiliary_data_location #latest_update_attempt_auxiliary_data_location} => Types::ParallelDataDataLocation
|
516
|
+
#
|
517
|
+
# @example Request syntax with placeholder values
|
518
|
+
#
|
519
|
+
# resp = client.get_parallel_data({
|
520
|
+
# name: "ResourceName", # required
|
521
|
+
# })
|
522
|
+
#
|
523
|
+
# @example Response structure
|
524
|
+
#
|
525
|
+
# resp.parallel_data_properties.name #=> String
|
526
|
+
# resp.parallel_data_properties.arn #=> String
|
527
|
+
# resp.parallel_data_properties.description #=> String
|
528
|
+
# resp.parallel_data_properties.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
529
|
+
# resp.parallel_data_properties.source_language_code #=> String
|
530
|
+
# resp.parallel_data_properties.target_language_codes #=> Array
|
531
|
+
# resp.parallel_data_properties.target_language_codes[0] #=> String
|
532
|
+
# resp.parallel_data_properties.parallel_data_config.s3_uri #=> String
|
533
|
+
# resp.parallel_data_properties.parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
534
|
+
# resp.parallel_data_properties.message #=> String
|
535
|
+
# resp.parallel_data_properties.imported_data_size #=> Integer
|
536
|
+
# resp.parallel_data_properties.imported_record_count #=> Integer
|
537
|
+
# resp.parallel_data_properties.failed_record_count #=> Integer
|
538
|
+
# resp.parallel_data_properties.skipped_record_count #=> Integer
|
539
|
+
# resp.parallel_data_properties.encryption_key.type #=> String, one of "KMS"
|
540
|
+
# resp.parallel_data_properties.encryption_key.id #=> String
|
541
|
+
# resp.parallel_data_properties.created_at #=> Time
|
542
|
+
# resp.parallel_data_properties.last_updated_at #=> Time
|
543
|
+
# resp.parallel_data_properties.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
544
|
+
# resp.parallel_data_properties.latest_update_attempt_at #=> Time
|
545
|
+
# resp.data_location.repository_type #=> String
|
546
|
+
# resp.data_location.location #=> String
|
547
|
+
# resp.auxiliary_data_location.repository_type #=> String
|
548
|
+
# resp.auxiliary_data_location.location #=> String
|
549
|
+
# resp.latest_update_attempt_auxiliary_data_location.repository_type #=> String
|
550
|
+
# resp.latest_update_attempt_auxiliary_data_location.location #=> String
|
551
|
+
#
|
552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelData AWS API Documentation
|
553
|
+
#
|
554
|
+
# @overload get_parallel_data(params = {})
|
555
|
+
# @param [Hash] params ({})
|
556
|
+
def get_parallel_data(params = {}, options = {})
|
557
|
+
req = build_request(:get_parallel_data, params)
|
558
|
+
req.send_request(options)
|
559
|
+
end
|
560
|
+
|
396
561
|
# Retrieves a custom terminology.
|
397
562
|
#
|
398
563
|
# @option params [required, String] :name
|
@@ -514,6 +679,64 @@ module Aws::Translate
|
|
514
679
|
req.send_request(options)
|
515
680
|
end
|
516
681
|
|
682
|
+
# Provides a list of your parallel data resources in Amazon Translate.
|
683
|
+
#
|
684
|
+
# @option params [String] :next_token
|
685
|
+
# A string that specifies the next page of results to return in a
|
686
|
+
# paginated response.
|
687
|
+
#
|
688
|
+
# @option params [Integer] :max_results
|
689
|
+
# The maximum number of parallel data resources returned for each
|
690
|
+
# request.
|
691
|
+
#
|
692
|
+
# @return [Types::ListParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
693
|
+
#
|
694
|
+
# * {Types::ListParallelDataResponse#parallel_data_properties_list #parallel_data_properties_list} => Array<Types::ParallelDataProperties>
|
695
|
+
# * {Types::ListParallelDataResponse#next_token #next_token} => String
|
696
|
+
#
|
697
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
698
|
+
#
|
699
|
+
# @example Request syntax with placeholder values
|
700
|
+
#
|
701
|
+
# resp = client.list_parallel_data({
|
702
|
+
# next_token: "NextToken",
|
703
|
+
# max_results: 1,
|
704
|
+
# })
|
705
|
+
#
|
706
|
+
# @example Response structure
|
707
|
+
#
|
708
|
+
# resp.parallel_data_properties_list #=> Array
|
709
|
+
# resp.parallel_data_properties_list[0].name #=> String
|
710
|
+
# resp.parallel_data_properties_list[0].arn #=> String
|
711
|
+
# resp.parallel_data_properties_list[0].description #=> String
|
712
|
+
# resp.parallel_data_properties_list[0].status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
713
|
+
# resp.parallel_data_properties_list[0].source_language_code #=> String
|
714
|
+
# resp.parallel_data_properties_list[0].target_language_codes #=> Array
|
715
|
+
# resp.parallel_data_properties_list[0].target_language_codes[0] #=> String
|
716
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.s3_uri #=> String
|
717
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
718
|
+
# resp.parallel_data_properties_list[0].message #=> String
|
719
|
+
# resp.parallel_data_properties_list[0].imported_data_size #=> Integer
|
720
|
+
# resp.parallel_data_properties_list[0].imported_record_count #=> Integer
|
721
|
+
# resp.parallel_data_properties_list[0].failed_record_count #=> Integer
|
722
|
+
# resp.parallel_data_properties_list[0].skipped_record_count #=> Integer
|
723
|
+
# resp.parallel_data_properties_list[0].encryption_key.type #=> String, one of "KMS"
|
724
|
+
# resp.parallel_data_properties_list[0].encryption_key.id #=> String
|
725
|
+
# resp.parallel_data_properties_list[0].created_at #=> Time
|
726
|
+
# resp.parallel_data_properties_list[0].last_updated_at #=> Time
|
727
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
728
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_at #=> Time
|
729
|
+
# resp.next_token #=> String
|
730
|
+
#
|
731
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelData AWS API Documentation
|
732
|
+
#
|
733
|
+
# @overload list_parallel_data(params = {})
|
734
|
+
# @param [Hash] params ({})
|
735
|
+
def list_parallel_data(params = {}, options = {})
|
736
|
+
req = build_request(:list_parallel_data, params)
|
737
|
+
req.send_request(options)
|
738
|
+
end
|
739
|
+
|
517
740
|
# Provides a list of custom terminologies associated with your account.
|
518
741
|
#
|
519
742
|
# @option params [String] :next_token
|
@@ -611,6 +834,8 @@ module Aws::Translate
|
|
611
834
|
# resp.text_translation_job_properties_list[0].target_language_codes[0] #=> String
|
612
835
|
# resp.text_translation_job_properties_list[0].terminology_names #=> Array
|
613
836
|
# resp.text_translation_job_properties_list[0].terminology_names[0] #=> String
|
837
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names #=> Array
|
838
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names[0] #=> String
|
614
839
|
# resp.text_translation_job_properties_list[0].message #=> String
|
615
840
|
# resp.text_translation_job_properties_list[0].submitted_time #=> Time
|
616
841
|
# resp.text_translation_job_properties_list[0].end_time #=> Time
|
@@ -672,15 +897,14 @@ module Aws::Translate
|
|
672
897
|
# The name of the terminology to use in the batch translation job. For a
|
673
898
|
# list of available terminologies, use the ListTerminologies operation.
|
674
899
|
#
|
900
|
+
# @option params [Array<String>] :parallel_data_names
|
901
|
+
# The names of the parallel data resources to use in the batch
|
902
|
+
# translation job. For a list of available parallel data resources, use
|
903
|
+
# the ListParallelData operation.
|
904
|
+
#
|
675
905
|
# @option params [required, String] :client_token
|
676
|
-
#
|
677
|
-
#
|
678
|
-
# the
|
679
|
-
# [DescribeInstances](docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
|
680
|
-
# EC2 operation to retreive an instance's client token. For more
|
681
|
-
# information, see [Client
|
682
|
-
# Tokens](docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html#client-tokens)
|
683
|
-
# in the EC2 User Guide.
|
906
|
+
# A unique identifier for the request. This token is auto-generated when
|
907
|
+
# using the Amazon Translate SDK.
|
684
908
|
#
|
685
909
|
# **A suitable default value is auto-generated.** You should normally
|
686
910
|
# not need to pass this option.**
|
@@ -705,6 +929,7 @@ module Aws::Translate
|
|
705
929
|
# source_language_code: "LanguageCodeString", # required
|
706
930
|
# target_language_codes: ["LanguageCodeString"], # required
|
707
931
|
# terminology_names: ["ResourceName"],
|
932
|
+
# parallel_data_names: ["ResourceName"],
|
708
933
|
# client_token: "ClientTokenString", # required
|
709
934
|
# })
|
710
935
|
#
|
@@ -830,6 +1055,61 @@ module Aws::Translate
|
|
830
1055
|
req.send_request(options)
|
831
1056
|
end
|
832
1057
|
|
1058
|
+
# Updates a previously created parallel data resource by importing a new
|
1059
|
+
# input file from Amazon S3.
|
1060
|
+
#
|
1061
|
+
# @option params [required, String] :name
|
1062
|
+
# The name of the parallel data resource being updated.
|
1063
|
+
#
|
1064
|
+
# @option params [String] :description
|
1065
|
+
# A custom description for the parallel data resource in Amazon
|
1066
|
+
# Translate.
|
1067
|
+
#
|
1068
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
1069
|
+
# Specifies the format and S3 location of the parallel data input file.
|
1070
|
+
#
|
1071
|
+
# @option params [required, String] :client_token
|
1072
|
+
# A unique identifier for the request. This token is automatically
|
1073
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
1074
|
+
#
|
1075
|
+
# **A suitable default value is auto-generated.** You should normally
|
1076
|
+
# not need to pass this option.**
|
1077
|
+
#
|
1078
|
+
# @return [Types::UpdateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1079
|
+
#
|
1080
|
+
# * {Types::UpdateParallelDataResponse#name #name} => String
|
1081
|
+
# * {Types::UpdateParallelDataResponse#status #status} => String
|
1082
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_status #latest_update_attempt_status} => String
|
1083
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_at #latest_update_attempt_at} => Time
|
1084
|
+
#
|
1085
|
+
# @example Request syntax with placeholder values
|
1086
|
+
#
|
1087
|
+
# resp = client.update_parallel_data({
|
1088
|
+
# name: "ResourceName", # required
|
1089
|
+
# description: "Description",
|
1090
|
+
# parallel_data_config: { # required
|
1091
|
+
# s3_uri: "S3Uri", # required
|
1092
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
1093
|
+
# },
|
1094
|
+
# client_token: "ClientTokenString", # required
|
1095
|
+
# })
|
1096
|
+
#
|
1097
|
+
# @example Response structure
|
1098
|
+
#
|
1099
|
+
# resp.name #=> String
|
1100
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1101
|
+
# resp.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1102
|
+
# resp.latest_update_attempt_at #=> Time
|
1103
|
+
#
|
1104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelData AWS API Documentation
|
1105
|
+
#
|
1106
|
+
# @overload update_parallel_data(params = {})
|
1107
|
+
# @param [Hash] params ({})
|
1108
|
+
def update_parallel_data(params = {}, options = {})
|
1109
|
+
req = build_request(:update_parallel_data, params)
|
1110
|
+
req.send_request(options)
|
1111
|
+
end
|
1112
|
+
|
833
1113
|
# @!endgroup
|
834
1114
|
|
835
1115
|
# @param params ({})
|
@@ -843,7 +1123,7 @@ module Aws::Translate
|
|
843
1123
|
params: params,
|
844
1124
|
config: config)
|
845
1125
|
context[:gem_name] = 'aws-sdk-translate'
|
846
|
-
context[:gem_version] = '1.
|
1126
|
+
context[:gem_version] = '1.29.0'
|
847
1127
|
Seahorse::Client::Request.new(handlers, context)
|
848
1128
|
end
|
849
1129
|
|
@@ -17,7 +17,13 @@ module Aws::Translate
|
|
17
17
|
AppliedTerminologyList = Shapes::ListShape.new(name: 'AppliedTerminologyList')
|
18
18
|
BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
|
19
19
|
ClientTokenString = Shapes::StringShape.new(name: 'ClientTokenString')
|
20
|
+
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
21
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
20
22
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
23
|
+
CreateParallelDataRequest = Shapes::StructureShape.new(name: 'CreateParallelDataRequest')
|
24
|
+
CreateParallelDataResponse = Shapes::StructureShape.new(name: 'CreateParallelDataResponse')
|
25
|
+
DeleteParallelDataRequest = Shapes::StructureShape.new(name: 'DeleteParallelDataRequest')
|
26
|
+
DeleteParallelDataResponse = Shapes::StructureShape.new(name: 'DeleteParallelDataResponse')
|
21
27
|
DeleteTerminologyRequest = Shapes::StructureShape.new(name: 'DeleteTerminologyRequest')
|
22
28
|
DescribeTextTranslationJobRequest = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobRequest')
|
23
29
|
DescribeTextTranslationJobResponse = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobResponse')
|
@@ -26,6 +32,8 @@ module Aws::Translate
|
|
26
32
|
EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
|
27
33
|
EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
|
28
34
|
EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
|
35
|
+
GetParallelDataRequest = Shapes::StructureShape.new(name: 'GetParallelDataRequest')
|
36
|
+
GetParallelDataResponse = Shapes::StructureShape.new(name: 'GetParallelDataResponse')
|
29
37
|
GetTerminologyRequest = Shapes::StructureShape.new(name: 'GetTerminologyRequest')
|
30
38
|
GetTerminologyResponse = Shapes::StructureShape.new(name: 'GetTerminologyResponse')
|
31
39
|
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
@@ -44,14 +52,24 @@ module Aws::Translate
|
|
44
52
|
LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
|
45
53
|
LanguageCodeStringList = Shapes::ListShape.new(name: 'LanguageCodeStringList')
|
46
54
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
55
|
+
ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
|
56
|
+
ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
|
47
57
|
ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
|
48
58
|
ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
|
49
59
|
ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
|
50
60
|
ListTextTranslationJobsResponse = Shapes::StructureShape.new(name: 'ListTextTranslationJobsResponse')
|
61
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
51
62
|
MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
|
52
63
|
MergeStrategy = Shapes::StringShape.new(name: 'MergeStrategy')
|
53
64
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
54
65
|
OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
|
66
|
+
ParallelDataArn = Shapes::StringShape.new(name: 'ParallelDataArn')
|
67
|
+
ParallelDataConfig = Shapes::StructureShape.new(name: 'ParallelDataConfig')
|
68
|
+
ParallelDataDataLocation = Shapes::StructureShape.new(name: 'ParallelDataDataLocation')
|
69
|
+
ParallelDataFormat = Shapes::StringShape.new(name: 'ParallelDataFormat')
|
70
|
+
ParallelDataProperties = Shapes::StructureShape.new(name: 'ParallelDataProperties')
|
71
|
+
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
72
|
+
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
55
73
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
56
74
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
57
75
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -82,6 +100,8 @@ module Aws::Translate
|
|
82
100
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
83
101
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
84
102
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
103
|
+
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
104
|
+
UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
|
85
105
|
|
86
106
|
AppliedTerminology.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
87
107
|
AppliedTerminology.add_member(:terms, Shapes::ShapeRef.new(shape: TermList, location_name: "Terms"))
|
@@ -89,6 +109,30 @@ module Aws::Translate
|
|
89
109
|
|
90
110
|
AppliedTerminologyList.member = Shapes::ShapeRef.new(shape: AppliedTerminology)
|
91
111
|
|
112
|
+
ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
113
|
+
ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
|
114
|
+
|
115
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
116
|
+
ConflictException.struct_class = Types::ConflictException
|
117
|
+
|
118
|
+
CreateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
119
|
+
CreateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
120
|
+
CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
121
|
+
CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
122
|
+
CreateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
123
|
+
CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
|
124
|
+
|
125
|
+
CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
126
|
+
CreateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
127
|
+
CreateParallelDataResponse.struct_class = Types::CreateParallelDataResponse
|
128
|
+
|
129
|
+
DeleteParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
130
|
+
DeleteParallelDataRequest.struct_class = Types::DeleteParallelDataRequest
|
131
|
+
|
132
|
+
DeleteParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
133
|
+
DeleteParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
134
|
+
DeleteParallelDataResponse.struct_class = Types::DeleteParallelDataResponse
|
135
|
+
|
92
136
|
DeleteTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
93
137
|
DeleteTerminologyRequest.struct_class = Types::DeleteTerminologyRequest
|
94
138
|
|
@@ -106,6 +150,15 @@ module Aws::Translate
|
|
106
150
|
EncryptionKey.add_member(:id, Shapes::ShapeRef.new(shape: EncryptionKeyID, required: true, location_name: "Id"))
|
107
151
|
EncryptionKey.struct_class = Types::EncryptionKey
|
108
152
|
|
153
|
+
GetParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
154
|
+
GetParallelDataRequest.struct_class = Types::GetParallelDataRequest
|
155
|
+
|
156
|
+
GetParallelDataResponse.add_member(:parallel_data_properties, Shapes::ShapeRef.new(shape: ParallelDataProperties, location_name: "ParallelDataProperties"))
|
157
|
+
GetParallelDataResponse.add_member(:data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "DataLocation"))
|
158
|
+
GetParallelDataResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "AuxiliaryDataLocation"))
|
159
|
+
GetParallelDataResponse.add_member(:latest_update_attempt_auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "LatestUpdateAttemptAuxiliaryDataLocation"))
|
160
|
+
GetParallelDataResponse.struct_class = Types::GetParallelDataResponse
|
161
|
+
|
109
162
|
GetTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
110
163
|
GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, required: true, location_name: "TerminologyDataFormat"))
|
111
164
|
GetTerminologyRequest.struct_class = Types::GetTerminologyRequest
|
@@ -150,6 +203,14 @@ module Aws::Translate
|
|
150
203
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
151
204
|
LimitExceededException.struct_class = Types::LimitExceededException
|
152
205
|
|
206
|
+
ListParallelDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
207
|
+
ListParallelDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
208
|
+
ListParallelDataRequest.struct_class = Types::ListParallelDataRequest
|
209
|
+
|
210
|
+
ListParallelDataResponse.add_member(:parallel_data_properties_list, Shapes::ShapeRef.new(shape: ParallelDataPropertiesList, location_name: "ParallelDataPropertiesList"))
|
211
|
+
ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
212
|
+
ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
|
213
|
+
|
153
214
|
ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
154
215
|
ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
155
216
|
ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
|
@@ -170,6 +231,35 @@ module Aws::Translate
|
|
170
231
|
OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
171
232
|
OutputDataConfig.struct_class = Types::OutputDataConfig
|
172
233
|
|
234
|
+
ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
235
|
+
ParallelDataConfig.add_member(:format, Shapes::ShapeRef.new(shape: ParallelDataFormat, required: true, location_name: "Format"))
|
236
|
+
ParallelDataConfig.struct_class = Types::ParallelDataConfig
|
237
|
+
|
238
|
+
ParallelDataDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
|
239
|
+
ParallelDataDataLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Location"))
|
240
|
+
ParallelDataDataLocation.struct_class = Types::ParallelDataDataLocation
|
241
|
+
|
242
|
+
ParallelDataProperties.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
243
|
+
ParallelDataProperties.add_member(:arn, Shapes::ShapeRef.new(shape: ParallelDataArn, location_name: "Arn"))
|
244
|
+
ParallelDataProperties.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
245
|
+
ParallelDataProperties.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
246
|
+
ParallelDataProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
247
|
+
ParallelDataProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: LanguageCodeStringList, location_name: "TargetLanguageCodes"))
|
248
|
+
ParallelDataProperties.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, location_name: "ParallelDataConfig"))
|
249
|
+
ParallelDataProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
|
250
|
+
ParallelDataProperties.add_member(:imported_data_size, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedDataSize"))
|
251
|
+
ParallelDataProperties.add_member(:imported_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedRecordCount"))
|
252
|
+
ParallelDataProperties.add_member(:failed_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "FailedRecordCount"))
|
253
|
+
ParallelDataProperties.add_member(:skipped_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "SkippedRecordCount"))
|
254
|
+
ParallelDataProperties.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
255
|
+
ParallelDataProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
256
|
+
ParallelDataProperties.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
257
|
+
ParallelDataProperties.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
|
258
|
+
ParallelDataProperties.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
|
259
|
+
ParallelDataProperties.struct_class = Types::ParallelDataProperties
|
260
|
+
|
261
|
+
ParallelDataPropertiesList.member = Shapes::ShapeRef.new(shape: ParallelDataProperties)
|
262
|
+
|
173
263
|
ResourceNameList.member = Shapes::ShapeRef.new(shape: ResourceName)
|
174
264
|
|
175
265
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
@@ -185,6 +275,7 @@ module Aws::Translate
|
|
185
275
|
StartTextTranslationJobRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
186
276
|
StartTextTranslationJobRequest.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, required: true, location_name: "TargetLanguageCodes"))
|
187
277
|
StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
278
|
+
StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
188
279
|
StartTextTranslationJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
189
280
|
StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
|
190
281
|
|
@@ -245,6 +336,7 @@ module Aws::Translate
|
|
245
336
|
TextTranslationJobProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
246
337
|
TextTranslationJobProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, location_name: "TargetLanguageCodes"))
|
247
338
|
TextTranslationJobProperties.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
339
|
+
TextTranslationJobProperties.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
248
340
|
TextTranslationJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
|
249
341
|
TextTranslationJobProperties.add_member(:submitted_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmittedTime"))
|
250
342
|
TextTranslationJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
|
@@ -275,6 +367,18 @@ module Aws::Translate
|
|
275
367
|
UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
|
276
368
|
UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
|
277
369
|
|
370
|
+
UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
371
|
+
UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
372
|
+
UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
373
|
+
UpdateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
374
|
+
UpdateParallelDataRequest.struct_class = Types::UpdateParallelDataRequest
|
375
|
+
|
376
|
+
UpdateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
377
|
+
UpdateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
378
|
+
UpdateParallelDataResponse.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
|
379
|
+
UpdateParallelDataResponse.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
|
380
|
+
UpdateParallelDataResponse.struct_class = Types::UpdateParallelDataResponse
|
381
|
+
|
278
382
|
|
279
383
|
# @api private
|
280
384
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -294,6 +398,32 @@ module Aws::Translate
|
|
294
398
|
"uid" => "translate-2017-07-01",
|
295
399
|
}
|
296
400
|
|
401
|
+
api.add_operation(:create_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
402
|
+
o.name = "CreateParallelData"
|
403
|
+
o.http_method = "POST"
|
404
|
+
o.http_request_uri = "/"
|
405
|
+
o.input = Shapes::ShapeRef.new(shape: CreateParallelDataRequest)
|
406
|
+
o.output = Shapes::ShapeRef.new(shape: CreateParallelDataResponse)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
413
|
+
end)
|
414
|
+
|
415
|
+
api.add_operation(:delete_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
416
|
+
o.name = "DeleteParallelData"
|
417
|
+
o.http_method = "POST"
|
418
|
+
o.http_request_uri = "/"
|
419
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteParallelDataRequest)
|
420
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteParallelDataResponse)
|
421
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
422
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
425
|
+
end)
|
426
|
+
|
297
427
|
api.add_operation(:delete_terminology, Seahorse::Model::Operation.new.tap do |o|
|
298
428
|
o.name = "DeleteTerminology"
|
299
429
|
o.http_method = "POST"
|
@@ -302,6 +432,7 @@ module Aws::Translate
|
|
302
432
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
303
433
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
304
434
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
435
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
305
436
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
306
437
|
end)
|
307
438
|
|
@@ -316,6 +447,18 @@ module Aws::Translate
|
|
316
447
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
317
448
|
end)
|
318
449
|
|
450
|
+
api.add_operation(:get_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
451
|
+
o.name = "GetParallelData"
|
452
|
+
o.http_method = "POST"
|
453
|
+
o.http_request_uri = "/"
|
454
|
+
o.input = Shapes::ShapeRef.new(shape: GetParallelDataRequest)
|
455
|
+
o.output = Shapes::ShapeRef.new(shape: GetParallelDataResponse)
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
458
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
459
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
460
|
+
end)
|
461
|
+
|
319
462
|
api.add_operation(:get_terminology, Seahorse::Model::Operation.new.tap do |o|
|
320
463
|
o.name = "GetTerminology"
|
321
464
|
o.http_method = "POST"
|
@@ -340,6 +483,23 @@ module Aws::Translate
|
|
340
483
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
341
484
|
end)
|
342
485
|
|
486
|
+
api.add_operation(:list_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
487
|
+
o.name = "ListParallelData"
|
488
|
+
o.http_method = "POST"
|
489
|
+
o.http_request_uri = "/"
|
490
|
+
o.input = Shapes::ShapeRef.new(shape: ListParallelDataRequest)
|
491
|
+
o.output = Shapes::ShapeRef.new(shape: ListParallelDataResponse)
|
492
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
493
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
494
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
495
|
+
o[:pager] = Aws::Pager.new(
|
496
|
+
limit_key: "max_results",
|
497
|
+
tokens: {
|
498
|
+
"next_token" => "next_token"
|
499
|
+
}
|
500
|
+
)
|
501
|
+
end)
|
502
|
+
|
343
503
|
api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
|
344
504
|
o.name = "ListTerminologies"
|
345
505
|
o.http_method = "POST"
|
@@ -414,6 +574,22 @@ module Aws::Translate
|
|
414
574
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
415
575
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
416
576
|
end)
|
577
|
+
|
578
|
+
api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
579
|
+
o.name = "UpdateParallelData"
|
580
|
+
o.http_method = "POST"
|
581
|
+
o.http_request_uri = "/"
|
582
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateParallelDataRequest)
|
583
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateParallelDataResponse)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
588
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
589
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
590
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
592
|
+
end)
|
417
593
|
end
|
418
594
|
|
419
595
|
end
|