aws-sdk-code-generator 0.2.2.pre → 0.3.0.pre
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-code-generator/api.rb +12 -2
- data/lib/aws-sdk-code-generator/client_constructor.rb +4 -1
- data/lib/aws-sdk-code-generator/client_operation_documentation.rb +27 -7
- data/lib/aws-sdk-code-generator/client_response_structure_example.rb +8 -1
- data/lib/aws-sdk-code-generator/code_builder.rb +78 -9
- data/lib/aws-sdk-code-generator/codegenerated_plugin.rb +34 -0
- data/lib/aws-sdk-code-generator/gem_builder.rb +27 -5
- data/lib/aws-sdk-code-generator/helper.rb +10 -1
- data/lib/aws-sdk-code-generator/plugin_list.rb +30 -9
- data/lib/aws-sdk-code-generator/service.rb +22 -0
- data/lib/aws-sdk-code-generator/views/async_client_class.rb +6 -2
- data/lib/aws-sdk-code-generator/views/client_api_module.rb +40 -5
- data/lib/aws-sdk-code-generator/views/client_class.rb +7 -2
- data/lib/aws-sdk-code-generator/views/endpoint_parameters_class.rb +80 -0
- data/lib/aws-sdk-code-generator/views/endpoint_provider_class.rb +34 -0
- data/lib/aws-sdk-code-generator/views/endpoints_module.rb +177 -0
- data/lib/aws-sdk-code-generator/views/endpoints_plugin.rb +85 -0
- data/lib/aws-sdk-code-generator/views/gemspec.rb +6 -2
- data/lib/aws-sdk-code-generator/views/service_module.rb +22 -0
- data/lib/aws-sdk-code-generator/views/spec/endpoint_provider_spec_class.rb +198 -0
- data/lib/aws-sdk-code-generator/views/spec/spec_helper.rb +9 -4
- data/lib/aws-sdk-code-generator/views/types_module.rb +60 -24
- data/lib/aws-sdk-code-generator.rb +7 -1
- data/templates/async_client_class.mustache +5 -7
- data/templates/client_api_module.mustache +7 -0
- data/templates/client_class.mustache +4 -1
- data/templates/endpoint_parameters_class.mustache +50 -0
- data/templates/endpoint_provider_class.mustache +30 -0
- data/templates/endpoints_module.mustache +33 -0
- data/templates/endpoints_plugin.mustache +76 -0
- data/templates/gemspec.mustache +2 -1
- data/templates/license.txt +202 -0
- data/templates/service_module.mustache +11 -1
- data/templates/spec/endpoint_provider_spec_class.mustache +76 -0
- data/templates/spec/spec_helper.mustache +5 -0
- data/templates/types_module.mustache +7 -0
- metadata +16 -4
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
{{#generated_src_warning}}
|
4
|
+
{{generated_src_warning}}
|
5
|
+
{{/generated_src_warning}}
|
6
|
+
|
7
|
+
module {{module_name}}
|
8
|
+
module Plugins
|
9
|
+
class Endpoints < Seahorse::Client::Plugin
|
10
|
+
option(
|
11
|
+
:endpoint_provider,
|
12
|
+
doc_type: '{{module_name}}::EndpointProvider',
|
13
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
14
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
15
|
+
'where `parameters` is a Struct similar to '\
|
16
|
+
'`{{module_name}}::EndpointParameters`'
|
17
|
+
) do |cfg|
|
18
|
+
{{module_name}}::EndpointProvider.new
|
19
|
+
end
|
20
|
+
|
21
|
+
{{#endpoint_options}}
|
22
|
+
option(
|
23
|
+
:{{name}},
|
24
|
+
doc_type: '{{doc_type}}',
|
25
|
+
default: {{{default}}},
|
26
|
+
docstring: "{{{docstring}}}")
|
27
|
+
|
28
|
+
{{/endpoint_options}}
|
29
|
+
# @api private
|
30
|
+
class Handler < Seahorse::Client::Handler
|
31
|
+
def call(context)
|
32
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
33
|
+
unless context[:discovered_endpoint]
|
34
|
+
params = parameters_for_operation(context)
|
35
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
36
|
+
|
37
|
+
context.http_request.endpoint = endpoint.url
|
38
|
+
apply_endpoint_headers(context, endpoint.headers)
|
39
|
+
end
|
40
|
+
|
41
|
+
context[:endpoint_params] = params
|
42
|
+
context[:auth_scheme] =
|
43
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
44
|
+
|
45
|
+
@handler.call(context)
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def apply_endpoint_headers(context, headers)
|
51
|
+
headers.each do |key, values|
|
52
|
+
value = values
|
53
|
+
.compact
|
54
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
55
|
+
.join(',')
|
56
|
+
|
57
|
+
context.http_request.headers[key] = value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def parameters_for_operation(context)
|
62
|
+
case context.operation_name
|
63
|
+
{{#endpoint_classes}}
|
64
|
+
when :{{operation_name}}
|
65
|
+
{{module_name}}::Endpoints::{{class_name}}.build(context)
|
66
|
+
{{/endpoint_classes}}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def add_handlers(handlers, _config)
|
72
|
+
handlers.add(Handler, step: :build, priority: 75)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
data/templates/gemspec.mustache
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = 'Apache-2.0'
|
15
15
|
spec.email = ['{{email}}']
|
16
16
|
spec.require_paths = ['lib']
|
17
|
-
spec.files = Dir
|
17
|
+
spec.files = Dir{{{files}}}
|
18
18
|
|
19
19
|
{{#metadata}}
|
20
20
|
spec.metadata = {
|
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency('{{gem}}', '{{&version}}')
|
28
28
|
{{/dependencies}}
|
29
29
|
|
30
|
+
spec.required_ruby_version = '>= 2.3'
|
30
31
|
end
|
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
@@ -3,9 +3,19 @@
|
|
3
3
|
{{#generated_src_warning}}
|
4
4
|
{{generated_src_warning}}
|
5
5
|
{{/generated_src_warning}}
|
6
|
+
|
7
|
+
{{#require_core_guard?}}
|
8
|
+
unless Module.const_defined?(:Aws)
|
9
|
+
{{#requires}}
|
10
|
+
require '{{.}}'
|
11
|
+
{{/requires}}
|
12
|
+
end
|
13
|
+
{{/require_core_guard?}}
|
14
|
+
{{^require_core_guard?}}
|
6
15
|
{{#requires}}
|
7
16
|
require '{{.}}'
|
8
17
|
{{/requires}}
|
18
|
+
{{/require_core_guard?}}
|
9
19
|
|
10
20
|
{{#relative_requires}}
|
11
21
|
require_relative '{{.}}'
|
@@ -40,7 +50,7 @@ require_relative '{{.}}'
|
|
40
50
|
#
|
41
51
|
# See {Errors} for more information.
|
42
52
|
#
|
43
|
-
#
|
53
|
+
# @!group service
|
44
54
|
module {{module_name}}
|
45
55
|
|
46
56
|
GEM_VERSION = '{{gem_version}}'
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
{{#generated_src_warning}}
|
4
|
+
{{generated_src_warning}}
|
5
|
+
{{/generated_src_warning}}
|
6
|
+
|
7
|
+
require_relative 'spec_helper'
|
8
|
+
|
9
|
+
module {{module_name}}
|
10
|
+
describe EndpointProvider do
|
11
|
+
subject { {{module_name}}::EndpointProvider.new }
|
12
|
+
|
13
|
+
{{#endpoint_tests}}
|
14
|
+
context '{{documentation}}' do
|
15
|
+
let(:expected) do
|
16
|
+
{{{expect}}}
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'produces the expected output from the EndpointProvider' do
|
20
|
+
params = EndpointParameters.new(**{{{params}}})
|
21
|
+
{{#expect_error?}}
|
22
|
+
expect do
|
23
|
+
subject.resolve_endpoint(params)
|
24
|
+
end.to raise_error(ArgumentError, expected['error'])
|
25
|
+
{{/expect_error?}}
|
26
|
+
{{^expect_error?}}
|
27
|
+
endpoint = subject.resolve_endpoint(params)
|
28
|
+
expect(endpoint.url).to eq(expected['endpoint']['url'])
|
29
|
+
expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
|
30
|
+
expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
|
31
|
+
{{/expect_error?}}
|
32
|
+
end
|
33
|
+
{{#operation_inputs}}
|
34
|
+
|
35
|
+
it 'produces the correct output from the client when calling {{operation_name}}' do
|
36
|
+
client = Client.new(
|
37
|
+
{{#client_params}}
|
38
|
+
{{param}}: {{{value}}},
|
39
|
+
{{/client_params}}
|
40
|
+
stub_responses: true
|
41
|
+
)
|
42
|
+
{{#expect_error?}}
|
43
|
+
expect do
|
44
|
+
client.{{operation_name}}(
|
45
|
+
{{#operation_params}}
|
46
|
+
{{param}}: {{{value}}},
|
47
|
+
{{/operation_params}}
|
48
|
+
)
|
49
|
+
end.to raise_error(ArgumentError, expected['error'])
|
50
|
+
{{/expect_error?}}
|
51
|
+
{{^expect_error?}}
|
52
|
+
{{#expect_auth?}}
|
53
|
+
expect_auth({{{expected_auth}}})
|
54
|
+
{{/expect_auth?}}
|
55
|
+
resp = client.{{operation_name}}(
|
56
|
+
{{#operation_params}}
|
57
|
+
{{param}}: {{{value}}},
|
58
|
+
{{/operation_params}}
|
59
|
+
)
|
60
|
+
expected_uri = URI.parse(expected['endpoint']['url'])
|
61
|
+
expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.host)
|
62
|
+
expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.scheme)
|
63
|
+
expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.path)
|
64
|
+
{{#expect_headers?}}
|
65
|
+
{{#expected_headers}}
|
66
|
+
expect(resp.context.http_request.headers['{{param}}']).to eq({{{value}}})
|
67
|
+
{{/expected_headers}}
|
68
|
+
{{/expect_headers?}}
|
69
|
+
{{/expect_error?}}
|
70
|
+
end
|
71
|
+
{{/operation_inputs}}
|
72
|
+
end
|
73
|
+
|
74
|
+
{{/endpoint_tests}}
|
75
|
+
end
|
76
|
+
end
|
@@ -3,7 +3,12 @@
|
|
3
3
|
{{#generated_src_warning}}
|
4
4
|
{{generated_src_warning}}
|
5
5
|
{{/generated_src_warning}}
|
6
|
+
{{#included_in_core}}
|
7
|
+
require_relative '../../shared_spec_helper'
|
8
|
+
{{/included_in_core}}
|
9
|
+
{{^included_in_core}}
|
6
10
|
require_relative '../../aws-sdk-core/spec/shared_spec_helper'
|
11
|
+
{{/included_in_core}}
|
7
12
|
|
8
13
|
$:.unshift(File.expand_path('../../lib', __FILE__))
|
9
14
|
{{#gem_dependencies}}
|
@@ -18,6 +18,13 @@ module {{module_name}}
|
|
18
18
|
{{/members}}
|
19
19
|
SENSITIVE = {{sensitive_params}}
|
20
20
|
include Aws::Structure
|
21
|
+
{{#union?}}
|
22
|
+
include Aws::Structure::Union
|
23
|
+
|
24
|
+
{{#members}}
|
25
|
+
class {{member_class_name}} < {{class_name}}; end
|
26
|
+
{{/members}}
|
27
|
+
{{/union?}}
|
21
28
|
end
|
22
29
|
{{/empty?}}
|
23
30
|
{{/structures}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-code-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.pre
|
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: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '0'
|
41
41
|
description: Generates the service code for the AWS SDK for Ruby
|
42
42
|
email:
|
43
|
-
-
|
43
|
+
- aws-dr-rubygems@amazon.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- lib/aws-sdk-code-generator/client_operation_list.rb
|
54
54
|
- lib/aws-sdk-code-generator/client_response_structure_example.rb
|
55
55
|
- lib/aws-sdk-code-generator/code_builder.rb
|
56
|
+
- lib/aws-sdk-code-generator/codegenerated_plugin.rb
|
56
57
|
- lib/aws-sdk-code-generator/crosslink.rb
|
57
58
|
- lib/aws-sdk-code-generator/docstring.rb
|
58
59
|
- lib/aws-sdk-code-generator/error_list.rb
|
@@ -99,6 +100,10 @@ files:
|
|
99
100
|
- lib/aws-sdk-code-generator/views/client_api_module.rb
|
100
101
|
- lib/aws-sdk-code-generator/views/client_class.rb
|
101
102
|
- lib/aws-sdk-code-generator/views/docstring.rb
|
103
|
+
- lib/aws-sdk-code-generator/views/endpoint_parameters_class.rb
|
104
|
+
- lib/aws-sdk-code-generator/views/endpoint_provider_class.rb
|
105
|
+
- lib/aws-sdk-code-generator/views/endpoints_module.rb
|
106
|
+
- lib/aws-sdk-code-generator/views/endpoints_plugin.rb
|
102
107
|
- lib/aws-sdk-code-generator/views/errors_module.rb
|
103
108
|
- lib/aws-sdk-code-generator/views/event_streams_module.rb
|
104
109
|
- lib/aws-sdk-code-generator/views/features/env.rb
|
@@ -109,6 +114,7 @@ files:
|
|
109
114
|
- lib/aws-sdk-code-generator/views/resource_class.rb
|
110
115
|
- lib/aws-sdk-code-generator/views/root_resource_class.rb
|
111
116
|
- lib/aws-sdk-code-generator/views/service_module.rb
|
117
|
+
- lib/aws-sdk-code-generator/views/spec/endpoint_provider_spec_class.rb
|
112
118
|
- lib/aws-sdk-code-generator/views/spec/spec_helper.rb
|
113
119
|
- lib/aws-sdk-code-generator/views/types_module.rb
|
114
120
|
- lib/aws-sdk-code-generator/views/version.rb
|
@@ -123,6 +129,10 @@ files:
|
|
123
129
|
- templates/client_class.mustache
|
124
130
|
- templates/code.mustache
|
125
131
|
- templates/documentation.mustache
|
132
|
+
- templates/endpoint_parameters_class.mustache
|
133
|
+
- templates/endpoint_provider_class.mustache
|
134
|
+
- templates/endpoints_module.mustache
|
135
|
+
- templates/endpoints_plugin.mustache
|
126
136
|
- templates/errors_module.mustache
|
127
137
|
- templates/event_streams_module.mustache
|
128
138
|
- templates/features/env.mustache
|
@@ -130,10 +140,12 @@ files:
|
|
130
140
|
- templates/features/smoke_step_definitions.mustache
|
131
141
|
- templates/features/step_definitions.mustache
|
132
142
|
- templates/gemspec.mustache
|
143
|
+
- templates/license.txt
|
133
144
|
- templates/method.mustache
|
134
145
|
- templates/resource_class.mustache
|
135
146
|
- templates/root_resource_class.mustache
|
136
147
|
- templates/service_module.mustache
|
148
|
+
- templates/spec/endpoint_provider_spec_class.mustache
|
137
149
|
- templates/spec/spec_helper.mustache
|
138
150
|
- templates/types_module.mustache
|
139
151
|
- templates/version.mustache
|
@@ -157,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
169
|
- !ruby/object:Gem::Version
|
158
170
|
version: 1.3.1
|
159
171
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
172
|
+
rubygems_version: 3.2.22
|
161
173
|
signing_key:
|
162
174
|
specification_version: 4
|
163
175
|
summary: AWS SDK for Ruby - Code Generator
|