aws-sdk-networkmanager 1.25.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-networkmanager/client.rb +20 -3
- data/lib/aws-sdk-networkmanager/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-networkmanager/endpoint_provider.rb +227 -0
- data/lib/aws-sdk-networkmanager/endpoints.rb +1205 -0
- data/lib/aws-sdk-networkmanager/plugins/endpoints.rb +238 -0
- data/lib/aws-sdk-networkmanager.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,238 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::NetworkManager
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::NetworkManager::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::NetworkManager::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::NetworkManager::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :accept_attachment
|
60
|
+
Aws::NetworkManager::Endpoints::AcceptAttachment.build(context)
|
61
|
+
when :associate_connect_peer
|
62
|
+
Aws::NetworkManager::Endpoints::AssociateConnectPeer.build(context)
|
63
|
+
when :associate_customer_gateway
|
64
|
+
Aws::NetworkManager::Endpoints::AssociateCustomerGateway.build(context)
|
65
|
+
when :associate_link
|
66
|
+
Aws::NetworkManager::Endpoints::AssociateLink.build(context)
|
67
|
+
when :associate_transit_gateway_connect_peer
|
68
|
+
Aws::NetworkManager::Endpoints::AssociateTransitGatewayConnectPeer.build(context)
|
69
|
+
when :create_connect_attachment
|
70
|
+
Aws::NetworkManager::Endpoints::CreateConnectAttachment.build(context)
|
71
|
+
when :create_connect_peer
|
72
|
+
Aws::NetworkManager::Endpoints::CreateConnectPeer.build(context)
|
73
|
+
when :create_connection
|
74
|
+
Aws::NetworkManager::Endpoints::CreateConnection.build(context)
|
75
|
+
when :create_core_network
|
76
|
+
Aws::NetworkManager::Endpoints::CreateCoreNetwork.build(context)
|
77
|
+
when :create_device
|
78
|
+
Aws::NetworkManager::Endpoints::CreateDevice.build(context)
|
79
|
+
when :create_global_network
|
80
|
+
Aws::NetworkManager::Endpoints::CreateGlobalNetwork.build(context)
|
81
|
+
when :create_link
|
82
|
+
Aws::NetworkManager::Endpoints::CreateLink.build(context)
|
83
|
+
when :create_site
|
84
|
+
Aws::NetworkManager::Endpoints::CreateSite.build(context)
|
85
|
+
when :create_site_to_site_vpn_attachment
|
86
|
+
Aws::NetworkManager::Endpoints::CreateSiteToSiteVpnAttachment.build(context)
|
87
|
+
when :create_transit_gateway_peering
|
88
|
+
Aws::NetworkManager::Endpoints::CreateTransitGatewayPeering.build(context)
|
89
|
+
when :create_transit_gateway_route_table_attachment
|
90
|
+
Aws::NetworkManager::Endpoints::CreateTransitGatewayRouteTableAttachment.build(context)
|
91
|
+
when :create_vpc_attachment
|
92
|
+
Aws::NetworkManager::Endpoints::CreateVpcAttachment.build(context)
|
93
|
+
when :delete_attachment
|
94
|
+
Aws::NetworkManager::Endpoints::DeleteAttachment.build(context)
|
95
|
+
when :delete_connect_peer
|
96
|
+
Aws::NetworkManager::Endpoints::DeleteConnectPeer.build(context)
|
97
|
+
when :delete_connection
|
98
|
+
Aws::NetworkManager::Endpoints::DeleteConnection.build(context)
|
99
|
+
when :delete_core_network
|
100
|
+
Aws::NetworkManager::Endpoints::DeleteCoreNetwork.build(context)
|
101
|
+
when :delete_core_network_policy_version
|
102
|
+
Aws::NetworkManager::Endpoints::DeleteCoreNetworkPolicyVersion.build(context)
|
103
|
+
when :delete_device
|
104
|
+
Aws::NetworkManager::Endpoints::DeleteDevice.build(context)
|
105
|
+
when :delete_global_network
|
106
|
+
Aws::NetworkManager::Endpoints::DeleteGlobalNetwork.build(context)
|
107
|
+
when :delete_link
|
108
|
+
Aws::NetworkManager::Endpoints::DeleteLink.build(context)
|
109
|
+
when :delete_peering
|
110
|
+
Aws::NetworkManager::Endpoints::DeletePeering.build(context)
|
111
|
+
when :delete_resource_policy
|
112
|
+
Aws::NetworkManager::Endpoints::DeleteResourcePolicy.build(context)
|
113
|
+
when :delete_site
|
114
|
+
Aws::NetworkManager::Endpoints::DeleteSite.build(context)
|
115
|
+
when :deregister_transit_gateway
|
116
|
+
Aws::NetworkManager::Endpoints::DeregisterTransitGateway.build(context)
|
117
|
+
when :describe_global_networks
|
118
|
+
Aws::NetworkManager::Endpoints::DescribeGlobalNetworks.build(context)
|
119
|
+
when :disassociate_connect_peer
|
120
|
+
Aws::NetworkManager::Endpoints::DisassociateConnectPeer.build(context)
|
121
|
+
when :disassociate_customer_gateway
|
122
|
+
Aws::NetworkManager::Endpoints::DisassociateCustomerGateway.build(context)
|
123
|
+
when :disassociate_link
|
124
|
+
Aws::NetworkManager::Endpoints::DisassociateLink.build(context)
|
125
|
+
when :disassociate_transit_gateway_connect_peer
|
126
|
+
Aws::NetworkManager::Endpoints::DisassociateTransitGatewayConnectPeer.build(context)
|
127
|
+
when :execute_core_network_change_set
|
128
|
+
Aws::NetworkManager::Endpoints::ExecuteCoreNetworkChangeSet.build(context)
|
129
|
+
when :get_connect_attachment
|
130
|
+
Aws::NetworkManager::Endpoints::GetConnectAttachment.build(context)
|
131
|
+
when :get_connect_peer
|
132
|
+
Aws::NetworkManager::Endpoints::GetConnectPeer.build(context)
|
133
|
+
when :get_connect_peer_associations
|
134
|
+
Aws::NetworkManager::Endpoints::GetConnectPeerAssociations.build(context)
|
135
|
+
when :get_connections
|
136
|
+
Aws::NetworkManager::Endpoints::GetConnections.build(context)
|
137
|
+
when :get_core_network
|
138
|
+
Aws::NetworkManager::Endpoints::GetCoreNetwork.build(context)
|
139
|
+
when :get_core_network_change_events
|
140
|
+
Aws::NetworkManager::Endpoints::GetCoreNetworkChangeEvents.build(context)
|
141
|
+
when :get_core_network_change_set
|
142
|
+
Aws::NetworkManager::Endpoints::GetCoreNetworkChangeSet.build(context)
|
143
|
+
when :get_core_network_policy
|
144
|
+
Aws::NetworkManager::Endpoints::GetCoreNetworkPolicy.build(context)
|
145
|
+
when :get_customer_gateway_associations
|
146
|
+
Aws::NetworkManager::Endpoints::GetCustomerGatewayAssociations.build(context)
|
147
|
+
when :get_devices
|
148
|
+
Aws::NetworkManager::Endpoints::GetDevices.build(context)
|
149
|
+
when :get_link_associations
|
150
|
+
Aws::NetworkManager::Endpoints::GetLinkAssociations.build(context)
|
151
|
+
when :get_links
|
152
|
+
Aws::NetworkManager::Endpoints::GetLinks.build(context)
|
153
|
+
when :get_network_resource_counts
|
154
|
+
Aws::NetworkManager::Endpoints::GetNetworkResourceCounts.build(context)
|
155
|
+
when :get_network_resource_relationships
|
156
|
+
Aws::NetworkManager::Endpoints::GetNetworkResourceRelationships.build(context)
|
157
|
+
when :get_network_resources
|
158
|
+
Aws::NetworkManager::Endpoints::GetNetworkResources.build(context)
|
159
|
+
when :get_network_routes
|
160
|
+
Aws::NetworkManager::Endpoints::GetNetworkRoutes.build(context)
|
161
|
+
when :get_network_telemetry
|
162
|
+
Aws::NetworkManager::Endpoints::GetNetworkTelemetry.build(context)
|
163
|
+
when :get_resource_policy
|
164
|
+
Aws::NetworkManager::Endpoints::GetResourcePolicy.build(context)
|
165
|
+
when :get_route_analysis
|
166
|
+
Aws::NetworkManager::Endpoints::GetRouteAnalysis.build(context)
|
167
|
+
when :get_site_to_site_vpn_attachment
|
168
|
+
Aws::NetworkManager::Endpoints::GetSiteToSiteVpnAttachment.build(context)
|
169
|
+
when :get_sites
|
170
|
+
Aws::NetworkManager::Endpoints::GetSites.build(context)
|
171
|
+
when :get_transit_gateway_connect_peer_associations
|
172
|
+
Aws::NetworkManager::Endpoints::GetTransitGatewayConnectPeerAssociations.build(context)
|
173
|
+
when :get_transit_gateway_peering
|
174
|
+
Aws::NetworkManager::Endpoints::GetTransitGatewayPeering.build(context)
|
175
|
+
when :get_transit_gateway_registrations
|
176
|
+
Aws::NetworkManager::Endpoints::GetTransitGatewayRegistrations.build(context)
|
177
|
+
when :get_transit_gateway_route_table_attachment
|
178
|
+
Aws::NetworkManager::Endpoints::GetTransitGatewayRouteTableAttachment.build(context)
|
179
|
+
when :get_vpc_attachment
|
180
|
+
Aws::NetworkManager::Endpoints::GetVpcAttachment.build(context)
|
181
|
+
when :list_attachments
|
182
|
+
Aws::NetworkManager::Endpoints::ListAttachments.build(context)
|
183
|
+
when :list_connect_peers
|
184
|
+
Aws::NetworkManager::Endpoints::ListConnectPeers.build(context)
|
185
|
+
when :list_core_network_policy_versions
|
186
|
+
Aws::NetworkManager::Endpoints::ListCoreNetworkPolicyVersions.build(context)
|
187
|
+
when :list_core_networks
|
188
|
+
Aws::NetworkManager::Endpoints::ListCoreNetworks.build(context)
|
189
|
+
when :list_organization_service_access_status
|
190
|
+
Aws::NetworkManager::Endpoints::ListOrganizationServiceAccessStatus.build(context)
|
191
|
+
when :list_peerings
|
192
|
+
Aws::NetworkManager::Endpoints::ListPeerings.build(context)
|
193
|
+
when :list_tags_for_resource
|
194
|
+
Aws::NetworkManager::Endpoints::ListTagsForResource.build(context)
|
195
|
+
when :put_core_network_policy
|
196
|
+
Aws::NetworkManager::Endpoints::PutCoreNetworkPolicy.build(context)
|
197
|
+
when :put_resource_policy
|
198
|
+
Aws::NetworkManager::Endpoints::PutResourcePolicy.build(context)
|
199
|
+
when :register_transit_gateway
|
200
|
+
Aws::NetworkManager::Endpoints::RegisterTransitGateway.build(context)
|
201
|
+
when :reject_attachment
|
202
|
+
Aws::NetworkManager::Endpoints::RejectAttachment.build(context)
|
203
|
+
when :restore_core_network_policy_version
|
204
|
+
Aws::NetworkManager::Endpoints::RestoreCoreNetworkPolicyVersion.build(context)
|
205
|
+
when :start_organization_service_access_update
|
206
|
+
Aws::NetworkManager::Endpoints::StartOrganizationServiceAccessUpdate.build(context)
|
207
|
+
when :start_route_analysis
|
208
|
+
Aws::NetworkManager::Endpoints::StartRouteAnalysis.build(context)
|
209
|
+
when :tag_resource
|
210
|
+
Aws::NetworkManager::Endpoints::TagResource.build(context)
|
211
|
+
when :untag_resource
|
212
|
+
Aws::NetworkManager::Endpoints::UntagResource.build(context)
|
213
|
+
when :update_connection
|
214
|
+
Aws::NetworkManager::Endpoints::UpdateConnection.build(context)
|
215
|
+
when :update_core_network
|
216
|
+
Aws::NetworkManager::Endpoints::UpdateCoreNetwork.build(context)
|
217
|
+
when :update_device
|
218
|
+
Aws::NetworkManager::Endpoints::UpdateDevice.build(context)
|
219
|
+
when :update_global_network
|
220
|
+
Aws::NetworkManager::Endpoints::UpdateGlobalNetwork.build(context)
|
221
|
+
when :update_link
|
222
|
+
Aws::NetworkManager::Endpoints::UpdateLink.build(context)
|
223
|
+
when :update_network_resource_metadata
|
224
|
+
Aws::NetworkManager::Endpoints::UpdateNetworkResourceMetadata.build(context)
|
225
|
+
when :update_site
|
226
|
+
Aws::NetworkManager::Endpoints::UpdateSite.build(context)
|
227
|
+
when :update_vpc_attachment
|
228
|
+
Aws::NetworkManager::Endpoints::UpdateVpcAttachment.build(context)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
def add_handlers(handlers, _config)
|
234
|
+
handlers.add(Handler, step: :build, priority: 75)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-networkmanager/types'
|
15
15
|
require_relative 'aws-sdk-networkmanager/client_api'
|
16
|
+
require_relative 'aws-sdk-networkmanager/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-networkmanager/client'
|
17
18
|
require_relative 'aws-sdk-networkmanager/errors'
|
18
19
|
require_relative 'aws-sdk-networkmanager/resource'
|
20
|
+
require_relative 'aws-sdk-networkmanager/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-networkmanager/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-networkmanager/endpoints'
|
19
23
|
require_relative 'aws-sdk-networkmanager/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS Network Manager. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-networkmanager/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::NetworkManager
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.26.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-networkmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.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: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-networkmanager/client.rb
|
60
60
|
- lib/aws-sdk-networkmanager/client_api.rb
|
61
61
|
- lib/aws-sdk-networkmanager/customizations.rb
|
62
|
+
- lib/aws-sdk-networkmanager/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-networkmanager/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-networkmanager/endpoints.rb
|
62
65
|
- lib/aws-sdk-networkmanager/errors.rb
|
66
|
+
- lib/aws-sdk-networkmanager/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-networkmanager/resource.rb
|
64
68
|
- lib/aws-sdk-networkmanager/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|