aws-sdk-translate 1.0.0 → 1.1.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 +1 -1
- data/lib/aws-sdk-translate/client.rb +11 -1
- data/lib/aws-sdk-translate/client_api.rb +2 -0
- data/lib/aws-sdk-translate/types.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8df9093933896afa4281ac28c593e74ea6f7dfb7
|
4
|
+
data.tar.gz: e1e92604b29d65aa3f6b859dfbb0866f96509f40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb45b037ab7defd136d629beb8cbf12e1a7fa79ad072f93a924896f07ca934d119eadf7fcc0b46b82c3f574999de31d5ed63eb99232857171631fe62940e800
|
7
|
+
data.tar.gz: cb1c93a2cabf6e1d8321ca84f61c4e470e7d4f63b899728f08d42414a944a3a103744f4dd982683318e176d7d8edc0ef3a04d8b9030dde2f540a53dec3b462c2
|
data/lib/aws-sdk-translate.rb
CHANGED
@@ -171,6 +171,11 @@ module Aws::Translate
|
|
171
171
|
#
|
172
172
|
# * Spanish (es)
|
173
173
|
#
|
174
|
+
# To have Amazon Translate determine the source language of your text,
|
175
|
+
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
176
|
+
# specify `auto`, Amazon Translate will call Amazon Comprehend to
|
177
|
+
# determine the source language.
|
178
|
+
#
|
174
179
|
# @option params [required, String] :text
|
175
180
|
# The text to translate.
|
176
181
|
#
|
@@ -179,6 +184,11 @@ module Aws::Translate
|
|
179
184
|
# `TargetLanguageCode` is not "en", the `SourceLanguageCode` must be
|
180
185
|
# "en".
|
181
186
|
#
|
187
|
+
# To have Amazon Translate determine the source language of your text,
|
188
|
+
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
189
|
+
# specify `auto`, Amazon Translate will call Amazon Comprehend to
|
190
|
+
# determine the source language.
|
191
|
+
#
|
182
192
|
# @option params [required, String] :target_language_code
|
183
193
|
# One of the supported language codes for the target text. If the
|
184
194
|
# `SourceLanguageCode` is not "en", the `TargetLanguageCode` must be
|
@@ -226,7 +236,7 @@ module Aws::Translate
|
|
226
236
|
params: params,
|
227
237
|
config: config)
|
228
238
|
context[:gem_name] = 'aws-sdk-translate'
|
229
|
-
context[:gem_version] = '1.
|
239
|
+
context[:gem_version] = '1.1.0'
|
230
240
|
Seahorse::Client::Request.new(handlers, context)
|
231
241
|
end
|
232
242
|
|
@@ -12,6 +12,7 @@ module Aws::Translate
|
|
12
12
|
include Seahorse::Model
|
13
13
|
|
14
14
|
BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
|
15
|
+
DetectedLanguageLowConfidenceException = Shapes::StructureShape.new(name: 'DetectedLanguageLowConfidenceException')
|
15
16
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
16
17
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
17
18
|
LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
|
@@ -59,6 +60,7 @@ module Aws::Translate
|
|
59
60
|
o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
|
60
61
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
61
62
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguagePairException)
|
63
|
+
o.errors << Shapes::ShapeRef.new(shape: DetectedLanguageLowConfidenceException)
|
62
64
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
63
65
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
64
66
|
end)
|
@@ -25,6 +25,11 @@ module Aws::Translate
|
|
25
25
|
# One of the supported language codes for the source text. If the
|
26
26
|
# `TargetLanguageCode` is not "en", the `SourceLanguageCode` must be
|
27
27
|
# "en".
|
28
|
+
#
|
29
|
+
# To have Amazon Translate determine the source language of your text,
|
30
|
+
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
31
|
+
# specify `auto`, Amazon Translate will call Amazon Comprehend to
|
32
|
+
# determine the source language.
|
28
33
|
# @return [String]
|
29
34
|
#
|
30
35
|
# @!attribute [rw] target_language_code
|
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.1.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: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.5.
|
78
|
+
rubygems_version: 2.5.2.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: AWS SDK for Ruby - Amazon Translate
|