aws-sdk-rekognition 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-rekognition.rb +2 -1
- data/lib/aws-sdk-rekognition/client.rb +601 -23
- data/lib/aws-sdk-rekognition/client_api.rb +323 -0
- data/lib/aws-sdk-rekognition/errors.rb +26 -0
- data/lib/aws-sdk-rekognition/types.rb +834 -21
- data/lib/aws-sdk-rekognition/waiters.rb +103 -0
- metadata +3 -2
@@ -0,0 +1,103 @@
|
|
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/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core/waiters'
|
9
|
+
|
10
|
+
module Aws::Rekognition
|
11
|
+
module Waiters
|
12
|
+
|
13
|
+
# Wait until the ProjectVersion is running.
|
14
|
+
class ProjectVersionRunning
|
15
|
+
|
16
|
+
# @param [Hash] options
|
17
|
+
# @option options [required, Client] :client
|
18
|
+
# @option options [Integer] :max_attempts (40)
|
19
|
+
# @option options [Integer] :delay (30)
|
20
|
+
# @option options [Proc] :before_attempt
|
21
|
+
# @option options [Proc] :before_wait
|
22
|
+
def initialize(options)
|
23
|
+
@client = options.fetch(:client)
|
24
|
+
@waiter = Aws::Waiters::Waiter.new({
|
25
|
+
max_attempts: 40,
|
26
|
+
delay: 30,
|
27
|
+
poller: Aws::Waiters::Poller.new(
|
28
|
+
operation_name: :describe_project_versions,
|
29
|
+
acceptors: [
|
30
|
+
{
|
31
|
+
"state" => "success",
|
32
|
+
"matcher" => "pathAll",
|
33
|
+
"argument" => "project_version_descriptions[].status",
|
34
|
+
"expected" => "RUNNING"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"state" => "failure",
|
38
|
+
"matcher" => "pathAny",
|
39
|
+
"argument" => "project_version_descriptions[].status",
|
40
|
+
"expected" => "FAILED"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
)
|
44
|
+
}.merge(options))
|
45
|
+
end
|
46
|
+
|
47
|
+
# @option (see Client#describe_project_versions)
|
48
|
+
# @return (see Client#describe_project_versions)
|
49
|
+
def wait(params = {})
|
50
|
+
@waiter.wait(client: @client, params: params)
|
51
|
+
end
|
52
|
+
|
53
|
+
# @api private
|
54
|
+
attr_reader :waiter
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
# Wait until the ProjectVersion training completes.
|
59
|
+
class ProjectVersionTrainingCompleted
|
60
|
+
|
61
|
+
# @param [Hash] options
|
62
|
+
# @option options [required, Client] :client
|
63
|
+
# @option options [Integer] :max_attempts (360)
|
64
|
+
# @option options [Integer] :delay (120)
|
65
|
+
# @option options [Proc] :before_attempt
|
66
|
+
# @option options [Proc] :before_wait
|
67
|
+
def initialize(options)
|
68
|
+
@client = options.fetch(:client)
|
69
|
+
@waiter = Aws::Waiters::Waiter.new({
|
70
|
+
max_attempts: 360,
|
71
|
+
delay: 120,
|
72
|
+
poller: Aws::Waiters::Poller.new(
|
73
|
+
operation_name: :describe_project_versions,
|
74
|
+
acceptors: [
|
75
|
+
{
|
76
|
+
"state" => "success",
|
77
|
+
"matcher" => "pathAll",
|
78
|
+
"argument" => "project_version_descriptions[].status",
|
79
|
+
"expected" => "TRAINING_COMPLETED"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"state" => "failure",
|
83
|
+
"matcher" => "pathAny",
|
84
|
+
"argument" => "project_version_descriptions[].status",
|
85
|
+
"expected" => "TRAINING_FAILED"
|
86
|
+
}
|
87
|
+
]
|
88
|
+
)
|
89
|
+
}.merge(options))
|
90
|
+
end
|
91
|
+
|
92
|
+
# @option (see Client#describe_project_versions)
|
93
|
+
# @return (see Client#describe_project_versions)
|
94
|
+
def wait(params = {})
|
95
|
+
@waiter.wait(client: @client, params: params)
|
96
|
+
end
|
97
|
+
|
98
|
+
# @api private
|
99
|
+
attr_reader :waiter
|
100
|
+
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rekognition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.33.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: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/aws-sdk-rekognition/errors.rb
|
60
60
|
- lib/aws-sdk-rekognition/resource.rb
|
61
61
|
- lib/aws-sdk-rekognition/types.rb
|
62
|
+
- lib/aws-sdk-rekognition/waiters.rb
|
62
63
|
homepage: https://github.com/aws/aws-sdk-ruby
|
63
64
|
licenses:
|
64
65
|
- Apache-2.0
|