aws-sdk-core 3.113.1 → 3.118.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,13 +80,18 @@ module Seahorse
80
80
  _nonblocking_connect(tcp, addr)
81
81
  debug_output('opened')
82
82
 
83
- @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
84
- @socket.sync_close = true
85
- @socket.hostname = endpoint.host
83
+ if endpoint.scheme == 'https'
84
+ @socket = OpenSSL::SSL::SSLSocket.new(tcp, _tls_context)
85
+ @socket.sync_close = true
86
+ @socket.hostname = endpoint.host
87
+
88
+ debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
89
+ @socket.connect
90
+ debug_output('TLS established')
91
+ else
92
+ @socket = tcp
93
+ end
86
94
 
87
- debug_output("starting TLS for #{endpoint.host}:#{endpoint.port} ...")
88
- @socket.connect
89
- debug_output('TLS established')
90
95
  _register_h2_callbacks
91
96
  @status = :active
92
97
  elsif @status == :closed
@@ -114,6 +114,9 @@ module Seahorse
114
114
  # @return [String, nil]
115
115
  attr_accessor :documentation
116
116
 
117
+ # @return [Boolean]
118
+ attr_accessor :union
119
+
117
120
  # Gets metadata for the given `key`.
118
121
  def [](key)
119
122
  @metadata[key.to_s]
@@ -264,6 +267,23 @@ module Seahorse
264
267
 
265
268
  end
266
269
 
270
+ class UnionShape < StructureShape
271
+ def initialize(options = {})
272
+ @member_subclasses = {}
273
+ super options.merge(union: true)
274
+ end
275
+
276
+ # @api private
277
+ def member_subclass(member)
278
+ @member_subclasses[member]
279
+ end
280
+
281
+ # @api private
282
+ def add_member_subclass(member, subclass)
283
+ @member_subclasses[member] = subclass
284
+ end
285
+ end
286
+
267
287
  class TimestampShape < Shape; end
268
288
 
269
289
  end
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.113.1
4
+ version: 3.118.0
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: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -307,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  - !ruby/object:Gem::Version
308
308
  version: '0'
309
309
  requirements: []
310
- rubyforge_project:
311
- rubygems_version: 2.7.6.2
310
+ rubygems_version: 3.1.6
312
311
  signing_key:
313
312
  specification_version: 4
314
313
  summary: AWS SDK for Ruby - Core