aws-sdk-iotfleetwise 1.1.0 → 1.3.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-iotfleetwise/client.rb +20 -3
- data/lib/aws-sdk-iotfleetwise/client_api.rb +4 -2
- data/lib/aws-sdk-iotfleetwise/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-iotfleetwise/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-iotfleetwise/endpoints.rb +715 -0
- data/lib/aws-sdk-iotfleetwise/errors.rb +10 -0
- data/lib/aws-sdk-iotfleetwise/plugins/endpoints.rb +168 -0
- data/lib/aws-sdk-iotfleetwise/types.rb +10 -1037
- data/lib/aws-sdk-iotfleetwise.rb +5 -1
- metadata +8 -4
@@ -102,6 +102,11 @@ module Aws::IoTFleetWise
|
|
102
102
|
def invalid_network_interfaces
|
103
103
|
@data[:invalid_network_interfaces]
|
104
104
|
end
|
105
|
+
|
106
|
+
# @return [String]
|
107
|
+
def message
|
108
|
+
@message || @data[:message]
|
109
|
+
end
|
105
110
|
end
|
106
111
|
|
107
112
|
class InternalServerException < ServiceError
|
@@ -142,6 +147,11 @@ module Aws::IoTFleetWise
|
|
142
147
|
def reason
|
143
148
|
@data[:reason]
|
144
149
|
end
|
150
|
+
|
151
|
+
# @return [String]
|
152
|
+
def message
|
153
|
+
@message || @data[:message]
|
154
|
+
end
|
145
155
|
end
|
146
156
|
|
147
157
|
class InvalidSignalsException < ServiceError
|
@@ -0,0 +1,168 @@
|
|
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::IoTFleetWise
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::IoTFleetWise::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::IoTFleetWise::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::IoTFleetWise::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_vehicle_fleet
|
60
|
+
Aws::IoTFleetWise::Endpoints::AssociateVehicleFleet.build(context)
|
61
|
+
when :batch_create_vehicle
|
62
|
+
Aws::IoTFleetWise::Endpoints::BatchCreateVehicle.build(context)
|
63
|
+
when :batch_update_vehicle
|
64
|
+
Aws::IoTFleetWise::Endpoints::BatchUpdateVehicle.build(context)
|
65
|
+
when :create_campaign
|
66
|
+
Aws::IoTFleetWise::Endpoints::CreateCampaign.build(context)
|
67
|
+
when :create_decoder_manifest
|
68
|
+
Aws::IoTFleetWise::Endpoints::CreateDecoderManifest.build(context)
|
69
|
+
when :create_fleet
|
70
|
+
Aws::IoTFleetWise::Endpoints::CreateFleet.build(context)
|
71
|
+
when :create_model_manifest
|
72
|
+
Aws::IoTFleetWise::Endpoints::CreateModelManifest.build(context)
|
73
|
+
when :create_signal_catalog
|
74
|
+
Aws::IoTFleetWise::Endpoints::CreateSignalCatalog.build(context)
|
75
|
+
when :create_vehicle
|
76
|
+
Aws::IoTFleetWise::Endpoints::CreateVehicle.build(context)
|
77
|
+
when :delete_campaign
|
78
|
+
Aws::IoTFleetWise::Endpoints::DeleteCampaign.build(context)
|
79
|
+
when :delete_decoder_manifest
|
80
|
+
Aws::IoTFleetWise::Endpoints::DeleteDecoderManifest.build(context)
|
81
|
+
when :delete_fleet
|
82
|
+
Aws::IoTFleetWise::Endpoints::DeleteFleet.build(context)
|
83
|
+
when :delete_model_manifest
|
84
|
+
Aws::IoTFleetWise::Endpoints::DeleteModelManifest.build(context)
|
85
|
+
when :delete_signal_catalog
|
86
|
+
Aws::IoTFleetWise::Endpoints::DeleteSignalCatalog.build(context)
|
87
|
+
when :delete_vehicle
|
88
|
+
Aws::IoTFleetWise::Endpoints::DeleteVehicle.build(context)
|
89
|
+
when :disassociate_vehicle_fleet
|
90
|
+
Aws::IoTFleetWise::Endpoints::DisassociateVehicleFleet.build(context)
|
91
|
+
when :get_campaign
|
92
|
+
Aws::IoTFleetWise::Endpoints::GetCampaign.build(context)
|
93
|
+
when :get_decoder_manifest
|
94
|
+
Aws::IoTFleetWise::Endpoints::GetDecoderManifest.build(context)
|
95
|
+
when :get_fleet
|
96
|
+
Aws::IoTFleetWise::Endpoints::GetFleet.build(context)
|
97
|
+
when :get_logging_options
|
98
|
+
Aws::IoTFleetWise::Endpoints::GetLoggingOptions.build(context)
|
99
|
+
when :get_model_manifest
|
100
|
+
Aws::IoTFleetWise::Endpoints::GetModelManifest.build(context)
|
101
|
+
when :get_register_account_status
|
102
|
+
Aws::IoTFleetWise::Endpoints::GetRegisterAccountStatus.build(context)
|
103
|
+
when :get_signal_catalog
|
104
|
+
Aws::IoTFleetWise::Endpoints::GetSignalCatalog.build(context)
|
105
|
+
when :get_vehicle
|
106
|
+
Aws::IoTFleetWise::Endpoints::GetVehicle.build(context)
|
107
|
+
when :get_vehicle_status
|
108
|
+
Aws::IoTFleetWise::Endpoints::GetVehicleStatus.build(context)
|
109
|
+
when :import_decoder_manifest
|
110
|
+
Aws::IoTFleetWise::Endpoints::ImportDecoderManifest.build(context)
|
111
|
+
when :import_signal_catalog
|
112
|
+
Aws::IoTFleetWise::Endpoints::ImportSignalCatalog.build(context)
|
113
|
+
when :list_campaigns
|
114
|
+
Aws::IoTFleetWise::Endpoints::ListCampaigns.build(context)
|
115
|
+
when :list_decoder_manifest_network_interfaces
|
116
|
+
Aws::IoTFleetWise::Endpoints::ListDecoderManifestNetworkInterfaces.build(context)
|
117
|
+
when :list_decoder_manifest_signals
|
118
|
+
Aws::IoTFleetWise::Endpoints::ListDecoderManifestSignals.build(context)
|
119
|
+
when :list_decoder_manifests
|
120
|
+
Aws::IoTFleetWise::Endpoints::ListDecoderManifests.build(context)
|
121
|
+
when :list_fleets
|
122
|
+
Aws::IoTFleetWise::Endpoints::ListFleets.build(context)
|
123
|
+
when :list_fleets_for_vehicle
|
124
|
+
Aws::IoTFleetWise::Endpoints::ListFleetsForVehicle.build(context)
|
125
|
+
when :list_model_manifest_nodes
|
126
|
+
Aws::IoTFleetWise::Endpoints::ListModelManifestNodes.build(context)
|
127
|
+
when :list_model_manifests
|
128
|
+
Aws::IoTFleetWise::Endpoints::ListModelManifests.build(context)
|
129
|
+
when :list_signal_catalog_nodes
|
130
|
+
Aws::IoTFleetWise::Endpoints::ListSignalCatalogNodes.build(context)
|
131
|
+
when :list_signal_catalogs
|
132
|
+
Aws::IoTFleetWise::Endpoints::ListSignalCatalogs.build(context)
|
133
|
+
when :list_tags_for_resource
|
134
|
+
Aws::IoTFleetWise::Endpoints::ListTagsForResource.build(context)
|
135
|
+
when :list_vehicles
|
136
|
+
Aws::IoTFleetWise::Endpoints::ListVehicles.build(context)
|
137
|
+
when :list_vehicles_in_fleet
|
138
|
+
Aws::IoTFleetWise::Endpoints::ListVehiclesInFleet.build(context)
|
139
|
+
when :put_logging_options
|
140
|
+
Aws::IoTFleetWise::Endpoints::PutLoggingOptions.build(context)
|
141
|
+
when :register_account
|
142
|
+
Aws::IoTFleetWise::Endpoints::RegisterAccount.build(context)
|
143
|
+
when :tag_resource
|
144
|
+
Aws::IoTFleetWise::Endpoints::TagResource.build(context)
|
145
|
+
when :untag_resource
|
146
|
+
Aws::IoTFleetWise::Endpoints::UntagResource.build(context)
|
147
|
+
when :update_campaign
|
148
|
+
Aws::IoTFleetWise::Endpoints::UpdateCampaign.build(context)
|
149
|
+
when :update_decoder_manifest
|
150
|
+
Aws::IoTFleetWise::Endpoints::UpdateDecoderManifest.build(context)
|
151
|
+
when :update_fleet
|
152
|
+
Aws::IoTFleetWise::Endpoints::UpdateFleet.build(context)
|
153
|
+
when :update_model_manifest
|
154
|
+
Aws::IoTFleetWise::Endpoints::UpdateModelManifest.build(context)
|
155
|
+
when :update_signal_catalog
|
156
|
+
Aws::IoTFleetWise::Endpoints::UpdateSignalCatalog.build(context)
|
157
|
+
when :update_vehicle
|
158
|
+
Aws::IoTFleetWise::Endpoints::UpdateVehicle.build(context)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
def add_handlers(handlers, _config)
|
164
|
+
handlers.add(Handler, step: :build, priority: 75)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|