aws-sdk-redshift 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,206 +1,205 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
- module Aws
11
- module Redshift
12
- module Waiters
13
- class ClusterAvailable
14
-
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (30)
18
- # @option options [Integer] :delay (60)
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: 30,
25
- delay: 60,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :describe_clusters,
28
- acceptors: [
29
- {
30
- "expected" => "available",
31
- "matcher" => "pathAll",
32
- "state" => "success",
33
- "argument" => "clusters[].cluster_status"
34
- },
35
- {
36
- "expected" => "deleting",
37
- "matcher" => "pathAny",
38
- "state" => "failure",
39
- "argument" => "clusters[].cluster_status"
40
- },
41
- {
42
- "expected" => "ClusterNotFound",
43
- "matcher" => "error",
44
- "state" => "retry"
45
- }
46
- ]
47
- )
48
- }.merge(options))
49
- end
50
-
51
- # @option (see Client#describe_clusters)
52
- # @return (see Client#describe_clusters)
53
- def wait(params = {})
54
- @waiter.wait(client: @client, params: params)
55
- end
56
-
57
- # @api private
58
- attr_reader :waiter
10
+ module Aws::Redshift
11
+ module Waiters
12
+
13
+ class ClusterAvailable
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (30)
18
+ # @option options [Integer] :delay (60)
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: 30,
25
+ delay: 60,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_clusters,
28
+ acceptors: [
29
+ {
30
+ "expected" => "available",
31
+ "matcher" => "pathAll",
32
+ "state" => "success",
33
+ "argument" => "clusters[].cluster_status"
34
+ },
35
+ {
36
+ "expected" => "deleting",
37
+ "matcher" => "pathAny",
38
+ "state" => "failure",
39
+ "argument" => "clusters[].cluster_status"
40
+ },
41
+ {
42
+ "expected" => "ClusterNotFound",
43
+ "matcher" => "error",
44
+ "state" => "retry"
45
+ }
46
+ ]
47
+ )
48
+ }.merge(options))
49
+ end
59
50
 
51
+ # @option (see Client#describe_clusters)
52
+ # @return (see Client#describe_clusters)
53
+ def wait(params = {})
54
+ @waiter.wait(client: @client, params: params)
60
55
  end
61
56
 
62
- class ClusterDeleted
63
-
64
- # @param [Hash] options
65
- # @option options [required, Client] :client
66
- # @option options [Integer] :max_attempts (30)
67
- # @option options [Integer] :delay (60)
68
- # @option options [Proc] :before_attempt
69
- # @option options [Proc] :before_wait
70
- def initialize(options)
71
- @client = options.fetch(:client)
72
- @waiter = Aws::Waiters::Waiter.new({
73
- max_attempts: 30,
74
- delay: 60,
75
- poller: Aws::Waiters::Poller.new(
76
- operation_name: :describe_clusters,
77
- acceptors: [
78
- {
79
- "expected" => "ClusterNotFound",
80
- "matcher" => "error",
81
- "state" => "success"
82
- },
83
- {
84
- "expected" => "creating",
85
- "matcher" => "pathAny",
86
- "state" => "failure",
87
- "argument" => "clusters[].cluster_status"
88
- },
89
- {
90
- "expected" => "modifying",
91
- "matcher" => "pathAny",
92
- "state" => "failure",
93
- "argument" => "clusters[].cluster_status"
94
- }
95
- ]
96
- )
97
- }.merge(options))
98
- end
99
-
100
- # @option (see Client#describe_clusters)
101
- # @return (see Client#describe_clusters)
102
- def wait(params = {})
103
- @waiter.wait(client: @client, params: params)
104
- end
105
-
106
- # @api private
107
- attr_reader :waiter
57
+ # @api private
58
+ attr_reader :waiter
59
+
60
+ end
61
+
62
+ class ClusterDeleted
63
+
64
+ # @param [Hash] options
65
+ # @option options [required, Client] :client
66
+ # @option options [Integer] :max_attempts (30)
67
+ # @option options [Integer] :delay (60)
68
+ # @option options [Proc] :before_attempt
69
+ # @option options [Proc] :before_wait
70
+ def initialize(options)
71
+ @client = options.fetch(:client)
72
+ @waiter = Aws::Waiters::Waiter.new({
73
+ max_attempts: 30,
74
+ delay: 60,
75
+ poller: Aws::Waiters::Poller.new(
76
+ operation_name: :describe_clusters,
77
+ acceptors: [
78
+ {
79
+ "expected" => "ClusterNotFound",
80
+ "matcher" => "error",
81
+ "state" => "success"
82
+ },
83
+ {
84
+ "expected" => "creating",
85
+ "matcher" => "pathAny",
86
+ "state" => "failure",
87
+ "argument" => "clusters[].cluster_status"
88
+ },
89
+ {
90
+ "expected" => "modifying",
91
+ "matcher" => "pathAny",
92
+ "state" => "failure",
93
+ "argument" => "clusters[].cluster_status"
94
+ }
95
+ ]
96
+ )
97
+ }.merge(options))
98
+ end
108
99
 
100
+ # @option (see Client#describe_clusters)
101
+ # @return (see Client#describe_clusters)
102
+ def wait(params = {})
103
+ @waiter.wait(client: @client, params: params)
109
104
  end
110
105
 
