aws-sdk-s3 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/bucket.rb +540 -542
- data/lib/aws-sdk-s3/bucket_acl.rb +144 -146
- data/lib/aws-sdk-s3/bucket_cors.rb +122 -124
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +140 -142
- data/lib/aws-sdk-s3/bucket_logging.rb +119 -121
- data/lib/aws-sdk-s3/bucket_notification.rb +162 -164
- data/lib/aws-sdk-s3/bucket_policy.rb +114 -116
- data/lib/aws-sdk-s3/bucket_request_payment.rb +105 -107
- data/lib/aws-sdk-s3/bucket_tagging.rb +119 -121
- data/lib/aws-sdk-s3/bucket_versioning.rb +162 -164
- data/lib/aws-sdk-s3/bucket_website.rb +150 -152
- data/lib/aws-sdk-s3/client.rb +4380 -3611
- data/lib/aws-sdk-s3/client_api.rb +2343 -2345
- data/lib/aws-sdk-s3/customizations/object.rb +3 -2
- data/lib/aws-sdk-s3/errors.rb +4 -13
- data/lib/aws-sdk-s3/multipart_upload.rb +240 -242
- data/lib/aws-sdk-s3/multipart_upload_part.rb +273 -275
- data/lib/aws-sdk-s3/object.rb +879 -881
- data/lib/aws-sdk-s3/object_acl.rb +186 -188
- data/lib/aws-sdk-s3/object_summary.rb +751 -753
- data/lib/aws-sdk-s3/object_version.rb +356 -358
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +1 -1
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +1 -1
- data/lib/aws-sdk-s3/presigner.rb +6 -2
- data/lib/aws-sdk-s3/resource.rb +79 -78
- data/lib/aws-sdk-s3/types.rb +7678 -6939
- data/lib/aws-sdk-s3/waiters.rb +150 -151
- metadata +4 -4
data/lib/aws-sdk-s3/waiters.rb
CHANGED
@@ -1,178 +1,177 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
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
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
# @option (see Client#head_bucket)
|
55
|
-
# @return (see Client#head_bucket)
|
56
|
-
def wait(params = {})
|
57
|
-
@waiter.wait(client: @client, params: params)
|
58
|
-
end
|
59
|
-
|
60
|
-
# @api private
|
61
|
-
attr_reader :waiter
|
10
|
+
module Aws::S3
|
11
|
+
module Waiters
|
12
|
+
|
13
|
+
class BucketExists
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (20)
|
18
|
+
# @option options [Integer] :delay (5)
|
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: 20,
|
25
|
+
delay: 5,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :head_bucket,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"expected" => 200,
|
31
|
+
"matcher" => "status",
|
32
|
+
"state" => "success"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"expected" => 301,
|
36
|
+
"matcher" => "status",
|
37
|
+
"state" => "success"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"expected" => 403,
|
41
|
+
"matcher" => "status",
|
42
|
+
"state" => "success"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"expected" => 404,
|
46
|
+
"matcher" => "status",
|
47
|
+
"state" => "retry"
|
48
|
+
}
|
49
|
+
]
|
50
|
+
)
|
51
|
+
}.merge(options))
|
52
|
+
end
|
62
53
|
|
54
|
+
# @option (see Client#head_bucket)
|
55
|
+
# @return (see Client#head_bucket)
|
56
|
+
def wait(params = {})
|
57
|
+
@waiter.wait(client: @client, params: params)
|
63
58
|
end
|
64
59
|
|
65
|
-
|
66
|
-
|
67
|
-
# @param [Hash] options
|
68
|
-
# @option options [required, Client] :client
|
69
|
-
# @option options [Integer] :max_attempts (20)
|
70
|
-
# @option options [Integer] :delay (5)
|
71
|
-
# @option options [Proc] :before_attempt
|
72
|
-
# @option options [Proc] :before_wait
|
73
|
-
def initialize(options)
|
74
|
-
@client = options.fetch(:client)
|
75
|
-
@waiter = Aws::Waiters::Waiter.new({
|
76
|
-
max_attempts: 20,
|
77
|
-
delay: 5,
|
78
|
-
poller: Aws::Waiters::Poller.new(
|
79
|
-
operation_name: :head_bucket,
|
80
|
-
acceptors: [{
|
81
|
-
"expected" => 404,
|
82
|
-
"matcher" => "status",
|
83
|
-
"state" => "success"
|
84
|
-
}]
|
85
|
-
)
|
86
|
-
}.merge(options))
|
87
|
-
end
|
60
|
+
# @api private
|
61
|
+
attr_reader :waiter
|
88
62
|
|
89
|
-
|
90
|
-
# @return (see Client#head_bucket)
|
91
|
-
def wait(params = {})
|
92
|
-
@waiter.wait(client: @client, params: params)
|
93
|
-
end
|
63
|
+
end
|
94
64
|
|
95
|
-
|
96
|
-
|
65
|
+
class BucketNotExists
|
66
|
+
|
67
|
+
# @param [Hash] options
|
68
|
+
# @option options [required, Client] :client
|
69
|
+
# @option options [Integer] :max_attempts (20)
|
70
|
+
# @option options [Integer] :delay (5)
|
71
|
+
# @option options [Proc] :before_attempt
|
72
|
+
# @option options [Proc] :before_wait
|
73
|
+
def initialize(options)
|
74
|
+
@client = options.fetch(:client)
|
75
|
+
@waiter = Aws::Waiters::Waiter.new({
|
76
|
+
max_attempts: 20,
|
77
|
+
delay: 5,
|
78
|
+
poller: Aws::Waiters::Poller.new(
|
79
|
+
operation_name: :head_bucket,
|
80
|
+
acceptors: [{
|
81
|
+
"expected" => 404,
|
82
|
+
"matcher" => "status",
|
83
|
+
"state" => "success"
|
84
|
+
}]
|
85
|
+
)
|
86
|
+
}.merge(options))
|
87
|
+
end
|
97
88
|
|
89
|
+
# @option (see Client#head_bucket)
|
90
|
+
# @return (see Client#head_bucket)
|
91
|
+
def wait(params = {})
|
92
|
+
@waiter.wait(client: @client, params: params)
|
98
93
|
end
|
99
94
|
|
100
|
-
|
101
|
-
|
102
|
-
# @param [Hash] options
|
103
|
-
# @option options [required, Client] :client
|
104
|
-
# @option options [Integer] :max_attempts (20)
|
105
|
-
# @option options [Integer] :delay (5)
|
106
|
-
# @option options [Proc] :before_attempt
|
107
|
-
# @option options [Proc] :before_wait
|
108
|
-
def initialize(options)
|
109
|
-
@client = options.fetch(:client)
|
110
|
-
@waiter = Aws::Waiters::Waiter.new({
|
111
|
-
max_attempts: 20,
|
112
|
-
delay: 5,
|
113
|
-
poller: Aws::Waiters::Poller.new(
|
114
|
-
operation_name: :head_object,
|
115
|
-
acceptors: [
|
116
|
-
{
|
117
|
-
"expected" => 200,
|
118
|
-
"matcher" => "status",
|
119
|
-
"state" => "success"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"expected" => 404,
|
123
|
-
"matcher" => "status",
|
124
|
-
"state" => "retry"
|
125
|
-
}
|
126
|
-
]
|
127
|
-
)
|
128
|
-
}.merge(options))
|
129
|
-
end
|
130
|
-
|
131
|
-
# @option (see Client#head_object)
|
132
|
-
# @return (see Client#head_object)
|
133
|
-
def wait(params = {})
|
134
|
-
@waiter.wait(client: @client, params: params)
|
135
|
-
end
|
136
|
-
|
137
|
-
# @api private
|
138
|
-
attr_reader :waiter
|
95
|
+
# @api private
|
96
|
+
attr_reader :waiter
|
139
97
|
|
140
|
-
|
98
|
+
end
|
141
99
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
100
|
+
class ObjectExists
|
101
|
+
|
102
|
+
# @param [Hash] options
|
103
|
+
# @option options [required, Client] :client
|
104
|
+
# @option options [Integer] :max_attempts (20)
|
105
|
+
# @option options [Integer] :delay (5)
|
106
|
+
# @option options [Proc] :before_attempt
|
107
|
+
# @option options [Proc] :before_wait
|
108
|
+
def initialize(options)
|
109
|
+
@client = options.fetch(:client)
|
110
|
+
@waiter = Aws::Waiters::Waiter.new({
|
111
|
+
max_attempts: 20,
|
112
|
+
delay: 5,
|
113
|
+
poller: Aws::Waiters::Poller.new(
|
114
|
+
operation_name: :head_object,
|
115
|
+
acceptors: [
|
116
|
+
{
|
117
|
+
"expected" => 200,
|
159
118
|
"matcher" => "status",
|
160
119
|
"state" => "success"
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
|
-
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"expected" => 404,
|
123
|
+
"matcher" => "status",
|
124
|
+
"state" => "retry"
|
125
|
+
}
|
126
|
+
]
|
127
|
+
)
|
128
|
+
}.merge(options))
|
129
|
+
end
|
165
130
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
131
|
+
# @option (see Client#head_object)
|
132
|
+
# @return (see Client#head_object)
|
133
|
+
def wait(params = {})
|
134
|
+
@waiter.wait(client: @client, params: params)
|
135
|
+
end
|
171
136
|
|
172
|
-
|
173
|
-
|
137
|
+
# @api private
|
138
|
+
attr_reader :waiter
|
174
139
|
|
140
|
+
end
|
141
|
+
|
142
|
+
class ObjectNotExists
|
143
|
+
|
144
|
+
# @param [Hash] options
|
145
|
+
# @option options [required, Client] :client
|
146
|
+
# @option options [Integer] :max_attempts (20)
|
147
|
+
# @option options [Integer] :delay (5)
|
148
|
+
# @option options [Proc] :before_attempt
|
149
|
+
# @option options [Proc] :before_wait
|
150
|
+
def initialize(options)
|
151
|
+
@client = options.fetch(:client)
|
152
|
+
@waiter = Aws::Waiters::Waiter.new({
|
153
|
+
max_attempts: 20,
|
154
|
+
delay: 5,
|
155
|
+
poller: Aws::Waiters::Poller.new(
|
156
|
+
operation_name: :head_object,
|
157
|
+
acceptors: [{
|
158
|
+
"expected" => 404,
|
159
|
+
"matcher" => "status",
|
160
|
+
"state" => "success"
|
161
|
+
}]
|
162
|
+
)
|
163
|
+
}.merge(options))
|
164
|
+
end
|
165
|
+
|
166
|
+
# @option (see Client#head_object)
|
167
|
+
# @return (see Client#head_object)
|
168
|
+
def wait(params = {})
|
169
|
+
@waiter.wait(client: @client, params: params)
|
175
170
|
end
|
171
|
+
|
172
|
+
# @api private
|
173
|
+
attr_reader :waiter
|
174
|
+
|
176
175
|
end
|
177
176
|
end
|
178
177
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
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:
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.0.
|
33
|
+
version: 1.0.0.rc3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.0.
|
40
|
+
version: 1.0.0.rc3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aws-sigv4
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|