aws-sdk-glacier 1.27.0 → 1.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f480a340b8cfc70e0f8fe97da80a955942c56f01c3c58a71daaa80fec2185bd9
4
- data.tar.gz: 85357091032999177fd62fb97f6c260104585a7386932f1ced55b98e756f9e64
3
+ metadata.gz: 735b6151de247f51f7ff9739dd92475759b7a17ee66e19d2a6d853ae20305e09
4
+ data.tar.gz: 3984e2478560259e2ddd5dfadb747c1697f58be72869b128b59caee86cecb0f5
5
5
  SHA512:
6
- metadata.gz: 639bf4bd747ce74626dadf28d755e9e8c6059d5cdb034c810f596390a79716b1274c431bead9e4ccbdd5ae433e01f10ba739a025ee188280a61c59747abff04e
7
- data.tar.gz: b91bcb03422a82728be18322b3749ad6fec5115addc4428f4160408d4c7a8f34a27d9c60ff4878553d89c467fe788569d8073c6408b06478234e1e096912f7ff
6
+ metadata.gz: 4604f4ac0e5f392e94b51630ccf913b0b809e21b044dcea66bba0a7bba23b470630e20dfc6898e3289aa20bc72aca8c73e2742c62ea2bea5f6984978c93802f9
7
+ data.tar.gz: 53fd571c4b31cdcf4f4060711eb19116b491b5d996784ad94fb756326d73cc7bd3e35e24f73dd16310f626ed18ecc57240fe03527a5040c9340f1068213c1c52
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -52,6 +54,6 @@ require_relative 'aws-sdk-glacier/customizations'
52
54
  # @service
53
55
  module Aws::Glacier
54
56
 
55
- GEM_VERSION = '1.27.0'
57
+ GEM_VERSION = '1.32.0'
56
58
 
57
59
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -65,7 +67,8 @@ module Aws::Glacier
65
67
  # Waiter polls an API operation until a resource enters a desired
66
68
  # state.
67
69
  #
68
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
70
+ # @note The waiting operation is performed on a copy. The original resource
71
+ # remains unchanged.
69
72
  #
70
73
  # ## Basic Usage
71
74
  #
@@ -78,13 +81,15 @@ module Aws::Glacier
78
81
  #
79
82
  # ## Example
80
83
  #
81
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
84
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
85
+ # instance.state.name == 'running'
86
+ # end
82
87
  #
83
88
  # ## Configuration
84
89
  #
85
90
  # You can configure the maximum number of polling attempts, and the
86
- # delay (in seconds) between each polling attempt. The waiting condition is set
87
- # by passing a block to {#wait_until}:
91
+ # delay (in seconds) between each polling attempt. The waiting condition is
92
+ # set by passing a block to {#wait_until}:
88
93
  #
89
94
  # # poll for ~25 seconds
90
95
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -115,17 +120,16 @@ module Aws::Glacier
115
120
  # # resource did not enter the desired state in time
116
121
  # end
117
122
  #
123
+ # @yieldparam [Resource] resource to be used in the waiting condition.
118
124
  #
119
- # @yield param [Resource] resource to be used in the waiting condition
120
- #
121
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
122
- # because the waiter has entered a state that it will not transition
123
- # out of, preventing success.
125
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
126
+ # terminates because the waiter has entered a state that it will not
127
+ # transition out of, preventing success.
124
128
  #
125
129
  # yet successful.
126
130
  #
127
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
128
- # while polling for a resource that is not expected.
131
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
132
+ # encountered while polling for a resource that is not expected.
129
133
  #
130
134
  # @raise [NotImplementedError] Raised when the resource does not
131
135
  #
@@ -168,7 +172,7 @@ module Aws::Glacier
168
172
  # @return [Vault]
169
173
  def create_vault(options = {})
170
174
  options = options.merge(account_id: @id)
