aws-sdk-transcribestreamingservice 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +26 -13
- data/lib/aws-sdk-transcribestreamingservice/client.rb +21 -18
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +6 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +5 -0
- data/lib/aws-sdk-transcribestreamingservice/resource.rb +1 -7
- data/lib/aws-sdk-transcribestreamingservice/types.rb +15 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 758b1432c23e0635a3b7964471e6d28962bc06ea320b32899a6254483c0c1a68
|
4
|
+
data.tar.gz: 62d8b22ce5727d277dfa881ae2759618539c303d1c1e65b0604a7ac9caa28237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045afc8667283208af66b42e8a9de69a0f8ca5967d3b388ea4d5899c6ac628eb488602fad86015e9e738e5eaec975eacbd729b825e61491a01cb0f9c83cc1bbd
|
7
|
+
data.tar.gz: b7214059d222b1fca4b1bd943ece3c2497bc7e80261b442eea5bf888a5ef9e8c6c12732aaeed83d5333e11b753f8a741af2fbca3db31ae072304758bfee77bc7
|
@@ -178,15 +178,19 @@ module Aws::TranscribeStreamingService
|
|
178
178
|
#
|
179
179
|
# @option options [String] :retry_mode ("legacy")
|
180
180
|
# Specifies which retry algorithm to use. Values are:
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
181
|
+
#
|
182
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
183
|
+
# no retry mode is provided.
|
184
|
+
#
|
185
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
186
|
+
# This includes support for retry quotas, which limit the number of
|
187
|
+
# unsuccessful retries a client can make.
|
188
|
+
#
|
189
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
190
|
+
# functionality of `standard` mode along with automatic client side
|
191
|
+
# throttling. This is a provisional mode that may change behavior
|
192
|
+
# in the future.
|
193
|
+
#
|
190
194
|
#
|
191
195
|
# @option options [String] :secret_access_key
|
192
196
|
#
|
@@ -288,6 +292,9 @@ module Aws::TranscribeStreamingService
|
|
288
292
|
# out_stream.on_conflict_exception_event do |event|
|
289
293
|
# event # => Aws::TranscribeStreamingService::Types::ConflictException
|
290
294
|
# end
|
295
|
+
# out_stream.on_service_unavailable_exception_event do |event|
|
296
|
+
# event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
|
297
|
+
# end
|
291
298
|
#
|
292
299
|
# end
|
293
300
|
# # => returns Aws::Seahorse::Client::AsyncResponse
|
@@ -323,6 +330,9 @@ module Aws::TranscribeStreamingService
|
|
323
330
|
# output_stream.on_conflict_exception_event do |event|
|
324
331
|
# event # => Aws::TranscribeStreamingService::Types::ConflictException
|
325
332
|
# end
|
333
|
+
# output_stream.on_service_unavailable_exception_event do |event|
|
334
|
+
# event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
|
335
|
+
# end
|
326
336
|
# output_stream.on_error_event do |event|
|
327
337
|
# # catch unmodeled error event in the stream
|
328
338
|
# raise event
|
@@ -369,7 +379,7 @@ module Aws::TranscribeStreamingService
|
|
369
379
|
# resp.session_id #=> String
|
370
380
|
# All events are available at resp.transcript_result_stream:
|
371
381
|
# resp.transcript_result_stream #=> Enumerator
|
372
|
-
# resp.transcript_result_stream.event_types #=> [:transcript_event, :bad_request_exception, :limit_exceeded_exception, :internal_failure_exception, :conflict_exception]
|
382
|
+
# resp.transcript_result_stream.event_types #=> [:transcript_event, :bad_request_exception, :limit_exceeded_exception, :internal_failure_exception, :conflict_exception, :service_unavailable_exception]
|
373
383
|
#
|
374
384
|
# For :transcript_event event available at #on_transcript_event_event callback and response eventstream enumerator:
|
375
385
|
# event.transcript.results #=> Array
|
@@ -397,6 +407,9 @@ module Aws::TranscribeStreamingService
|
|
397
407
|
# For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
|
398
408
|
# event.message #=> String
|
399
409
|
#
|
410
|
+
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
411
|
+
# event.message #=> String
|
412
|
+
#
|
400
413
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
401
414
|
#
|
402
415
|
# @overload start_stream_transcription(params = {})
|
@@ -440,7 +453,7 @@ module Aws::TranscribeStreamingService
|
|
440
453
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
441
454
|
config: config)
|
442
455
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
443
|
-
context[:gem_version] = '1.
|
456
|
+
context[:gem_version] = '1.12.0'
|
444
457
|
Seahorse::Client::Request.new(handlers, context)
|
445
458
|
end
|
446
459
|
|
@@ -453,8 +466,8 @@ module Aws::TranscribeStreamingService
|
|
453
466
|
when nil then event_stream_class.new
|
454
467
|
else
|
455
468
|
msg = "expected #{type}_event_stream_handler to be a block or "\
|
456
|
-
|
457
|
-
|
469
|
+
"instance of Aws::TranscribeStreamingService::#{event_stream_class}"\
|
470
|
+
", got `#{handler.inspect}` instead"
|
458
471
|
raise ArgumentError, msg
|
459
472
|
end
|
460
473
|
end
|
@@ -33,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:transcribestreamingservice)
|
|
33
33
|
module Aws::TranscribeStreamingService
|
34
34
|
# An API client for TranscribeStreamingService. To construct a client, you need to configure a `:region` and `:credentials`.
|
35
35
|
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
36
|
+
# client = Aws::TranscribeStreamingService::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
41
41
|
#
|
42
42
|
# For details on configuring region and credentials see
|
43
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -240,15 +240,19 @@ module Aws::TranscribeStreamingService
|
|
240
240
|
#
|
241
241
|
# @option options [String] :retry_mode ("legacy")
|
242
242
|
# Specifies which retry algorithm to use. Values are:
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
243
|
+
#
|
244
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
245
|
+
# no retry mode is provided.
|
246
|
+
#
|
247
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
248
|
+
# This includes support for retry quotas, which limit the number of
|
249
|
+
# unsuccessful retries a client can make.
|
250
|
+
#
|
251
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
252
|
+
# functionality of `standard` mode along with automatic client side
|
253
|
+
# throttling. This is a provisional mode that may change behavior
|
254
|
+
# in the future.
|
255
|
+
#
|
252
256
|
#
|
253
257
|
# @option options [String] :secret_access_key
|
254
258
|
#
|
@@ -276,8 +280,7 @@ module Aws::TranscribeStreamingService
|
|
276
280
|
#
|
277
281
|
# @option options [Integer] :http_read_timeout (60) The default
|
278
282
|
# number of seconds to wait for response data. This value can
|
279
|
-
# safely be set
|
280
|
-
# per-request on the session yielded by {#session_for}.
|
283
|
+
# safely be set per-request on the session.
|
281
284
|
#
|
282
285
|
# @option options [Float] :http_idle_timeout (5) The number of
|
283
286
|
# seconds a connection is allowed to sit idle before it is
|
@@ -289,7 +292,7 @@ module Aws::TranscribeStreamingService
|
|
289
292
|
# request body. This option has no effect unless the request has
|
290
293
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
291
294
|
# disables this behaviour. This value can safely be set per
|
292
|
-
# request on the session
|
295
|
+
# request on the session.
|
293
296
|
#
|
294
297
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
295
298
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -329,7 +332,7 @@ module Aws::TranscribeStreamingService
|
|
329
332
|
params: params,
|
330
333
|
config: config)
|
331
334
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
332
|
-
context[:gem_version] = '1.
|
335
|
+
context[:gem_version] = '1.12.0'
|
333
336
|
Seahorse::Client::Request.new(handlers, context)
|
334
337
|
end
|
335
338
|
|
@@ -31,6 +31,7 @@ module Aws::TranscribeStreamingService
|
|
31
31
|
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
32
32
|
Result = Shapes::StructureShape.new(name: 'Result')
|
33
33
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
34
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
34
35
|
SessionId = Shapes::StringShape.new(name: 'SessionId')
|
35
36
|
StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
|
36
37
|
StartStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartStreamTranscriptionResponse')
|
@@ -81,6 +82,9 @@ module Aws::TranscribeStreamingService
|
|
81
82
|
|
82
83
|
ResultList.member = Shapes::ShapeRef.new(shape: Result)
|
83
84
|
|
85
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
86
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
87
|
+
|
84
88
|
StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
85
89
|
StartStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
86
90
|
StartStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
@@ -113,6 +117,7 @@ module Aws::TranscribeStreamingService
|
|
113
117
|
TranscriptResultStream.add_member(:limit_exceeded_exception, Shapes::ShapeRef.new(shape: LimitExceededException, event: true, location_name: "LimitExceededException"))
|
114
118
|
TranscriptResultStream.add_member(:internal_failure_exception, Shapes::ShapeRef.new(shape: InternalFailureException, event: true, location_name: "InternalFailureException"))
|
115
119
|
TranscriptResultStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
|
120
|
+
TranscriptResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
|
116
121
|
TranscriptResultStream.struct_class = Types::TranscriptResultStream
|
117
122
|
|
118
123
|
|
@@ -143,6 +148,7 @@ module Aws::TranscribeStreamingService
|
|
143
148
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
144
149
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
145
150
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
151
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
146
152
|
o.async = true
|
147
153
|
end)
|
148
154
|
end
|
@@ -57,6 +57,10 @@ module Aws::TranscribeStreamingService
|
|
57
57
|
@event_emitter.on(:conflict_exception, block) if block_given?
|
58
58
|
end
|
59
59
|
|
60
|
+
def on_service_unavailable_exception_event(&block)
|
61
|
+
@event_emitter.on(:service_unavailable_exception, block) if block_given?
|
62
|
+
end
|
63
|
+
|
60
64
|
def on_error_event(&block)
|
61
65
|
@event_emitter.on(:error, block) if block_given?
|
62
66
|
end
|
@@ -71,6 +75,7 @@ module Aws::TranscribeStreamingService
|
|
71
75
|
on_limit_exceeded_exception_event(&block)
|
72
76
|
on_internal_failure_exception_event(&block)
|
73
77
|
on_conflict_exception_event(&block)
|
78
|
+
on_service_unavailable_exception_event(&block)
|
74
79
|
on_error_event(&block)
|
75
80
|
on_initial_response_event(&block)
|
76
81
|
end
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::TranscribeStreamingService
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::TranscribeStreamingService::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::TranscribeStreamingService::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::TranscribeStreamingService::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -184,6 +184,19 @@ module Aws::TranscribeStreamingService
|
|
184
184
|
include Aws::Structure
|
185
185
|
end
|
186
186
|
|
187
|
+
# Service is currently unavailable. Try your request later.
|
188
|
+
#
|
189
|
+
# @!attribute [rw] message
|
190
|
+
# @return [String]
|
191
|
+
#
|
192
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/ServiceUnavailableException AWS API Documentation
|
193
|
+
#
|
194
|
+
class ServiceUnavailableException < Struct.new(
|
195
|
+
:message,
|
196
|
+
:event_type)
|
197
|
+
include Aws::Structure
|
198
|
+
end
|
199
|
+
|
187
200
|
# @note When making an API call, you may pass StartStreamTranscriptionRequest
|
188
201
|
# data as a hash:
|
189
202
|
#
|
@@ -355,7 +368,8 @@ module Aws::TranscribeStreamingService
|
|
355
368
|
:bad_request_exception,
|
356
369
|
:limit_exceeded_exception,
|
357
370
|
:internal_failure_exception,
|
358
|
-
:conflict_exception
|
371
|
+
:conflict_exception,
|
372
|
+
:service_unavailable_exception
|
359
373
|
]
|
360
374
|
end
|
361
375
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-transcribestreamingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.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: 2020-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.7.6.2
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: AWS SDK for Ruby - Amazon Transcribe Streaming Service
|