aws-sdk-core 3.104.1 → 3.104.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/param_validator.rb +23 -4
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ea4e87ee4bcc585dd68a7d3f84a7541377201010884757c328d5fd2e8e54df3
|
4
|
+
data.tar.gz: d46b0b471b52085428779e04efd7f408cc7a13783e95e13c119ba9432c748d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc2c0df6b4d9ae1ae6674ca1c2b47b27296bf60d407cced97f49026c0945e958e3e558818544e043b08bfebac1410f288245c21b02a43b621500f1b761b6afc9
|
7
|
+
data.tar.gz: d845d824b9a0a6647582e094a11de8510b4a7a31de78bb09cf74ec55061a78bf788789b08e72a3b41b15eee4ecb84a1f00fe94d59ef6edc04d1b156bb4ee7937
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.104.
|
1
|
+
3.104.2
|
@@ -143,8 +143,22 @@ module Aws
|
|
143
143
|
errors << expected_got(context, "true or false", value)
|
144
144
|
end
|
145
145
|
when BlobShape
|
146
|
-
unless value.is_a?(String)
|
147
|
-
|
146
|
+
unless value.is_a?(String)
|
147
|
+
if streaming_input?(ref)
|
148
|
+
unless io_like?(value, _require_size = false)
|
149
|
+
errors << expected_got(
|
150
|
+
context,
|
151
|
+
"a String or IO like object that supports read and rewind",
|
152
|
+
value
|
153
|
+
)
|
154
|
+
end
|
155
|
+
elsif !io_like?(value, _require_size = true)
|
156
|
+
errors << expected_got(
|
157
|
+
context,
|
158
|
+
"a String or IO like object that supports read, rewind, and size",
|
159
|
+
value
|
160
|
+
)
|
161
|
+
end
|
148
162
|
end
|
149
163
|
else
|
150
164
|
raise "unhandled shape type: #{ref.shape.class.name}"
|
@@ -167,8 +181,13 @@ module Aws
|
|
167
181
|
end
|
168
182
|
end
|
169
183
|
|
170
|
-
def io_like?(value)
|
171
|
-
value.respond_to?(:read) && value.respond_to?(:rewind)
|
184
|
+
def io_like?(value, require_size = true)
|
185
|
+
value.respond_to?(:read) && value.respond_to?(:rewind) &&
|
186
|
+
(!require_size || value.respond_to?(:size))
|
187
|
+
end
|
188
|
+
|
189
|
+
def streaming_input?(ref)
|
190
|
+
(ref["streaming"] || ref.shape["streaming"])
|
172
191
|
end
|
173
192
|
|
174
193
|
def error_messages(errors)
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -2189,7 +2189,7 @@ module Aws::STS
|
|
2189
2189
|
params: params,
|
2190
2190
|
config: config)
|
2191
2191
|
context[:gem_name] = 'aws-sdk-core'
|
2192
|
-
context[:gem_version] = '3.104.
|
2192
|
+
context[:gem_version] = '3.104.2'
|
2193
2193
|
Seahorse::Client::Request.new(handlers, context)
|
2194
2194
|
end
|
2195
2195
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.104.
|
4
|
+
version: 3.104.2
|
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: 2020-07-
|
11
|
+
date: 2020-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|