aws-sdk-glacier 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-glacier.rb +54 -0
- data/lib/aws-sdk-glacier/account.rb +143 -0
- data/lib/aws-sdk-glacier/archive.rb +178 -0
- data/lib/aws-sdk-glacier/client.rb +2506 -0
- data/lib/aws-sdk-glacier/client_api.rb +908 -0
- data/lib/aws-sdk-glacier/customizations.rb +7 -0
- data/lib/aws-sdk-glacier/errors.rb +23 -0
- data/lib/aws-sdk-glacier/job.rb +345 -0
- data/lib/aws-sdk-glacier/multipart_upload.rb +269 -0
- data/lib/aws-sdk-glacier/notification.rb +179 -0
- data/lib/aws-sdk-glacier/plugins/account_id.rb +22 -0
- data/lib/aws-sdk-glacier/plugins/api_version.rb +22 -0
- data/lib/aws-sdk-glacier/plugins/checksums.rb +91 -0
- data/lib/aws-sdk-glacier/resource.rb +82 -0
- data/lib/aws-sdk-glacier/tree_hash.rb +76 -0
- data/lib/aws-sdk-glacier/types.rb +2055 -0
- data/lib/aws-sdk-glacier/vault.rb +524 -0
- data/lib/aws-sdk-glacier/waiters.rb +98 -0
- metadata +91 -0
@@ -0,0 +1,98 @@
|
|
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 Glacier
|
12
|
+
module Waiters
|
13
|
+
class VaultExists
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (15)
|
18
|
+
# @option options [Integer] :delay (3)
|
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: 15,
|
25
|
+
delay: 3,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_vault,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"state" => "success",
|
31
|
+
"matcher" => "status",
|
32
|
+
"expected" => 200
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"state" => "retry",
|
36
|
+
"matcher" => "error",
|
37
|
+
"expected" => "ResourceNotFoundException"
|
38
|
+
}
|
39
|
+
]
|
40
|
+
)
|
41
|
+
}.merge(options))
|
42
|
+
end
|
43
|
+
|
44
|
+
# @option (see Client#describe_vault)
|
45
|
+
# @return (see Client#describe_vault)
|
46
|
+
def wait(params = {})
|
47
|
+
@waiter.wait(client: @client, params: params)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @api private
|
51
|
+
attr_reader :waiter
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
class VaultNotExists
|
56
|
+
|
57
|
+
# @param [Hash] options
|
58
|
+
# @option options [required, Client] :client
|
59
|
+
# @option options [Integer] :max_attempts (15)
|
60
|
+
# @option options [Integer] :delay (3)
|
61
|
+
# @option options [Proc] :before_attempt
|
62
|
+
# @option options [Proc] :before_wait
|
63
|
+
def initialize(options)
|
64
|
+
@client = options.fetch(:client)
|
65
|
+
@waiter = Aws::Waiters::Waiter.new({
|
66
|
+
max_attempts: 15,
|
67
|
+
delay: 3,
|
68
|
+
poller: Aws::Waiters::Poller.new(
|
69
|
+
operation_name: :describe_vault,
|
70
|
+
acceptors: [
|
71
|
+
{
|
72
|
+
"state" => "retry",
|
73
|
+
"matcher" => "status",
|
74
|
+
"expected" => 200
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"state" => "success",
|
78
|
+
"matcher" => "error",
|
79
|
+
"expected" => "ResourceNotFoundException"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
)
|
83
|
+
}.merge(options))
|
84
|
+
end
|
85
|
+
|
86
|
+
# @option (see Client#describe_vault)
|
87
|
+
# @return (see Client#describe_vault)
|
88
|
+
def wait(params = {})
|
89
|
+
@waiter.wait(client: @client, params: params)
|
90
|
+
end
|
91
|
+
|
92
|
+
# @api private
|
93
|
+
attr_reader :waiter
|
94
|
+
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-glacier
|
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 Glacier. This gem is part of the AWS
|
42
|
+
SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-glacier.rb
|
50
|
+
- lib/aws-sdk-glacier/account.rb
|
51
|
+
- lib/aws-sdk-glacier/archive.rb
|
52
|
+
- lib/aws-sdk-glacier/client.rb
|
53
|
+
- lib/aws-sdk-glacier/client_api.rb
|
54
|
+
- lib/aws-sdk-glacier/customizations.rb
|
55
|
+
- lib/aws-sdk-glacier/errors.rb
|
56
|
+
- lib/aws-sdk-glacier/job.rb
|
57
|
+
- lib/aws-sdk-glacier/multipart_upload.rb
|
58
|
+
- lib/aws-sdk-glacier/notification.rb
|
59
|
+
- lib/aws-sdk-glacier/plugins/account_id.rb
|
60
|
+
- lib/aws-sdk-glacier/plugins/api_version.rb
|
61
|
+
- lib/aws-sdk-glacier/plugins/checksums.rb
|
62
|
+
- lib/aws-sdk-glacier/resource.rb
|
63
|
+
- lib/aws-sdk-glacier/tree_hash.rb
|
64
|
+
- lib/aws-sdk-glacier/types.rb
|
65
|
+
- lib/aws-sdk-glacier/vault.rb
|
66
|
+
- lib/aws-sdk-glacier/waiters.rb
|
67
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
68
|
+
licenses:
|
69
|
+
- Apache-2.0
|
70
|
+
metadata: {}
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.1
|
85
|
+
requirements: []
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.5.1
|
88
|
+
signing_key:
|
89
|
+
specification_version: 4
|
90
|
+
summary: AWS SDK for Ruby - Amazon Glacier
|
91
|
+
test_files: []
|