aws-sdk-translate 1.40.0 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +18 -2
- data/lib/aws-sdk-translate/client_api.rb +2 -0
- data/lib/aws-sdk-translate/types.rb +7 -0
- data/lib/aws-sdk-translate.rb +1 -1
- 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: a50f6e1705088e1a59181487d89e8aff9e18bfeb0438e6132b736cfcfdc065b5
|
4
|
+
data.tar.gz: 6259e72fc11021491bdde8c2da60ebc2d223827d12a790ff23ffd2b51325d64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af57930dd02b8cf4f0931c9223ea09219b07cbd4239e3f928d54bb9152f8ed0f8cfc746709ef79d067b927693f6c7576d8cafd8aadd032c24a7f3d21b60b0a9b
|
7
|
+
data.tar.gz: 12a8de995c8b2c0cfbff11dc728536266fe1b98642c66727b86fdc2b213748cfae28f6840a947a213d8c64c6b650776b4febf03acfabd301154b4be7de992635
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.43.0 (2022-02-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables customers to use translation settings for formality customization in their synchronous translation output.
|
8
|
+
|
9
|
+
1.42.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.41.0 (2021-12-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.40.0 (2021-11-30)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.43.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::Translate
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
78
82
|
|
@@ -175,6 +179,10 @@ module Aws::Translate
|
|
175
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
178
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
187
|
# Set to true to disable SDK automatically adding host prefix
|
180
188
|
# to default service endpoint when available.
|
@@ -307,7 +315,7 @@ module Aws::Translate
|
|
307
315
|
# seconds to wait when opening a HTTP session before raising a
|
308
316
|
# `Timeout::Error`.
|
309
317
|
#
|
310
|
-
# @option options [
|
318
|
+
# @option options [Float] :http_read_timeout (60) The default
|
311
319
|
# number of seconds to wait for response data. This value can
|
312
320
|
# safely be set per-request on the session.
|
313
321
|
#
|
@@ -323,6 +331,9 @@ module Aws::Translate
|
|
323
331
|
# disables this behaviour. This value can safely be set per
|
324
332
|
# request on the session.
|
325
333
|
#
|
334
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
335
|
+
# in seconds.
|
336
|
+
#
|
326
337
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
327
338
|
# HTTP debug output will be sent to the `:logger`.
|
328
339
|
#
|
@@ -505,6 +516,7 @@ module Aws::Translate
|
|
505
516
|
# resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
|
506
517
|
# resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
|
507
518
|
# resp.text_translation_job_properties.data_access_role_arn #=> String
|
519
|
+
# resp.text_translation_job_properties.settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
508
520
|
# resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
|
509
521
|
#
|
510
522
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
|
@@ -886,6 +898,7 @@ module Aws::Translate
|
|
886
898
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
|
887
899
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
|
888
900
|
# resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
|
901
|
+
# resp.text_translation_job_properties_list[0].settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
889
902
|
# resp.text_translation_job_properties_list[0].settings.profanity #=> String, one of "MASK"
|
890
903
|
# resp.next_token #=> String
|
891
904
|
#
|
@@ -1010,6 +1023,7 @@ module Aws::Translate
|
|
1010
1023
|
# parallel_data_names: ["ResourceName"],
|
1011
1024
|
# client_token: "ClientTokenString", # required
|
1012
1025
|
# settings: {
|
1026
|
+
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1013
1027
|
# profanity: "MASK", # accepts MASK
|
1014
1028
|
# },
|
1015
1029
|
# })
|
@@ -1120,6 +1134,7 @@ module Aws::Translate
|
|
1120
1134
|
# source_language_code: "LanguageCodeString", # required
|
1121
1135
|
# target_language_code: "LanguageCodeString", # required
|
1122
1136
|
# settings: {
|
1137
|
+
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1123
1138
|
# profanity: "MASK", # accepts MASK
|
1124
1139
|
# },
|
1125
1140
|
# })
|
@@ -1134,6 +1149,7 @@ module Aws::Translate
|
|
1134
1149
|
# resp.applied_terminologies[0].terms #=> Array
|
1135
1150
|
# resp.applied_terminologies[0].terms[0].source_text #=> String
|
1136
1151
|
# resp.applied_terminologies[0].terms[0].target_text #=> String
|
1152
|
+
# resp.applied_settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
1137
1153
|
# resp.applied_settings.profanity #=> String, one of "MASK"
|
1138
1154
|
#
|
1139
1155
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
|
@@ -1213,7 +1229,7 @@ module Aws::Translate
|
|
1213
1229
|
params: params,
|
1214
1230
|
config: config)
|
1215
1231
|
context[:gem_name] = 'aws-sdk-translate'
|
1216
|
-
context[:gem_version] = '1.
|
1232
|
+
context[:gem_version] = '1.43.0'
|
1217
1233
|
Seahorse::Client::Request.new(handlers, context)
|
1218
1234
|
end
|
1219
1235
|
|
@@ -33,6 +33,7 @@ module Aws::Translate
|
|
33
33
|
EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
|
34
34
|
EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
|
35
35
|
EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
|
36
|
+
Formality = Shapes::StringShape.new(name: 'Formality')
|
36
37
|
GetParallelDataRequest = Shapes::StructureShape.new(name: 'GetParallelDataRequest')
|
37
38
|
GetParallelDataResponse = Shapes::StructureShape.new(name: 'GetParallelDataResponse')
|
38
39
|
GetTerminologyRequest = Shapes::StructureShape.new(name: 'GetTerminologyRequest')
|
@@ -377,6 +378,7 @@ module Aws::Translate
|
|
377
378
|
TranslateTextResponse.add_member(:applied_settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "AppliedSettings"))
|
378
379
|
TranslateTextResponse.struct_class = Types::TranslateTextResponse
|
379
380
|
|
381
|
+
TranslationSettings.add_member(:formality, Shapes::ShapeRef.new(shape: Formality, location_name: "Formality"))
|
380
382
|
TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
|
381
383
|
TranslationSettings.struct_class = Types::TranslationSettings
|
382
384
|
|
@@ -1066,6 +1066,7 @@ module Aws::Translate
|
|
1066
1066
|
# parallel_data_names: ["ResourceName"],
|
1067
1067
|
# client_token: "ClientTokenString", # required
|
1068
1068
|
# settings: {
|
1069
|
+
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1069
1070
|
# profanity: "MASK", # accepts MASK
|
1070
1071
|
# },
|
1071
1072
|
# }
|
@@ -1633,6 +1634,7 @@ module Aws::Translate
|
|
1633
1634
|
# source_language_code: "LanguageCodeString", # required
|
1634
1635
|
# target_language_code: "LanguageCodeString", # required
|
1635
1636
|
# settings: {
|
1637
|
+
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1636
1638
|
# profanity: "MASK", # accepts MASK
|
1637
1639
|
# },
|
1638
1640
|
# }
|
@@ -1726,9 +1728,13 @@ module Aws::Translate
|
|
1726
1728
|
# data as a hash:
|
1727
1729
|
#
|
1728
1730
|
# {
|
1731
|
+
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1729
1732
|
# profanity: "MASK", # accepts MASK
|
1730
1733
|
# }
|
1731
1734
|
#
|
1735
|
+
# @!attribute [rw] formality
|
1736
|
+
# @return [String]
|
1737
|
+
#
|
1732
1738
|
# @!attribute [rw] profanity
|
1733
1739
|
# Enable the profanity setting if you want Amazon Translate to mask
|
1734
1740
|
# profane words and phrases in your translation output.
|
@@ -1751,6 +1757,7 @@ module Aws::Translate
|
|
1751
1757
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
1752
1758
|
#
|
1753
1759
|
class TranslationSettings < Struct.new(
|
1760
|
+
:formality,
|
1754
1761
|
:profanity)
|
1755
1762
|
SENSITIVE = []
|
1756
1763
|
include Aws::Structure
|
data/lib/aws-sdk-translate.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.126.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|