aws-sdk-glacier 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b99c4c5df56d148602591c4922abec21ef28f685
4
- data.tar.gz: b970d8023975603b298abed1a5b8762784177e3f
3
+ metadata.gz: 244f090031572eebf15b1f79f4833f57be83207d
4
+ data.tar.gz: 97e5f69b1bfe3f0300995ec6b6d20c1f2fee9c89
5
5
  SHA512:
6
- metadata.gz: 206e3f5982cca8e37e1dcfd509ac618ea2e39ee22e0a242ba2fc0c3c0dc2db4f824135866c81ece56f39efb5e7a77c978df6c7724d8f62bd5b7ed28340d17057
7
- data.tar.gz: ff55b7c455b54aad6f14125962331dee4ec1f23d7433e6d240fb246ea137d5d9581e689394e7cac5b091e84accb03387fdc459ef1f8586dcb4711b8373247d43
6
+ metadata.gz: 123ab730b484f1f27366d984528b4edc71dffba7f3a234e0ea9773553b1f57177e051129563037346d0fac7df897594f5fe5ca356ad0c08f416fa8a13815ec3e
7
+ data.tar.gz: 3f29a413aaec93b3c343fc188d0a0b4b7d0ad263652db1d1317b13d9da315b936db002c0529ebc621b96c047054aac1149b161725503e9316ef7faf5e430da8c
@@ -1,6 +1,6 @@
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
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-glacier/customizations'
49
49
  # @service
50
50
  module Aws::Glacier
51
51
 
52
- GEM_VERSION = '1.0.0.rc1'
52
+ GEM_VERSION = '1.0.0.rc2'
53
53
 
54
54
  end
@@ -1,143 +1,141 @@
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
- module Aws
9
- module Glacier
10
- class Account
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(id, options = {})
15
- # @param [String] id
16
- # @option options [Client] :client
17
- # @overload def initialize(options = {})
18
- # @option options [required, String] :id
19
- # @option options [Client] :client
20
- def initialize(*args)
21
- options = Hash === args.last ? args.pop.dup : {}
22
- @id = extract_id(args, options)
23
- @data = Aws::EmptyStructure.new
24
- @client = options.delete(:client) || Client.new(options)
25
- end
8
+ module Aws::Glacier
9
+ class Account
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(id, options = {})
14
+ # @param [String] id
15
+ # @option options [Client] :client
16
+ # @overload def initialize(options = {})
17
+ # @option options [required, String] :id
18
+ # @option options [Client] :client
19
+ def initialize(*args)
20
+ options = Hash === args.last ? args.pop.dup : {}
21
+ @id = extract_id(args, options)
22
+ @data = Aws::EmptyStructure.new
23
+ @client = options.delete(:client) || Client.new(options)
24
+ end
26
25
 
27
- # @!group Read-Only Attributes
26
+ # @!group Read-Only Attributes
28
27
 
29
- # @return [String]
30
- def id
31
- @id
32
- end
28
+ # @return [String]
29
+ def id
30
+ @id
31
+ end
33
32
 
34
- # @!endgroup
33
+ # @!endgroup
35
34
 
36
- # @return [Client]
37
- def client
38
- @client
39
- end
35
+ # @return [Client]
36
+ def client
37
+ @client
38
+ end
40
39
 
41
- # @raise [Errors::ResourceNotLoadable]
42
- # @api private
43
- def load
44
- msg = "#load is not implemented, data only available via enumeration"
45
- raise Errors::ResourceNotLoadable, msg
46
- end
47
- alias :reload :load
40
+ # @raise [NotImplementedError]
41
+ # @api private
42
+ def load
43
+ msg = "#load is not implemented, data only available via enumeration"
44
+ raise NotImplementedError, msg
45
+ end
46
+ alias :reload :load
48
47
 
49
- # @api private
50
- # @return [EmptyStructure]
51
- def data
52
- @data
53
- end
48
+ # @api private
49
+ # @return [EmptyStructure]
50
+ def data
51
+ @data
52
+ end
54
53
 
55
- # @return [Boolean]
56
- # Returns `true` if this resource is loaded. Accessing attributes or
57
- # {#data} on an unloaded resource will trigger a call to {#load}.
58
- def data_loaded?
59
- !!@data
60
- end
54
+ # @return [Boolean]
55
+ # Returns `true` if this resource is loaded. Accessing attributes or
56
+ # {#data} on an unloaded resource will trigger a call to {#load}.
57
+ def data_loaded?
58
+ !!@data
59
+ end
61
60
 