171
- resp = @client.create_vault(options)
175
+ @client.create_vault(options)
172
176
  Vault.new(
173
177
  account_id: @id,
174
178
  name: options[:vault_name],
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -81,7 +83,8 @@ module Aws::Glacier
81
83
  # Waiter polls an API operation until a resource enters a desired
82
84
  # state.
83
85
  #
84
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
86
+ # @note The waiting operation is performed on a copy. The original resource
87
+ # remains unchanged.
85
88
  #
86
89
  # ## Basic Usage
87
90
  #
@@ -94,13 +97,15 @@ module Aws::Glacier
94
97
  #
95
98
  # ## Example
96
99
  #
97
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
100
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
101
+ # instance.state.name == 'running'
102
+ # end
98
103
  #
99
104
  # ## Configuration
100
105
  #
101
106
  # You can configure the maximum number of polling attempts, and the
102
- # delay (in seconds) between each polling attempt. The waiting condition is set
103
- # by passing a block to {#wait_until}:
107
+ # delay (in seconds) between each polling attempt. The waiting condition is
108
+ # set by passing a block to {#wait_until}:
104
109
  #
105
110
  # # poll for ~25 seconds
106
111
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -131,17 +136,16 @@ module Aws::Glacier
131
136
  # # resource did not enter the desired state in time
132
137
  # end
133
138
  #
139
+ # @yieldparam [Resource] resource to be used in the waiting condition.
134
140
  #
135
- # @yield param [Resource] resource to be used in the waiting condition
136
- #
137
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
138
- # because the waiter has entered a state that it will not transition
139
- # out of, preventing success.
141
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
142
+ # terminates because the waiter has entered a state that it will not
143
+ # transition out of, preventing success.
140
144
  #
141
145
  # yet successful.
142
146
  #
143
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
144
- # while polling for a resource that is not expected.
147
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
148
+ # encountered while polling for a resource that is not expected.
145
149
  #
146
150
  # @raise [NotImplementedError] Raised when the resource does not
147
151
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
  require 'aws-sdk-glacier/plugins/account_id.rb'
@@ -72,6 +75,7 @@ module Aws::Glacier
72
75
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
73
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
77
  add_plugin(Aws::Plugins::TransferEncoding)
78
+ add_plugin(Aws::Plugins::HttpChecksum)
75
79
  add_plugin(Aws::Plugins::SignatureV4)
76
80
  add_plugin(Aws::Plugins::Protocols::RestJson)
77
81
  add_plugin(Aws::Glacier::Plugins::AccountId)
@@ -111,7 +115,7 @@ module Aws::Glacier
111
115
  # @option options [required, String] :region
112
116
  # The AWS region to connect to. The configured `:region` is
113
117
  # used to determine the service `:endpoint`. When not passed,
114
- # a default `:region` is search for in the following locations:
118
+ # a default `:region` is searched for in the following locations:
115
119
  #
116
120
  # * `Aws.config[:region]`
117
121
  # * `ENV['AWS_REGION']`
@@ -172,7 +176,7 @@ module Aws::Glacier
172
176
  # @option options [String] :endpoint
173
177
  # The client endpoint is normally constructed from the `:region`
174
178
  # option. You should only configure an `:endpoint` when connecting
175
- # to test endpoints. This should be avalid HTTP(S) URI.
179
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
176
180
  #
177
181
  # @option options [Integer] :endpoint_cache_max_entries (1000)
178
182
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -187,7 +191,7 @@ module Aws::Glacier
187
191
  # requests fetching endpoints information. Defaults to 60 sec.
188
192
  #
189
193
  # @option options [Boolean] :endpoint_discovery (false)
190
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
194
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
191
195
  #
192
196
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
193
197
  # The log formatter.
@@ -280,8 +284,7 @@ module Aws::Glacier
280
284
  #
281
285
  # @option options [Integer] :http_read_timeout (60) The default
282
286
  # number of seconds to wait for response data. This value can
283
- # safely be set
284
- # per-request on the session yielded by {#session_for}.
287
+ # safely be set per-request on the session.
285
288
  #
286
289
  # @option options [Float] :http_idle_timeout (5) The number of
287
290
  # seconds a connection is allowed to sit idle before it is
@@ -293,7 +296,7 @@ module Aws::Glacier
293
296
  # request body. This option has no effect unless the request has
294
297
  # "Expect" header set to "100-continue". Defaults to `nil` which
295
298
  # disables this behaviour. This value can safely be set per
296
- # request on the session yielded by {#session_for}.
299
+ # request on the session.
297
300
  #
298
301
  # @option options [Boolean] :http_wire_trace (false) When `true`,
299
302
  # HTTP debug output will be sent to the `:logger`.
@@ -1287,6 +1290,12 @@ module Aws::Glacier
1287
1290
  # resp.number_of_archives #=> Integer
1288
1291
  # resp.size_in_bytes #=> Integer
1289
1292
  #
1293
+ #
1294
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1295
+ #
1296
+ # * vault_exists
1297
+ # * vault_not_exists
1298
+ #
1290
1299
  # @overload describe_vault(params = {})
1291
1300
  # @param [Hash] params ({})
1292
1301
  def describe_vault(params = {}, options = {})
@@ -2174,6 +2183,8 @@ module Aws::Glacier
2174
2183
  # * {Types::ListJobsOutput#job_list #job_list} => Array<Types::GlacierJobDescription>
2175
2184
  # * {Types::ListJobsOutput#marker #marker} => String
2176
2185
  #
2186
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2187
+ #
2177
2188
  #
2178
2189
  # @example Example: To list jobs for a vault
2179
2190
  #
@@ -2359,6 +2370,8 @@ module Aws::Glacier
2359
2370
  # * {Types::ListMultipartUploadsOutput#uploads_list #uploads_list} => Array<Types::UploadListElement>
2360
2371
  # * {Types::ListMultipartUploadsOutput#marker #marker} => String
2361
2372
  #
2373
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2374
+ #
2362
2375
  #
2363
2376
  # @example Example: To list all the in-progress multipart uploads for a vault
2364
2377
  #
@@ -2491,6 +2504,8 @@ module Aws::Glacier
2491
2504
  # * {Types::ListPartsOutput#parts #parts} => Array<Types::PartListElement>
2492
2505
  # * {Types::ListPartsOutput#marker #marker} => String
2493
2506
  #
2507
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2508
+ #
2494
2509
  #
2495
2510
  # @example Example: To list the parts of an archive that have been uploaded in a multipart upload
2496
2511
  #
@@ -2721,6 +2736,8 @@ module Aws::Glacier
2721
2736
  # * {Types::ListVaultsOutput#vault_list #vault_list} => Array<Types::DescribeVaultOutput>
2722
2737
  # * {Types::ListVaultsOutput#marker #marker} => String
2723
2738
  #
2739
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2740
+ #
2724
2741
  #
2725
2742
  # @example Example: To list all vaults owned by the calling user's account
2726
2743
  #
@@ -3346,7 +3363,7 @@ module Aws::Glacier
3346
3363
  params: params,
3347
3364
  config: config)
