aws-sdk-iotwireless 1.26.0 → 1.28.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotwireless/client.rb +362 -3
- data/lib/aws-sdk-iotwireless/client_api.rb +328 -0
- data/lib/aws-sdk-iotwireless/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-iotwireless/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-iotwireless/endpoints.rb +1429 -0
- data/lib/aws-sdk-iotwireless/plugins/endpoints.rb +270 -0
- data/lib/aws-sdk-iotwireless/types.rb +1444 -11
- data/lib/aws-sdk-iotwireless.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,270 @@
|
|
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::IoTWireless
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::IoTWireless::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::IoTWireless::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::IoTWireless::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 :associate_aws_account_with_partner_account
|
60
|
+
Aws::IoTWireless::Endpoints::AssociateAwsAccountWithPartnerAccount.build(context)
|
61
|
+
when :associate_multicast_group_with_fuota_task
|
62
|
+
Aws::IoTWireless::Endpoints::AssociateMulticastGroupWithFuotaTask.build(context)
|
63
|
+
when :associate_wireless_device_with_fuota_task
|
64
|
+
Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithFuotaTask.build(context)
|
65
|
+
when :associate_wireless_device_with_multicast_group
|
66
|
+
Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithMulticastGroup.build(context)
|
67
|
+
when :associate_wireless_device_with_thing
|
68
|
+
Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithThing.build(context)
|
69
|
+
when :associate_wireless_gateway_with_certificate
|
70
|
+
Aws::IoTWireless::Endpoints::AssociateWirelessGatewayWithCertificate.build(context)
|
71
|
+
when :associate_wireless_gateway_with_thing
|
72
|
+
Aws::IoTWireless::Endpoints::AssociateWirelessGatewayWithThing.build(context)
|
73
|
+
when :cancel_multicast_group_session
|
74
|
+
Aws::IoTWireless::Endpoints::CancelMulticastGroupSession.build(context)
|
75
|
+
when :create_destination
|
76
|
+
Aws::IoTWireless::Endpoints::CreateDestination.build(context)
|
77
|
+
when :create_device_profile
|
78
|
+
Aws::IoTWireless::Endpoints::CreateDeviceProfile.build(context)
|
79
|
+
when :create_fuota_task
|
80
|
+
Aws::IoTWireless::Endpoints::CreateFuotaTask.build(context)
|
81
|
+
when :create_multicast_group
|
82
|
+
Aws::IoTWireless::Endpoints::CreateMulticastGroup.build(context)
|
83
|
+
when :create_network_analyzer_configuration
|
84
|
+
Aws::IoTWireless::Endpoints::CreateNetworkAnalyzerConfiguration.build(context)
|
85
|
+
when :create_service_profile
|
86
|
+
Aws::IoTWireless::Endpoints::CreateServiceProfile.build(context)
|
87
|
+
when :create_wireless_device
|
88
|
+
Aws::IoTWireless::Endpoints::CreateWirelessDevice.build(context)
|
89
|
+
when :create_wireless_gateway
|
90
|
+
Aws::IoTWireless::Endpoints::CreateWirelessGateway.build(context)
|
91
|
+
when :create_wireless_gateway_task
|
92
|
+
Aws::IoTWireless::Endpoints::CreateWirelessGatewayTask.build(context)
|
93
|
+
when :create_wireless_gateway_task_definition
|
94
|
+
Aws::IoTWireless::Endpoints::CreateWirelessGatewayTaskDefinition.build(context)
|
95
|
+
when :delete_destination
|
96
|
+
Aws::IoTWireless::Endpoints::DeleteDestination.build(context)
|
97
|
+
when :delete_device_profile
|
98
|
+
Aws::IoTWireless::Endpoints::DeleteDeviceProfile.build(context)
|
99
|
+
when :delete_fuota_task
|
100
|
+
Aws::IoTWireless::Endpoints::DeleteFuotaTask.build(context)
|
101
|
+
when :delete_multicast_group
|
102
|
+
Aws::IoTWireless::Endpoints::DeleteMulticastGroup.build(context)
|
103
|
+
when :delete_network_analyzer_configuration
|
104
|
+
Aws::IoTWireless::Endpoints::DeleteNetworkAnalyzerConfiguration.build(context)
|
105
|
+
when :delete_queued_messages
|
106
|
+
Aws::IoTWireless::Endpoints::DeleteQueuedMessages.build(context)
|
107
|
+
when :delete_service_profile
|
108
|
+
Aws::IoTWireless::Endpoints::DeleteServiceProfile.build(context)
|
109
|
+
when :delete_wireless_device
|
110
|
+
Aws::IoTWireless::Endpoints::DeleteWirelessDevice.build(context)
|
111
|
+
when :delete_wireless_gateway
|
112
|
+
Aws::IoTWireless::Endpoints::DeleteWirelessGateway.build(context)
|
113
|
+
when :delete_wireless_gateway_task
|
114
|
+
Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTask.build(context)
|
115
|
+
when :delete_wireless_gateway_task_definition
|
116
|
+
Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTaskDefinition.build(context)
|
117
|
+
when :disassociate_aws_account_from_partner_account
|
118
|
+
Aws::IoTWireless::Endpoints::DisassociateAwsAccountFromPartnerAccount.build(context)
|
119
|
+
when :disassociate_multicast_group_from_fuota_task
|
120
|
+
Aws::IoTWireless::Endpoints::DisassociateMulticastGroupFromFuotaTask.build(context)
|
121
|
+
when :disassociate_wireless_device_from_fuota_task
|
122
|
+
Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromFuotaTask.build(context)
|
123
|
+
when :disassociate_wireless_device_from_multicast_group
|
124
|
+
Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromMulticastGroup.build(context)
|
125
|
+
when :disassociate_wireless_device_from_thing
|
126
|
+
Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromThing.build(context)
|
127
|
+
when :disassociate_wireless_gateway_from_certificate
|
128
|
+
Aws::IoTWireless::Endpoints::DisassociateWirelessGatewayFromCertificate.build(context)
|
129
|
+
when :disassociate_wireless_gateway_from_thing
|
130
|
+
Aws::IoTWireless::Endpoints::DisassociateWirelessGatewayFromThing.build(context)
|
131
|
+
when :get_destination
|
132
|
+
Aws::IoTWireless::Endpoints::GetDestination.build(context)
|
133
|
+
when :get_device_profile
|
134
|
+
Aws::IoTWireless::Endpoints::GetDeviceProfile.build(context)
|
135
|
+
when :get_event_configuration_by_resource_types
|
136
|
+
Aws::IoTWireless::Endpoints::GetEventConfigurationByResourceTypes.build(context)
|
137
|
+
when :get_fuota_task
|
138
|
+
Aws::IoTWireless::Endpoints::GetFuotaTask.build(context)
|
139
|
+
when :get_log_levels_by_resource_types
|
140
|
+
Aws::IoTWireless::Endpoints::GetLogLevelsByResourceTypes.build(context)
|
141
|
+
when :get_multicast_group
|
142
|
+
Aws::IoTWireless::Endpoints::GetMulticastGroup.build(context)
|
143
|
+
when :get_multicast_group_session
|
144
|
+
Aws::IoTWireless::Endpoints::GetMulticastGroupSession.build(context)
|
145
|
+
when :get_network_analyzer_configuration
|
146
|
+
Aws::IoTWireless::Endpoints::GetNetworkAnalyzerConfiguration.build(context)
|
147
|
+
when :get_partner_account
|
148
|
+
Aws::IoTWireless::Endpoints::GetPartnerAccount.build(context)
|
149
|
+
when :get_position
|
150
|
+
Aws::IoTWireless::Endpoints::GetPosition.build(context)
|
151
|
+
when :get_position_configuration
|
152
|
+
Aws::IoTWireless::Endpoints::GetPositionConfiguration.build(context)
|
153
|
+
when :get_position_estimate
|
154
|
+
Aws::IoTWireless::Endpoints::GetPositionEstimate.build(context)
|
155
|
+
when :get_resource_event_configuration
|
156
|
+
Aws::IoTWireless::Endpoints::GetResourceEventConfiguration.build(context)
|
157
|
+
when :get_resource_log_level
|
158
|
+
Aws::IoTWireless::Endpoints::GetResourceLogLevel.build(context)
|
159
|
+
when :get_resource_position
|
160
|
+
Aws::IoTWireless::Endpoints::GetResourcePosition.build(context)
|
161
|
+
when :get_service_endpoint
|
162
|
+
Aws::IoTWireless::Endpoints::GetServiceEndpoint.build(context)
|
163
|
+
when :get_service_profile
|
164
|
+
Aws::IoTWireless::Endpoints::GetServiceProfile.build(context)
|
165
|
+
when :get_wireless_device
|
166
|
+
Aws::IoTWireless::Endpoints::GetWirelessDevice.build(context)
|
167
|
+
when :get_wireless_device_statistics
|
168
|
+
Aws::IoTWireless::Endpoints::GetWirelessDeviceStatistics.build(context)
|
169
|
+
when :get_wireless_gateway
|
170
|
+
Aws::IoTWireless::Endpoints::GetWirelessGateway.build(context)
|
171
|
+
when :get_wireless_gateway_certificate
|
172
|
+
Aws::IoTWireless::Endpoints::GetWirelessGatewayCertificate.build(context)
|
173
|
+
when :get_wireless_gateway_firmware_information
|
174
|
+
Aws::IoTWireless::Endpoints::GetWirelessGatewayFirmwareInformation.build(context)
|
175
|
+
when :get_wireless_gateway_statistics
|
176
|
+
Aws::IoTWireless::Endpoints::GetWirelessGatewayStatistics.build(context)
|
177
|
+
when :get_wireless_gateway_task
|
178
|
+
Aws::IoTWireless::Endpoints::GetWirelessGatewayTask.build(context)
|
179
|
+
when :get_wireless_gateway_task_definition
|
180
|
+
Aws::IoTWireless::Endpoints::GetWirelessGatewayTaskDefinition.build(context)
|
181
|
+
when :list_destinations
|
182
|
+
Aws::IoTWireless::Endpoints::ListDestinations.build(context)
|
183
|
+
when :list_device_profiles
|
184
|
+
Aws::IoTWireless::Endpoints::ListDeviceProfiles.build(context)
|
185
|
+
when :list_event_configurations
|
186
|
+
Aws::IoTWireless::Endpoints::ListEventConfigurations.build(context)
|
187
|
+
when :list_fuota_tasks
|
188
|
+
Aws::IoTWireless::Endpoints::ListFuotaTasks.build(context)
|
189
|
+
when :list_multicast_groups
|
190
|
+
Aws::IoTWireless::Endpoints::ListMulticastGroups.build(context)
|
191
|
+
when :list_multicast_groups_by_fuota_task
|
192
|
+
Aws::IoTWireless::Endpoints::ListMulticastGroupsByFuotaTask.build(context)
|
193
|
+
when :list_network_analyzer_configurations
|
194
|
+
Aws::IoTWireless::Endpoints::ListNetworkAnalyzerConfigurations.build(context)
|
195
|
+
when :list_partner_accounts
|
196
|
+
Aws::IoTWireless::Endpoints::ListPartnerAccounts.build(context)
|
197
|
+
when :list_position_configurations
|
198
|
+
Aws::IoTWireless::Endpoints::ListPositionConfigurations.build(context)
|
199
|
+
when :list_queued_messages
|
200
|
+
Aws::IoTWireless::Endpoints::ListQueuedMessages.build(context)
|
201
|
+
when :list_service_profiles
|
202
|
+
Aws::IoTWireless::Endpoints::ListServiceProfiles.build(context)
|
203
|
+
when :list_tags_for_resource
|
204
|
+
Aws::IoTWireless::Endpoints::ListTagsForResource.build(context)
|
205
|
+
when :list_wireless_devices
|
206
|
+
Aws::IoTWireless::Endpoints::ListWirelessDevices.build(context)
|
207
|
+
when :list_wireless_gateway_task_definitions
|
208
|
+
Aws::IoTWireless::Endpoints::ListWirelessGatewayTaskDefinitions.build(context)
|
209
|
+
when :list_wireless_gateways
|
210
|
+
Aws::IoTWireless::Endpoints::ListWirelessGateways.build(context)
|
211
|
+
when :put_position_configuration
|
212
|
+
Aws::IoTWireless::Endpoints::PutPositionConfiguration.build(context)
|
213
|
+
when :put_resource_log_level
|
214
|
+
Aws::IoTWireless::Endpoints::PutResourceLogLevel.build(context)
|
215
|
+
when :reset_all_resource_log_levels
|
216
|
+
Aws::IoTWireless::Endpoints::ResetAllResourceLogLevels.build(context)
|
217
|
+
when :reset_resource_log_level
|
218
|
+
Aws::IoTWireless::Endpoints::ResetResourceLogLevel.build(context)
|
219
|
+
when :send_data_to_multicast_group
|
220
|
+
Aws::IoTWireless::Endpoints::SendDataToMulticastGroup.build(context)
|
221
|
+
when :send_data_to_wireless_device
|
222
|
+
Aws::IoTWireless::Endpoints::SendDataToWirelessDevice.build(context)
|
223
|
+
when :start_bulk_associate_wireless_device_with_multicast_group
|
224
|
+
Aws::IoTWireless::Endpoints::StartBulkAssociateWirelessDeviceWithMulticastGroup.build(context)
|
225
|
+
when :start_bulk_disassociate_wireless_device_from_multicast_group
|
226
|
+
Aws::IoTWireless::Endpoints::StartBulkDisassociateWirelessDeviceFromMulticastGroup.build(context)
|
227
|
+
when :start_fuota_task
|
228
|
+
Aws::IoTWireless::Endpoints::StartFuotaTask.build(context)
|
229
|
+
when :start_multicast_group_session
|
230
|
+
Aws::IoTWireless::Endpoints::StartMulticastGroupSession.build(context)
|
231
|
+
when :tag_resource
|
232
|
+
Aws::IoTWireless::Endpoints::TagResource.build(context)
|
233
|
+
when :test_wireless_device
|
234
|
+
Aws::IoTWireless::Endpoints::TestWirelessDevice.build(context)
|
235
|
+
when :untag_resource
|
236
|
+
Aws::IoTWireless::Endpoints::UntagResource.build(context)
|
237
|
+
when :update_destination
|
238
|
+
Aws::IoTWireless::Endpoints::UpdateDestination.build(context)
|
239
|
+
when :update_event_configuration_by_resource_types
|
240
|
+
Aws::IoTWireless::Endpoints::UpdateEventConfigurationByResourceTypes.build(context)
|
241
|
+
when :update_fuota_task
|
242
|
+
Aws::IoTWireless::Endpoints::UpdateFuotaTask.build(context)
|
243
|
+
when :update_log_levels_by_resource_types
|
244
|
+
Aws::IoTWireless::Endpoints::UpdateLogLevelsByResourceTypes.build(context)
|
245
|
+
when :update_multicast_group
|
246
|
+
Aws::IoTWireless::Endpoints::UpdateMulticastGroup.build(context)
|
247
|
+
when :update_network_analyzer_configuration
|
248
|
+
Aws::IoTWireless::Endpoints::UpdateNetworkAnalyzerConfiguration.build(context)
|
249
|
+
when :update_partner_account
|
250
|
+
Aws::IoTWireless::Endpoints::UpdatePartnerAccount.build(context)
|
251
|
+
when :update_position
|
252
|
+
Aws::IoTWireless::Endpoints::UpdatePosition.build(context)
|
253
|
+
when :update_resource_event_configuration
|
254
|
+
Aws::IoTWireless::Endpoints::UpdateResourceEventConfiguration.build(context)
|
255
|
+
when :update_resource_position
|
256
|
+
Aws::IoTWireless::Endpoints::UpdateResourcePosition.build(context)
|
257
|
+
when :update_wireless_device
|
258
|
+
Aws::IoTWireless::Endpoints::UpdateWirelessDevice.build(context)
|
259
|
+
when :update_wireless_gateway
|
260
|
+
Aws::IoTWireless::Endpoints::UpdateWirelessGateway.build(context)
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
def add_handlers(handlers, _config)
|
266
|
+
handlers.add(Handler, step: :build, priority: 75)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|