62
- # @!group Actions
63
-
64
- # @example Request syntax with placeholder values
65
- #
66
- # vault = account.create_vault({
67
- # vault_name: "string", # required
68
- # })
69
- # @param [Hash] options ({})
70
- # @option options [required, String] :vault_name
71
- # The name of the vault.
72
- # @return [Vault]
73
- def create_vault(options = {})
74
- options = options.merge(account_id: @id)
75
- resp = @client.create_vault(options)
76
- Vault.new(
77
- account_id: @id,
78
- name: options[:vault_name],
79
- client: @client
80
- )
81
- end
61
+ # @!group Actions
62
+
63
+ # @example Request syntax with placeholder values
64
+ #
65
+ # vault = account.create_vault({
66
+ # vault_name: "string", # required
67
+ # })
68
+ # @param [Hash] options ({})
69
+ # @option options [required, String] :vault_name
70
+ # The name of the vault.
71
+ # @return [Vault]
72
+ def create_vault(options = {})
73
+ options = options.merge(account_id: @id)
74
+ resp = @client.create_vault(options)
75
+ Vault.new(
76
+ account_id: @id,
77
+ name: options[:vault_name],
78
+ client: @client
79
+ )
80
+ end
82
81
 
83
- # @!group Associations
82
+ # @!group Associations
84
83
 
85
- # @param [String] name
86
- # @return [Vault]
87
- def vault(name)
88
- Vault.new(
89
- account_id: @id,
90
- name: name,
91
- client: @client
92
- )
93
- end
84
+ # @param [String] name
85
+ # @return [Vault]
86
+ def vault(name)
87
+ Vault.new(
88
+ account_id: @id,
89
+ name: name,
90
+ client: @client
91
+ )
92
+ end
94
93
 
95
- # @example Request syntax with placeholder values
96
- #
97
- # vaults = account.vaults()
98
- # @param [Hash] options ({})
99
- # @return [Vault::Collection]
100
- def vaults(options = {})
101
- batches = Enumerator.new do |y|
102
- options = options.merge(account_id: @id)
103
- resp = @client.list_vaults(options)
104
- resp.each_page do |page|
105
- batch = []
106
- page.data.vault_list.each do |v|
107
- batch << Vault.new(
108
- account_id: @id,
109
- name: v.vault_name,
110
- data: v,
111
- client: @client
112
- )
113
- end
114
- y.yield(batch)
94
+ # @example Request syntax with placeholder values
95
+ #
96
+ # account.vaults()
97
+ # @param [Hash] options ({})
98
+ # @return [Vault::Collection]
99
+ def vaults(options = {})
100
+ batches = Enumerator.new do |y|
101
+ options = options.merge(account_id: @id)
102
+ resp = @client.list_vaults(options)
103
+ resp.each_page do |page|
104
+ batch = []
105
+ page.data.vault_list.each do |v|
106
+ batch << Vault.new(
107
+ account_id: @id,
108
+ name: v.vault_name,
109
+ data: v,
110
+ client: @client
111
+ )
115
112
  end
113
+ y.yield(batch)
116
114
  end
117
- Vault::Collection.new(batches)
118
115
  end
116
+ Vault::Collection.new(batches)
117
+ end
119
118
 
120
- # @deprecated
121
- # @api private
122
- def identifiers
123
- { id: @id }
124
- end
125
- deprecated(:identifiers)
126
-
127
- private
128
-
129
- def extract_id(args, options)
130
- value = args[0] || options.delete(:id)
131
- case value
132
- when String then value
133
- when nil then raise ArgumentError, "missing required option :id"
134
- else
135
- msg = "expected :id to be a String, got #{value.class}"
136
- raise ArgumentError, msg
137
- end
119
+ # @deprecated
120
+ # @api private
121
+ def identifiers
122
+ { id: @id }
123
+ end
124
+ deprecated(:identifiers)
125
+
126
+ private
127
+
128
+ def extract_id(args, options)
129
+ value = args[0] || options.delete(:id)
130
+ case value
131
+ when String then value
132
+ when nil then raise ArgumentError, "missing required option :id"
133
+ else
134
+ msg = "expected :id to be a String, got #{value.class}"
135
+ raise ArgumentError, msg
138
136
  end
139
-
140
- class Collection < Aws::Resources::Collection; end
141
137
  end
138
+
139
+ class Collection < Aws::Resources::Collection; end
142
140
  end
143
141
  end
