aws-sdk-machinelearning 1.0.0.rc1
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 +7 -0
- data/lib/aws-sdk-machinelearning.rb +48 -0
- data/lib/aws-sdk-machinelearning/client.rb +2037 -0
- data/lib/aws-sdk-machinelearning/client_api.rb +1304 -0
- data/lib/aws-sdk-machinelearning/customizations.rb +7 -0
- data/lib/aws-sdk-machinelearning/errors.rb +23 -0
- data/lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb +22 -0
- data/lib/aws-sdk-machinelearning/resource.rb +25 -0
- data/lib/aws-sdk-machinelearning/types.rb +3711 -0
- data/lib/aws-sdk-machinelearning/waiters.rb +190 -0
- metadata +82 -0
@@ -0,0 +1,190 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
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
|
11
|
+
module MachineLearning
|
12
|
+
module Waiters
|
13
|
+
class DataSourceAvailable
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (60)
|
18
|
+
# @option options [Integer] :delay (30)
|
19
|
+
# @option options [Proc] :before_attempt
|
20
|
+
# @option options [Proc] :before_wait
|
21
|
+
def initialize(options)
|
22
|
+
@client = options.fetch(:client)
|
23
|
+
@waiter = Aws::Waiters::Waiter.new({
|
24
|
+
max_attempts: 60,
|
25
|
+
delay: 30,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_data_sources,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"expected" => "COMPLETED",
|
31
|
+
"matcher" => "pathAll",
|
32
|
+
"state" => "success",
|
33
|
+
"argument" => "results[].status"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"expected" => "FAILED",
|
37
|
+
"matcher" => "pathAny",
|
38
|
+
"state" => "failure",
|
39
|
+
"argument" => "results[].status"
|
40
|
+
}
|
41
|
+
]
|
42
|
+
)
|
43
|
+
}.merge(options))
|
44
|
+
end
|
45
|
+
|
46
|
+
# @option (see Client#describe_data_sources)
|
47
|
+
# @return (see Client#describe_data_sources)
|
48
|
+
def wait(params = {})
|
49
|
+
@waiter.wait(client: @client, params: params)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @api private
|
53
|
+
attr_reader :waiter
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
class MLModelAvailable
|
58
|
+
|
59
|
+
# @param [Hash] options
|
60
|
+
# @option options [required, Client] :client
|
61
|
+
# @option options [Integer] :max_attempts (60)
|
62
|
+
# @option options [Integer] :delay (30)
|
63
|
+
# @option options [Proc] :before_attempt
|
64
|
+
# @option options [Proc] :before_wait
|
65
|
+
def initialize(options)
|
66
|
+
@client = options.fetch(:client)
|
67
|
+
@waiter = Aws::Waiters::Waiter.new({
|
68
|
+
max_attempts: 60,
|
69
|
+
delay: 30,
|
70
|
+
poller: Aws::Waiters::Poller.new(
|
71
|
+
operation_name: :describe_ml_models,
|
72
|
+
acceptors: [
|
73
|
+
{
|
74
|
+
"expected" => "COMPLETED",
|
75
|
+
"matcher" => "pathAll",
|
76
|
+
"state" => "success",
|
77
|
+
"argument" => "results[].status"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"expected" => "FAILED",
|
81
|
+
"matcher" => "pathAny",
|
82
|
+
"state" => "failure",
|
83
|
+
"argument" => "results[].status"
|
84
|
+
}
|
85
|
+
]
|
86
|
+
)
|
87
|
+
}.merge(options))
|
88
|
+
end
|
89
|
+
|
90
|
+
# @option (see Client#describe_ml_models)
|
91
|
+
# @return (see Client#describe_ml_models)
|
92
|
+
def wait(params = {})
|
93
|
+
@waiter.wait(client: @client, params: params)
|
94
|
+
end
|
95
|
+
|
96
|
+
# @api private
|
97
|
+
attr_reader :waiter
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
class EvaluationAvailable
|
102
|
+
|
103
|
+
# @param [Hash] options
|
104
|
+
# @option options [required, Client] :client
|
105
|
+
# @option options [Integer] :max_attempts (60)
|
106
|
+
# @option options [Integer] :delay (30)
|
107
|
+
# @option options [Proc] :before_attempt
|
108
|
+
# @option options [Proc] :before_wait
|
109
|
+
def initialize(options)
|
110
|
+
@client = options.fetch(:client)
|
111
|
+
@waiter = Aws::Waiters::Waiter.new({
|
112
|
+
max_attempts: 60,
|
113
|
+
delay: 30,
|
114
|
+
poller: Aws::Waiters::Poller.new(
|
115
|
+
operation_name: :describe_evaluations,
|
116
|
+
acceptors: [
|
117
|
+
{
|
118
|
+
"expected" => "COMPLETED",
|
119
|
+
"matcher" => "pathAll",
|
120
|
+
"state" => "success",
|
121
|
+
"argument" => "results[].status"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"expected" => "FAILED",
|
125
|
+
"matcher" => "pathAny",
|
126
|
+
"state" => "failure",
|
127
|
+
"argument" => "results[].status"
|
128
|
+
}
|
129
|
+
]
|
130
|
+
)
|
131
|
+
}.merge(options))
|
132
|
+
end
|
133
|
+
|
134
|
+
# @option (see Client#describe_evaluations)
|
135
|
+
# @return (see Client#describe_evaluations)
|
136
|
+
def wait(params = {})
|
137
|
+
@waiter.wait(client: @client, params: params)
|
138
|
+
end
|
139
|
+
|
140
|
+
# @api private
|
141
|
+
attr_reader :waiter
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
class BatchPredictionAvailable
|
146
|
+
|
147
|
+
# @param [Hash] options
|
148
|
+
# @option options [required, Client] :client
|
149
|
+
# @option options [Integer] :max_attempts (60)
|
150
|
+
# @option options [Integer] :delay (30)
|
151
|
+
# @option options [Proc] :before_attempt
|
152
|
+
# @option options [Proc] :before_wait
|
153
|
+
def initialize(options)
|
154
|
+
@client = options.fetch(:client)
|
155
|
+
@waiter = Aws::Waiters::Waiter.new({
|
156
|
+
max_attempts: 60,
|
157
|
+
delay: 30,
|
158
|
+
poller: Aws::Waiters::Poller.new(
|
159
|
+
operation_name: :describe_batch_predictions,
|
160
|
+
acceptors: [
|
161
|
+
{
|
162
|
+
"expected" => "COMPLETED",
|
163
|
+
"matcher" => "pathAll",
|
164
|
+
"state" => "success",
|
165
|
+
"argument" => "results[].status"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"expected" => "FAILED",
|
169
|
+
"matcher" => "pathAny",
|
170
|
+
"state" => "failure",
|
171
|
+
"argument" => "results[].status"
|
172
|
+
}
|
173
|
+
]
|
174
|
+
)
|
175
|
+
}.merge(options))
|
176
|
+
end
|
177
|
+
|
178
|
+
# @option (see Client#describe_batch_predictions)
|
179
|
+
# @return (see Client#describe_batch_predictions)
|
180
|
+
def wait(params = {})
|
181
|
+
@waiter.wait(client: @client, params: params)
|
182
|
+
end
|
183
|
+
|
184
|
+
# @api private
|
185
|
+
attr_reader :waiter
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-machinelearning
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for Amazon Machine Learning. This gem is part of
|
42
|
+
the AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-machinelearning.rb
|
50
|
+
- lib/aws-sdk-machinelearning/client.rb
|
51
|
+
- lib/aws-sdk-machinelearning/client_api.rb
|
52
|
+
- lib/aws-sdk-machinelearning/customizations.rb
|
53
|
+
- lib/aws-sdk-machinelearning/errors.rb
|
54
|
+
- lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
|
55
|
+
- lib/aws-sdk-machinelearning/resource.rb
|
56
|
+
- lib/aws-sdk-machinelearning/types.rb
|
57
|
+
- lib/aws-sdk-machinelearning/waiters.rb
|
58
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
59
|
+
licenses:
|
60
|
+
- Apache-2.0
|
61
|
+
metadata: {}
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.1
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.5.1
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: AWS SDK for Ruby - Amazon Machine Learning
|
82
|
+
test_files: []
|