3348
3365
  context[:gem_name] = 'aws-sdk-glacier'
3349
- context[:gem_version] = '1.27.0'
3366
+ context[:gem_version] = '1.32.0'
3350
3367
  Seahorse::Client::Request.new(handlers, context)
3351
3368
  end
3352
3369
 
@@ -3412,10 +3429,10 @@ module Aws::Glacier
3412
3429
  # The following table lists the valid waiter names, the operations they call,
3413
3430
  # and the default `:delay` and `:max_attempts` values.
3414
3431
  #
3415
- # | waiter_name | params | :delay | :max_attempts |
3416
- # | ---------------- | ----------------- | -------- | ------------- |
3417
- # | vault_exists | {#describe_vault} | 3 | 15 |
3418
- # | vault_not_exists | {#describe_vault} | 3 | 15 |
3432
+ # | waiter_name | params | :delay | :max_attempts |
3433
+ # | ---------------- | ----------------------- | -------- | ------------- |
3434
+ # | vault_exists | {Client#describe_vault} | 3 | 15 |
3435
+ # | vault_not_exists | {Client#describe_vault} | 3 | 15 |
3419
3436
  #
3420
3437
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
3421
3438
  # because the waiter has entered a state that it will not transition
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -258,7 +260,8 @@ module Aws::Glacier
258
260
  # Waiter polls an API operation until a resource enters a desired
259
261
  # state.
260
262
  #
261
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
263
+ # @note The waiting operation is performed on a copy. The original resource
264
+ # remains unchanged.
262
265
  #
263
266
  # ## Basic Usage
264
267
  #
@@ -271,13 +274,15 @@ module Aws::Glacier
271
274
  #
272
275
  # ## Example
273
276
  #
274
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
277
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
278
+ # instance.state.name == 'running'
279
+ # end
275
280
  #
276
281
  # ## Configuration
277
282
  #
278
283
  # You can configure the maximum number of polling attempts, and the
279
- # delay (in seconds) between each polling attempt. The waiting condition is set
280
- # by passing a block to {#wait_until}:
284
+ # delay (in seconds) between each polling attempt. The waiting condition is
285
+ # set by passing a block to {#wait_until}:
281
286
  #
282
287
  # # poll for ~25 seconds