111
- class ClusterRestored
112
-
113
- # @param [Hash] options
114
- # @option options [required, Client] :client
115
- # @option options [Integer] :max_attempts (30)
116
- # @option options [Integer] :delay (60)
117
- # @option options [Proc] :before_attempt
118
- # @option options [Proc] :before_wait
119
- def initialize(options)
120
- @client = options.fetch(:client)
121
- @waiter = Aws::Waiters::Waiter.new({
122
- max_attempts: 30,
123
- delay: 60,
124
- poller: Aws::Waiters::Poller.new(
125
- operation_name: :describe_clusters,
126
- acceptors: [
127
- {
128
- "state" => "success",
129
- "matcher" => "pathAll",
130
- "argument" => "clusters[].restore_status.status",
131
- "expected" => "completed"
132
- },
133
- {
134
- "state" => "failure",
135
- "matcher" => "pathAny",
136
- "argument" => "clusters[].cluster_status",
137
- "expected" => "deleting"
138
- }
139
- ]
140
- )
141
- }.merge(options))
142
- end
143
-
144
- # @option (see Client#describe_clusters)
145
- # @return (see Client#describe_clusters)
146
- def wait(params = {})
147
- @waiter.wait(client: @client, params: params)
148
- end
149
-
150
- # @api private
151
- attr_reader :waiter
106
+ # @api private
107
+ attr_reader :waiter
108
+
109
+ end
152
110
 
111
+ class ClusterRestored
112
+
113
+ # @param [Hash] options
114
+ # @option options [required, Client] :client
115
+ # @option options [Integer] :max_attempts (30)
116
+ # @option options [Integer] :delay (60)
117
+ # @option options [Proc] :before_attempt
118
+ # @option options [Proc] :before_wait
119
+ def initialize(options)
120
+ @client = options.fetch(:client)
121
+ @waiter = Aws::Waiters::Waiter.new({
122
+ max_attempts: 30,
123
+ delay: 60,
124
+ poller: Aws::Waiters::Poller.new(
125
+ operation_name: :describe_clusters,
126
+ acceptors: [
127
+ {
128
+ "state" => "success",
129
+ "matcher" => "pathAll",
130
+ "argument" => "clusters[].restore_status.status",
131
+ "expected" => "completed"
132
+ },
133
+ {
134
+ "state" => "failure",
135
+ "matcher" => "pathAny",
136
+ "argument" => "clusters[].cluster_status",
137
+ "expected" => "deleting"
138
+ }
139
+ ]
140
+ )
141
+ }.merge(options))
153
142
  end
154
143
 
155
- class SnapshotAvailable
156
-
157
- # @param [Hash] options
158
- # @option options [required, Client] :client
159
- # @option options [Integer] :max_attempts (20)
160
- # @option options [Integer] :delay (15)
161
- # @option options [Proc] :before_attempt
162
- # @option options [Proc] :before_wait
163
- def initialize(options)
164
- @client = options.fetch(:client)
165
- @waiter = Aws::Waiters::Waiter.new({
166
- max_attempts: 20,
167
- delay: 15,
168
- poller: Aws::Waiters::Poller.new(
169
- operation_name: :describe_cluster_snapshots,
170
- acceptors: [
171
- {
172
- "expected" => "available",
173
- "matcher" => "pathAll",
174
- "state" => "success",
175
- "argument" => "snapshots[].status"
176
- },
177
- {
178
- "expected" => "failed",
179
- "matcher" => "pathAny",
180
- "state" => "failure",
181
- "argument" => "snapshots[].status"
182
- },
183
- {
184
- "expected" => "deleted",
185
- "matcher" => "pathAny",
186
- "state" => "failure",
187
- "argument" => "snapshots[].status"
188
- }
189
- ]
190
- )
191
- }.merge(options))
192
- end
193
-
194
- # @option (see Client#describe_cluster_snapshots)
195
- # @return (see Client#describe_cluster_snapshots)
196
- def wait(params = {})
197
- @waiter.wait(client: @client, params: params)
198
- end
199
-
200
- # @api private
201
- attr_reader :waiter
144
+ # @option (see Client#describe_clusters)
145
+ # @return (see Client#describe_clusters)
146
+ def wait(params = {})
147
+ @waiter.wait(client: @client, params: params)
148
+ end
202
149
 
150
+ # @api private
151
+ attr_reader :waiter
152
+
153
+ end
154
+
155
+ class SnapshotAvailable
156
+
157
+ # @param [Hash] options
158
+ # @option options [required, Client] :client
159
+ # @option options [Integer] :max_attempts (20)
160
+ # @option options [Integer] :delay (15)
161
+ # @option options [Proc] :before_attempt
162
+ # @option options [Proc] :before_wait
163
+ def initialize(options)
164
+ @client = options.fetch(:client)
165
+ @waiter = Aws::Waiters::Waiter.new({
166
+ max_attempts: 20,
167
+ delay: 15,
168
+ poller: Aws::Waiters::Poller.new(
169
+ operation_name: :describe_cluster_snapshots,
170
+ acceptors: [
171
+ {
172
+ "expected" => "available",
173
+ "matcher" => "pathAll",
174
+ "state" => "success",
175
+ "argument" => "snapshots[].status"
176
+ },
177
+ {
178
+ "expected" => "failed",
179
+ "matcher" => "pathAny",
180
+ "state" => "failure",
181
+ "argument" => "snapshots[].status"
182
+ },
183
+ {
184
+ "expected" => "deleted",
185
+ "matcher" => "pathAny",
186
+ "state" => "failure",
187
+ "argument" => "snapshots[].status"
188
+ }
189
+ ]
190
+ )
191
+ }.merge(options))
203
192
  end
193
+
194
+ # @option (see Client#describe_cluster_snapshots)
195
+ # @return (see Client#describe_cluster_snapshots)
196
+ def wait(params = {})
197
+ @waiter.wait(client: @client, params: params)
198
+ end
199
+
200
+ # @api private
201
+ attr_reader :waiter
202
+
204
203
  end
205
204
  end
206
205
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-redshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
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: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core