@@ -1,178 +1,176 @@
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
- module Aws
9
- module Glacier
10
- class Archive
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(account_id, vault_name, id, options = {})
15
- # @param [String] account_id
16
- # @param [String] vault_name
17
- # @param [String] id
18
- # @option options [Client] :client
19
- # @overload def initialize(options = {})
20
- # @option options [required, String] :account_id
21
- # @option options [required, String] :vault_name
22
- # @option options [required, String] :id
23
- # @option options [Client] :client
24
- def initialize(*args)
25
- options = Hash === args.last ? args.pop.dup : {}
26
- @account_id = extract_account_id(args, options)
27
- @vault_name = extract_vault_name(args, options)
28
- @id = extract_id(args, options)
29
- @data = Aws::EmptyStructure.new
30
- @client = options.delete(:client) || Client.new(options)
31
- end
8
+ module Aws::Glacier
9
+ class Archive
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(account_id, vault_name, id, options = {})
14
+ # @param [String] account_id
15
+ # @param [String] vault_name
16
+ # @param [String] id
17
+ # @option options [Client] :client
18
+ # @overload def initialize(options = {})
19
+ # @option options [required, String] :account_id
20
+ # @option options [required, String] :vault_name
21
+ # @option options [required, String] :id
22
+ # @option options [Client] :client
23
+ def initialize(*args)
24
+ options = Hash === args.last ? args.pop.dup : {}
25
+ @account_id = extract_account_id(args, options)
26
+ @vault_name = extract_vault_name(args, options)
27
+ @id = extract_id(args, options)
28
+ @data = Aws::EmptyStructure.new
29
+ @client = options.delete(:client) || Client.new(options)
30
+ end
32
31
 
33
- # @!group Read-Only Attributes
32
+ # @!group Read-Only Attributes
34
33
 
35
- # @return [String]
36
- def account_id
37
- @account_id
38
- end
34
+ # @return [String]
35
+ def account_id
36
+ @account_id
37
+ end
39
38
 
40
- # @return [String]
41
- def vault_name
42
- @vault_name
43
- end
39
+ # @return [String]
40
+ def vault_name
41
+ @vault_name
42
+ end
44
43
 
45
- # @return [String]
46
- def id
47
- @id
48
- end
44
+ # @return [String]
45
+ def id
46
+ @id
47
+ end
49
48
 
50
- # @!endgroup
49
+ # @!endgroup
51
50
 
52
- # @return [Client]
53
- def client
54
- @client
55
- end
51
+ # @return [Client]
52
+ def client
53
+ @client
54
+ end
56
55
 
57
- # @raise [Errors::ResourceNotLoadable]
58
- # @api private
59
- def load
60
- msg = "#load is not implemented, data only available via enumeration"
61
- raise Errors::ResourceNotLoadable, msg
62
- end
63
- alias :reload :load
56
+ # @raise [NotImplementedError]
57
+ # @api private
58
+ def load
59
+ msg = "#load is not implemented, data only available via enumeration"
60
+ raise NotImplementedError, msg
61
+ end
62
+ alias :reload :load
64
63
 
65
- # @api private
66
- # @return [EmptyStructure]
67
- def data
68
- @data
69
- end
64
+ # @api private
65
+ # @return [EmptyStructure]
66
+ def data
67
+ @data
68
+ end
70
69
 
71
- # @return [Boolean]
72
- # Returns `true` if this resource is loaded. Accessing attributes or
73
- # {#data} on an unloaded resource will trigger a call to {#load}.
74
- def data_loaded?
75
- !!@data
76
- end
70
+ # @return [Boolean]
71
+ # Returns `true` if this resource is loaded. Accessing attributes or
72
+ # {#data} on an unloaded resource will trigger a call to {#load}.
73
+ def data_loaded?
74
+ !!@data
75
+ end
77
76
 
78
- # @!group Actions
79
-
80
- # @example Request syntax with placeholder values
81
- #
82
- # archive.delete()
83
- # @param [Hash] options ({})
84
- # @return [EmptyStructure]
85
- def delete(options = {})
86
- options = options.merge(
87
- account_id: @account_id,
88
- vault_name: @vault_name,
89
- archive_id: @id
90
- )
91
- resp = @client.delete_archive(options)
92
- resp.data
93
- end
77
+ # @!group Actions
78
+
79
+ # @example Request syntax with placeholder values
80
+ #
81
+ # archive.delete()
82
+ # @param [Hash] options ({})
83
+ # @return [EmptyStructure]
84
+ def delete(options = {})
85
+ options = options.merge(
86
+ account_id: @account_id,
87
+ vault_name: @vault_name,
88
+ archive_id: @id
89
+ )
90
+ resp = @client.delete_archive(options)
91
+ resp.data
92
+ end
94
93
 