283
288
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -308,17 +313,16 @@ module Aws::Glacier
308
313
  # # resource did not enter the desired state in time
309
314
  # end
310
315
  #
316
+ # @yieldparam [Resource] resource to be used in the waiting condition.
311
317
  #
312
- # @yield param [Resource] resource to be used in the waiting condition
313
- #
314
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
315
- # because the waiter has entered a state that it will not transition
316
- # out of, preventing success.
318
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
319
+ # terminates because the waiter has entered a state that it will not
320
+ # transition out of, preventing success.
317
321
  #
318
322
  # yet successful.
319
323
  #
320
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
321
- # while polling for a resource that is not expected.
324
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
325
+ # encountered while polling for a resource that is not expected.
322
326
  #
323
327
  # @raise [NotImplementedError] Raised when the resource does not
324
328
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -111,7 +113,8 @@ module Aws::Glacier
111
113
  # Waiter polls an API operation until a resource enters a desired
112
114
  # state.
113
115
  #
114
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
116
+ # @note The waiting operation is performed on a copy. The original resource
117
+ # remains unchanged.
115
118
  #
116
119
  # ## Basic Usage
117
120
  #
@@ -124,13 +127,15 @@ module Aws::Glacier
124
127
  #
125
128
  # ## Example
126
129
  #
127
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
130
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
131
+ # instance.state.name == 'running'
132
+ # end
128
133
  #
129
134
  # ## Configuration
130
135
  #
131
136
  # You can configure the maximum number of polling attempts, and the
132
- # delay (in seconds) between each polling attempt. The waiting condition is set
133
- # by passing a block to {#wait_until}:
137
+ # delay (in seconds) between each polling attempt. The waiting condition is
138
+ # set by passing a block to {#wait_until}:
134
139
  #
135
140
  # # poll for ~25 seconds
136
141
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -161,17 +166,16 @@ module Aws::Glacier
161
166
  # # resource did not enter the desired state in time
162
167
  # end
163
168
  #
169
+ # @yieldparam [Resource] resource to be used in the waiting condition.
164
170
  #
165
- # @yield param [Resource] resource to be used in the waiting condition
166
- #
167
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
168
- # because the waiter has entered a state that it will not transition
169
- # out of, preventing success.
171
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
172
+ # terminates because the waiter has entered a state that it will not
173
+ # transition out of, preventing success.
170
174
  #
171
175
  # yet successful.
172
176
  #
173
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
174
- # while polling for a resource that is not expected.
177
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
178
+ # encountered while polling for a resource that is not expected.
175
179
  #
176
180
  # @raise [NotImplementedError] Raised when the resource does not
177
181
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -97,7 +99,8 @@ module Aws::Glacier
97
99
  # Waiter polls an API operation until a resource enters a desired
98
100
  # state.
99
101
  #
100
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
102
+ # @note The waiting operation is performed on a copy. The original resource
103
+ # remains unchanged.
101
104
  #
102
105
  # ## Basic Usage
103
106
  #
@@ -110,13 +113,15 @@ module Aws::Glacier
110
113
  #
111
114
  # ## Example
112
115
  #
113
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
116
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
117
+ # instance.state.name == 'running'
118
+ # end
114
119
  #
115
120
  # ## Configuration
116
121
  #
117
122
  # You can configure the maximum number of polling attempts, and the
118
- # delay (in seconds) between each polling attempt. The waiting condition is set
119
- # by passing a block to {#wait_until}:
123
+ # delay (in seconds) between each polling attempt. The waiting condition is
124
+ # set by passing a block to {#wait_until}:
120
125
  #
121
126
  # # poll for ~25 seconds
122
127
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -147,17 +152,16 @@ module Aws::Glacier
147
152
  # # resource did not enter the desired state in time
148
153
  # end
149
154
  #
155
+ # @yieldparam [Resource] resource to be used in the waiting condition.
150
156
  #
151
- # @yield param [Resource] resource to be used in the waiting condition
152
- #
153
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
154
- # because the waiter has entered a state that it will not transition
155
- # out of, preventing success.
157
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
158
+ # terminates because the waiter has entered a state that it will not
159
+ # transition out of, preventing success.
156
160
  #
157
161
  # yet successful.
158
162
  #
159
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
160
- # while polling for a resource that is not expected.
163
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
164
+ # encountered while polling for a resource that is not expected.
161
165
  #
162
166
  # @raise [NotImplementedError] Raised when the resource does not
163
167
  #