aws-sdk-translate 1.62.0 → 1.63.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +1 -1
- data/lib/aws-sdk-translate/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-translate.rb +1 -1
- data/sig/client.rbs +387 -0
- data/sig/errors.rbs +66 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +495 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d6e6835613598430bf8864fb618fa19a531009d9d5c484abd6c43934fd9830
|
4
|
+
data.tar.gz: f970ac31740ef14553970d94627376323bbb591af0c064eb4698b49319572136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8887e79ff92a473187629ec5ac7090fb698f19106622be4cd1ff3437789d8b1e2a4930fa080cc3bd3d046f8081975ada7f5c7db790e0f3168ace4766d20659e0
|
7
|
+
data.tar.gz: 3372ab86adee9ac9828f35bae1a017d587dd299ad0890fca32a136ad48456dd6f866294dc5ceed0625c8e7b1cac3bf45e2ccc3386cf416761260512c3fa6f77b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.63.0
|
@@ -1658,7 +1658,7 @@ module Aws::Translate
|
|
1658
1658
|
params: params,
|
1659
1659
|
config: config)
|
1660
1660
|
context[:gem_name] = 'aws-sdk-translate'
|
1661
|
-
context[:gem_version] = '1.
|
1661
|
+
context[:gem_version] = '1.63.0'
|
1662
1662
|
Seahorse::Client::Request.new(handlers, context)
|
1663
1663
|
end
|
1664
1664
|
|
@@ -14,6 +14,7 @@ module Aws::Translate
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::Translate::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
data/lib/aws-sdk-translate.rb
CHANGED
data/sig/client.rbs
ADDED
@@ -0,0 +1,387 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module Translate
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> instance
|
73
|
+
| (?Hash[Symbol, untyped]) -> instance
|
74
|
+
|
75
|
+
|
76
|
+
interface _CreateParallelDataResponseSuccess
|
77
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateParallelDataResponse]
|
78
|
+
def name: () -> ::String
|
79
|
+
def status: () -> ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
80
|
+
end
|
81
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#create_parallel_data-instance_method
|
82
|
+
def create_parallel_data: (
|
83
|
+
name: ::String,
|
84
|
+
?description: ::String,
|
85
|
+
parallel_data_config: {
|
86
|
+
s3_uri: ::String?,
|
87
|
+
format: ("TSV" | "CSV" | "TMX")?
|
88
|
+
},
|
89
|
+
?encryption_key: {
|
90
|
+
type: ("KMS"),
|
91
|
+
id: ::String
|
92
|
+
},
|
93
|
+
client_token: ::String,
|
94
|
+
?tags: Array[
|
95
|
+
{
|
96
|
+
key: ::String,
|
97
|
+
value: ::String
|
98
|
+
},
|
99
|
+
]
|
100
|
+
) -> _CreateParallelDataResponseSuccess
|
101
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateParallelDataResponseSuccess
|
102
|
+
|
103
|
+
interface _DeleteParallelDataResponseSuccess
|
104
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteParallelDataResponse]
|
105
|
+
def name: () -> ::String
|
106
|
+
def status: () -> ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
107
|
+
end
|
108
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#delete_parallel_data-instance_method
|
109
|
+
def delete_parallel_data: (
|
110
|
+
name: ::String
|
111
|
+
) -> _DeleteParallelDataResponseSuccess
|
112
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteParallelDataResponseSuccess
|
113
|
+
|
114
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#delete_terminology-instance_method
|
115
|
+
def delete_terminology: (
|
116
|
+
name: ::String
|
117
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
118
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
119
|
+
|
120
|
+
interface _DescribeTextTranslationJobResponseSuccess
|
121
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeTextTranslationJobResponse]
|
122
|
+
def text_translation_job_properties: () -> Types::TextTranslationJobProperties
|
123
|
+
end
|
124
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#describe_text_translation_job-instance_method
|
125
|
+
def describe_text_translation_job: (
|
126
|
+
job_id: ::String
|
127
|
+
) -> _DescribeTextTranslationJobResponseSuccess
|
128
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTextTranslationJobResponseSuccess
|
129
|
+
|
130
|
+
interface _GetParallelDataResponseSuccess
|
131
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetParallelDataResponse]
|
132
|
+
def parallel_data_properties: () -> Types::ParallelDataProperties
|
133
|
+
def data_location: () -> Types::ParallelDataDataLocation
|
134
|
+
def auxiliary_data_location: () -> Types::ParallelDataDataLocation
|
135
|
+
def latest_update_attempt_auxiliary_data_location: () -> Types::ParallelDataDataLocation
|
136
|
+
end
|
137
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#get_parallel_data-instance_method
|
138
|
+
def get_parallel_data: (
|
139
|
+
name: ::String
|
140
|
+
) -> _GetParallelDataResponseSuccess
|
141
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetParallelDataResponseSuccess
|
142
|
+
|
143
|
+
interface _GetTerminologyResponseSuccess
|
144
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetTerminologyResponse]
|
145
|
+
def terminology_properties: () -> Types::TerminologyProperties
|
146
|
+
def terminology_data_location: () -> Types::TerminologyDataLocation
|
147
|
+
def auxiliary_data_location: () -> Types::TerminologyDataLocation
|
148
|
+
end
|
149
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#get_terminology-instance_method
|
150
|
+
def get_terminology: (
|
151
|
+
name: ::String,
|
152
|
+
?terminology_data_format: ("CSV" | "TMX" | "TSV")
|
153
|
+
) -> _GetTerminologyResponseSuccess
|
154
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTerminologyResponseSuccess
|
155
|
+
|
156
|
+
interface _ImportTerminologyResponseSuccess
|
157
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ImportTerminologyResponse]
|
158
|
+
def terminology_properties: () -> Types::TerminologyProperties
|
159
|
+
def auxiliary_data_location: () -> Types::TerminologyDataLocation
|
160
|
+
end
|
161
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#import_terminology-instance_method
|
162
|
+
def import_terminology: (
|
163
|
+
name: ::String,
|
164
|
+
merge_strategy: ("OVERWRITE"),
|
165
|
+
?description: ::String,
|
166
|
+
terminology_data: {
|
167
|
+
file: ::String,
|
168
|
+
format: ("CSV" | "TMX" | "TSV"),
|
169
|
+
directionality: ("UNI" | "MULTI")?
|
170
|
+
},
|
171
|
+
?encryption_key: {
|
172
|
+
type: ("KMS"),
|
173
|
+
id: ::String
|
174
|
+
},
|
175
|
+
?tags: Array[
|
176
|
+
{
|
177
|
+
key: ::String,
|
178
|
+
value: ::String
|
179
|
+
},
|
180
|
+
]
|
181
|
+
) -> _ImportTerminologyResponseSuccess
|
182
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportTerminologyResponseSuccess
|
183
|
+
|
184
|
+
interface _ListLanguagesResponseSuccess
|
185
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListLanguagesResponse]
|
186
|
+
def languages: () -> ::Array[Types::Language]
|
187
|
+
def display_language_code: () -> ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pt" | "zh" | "zh-TW")
|
188
|
+
def next_token: () -> ::String
|
189
|
+
end
|
190
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#list_languages-instance_method
|
191
|
+
def list_languages: (
|
192
|
+
?display_language_code: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pt" | "zh" | "zh-TW"),
|
193
|
+
?next_token: ::String,
|
194
|
+
?max_results: ::Integer
|
195
|
+
) -> _ListLanguagesResponseSuccess
|
196
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLanguagesResponseSuccess
|
197
|
+
|
198
|
+
interface _ListParallelDataResponseSuccess
|
199
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListParallelDataResponse]
|
200
|
+
def parallel_data_properties_list: () -> ::Array[Types::ParallelDataProperties]
|
201
|
+
def next_token: () -> ::String
|
202
|
+
end
|
203
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#list_parallel_data-instance_method
|
204
|
+
def list_parallel_data: (
|
205
|
+
?next_token: ::String,
|
206
|
+
?max_results: ::Integer
|
207
|
+
) -> _ListParallelDataResponseSuccess
|
208
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListParallelDataResponseSuccess
|
209
|
+
|
210
|
+
interface _ListTagsForResourceResponseSuccess
|
211
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
|
212
|
+
def tags: () -> ::Array[Types::Tag]
|
213
|
+
end
|
214
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#list_tags_for_resource-instance_method
|
215
|
+
def list_tags_for_resource: (
|
216
|
+
resource_arn: ::String
|
217
|
+
) -> _ListTagsForResourceResponseSuccess
|
218
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
219
|
+
|
220
|
+
interface _ListTerminologiesResponseSuccess
|
221
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTerminologiesResponse]
|
222
|
+
def terminology_properties_list: () -> ::Array[Types::TerminologyProperties]
|
223
|
+
def next_token: () -> ::String
|
224
|
+
end
|
225
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#list_terminologies-instance_method
|
226
|
+
def list_terminologies: (
|
227
|
+
?next_token: ::String,
|
228
|
+
?max_results: ::Integer
|
229
|
+
) -> _ListTerminologiesResponseSuccess
|
230
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTerminologiesResponseSuccess
|
231
|
+
|
232
|
+
interface _ListTextTranslationJobsResponseSuccess
|
233
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTextTranslationJobsResponse]
|
234
|
+
def text_translation_job_properties_list: () -> ::Array[Types::TextTranslationJobProperties]
|
235
|
+
def next_token: () -> ::String
|
236
|
+
end
|
237
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#list_text_translation_jobs-instance_method
|
238
|
+
def list_text_translation_jobs: (
|
239
|
+
?filter: {
|
240
|
+
job_name: ::String?,
|
241
|
+
job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")?,
|
242
|
+
submitted_before_time: ::Time?,
|
243
|
+
submitted_after_time: ::Time?
|
244
|
+
},
|
245
|
+
?next_token: ::String,
|
246
|
+
?max_results: ::Integer
|
247
|
+
) -> _ListTextTranslationJobsResponseSuccess
|
248
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTextTranslationJobsResponseSuccess
|
249
|
+
|
250
|
+
interface _StartTextTranslationJobResponseSuccess
|
251
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartTextTranslationJobResponse]
|
252
|
+
def job_id: () -> ::String
|
253
|
+
def job_status: () -> ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
254
|
+
end
|
255
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#start_text_translation_job-instance_method
|
256
|
+
def start_text_translation_job: (
|
257
|
+
?job_name: ::String,
|
258
|
+
input_data_config: {
|
259
|
+
s3_uri: ::String,
|
260
|
+
content_type: ::String
|
261
|
+
},
|
262
|
+
output_data_config: {
|
263
|
+
s3_uri: ::String,
|
264
|
+
encryption_key: {
|
265
|
+
type: ("KMS"),
|
266
|
+
id: ::String
|
267
|
+
}?
|
268
|
+
},
|
269
|
+
data_access_role_arn: ::String,
|
270
|
+
source_language_code: ::String,
|
271
|
+
target_language_codes: Array[::String],
|
272
|
+
?terminology_names: Array[::String],
|
273
|
+
?parallel_data_names: Array[::String],
|
274
|
+
client_token: ::String,
|
275
|
+
?settings: {
|
276
|
+
formality: ("FORMAL" | "INFORMAL")?,
|
277
|
+
profanity: ("MASK")?,
|
278
|
+
brevity: ("ON")?
|
279
|
+
}
|
280
|
+
) -> _StartTextTranslationJobResponseSuccess
|
281
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartTextTranslationJobResponseSuccess
|
282
|
+
|
283
|
+
interface _StopTextTranslationJobResponseSuccess
|
284
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StopTextTranslationJobResponse]
|
285
|
+
def job_id: () -> ::String
|
286
|
+
def job_status: () -> ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
287
|
+
end
|
288
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#stop_text_translation_job-instance_method
|
289
|
+
def stop_text_translation_job: (
|
290
|
+
job_id: ::String
|
291
|
+
) -> _StopTextTranslationJobResponseSuccess
|
292
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopTextTranslationJobResponseSuccess
|
293
|
+
|
294
|
+
interface _TagResourceResponseSuccess
|
295
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
|
296
|
+
end
|
297
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#tag_resource-instance_method
|
298
|
+
def tag_resource: (
|
299
|
+
resource_arn: ::String,
|
300
|
+
tags: Array[
|
301
|
+
{
|
302
|
+
key: ::String,
|
303
|
+
value: ::String
|
304
|
+
},
|
305
|
+
]
|
306
|
+
) -> _TagResourceResponseSuccess
|
307
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
308
|
+
|
309
|
+
interface _TranslateDocumentResponseSuccess
|
310
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TranslateDocumentResponse]
|
311
|
+
def translated_document: () -> Types::TranslatedDocument
|
312
|
+
def source_language_code: () -> ::String
|
313
|
+
def target_language_code: () -> ::String
|
314
|
+
def applied_terminologies: () -> ::Array[Types::AppliedTerminology]
|
315
|
+
def applied_settings: () -> Types::TranslationSettings
|
316
|
+
end
|
317
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#translate_document-instance_method
|
318
|
+
def translate_document: (
|
319
|
+
document: {
|
320
|
+
content: ::String,
|
321
|
+
content_type: ::String
|
322
|
+
},
|
323
|
+
?terminology_names: Array[::String],
|
324
|
+
source_language_code: ::String,
|
325
|
+
target_language_code: ::String,
|
326
|
+
?settings: {
|
327
|
+
formality: ("FORMAL" | "INFORMAL")?,
|
328
|
+
profanity: ("MASK")?,
|
329
|
+
brevity: ("ON")?
|
330
|
+
}
|
331
|
+
) -> _TranslateDocumentResponseSuccess
|
332
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TranslateDocumentResponseSuccess
|
333
|
+
|
334
|
+
interface _TranslateTextResponseSuccess
|
335
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TranslateTextResponse]
|
336
|
+
def translated_text: () -> ::String
|
337
|
+
def source_language_code: () -> ::String
|
338
|
+
def target_language_code: () -> ::String
|
339
|
+
def applied_terminologies: () -> ::Array[Types::AppliedTerminology]
|
340
|
+
def applied_settings: () -> Types::TranslationSettings
|
341
|
+
end
|
342
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#translate_text-instance_method
|
343
|
+
def translate_text: (
|
344
|
+
text: ::String,
|
345
|
+
?terminology_names: Array[::String],
|
346
|
+
source_language_code: ::String,
|
347
|
+
target_language_code: ::String,
|
348
|
+
?settings: {
|
349
|
+
formality: ("FORMAL" | "INFORMAL")?,
|
350
|
+
profanity: ("MASK")?,
|
351
|
+
brevity: ("ON")?
|
352
|
+
}
|
353
|
+
) -> _TranslateTextResponseSuccess
|
354
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TranslateTextResponseSuccess
|
355
|
+
|
356
|
+
interface _UntagResourceResponseSuccess
|
357
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
|
358
|
+
end
|
359
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#untag_resource-instance_method
|
360
|
+
def untag_resource: (
|
361
|
+
resource_arn: ::String,
|
362
|
+
tag_keys: Array[::String]
|
363
|
+
) -> _UntagResourceResponseSuccess
|
364
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
365
|
+
|
366
|
+
interface _UpdateParallelDataResponseSuccess
|
367
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateParallelDataResponse]
|
368
|
+
def name: () -> ::String
|
369
|
+
def status: () -> ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
370
|
+
def latest_update_attempt_status: () -> ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
371
|
+
def latest_update_attempt_at: () -> ::Time
|
372
|
+
end
|
373
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Client.html#update_parallel_data-instance_method
|
374
|
+
def update_parallel_data: (
|
375
|
+
name: ::String,
|
376
|
+
?description: ::String,
|
377
|
+
parallel_data_config: {
|
378
|
+
s3_uri: ::String?,
|
379
|
+
format: ("TSV" | "CSV" | "TMX")?
|
380
|
+
},
|
381
|
+
client_token: ::String
|
382
|
+
) -> _UpdateParallelDataResponseSuccess
|
383
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateParallelDataResponseSuccess
|
384
|
+
end
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module Translate
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class ConcurrentModificationException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class ConflictException < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
end
|
20
|
+
class DetectedLanguageLowConfidenceException < ::Aws::Errors::ServiceError
|
21
|
+
def message: () -> ::String
|
22
|
+
def detected_language_code: () -> ::String
|
23
|
+
end
|
24
|
+
class InternalServerException < ::Aws::Errors::ServiceError
|
25
|
+
def message: () -> ::String
|
26
|
+
end
|
27
|
+
class InvalidFilterException < ::Aws::Errors::ServiceError
|
28
|
+
def message: () -> ::String
|
29
|
+
end
|
30
|
+
class InvalidParameterValueException < ::Aws::Errors::ServiceError
|
31
|
+
def message: () -> ::String
|
32
|
+
end
|
33
|
+
class InvalidRequestException < ::Aws::Errors::ServiceError
|
34
|
+
def message: () -> ::String
|
35
|
+
end
|
36
|
+
class LimitExceededException < ::Aws::Errors::ServiceError
|
37
|
+
def message: () -> ::String
|
38
|
+
end
|
39
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
40
|
+
def message: () -> ::String
|
41
|
+
end
|
42
|
+
class ServiceUnavailableException < ::Aws::Errors::ServiceError
|
43
|
+
def message: () -> ::String
|
44
|
+
end
|
45
|
+
class TextSizeLimitExceededException < ::Aws::Errors::ServiceError
|
46
|
+
def message: () -> ::String
|
47
|
+
end
|
48
|
+
class TooManyRequestsException < ::Aws::Errors::ServiceError
|
49
|
+
def message: () -> ::String
|
50
|
+
end
|
51
|
+
class TooManyTagsException < ::Aws::Errors::ServiceError
|
52
|
+
def message: () -> ::String
|
53
|
+
def resource_arn: () -> ::String
|
54
|
+
end
|
55
|
+
class UnsupportedDisplayLanguageCodeException < ::Aws::Errors::ServiceError
|
56
|
+
def message: () -> ::String
|
57
|
+
def display_language_code: () -> ::String
|
58
|
+
end
|
59
|
+
class UnsupportedLanguagePairException < ::Aws::Errors::ServiceError
|
60
|
+
def message: () -> ::String
|
61
|
+
def source_language_code: () -> ::String
|
62
|
+
def target_language_code: () -> ::String
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module Translate
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Translate/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> void
|
73
|
+
| (?Hash[Symbol, untyped]) -> void
|
74
|
+
|
75
|
+
def client: () -> Client
|
76
|
+
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
data/sig/types.rbs
ADDED
@@ -0,0 +1,495 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Translate
|
9
|
+
module Types
|
10
|
+
|
11
|
+
class AppliedTerminology
|
12
|
+
attr_accessor name: ::String
|
13
|
+
attr_accessor terms: ::Array[Types::Term]
|
14
|
+
SENSITIVE: []
|
15
|
+
end
|
16
|
+
|
17
|
+
class ConcurrentModificationException
|
18
|
+
attr_accessor message: ::String
|
19
|
+
SENSITIVE: []
|
20
|
+
end
|
21
|
+
|
22
|
+
class ConflictException
|
23
|
+
attr_accessor message: ::String
|
24
|
+
SENSITIVE: []
|
25
|
+
end
|
26
|
+
|
27
|
+
class CreateParallelDataRequest
|
28
|
+
attr_accessor name: ::String
|
29
|
+
attr_accessor description: ::String
|
30
|
+
attr_accessor parallel_data_config: Types::ParallelDataConfig
|
31
|
+
attr_accessor encryption_key: Types::EncryptionKey
|
32
|
+
attr_accessor client_token: ::String
|
33
|
+
attr_accessor tags: ::Array[Types::Tag]
|
34
|
+
SENSITIVE: []
|
35
|
+
end
|
36
|
+
|
37
|
+
class CreateParallelDataResponse
|
38
|
+
attr_accessor name: ::String
|
39
|
+
attr_accessor status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
40
|
+
SENSITIVE: []
|
41
|
+
end
|
42
|
+
|
43
|
+
class DeleteParallelDataRequest
|
44
|
+
attr_accessor name: ::String
|
45
|
+
SENSITIVE: []
|
46
|
+
end
|
47
|
+
|
48
|
+
class DeleteParallelDataResponse
|
49
|
+
attr_accessor name: ::String
|
50
|
+
attr_accessor status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
51
|
+
SENSITIVE: []
|
52
|
+
end
|
53
|
+
|
54
|
+
class DeleteTerminologyRequest
|
55
|
+
attr_accessor name: ::String
|
56
|
+
SENSITIVE: []
|
57
|
+
end
|
58
|
+
|
59
|
+
class DescribeTextTranslationJobRequest
|
60
|
+
attr_accessor job_id: ::String
|
61
|
+
SENSITIVE: []
|
62
|
+
end
|
63
|
+
|
64
|
+
class DescribeTextTranslationJobResponse
|
65
|
+
attr_accessor text_translation_job_properties: Types::TextTranslationJobProperties
|
66
|
+
SENSITIVE: []
|
67
|
+
end
|
68
|
+
|
69
|
+
class DetectedLanguageLowConfidenceException
|
70
|
+
attr_accessor message: ::String
|
71
|
+
attr_accessor detected_language_code: ::String
|
72
|
+
SENSITIVE: []
|
73
|
+
end
|
74
|
+
|
75
|
+
class Document
|
76
|
+
attr_accessor content: ::String
|
77
|
+
attr_accessor content_type: ::String
|
78
|
+
SENSITIVE: [:content]
|
79
|
+
end
|
80
|
+
|
81
|
+
class EncryptionKey
|
82
|
+
attr_accessor type: ("KMS")
|
83
|
+
attr_accessor id: ::String
|
84
|
+
SENSITIVE: []
|
85
|
+
end
|
86
|
+
|
87
|
+
class GetParallelDataRequest
|
88
|
+
attr_accessor name: ::String
|
89
|
+
SENSITIVE: []
|
90
|
+
end
|
91
|
+
|
92
|
+
class GetParallelDataResponse
|
93
|
+
attr_accessor parallel_data_properties: Types::ParallelDataProperties
|
94
|
+
attr_accessor data_location: Types::ParallelDataDataLocation
|
95
|
+
attr_accessor auxiliary_data_location: Types::ParallelDataDataLocation
|
96
|
+
attr_accessor latest_update_attempt_auxiliary_data_location: Types::ParallelDataDataLocation
|
97
|
+
SENSITIVE: []
|
98
|
+
end
|
99
|
+
|
100
|
+
class GetTerminologyRequest
|
101
|
+
attr_accessor name: ::String
|
102
|
+
attr_accessor terminology_data_format: ("CSV" | "TMX" | "TSV")
|
103
|
+
SENSITIVE: []
|
104
|
+
end
|
105
|
+
|
106
|
+
class GetTerminologyResponse
|
107
|
+
attr_accessor terminology_properties: Types::TerminologyProperties
|
108
|
+
attr_accessor terminology_data_location: Types::TerminologyDataLocation
|
109
|
+
attr_accessor auxiliary_data_location: Types::TerminologyDataLocation
|
110
|
+
SENSITIVE: []
|
111
|
+
end
|
112
|
+
|
113
|
+
class ImportTerminologyRequest
|
114
|
+
attr_accessor name: ::String
|
115
|
+
attr_accessor merge_strategy: ("OVERWRITE")
|
116
|
+
attr_accessor description: ::String
|
117
|
+
attr_accessor terminology_data: Types::TerminologyData
|
118
|
+
attr_accessor encryption_key: Types::EncryptionKey
|
119
|
+
attr_accessor tags: ::Array[Types::Tag]
|
120
|
+
SENSITIVE: []
|
121
|
+
end
|
122
|
+
|
123
|
+
class ImportTerminologyResponse
|
124
|
+
attr_accessor terminology_properties: Types::TerminologyProperties
|
125
|
+
attr_accessor auxiliary_data_location: Types::TerminologyDataLocation
|
126
|
+
SENSITIVE: []
|
127
|
+
end
|
128
|
+
|
129
|
+
class InputDataConfig
|
130
|
+
attr_accessor s3_uri: ::String
|
131
|
+
attr_accessor content_type: ::String
|
132
|
+
SENSITIVE: []
|
133
|
+
end
|
134
|
+
|
135
|
+
class InternalServerException
|
136
|
+
attr_accessor message: ::String
|
137
|
+
SENSITIVE: []
|
138
|
+
end
|
139
|
+
|
140
|
+
class InvalidFilterException
|
141
|
+
attr_accessor message: ::String
|
142
|
+
SENSITIVE: []
|
143
|
+
end
|
144
|
+
|
145
|
+
class InvalidParameterValueException
|
146
|
+
attr_accessor message: ::String
|
147
|
+
SENSITIVE: []
|
148
|
+
end
|
149
|
+
|
150
|
+
class InvalidRequestException
|
151
|
+
attr_accessor message: ::String
|
152
|
+
SENSITIVE: []
|
153
|
+
end
|
154
|
+
|
155
|
+
class JobDetails
|
156
|
+
attr_accessor translated_documents_count: ::Integer
|
157
|
+
attr_accessor documents_with_errors_count: ::Integer
|
158
|
+
attr_accessor input_documents_count: ::Integer
|
159
|
+
SENSITIVE: []
|
160
|
+
end
|
161
|
+
|
162
|
+
class Language
|
163
|
+
attr_accessor language_name: ::String
|
164
|
+
attr_accessor language_code: ::String
|
165
|
+
SENSITIVE: []
|
166
|
+
end
|
167
|
+
|
168
|
+
class LimitExceededException
|
169
|
+
attr_accessor message: ::String
|
170
|
+
SENSITIVE: []
|
171
|
+
end
|
172
|
+
|
173
|
+
class ListLanguagesRequest
|
174
|
+
attr_accessor display_language_code: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pt" | "zh" | "zh-TW")
|
175
|
+
attr_accessor next_token: ::String
|
176
|
+
attr_accessor max_results: ::Integer
|
177
|
+
SENSITIVE: []
|
178
|
+
end
|
179
|
+
|
180
|
+
class ListLanguagesResponse
|
181
|
+
attr_accessor languages: ::Array[Types::Language]
|
182
|
+
attr_accessor display_language_code: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pt" | "zh" | "zh-TW")
|
183
|
+
attr_accessor next_token: ::String
|
184
|
+
SENSITIVE: []
|
185
|
+
end
|
186
|
+
|
187
|
+
class ListParallelDataRequest
|
188
|
+
attr_accessor next_token: ::String
|
189
|
+
attr_accessor max_results: ::Integer
|
190
|
+
SENSITIVE: []
|
191
|
+
end
|
192
|
+
|
193
|
+
class ListParallelDataResponse
|
194
|
+
attr_accessor parallel_data_properties_list: ::Array[Types::ParallelDataProperties]
|
195
|
+
attr_accessor next_token: ::String
|
196
|
+
SENSITIVE: []
|
197
|
+
end
|
198
|
+
|
199
|
+
class ListTagsForResourceRequest
|
200
|
+
attr_accessor resource_arn: ::String
|
201
|
+
SENSITIVE: []
|
202
|
+
end
|
203
|
+
|
204
|
+
class ListTagsForResourceResponse
|
205
|
+
attr_accessor tags: ::Array[Types::Tag]
|
206
|
+
SENSITIVE: []
|
207
|
+
end
|
208
|
+
|
209
|
+
class ListTerminologiesRequest
|
210
|
+
attr_accessor next_token: ::String
|
211
|
+
attr_accessor max_results: ::Integer
|
212
|
+
SENSITIVE: []
|
213
|
+
end
|
214
|
+
|
215
|
+
class ListTerminologiesResponse
|
216
|
+
attr_accessor terminology_properties_list: ::Array[Types::TerminologyProperties]
|
217
|
+
attr_accessor next_token: ::String
|
218
|
+
SENSITIVE: []
|
219
|
+
end
|
220
|
+
|
221
|
+
class ListTextTranslationJobsRequest
|
222
|
+
attr_accessor filter: Types::TextTranslationJobFilter
|
223
|
+
attr_accessor next_token: ::String
|
224
|
+
attr_accessor max_results: ::Integer
|
225
|
+
SENSITIVE: []
|
226
|
+
end
|
227
|
+
|
228
|
+
class ListTextTranslationJobsResponse
|
229
|
+
attr_accessor text_translation_job_properties_list: ::Array[Types::TextTranslationJobProperties]
|
230
|
+
attr_accessor next_token: ::String
|
231
|
+
SENSITIVE: []
|
232
|
+
end
|
233
|
+
|
234
|
+
class OutputDataConfig
|
235
|
+
attr_accessor s3_uri: ::String
|
236
|
+
attr_accessor encryption_key: Types::EncryptionKey
|
237
|
+
SENSITIVE: []
|
238
|
+
end
|
239
|
+
|
240
|
+
class ParallelDataConfig
|
241
|
+
attr_accessor s3_uri: ::String
|
242
|
+
attr_accessor format: ("TSV" | "CSV" | "TMX")
|
243
|
+
SENSITIVE: []
|
244
|
+
end
|
245
|
+
|
246
|
+
class ParallelDataDataLocation
|
247
|
+
attr_accessor repository_type: ::String
|
248
|
+
attr_accessor location: ::String
|
249
|
+
SENSITIVE: []
|
250
|
+
end
|
251
|
+
|
252
|
+
class ParallelDataProperties
|
253
|
+
attr_accessor name: ::String
|
254
|
+
attr_accessor arn: ::String
|
255
|
+
attr_accessor description: ::String
|
256
|
+
attr_accessor status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
257
|
+
attr_accessor source_language_code: ::String
|
258
|
+
attr_accessor target_language_codes: ::Array[::String]
|
259
|
+
attr_accessor parallel_data_config: Types::ParallelDataConfig
|
260
|
+
attr_accessor message: ::String
|
261
|
+
attr_accessor imported_data_size: ::Integer
|
262
|
+
attr_accessor imported_record_count: ::Integer
|
263
|
+
attr_accessor failed_record_count: ::Integer
|
264
|
+
attr_accessor skipped_record_count: ::Integer
|
265
|
+
attr_accessor encryption_key: Types::EncryptionKey
|
266
|
+
attr_accessor created_at: ::Time
|
267
|
+
attr_accessor last_updated_at: ::Time
|
268
|
+
attr_accessor latest_update_attempt_status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
269
|
+
attr_accessor latest_update_attempt_at: ::Time
|
270
|
+
SENSITIVE: []
|
271
|
+
end
|
272
|
+
|
273
|
+
class ResourceNotFoundException
|
274
|
+
attr_accessor message: ::String
|
275
|
+
SENSITIVE: []
|
276
|
+
end
|
277
|
+
|
278
|
+
class ServiceUnavailableException
|
279
|
+
attr_accessor message: ::String
|
280
|
+
SENSITIVE: []
|
281
|
+
end
|
282
|
+
|
283
|
+
class StartTextTranslationJobRequest
|
284
|
+
attr_accessor job_name: ::String
|
285
|
+
attr_accessor input_data_config: Types::InputDataConfig
|
286
|
+
attr_accessor output_data_config: Types::OutputDataConfig
|
287
|
+
attr_accessor data_access_role_arn: ::String
|
288
|
+
attr_accessor source_language_code: ::String
|
289
|
+
attr_accessor target_language_codes: ::Array[::String]
|
290
|
+
attr_accessor terminology_names: ::Array[::String]
|
291
|
+
attr_accessor parallel_data_names: ::Array[::String]
|
292
|
+
attr_accessor client_token: ::String
|
293
|
+
attr_accessor settings: Types::TranslationSettings
|
294
|
+
SENSITIVE: []
|
295
|
+
end
|
296
|
+
|
297
|
+
class StartTextTranslationJobResponse
|
298
|
+
attr_accessor job_id: ::String
|
299
|
+
attr_accessor job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
300
|
+
SENSITIVE: []
|
301
|
+
end
|
302
|
+
|
303
|
+
class StopTextTranslationJobRequest
|
304
|
+
attr_accessor job_id: ::String
|
305
|
+
SENSITIVE: []
|
306
|
+
end
|
307
|
+
|
308
|
+
class StopTextTranslationJobResponse
|
309
|
+
attr_accessor job_id: ::String
|
310
|
+
attr_accessor job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
311
|
+
SENSITIVE: []
|
312
|
+
end
|
313
|
+
|
314
|
+
class Tag
|
315
|
+
attr_accessor key: ::String
|
316
|
+
attr_accessor value: ::String
|
317
|
+
SENSITIVE: []
|
318
|
+
end
|
319
|
+
|
320
|
+
class TagResourceRequest
|
321
|
+
attr_accessor resource_arn: ::String
|
322
|
+
attr_accessor tags: ::Array[Types::Tag]
|
323
|
+
SENSITIVE: []
|
324
|
+
end
|
325
|
+
|
326
|
+
class TagResourceResponse < Aws::EmptyStructure
|
327
|
+
end
|
328
|
+
|
329
|
+
class Term
|
330
|
+
attr_accessor source_text: ::String
|
331
|
+
attr_accessor target_text: ::String
|
332
|
+
SENSITIVE: []
|
333
|
+
end
|
334
|
+
|
335
|
+
class TerminologyData
|
336
|
+
attr_accessor file: ::String
|
337
|
+
attr_accessor format: ("CSV" | "TMX" | "TSV")
|
338
|
+
attr_accessor directionality: ("UNI" | "MULTI")
|
339
|
+
SENSITIVE: [:file]
|
340
|
+
end
|
341
|
+
|
342
|
+
class TerminologyDataLocation
|
343
|
+
attr_accessor repository_type: ::String
|
344
|
+
attr_accessor location: ::String
|
345
|
+
SENSITIVE: []
|
346
|
+
end
|
347
|
+
|
348
|
+
class TerminologyProperties
|
349
|
+
attr_accessor name: ::String
|
350
|
+
attr_accessor description: ::String
|
351
|
+
attr_accessor arn: ::String
|
352
|
+
attr_accessor source_language_code: ::String
|
353
|
+
attr_accessor target_language_codes: ::Array[::String]
|
354
|
+
attr_accessor encryption_key: Types::EncryptionKey
|
355
|
+
attr_accessor size_bytes: ::Integer
|
356
|
+
attr_accessor term_count: ::Integer
|
357
|
+
attr_accessor created_at: ::Time
|
358
|
+
attr_accessor last_updated_at: ::Time
|
359
|
+
attr_accessor directionality: ("UNI" | "MULTI")
|
360
|
+
attr_accessor message: ::String
|
361
|
+
attr_accessor skipped_term_count: ::Integer
|
362
|
+
attr_accessor format: ("CSV" | "TMX" | "TSV")
|
363
|
+
SENSITIVE: []
|
364
|
+
end
|
365
|
+
|
366
|
+
class TextSizeLimitExceededException
|
367
|
+
attr_accessor message: ::String
|
368
|
+
SENSITIVE: []
|
369
|
+
end
|
370
|
+
|
371
|
+
class TextTranslationJobFilter
|
372
|
+
attr_accessor job_name: ::String
|
373
|
+
attr_accessor job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
374
|
+
attr_accessor submitted_before_time: ::Time
|
375
|
+
attr_accessor submitted_after_time: ::Time
|
376
|
+
SENSITIVE: []
|
377
|
+
end
|
378
|
+
|
379
|
+
class TextTranslationJobProperties
|
380
|
+
attr_accessor job_id: ::String
|
381
|
+
attr_accessor job_name: ::String
|
382
|
+
attr_accessor job_status: ("SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_WITH_ERROR" | "FAILED" | "STOP_REQUESTED" | "STOPPED")
|
383
|
+
attr_accessor job_details: Types::JobDetails
|
384
|
+
attr_accessor source_language_code: ::String
|
385
|
+
attr_accessor target_language_codes: ::Array[::String]
|
386
|
+
attr_accessor terminology_names: ::Array[::String]
|
387
|
+
attr_accessor parallel_data_names: ::Array[::String]
|
388
|
+
attr_accessor message: ::String
|
389
|
+
attr_accessor submitted_time: ::Time
|
390
|
+
attr_accessor end_time: ::Time
|
391
|
+
attr_accessor input_data_config: Types::InputDataConfig
|
392
|
+
attr_accessor output_data_config: Types::OutputDataConfig
|
393
|
+
attr_accessor data_access_role_arn: ::String
|
394
|
+
attr_accessor settings: Types::TranslationSettings
|
395
|
+
SENSITIVE: []
|
396
|
+
end
|
397
|
+
|
398
|
+
class TooManyRequestsException
|
399
|
+
attr_accessor message: ::String
|
400
|
+
SENSITIVE: []
|
401
|
+
end
|
402
|
+
|
403
|
+
class TooManyTagsException
|
404
|
+
attr_accessor message: ::String
|
405
|
+
attr_accessor resource_arn: ::String
|
406
|
+
SENSITIVE: []
|
407
|
+
end
|
408
|
+
|
409
|
+
class TranslateDocumentRequest
|
410
|
+
attr_accessor document: Types::Document
|
411
|
+
attr_accessor terminology_names: ::Array[::String]
|
412
|
+
attr_accessor source_language_code: ::String
|
413
|
+
attr_accessor target_language_code: ::String
|
414
|
+
attr_accessor settings: Types::TranslationSettings
|
415
|
+
SENSITIVE: []
|
416
|
+
end
|
417
|
+
|
418
|
+
class TranslateDocumentResponse
|
419
|
+
attr_accessor translated_document: Types::TranslatedDocument
|
420
|
+
attr_accessor source_language_code: ::String
|
421
|
+
attr_accessor target_language_code: ::String
|
422
|
+
attr_accessor applied_terminologies: ::Array[Types::AppliedTerminology]
|
423
|
+
attr_accessor applied_settings: Types::TranslationSettings
|
424
|
+
SENSITIVE: []
|
425
|
+
end
|
426
|
+
|
427
|
+
class TranslateTextRequest
|
428
|
+
attr_accessor text: ::String
|
429
|
+
attr_accessor terminology_names: ::Array[::String]
|
430
|
+
attr_accessor source_language_code: ::String
|
431
|
+
attr_accessor target_language_code: ::String
|
432
|
+
attr_accessor settings: Types::TranslationSettings
|
433
|
+
SENSITIVE: []
|
434
|
+
end
|
435
|
+
|
436
|
+
class TranslateTextResponse
|
437
|
+
attr_accessor translated_text: ::String
|
438
|
+
attr_accessor source_language_code: ::String
|
439
|
+
attr_accessor target_language_code: ::String
|
440
|
+
attr_accessor applied_terminologies: ::Array[Types::AppliedTerminology]
|
441
|
+
attr_accessor applied_settings: Types::TranslationSettings
|
442
|
+
SENSITIVE: []
|
443
|
+
end
|
444
|
+
|
445
|
+
class TranslatedDocument
|
446
|
+
attr_accessor content: ::String
|
447
|
+
SENSITIVE: [:content]
|
448
|
+
end
|
449
|
+
|
450
|
+
class TranslationSettings
|
451
|
+
attr_accessor formality: ("FORMAL" | "INFORMAL")
|
452
|
+
attr_accessor profanity: ("MASK")
|
453
|
+
attr_accessor brevity: ("ON")
|
454
|
+
SENSITIVE: []
|
455
|
+
end
|
456
|
+
|
457
|
+
class UnsupportedDisplayLanguageCodeException
|
458
|
+
attr_accessor message: ::String
|
459
|
+
attr_accessor display_language_code: ::String
|
460
|
+
SENSITIVE: []
|
461
|
+
end
|
462
|
+
|
463
|
+
class UnsupportedLanguagePairException
|
464
|
+
attr_accessor message: ::String
|
465
|
+
attr_accessor source_language_code: ::String
|
466
|
+
attr_accessor target_language_code: ::String
|
467
|
+
SENSITIVE: []
|
468
|
+
end
|
469
|
+
|
470
|
+
class UntagResourceRequest
|
471
|
+
attr_accessor resource_arn: ::String
|
472
|
+
attr_accessor tag_keys: ::Array[::String]
|
473
|
+
SENSITIVE: []
|
474
|
+
end
|
475
|
+
|
476
|
+
class UntagResourceResponse < Aws::EmptyStructure
|
477
|
+
end
|
478
|
+
|
479
|
+
class UpdateParallelDataRequest
|
480
|
+
attr_accessor name: ::String
|
481
|
+
attr_accessor description: ::String
|
482
|
+
attr_accessor parallel_data_config: Types::ParallelDataConfig
|
483
|
+
attr_accessor client_token: ::String
|
484
|
+
SENSITIVE: []
|
485
|
+
end
|
486
|
+
|
487
|
+
class UpdateParallelDataResponse
|
488
|
+
attr_accessor name: ::String
|
489
|
+
attr_accessor status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
490
|
+
attr_accessor latest_update_attempt_status: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "FAILED")
|
491
|
+
attr_accessor latest_update_attempt_at: ::Time
|
492
|
+
SENSITIVE: []
|
493
|
+
end
|
494
|
+
end
|
495
|
+
end
|
data/sig/waiters.rbs
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module Translate
|
10
|
+
module Waiters
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
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.63.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-26 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.191.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.191.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,13 +67,18 @@ files:
|
|
67
67
|
- lib/aws-sdk-translate/plugins/translate_document_encoding.rb
|
68
68
|
- lib/aws-sdk-translate/resource.rb
|
69
69
|
- lib/aws-sdk-translate/types.rb
|
70
|
+
- sig/client.rbs
|
71
|
+
- sig/errors.rbs
|
72
|
+
- sig/resource.rbs
|
73
|
+
- sig/types.rbs
|
74
|
+
- sig/waiters.rbs
|
70
75
|
homepage: https://github.com/aws/aws-sdk-ruby
|
71
76
|
licenses:
|
72
77
|
- Apache-2.0
|
73
78
|
metadata:
|
74
79
|
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-translate
|
75
80
|
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-translate/CHANGELOG.md
|
76
|
-
post_install_message:
|
81
|
+
post_install_message:
|
77
82
|
rdoc_options: []
|
78
83
|
require_paths:
|
79
84
|
- lib
|
@@ -88,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
93
|
- !ruby/object:Gem::Version
|
89
94
|
version: '0'
|
90
95
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
96
|
+
rubygems_version: 3.4.10
|
97
|
+
signing_key:
|
93
98
|
specification_version: 4
|
94
99
|
summary: AWS SDK for Ruby - Amazon Translate
|
95
100
|
test_files: []
|