aws-sdk-lexmodelsv2 1.0.0 → 1.0.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 802237c58f2e57c00bfb248b567988fc14cdccce6dd81f763265c6d2fff9ba18
|
4
|
+
data.tar.gz: c2f56b8a62fbd30781b12287b33268ed7972b691d90b6c15d610c96f6ddcce7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34bad10d34dd2c91a655bcd917a9c4bd52d1631707fed154db4b339dd76439c8617e569204df8786f26c61bf9646beda08c11083d526cbad9441b207f69d4317
|
7
|
+
data.tar.gz: b8a86bc34498f0283dd51d03d41f5f517bee4a35d20b940c1fb725e3f387e4e3e9bcb49dc00339910110f780f478599ca4c02cdb1546217a98ad59aa9f473196
|
data/lib/aws-sdk-lexmodelsv2.rb
CHANGED
@@ -29,6 +29,7 @@ require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
|
+
require 'aws-sdk-lexmodelsv2/plugins/content_type.rb'
|
32
33
|
|
33
34
|
Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelsv2)
|
34
35
|
|
@@ -75,6 +76,7 @@ module Aws::LexModelsV2
|
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
76
77
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
78
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
79
|
+
add_plugin(Aws::LexModelsV2::Plugins::ContentType)
|
78
80
|
|
79
81
|
# @overload initialize(options)
|
80
82
|
# @param [Hash] options
|
@@ -4753,7 +4755,7 @@ module Aws::LexModelsV2
|
|
4753
4755
|
params: params,
|
4754
4756
|
config: config)
|
4755
4757
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
4756
|
-
context[:gem_version] = '1.0.
|
4758
|
+
context[:gem_version] = '1.0.1'
|
4757
4759
|
Seahorse::Client::Request.new(handlers, context)
|
4758
4760
|
end
|
4759
4761
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
module LexModelsV2
|
5
|
+
module Plugins
|
6
|
+
class ContentType < Seahorse::Client::Plugin
|
7
|
+
|
8
|
+
def add_handlers(handlers, _config)
|
9
|
+
handlers.add(Handler)
|
10
|
+
end
|
11
|
+
|
12
|
+
class Handler < Seahorse::Client::Handler
|
13
|
+
def call(context)
|
14
|
+
# Some operations break when given an empty content-type header.
|
15
|
+
# The SDK adds this blank content-type header
|
16
|
+
# since Net::HTTP provides a default that can break services.
|
17
|
+
# We're setting one here even though it's not used or necessary.
|
18
|
+
context.http_request.headers['content-type'] = 'application/x-amz-json-1.1'
|
19
|
+
@handler.call(context)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelsv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-01-
|
11
|
+
date: 2021-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/aws-sdk-lexmodelsv2/client_api.rb
|
58
58
|
- lib/aws-sdk-lexmodelsv2/customizations.rb
|
59
59
|
- lib/aws-sdk-lexmodelsv2/errors.rb
|
60
|
+
- lib/aws-sdk-lexmodelsv2/plugins/content_type.rb
|
60
61
|
- lib/aws-sdk-lexmodelsv2/resource.rb
|
61
62
|
- lib/aws-sdk-lexmodelsv2/types.rb
|
62
63
|
homepage: https://github.com/aws/aws-sdk-ruby
|