95
- # @example Request syntax with placeholder values
96
- #
97
- # job = archive.initiate_archive_retrieval()
98
- # @param [Hash] options ({})
99
- # @return [Job]
100
- def initiate_archive_retrieval(options = {})
101
- options = Aws::Util.deep_merge(options,
102
- vault_name: @vault_name,
103
- account_id: @account_id,
104
- job_parameters: {
105
- type: "archive-retrieval",
106
- archive_id: @id
107
- }
108
- )
109
- resp = @client.initiate_job(options)
110
- Job.new(
111
- id: resp.data.job_id,
112
- account_id: @account_id,
113
- vault_name: @vault_name,
114
- client: @client
115
- )
116
- end
94
+ # @example Request syntax with placeholder values
95
+ #
96
+ # archive.initiate_archive_retrieval()
97
+ # @param [Hash] options ({})
98
+ # @return [Job]
99
+ def initiate_archive_retrieval(options = {})
100
+ options = Aws::Util.deep_merge(options,
101
+ vault_name: @vault_name,
102
+ account_id: @account_id,
103
+ job_parameters: {
104
+ type: "archive-retrieval",
105
+ archive_id: @id
106
+ }
107
+ )
108
+ resp = @client.initiate_job(options)
109
+ Job.new(
110
+ id: resp.data.job_id,
111
+ account_id: @account_id,
112
+ vault_name: @vault_name,
113
+ client: @client
114
+ )
115
+ end
117
116
 
118
- # @!group Associations
117
+ # @!group Associations
119
118
 
120
- # @return [Vault]
121
- def vault
122
- Vault.new(
123
- account_id: @account_id,
124
- name: @vault_name,
125
- client: @client
126
- )
127
- end
119
+ # @return [Vault]
120
+ def vault
121
+ Vault.new(
122
+ account_id: @account_id,
123
+ name: @vault_name,
124
+ client: @client
125
+ )
126
+ end
128
127
 
129
- # @deprecated
130
- # @api private
131
- def identifiers
132
- {
133
- account_id: @account_id,
134
- vault_name: @vault_name,
135
- id: @id
136
- }
137
- end
138
- deprecated(:identifiers)
139
-
140
- private
141
-
142
- def extract_account_id(args, options)
143
- value = args[0] || options.delete(:account_id)
144
- case value
145
- when String then value
146
- when nil then raise ArgumentError, "missing required option :account_id"
147
- else
148
- msg = "expected :account_id to be a String, got #{value.class}"
149
- raise ArgumentError, msg
150
- end
128
+ # @deprecated
129
+ # @api private
130
+ def identifiers
131
+ {
132
+ account_id: @account_id,
133
+ vault_name: @vault_name,
134
+ id: @id
135
+ }
136
+ end
137
+ deprecated(:identifiers)
138
+
139
+ private
140
+
141
+ def extract_account_id(args, options)
142
+ value = args[0] || options.delete(:account_id)
143
+ case value
144
+ when String then value
145
+ when nil then raise ArgumentError, "missing required option :account_id"
146
+ else
147
+ msg = "expected :account_id to be a String, got #{value.class}"
148
+ raise ArgumentError, msg
151
149
  end
150
+ end
152
151
 
153
- def extract_vault_name(args, options)
154
- value = args[1] || options.delete(:vault_name)
155
- case value
156
- when String then value
157
- when nil then raise ArgumentError, "missing required option :vault_name"
158
- else
159
- msg = "expected :vault_name to be a String, got #{value.class}"
160
- raise ArgumentError, msg
161
- end
152
+ def extract_vault_name(args, options)
153
+ value = args[1] || options.delete(:vault_name)
154
+ case value
155
+ when String then value
156
+ when nil then raise ArgumentError, "missing required option :vault_name"
157
+ else
158
+ msg = "expected :vault_name to be a String, got #{value.class}"
159
+ raise ArgumentError, msg
162
160
  end
161
+ end
163
162
 
164
- def extract_id(args, options)
165
- value = args[2] || options.delete(:id)
166
- case value
167
- when String then value
168
- when nil then raise ArgumentError, "missing required option :id"
169
- else
170
- msg = "expected :id to be a String, got #{value.class}"
171
- raise ArgumentError, msg
172
- end
163
+ def extract_id(args, options)
164
+ value = args[2] || options.delete(:id)
165
+ case value
166
+ when String then value
167
+ when nil then raise ArgumentError, "missing required option :id"
168
+ else
169
+ msg = "expected :id to be a String, got #{value.class}"
170
+ raise ArgumentError, msg
173
171
  end
174
-
175
- class Collection < Aws::Resources::Collection; end
176
172
  end
173
+
174
+ class Collection < Aws::Resources::Collection; end
177
175
  end
178
176
  end