aws-sdk-iotsitewise 1.45.0 → 1.47.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-iotsitewise/client.rb +190 -25
- data/lib/aws-sdk-iotsitewise/client_api.rb +98 -0
- data/lib/aws-sdk-iotsitewise/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-iotsitewise/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-iotsitewise/endpoints.rb +1037 -0
- data/lib/aws-sdk-iotsitewise/plugins/endpoints.rb +214 -0
- data/lib/aws-sdk-iotsitewise/types.rb +286 -41
- data/lib/aws-sdk-iotsitewise.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,214 @@
|
|
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::IoTSiteWise
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::IoTSiteWise::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::IoTSiteWise::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::IoTSiteWise::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_assets
|
60
|
+
Aws::IoTSiteWise::Endpoints::AssociateAssets.build(context)
|
61
|
+
when :associate_time_series_to_asset_property
|
62
|
+
Aws::IoTSiteWise::Endpoints::AssociateTimeSeriesToAssetProperty.build(context)
|
63
|
+
when :batch_associate_project_assets
|
64
|
+
Aws::IoTSiteWise::Endpoints::BatchAssociateProjectAssets.build(context)
|
65
|
+
when :batch_disassociate_project_assets
|
66
|
+
Aws::IoTSiteWise::Endpoints::BatchDisassociateProjectAssets.build(context)
|
67
|
+
when :batch_get_asset_property_aggregates
|
68
|
+
Aws::IoTSiteWise::Endpoints::BatchGetAssetPropertyAggregates.build(context)
|
69
|
+
when :batch_get_asset_property_value
|
70
|
+
Aws::IoTSiteWise::Endpoints::BatchGetAssetPropertyValue.build(context)
|
71
|
+
when :batch_get_asset_property_value_history
|
72
|
+
Aws::IoTSiteWise::Endpoints::BatchGetAssetPropertyValueHistory.build(context)
|
73
|
+
when :batch_put_asset_property_value
|
74
|
+
Aws::IoTSiteWise::Endpoints::BatchPutAssetPropertyValue.build(context)
|
75
|
+
when :create_access_policy
|
76
|
+
Aws::IoTSiteWise::Endpoints::CreateAccessPolicy.build(context)
|
77
|
+
when :create_asset
|
78
|
+
Aws::IoTSiteWise::Endpoints::CreateAsset.build(context)
|
79
|
+
when :create_asset_model
|
80
|
+
Aws::IoTSiteWise::Endpoints::CreateAssetModel.build(context)
|
81
|
+
when :create_bulk_import_job
|
82
|
+
Aws::IoTSiteWise::Endpoints::CreateBulkImportJob.build(context)
|
83
|
+
when :create_dashboard
|
84
|
+
Aws::IoTSiteWise::Endpoints::CreateDashboard.build(context)
|
85
|
+
when :create_gateway
|
86
|
+
Aws::IoTSiteWise::Endpoints::CreateGateway.build(context)
|
87
|
+
when :create_portal
|
88
|
+
Aws::IoTSiteWise::Endpoints::CreatePortal.build(context)
|
89
|
+
when :create_project
|
90
|
+
Aws::IoTSiteWise::Endpoints::CreateProject.build(context)
|
91
|
+
when :delete_access_policy
|
92
|
+
Aws::IoTSiteWise::Endpoints::DeleteAccessPolicy.build(context)
|
93
|
+
when :delete_asset
|
94
|
+
Aws::IoTSiteWise::Endpoints::DeleteAsset.build(context)
|
95
|
+
when :delete_asset_model
|
96
|
+
Aws::IoTSiteWise::Endpoints::DeleteAssetModel.build(context)
|
97
|
+
when :delete_dashboard
|
98
|
+
Aws::IoTSiteWise::Endpoints::DeleteDashboard.build(context)
|
99
|
+
when :delete_gateway
|
100
|
+
Aws::IoTSiteWise::Endpoints::DeleteGateway.build(context)
|
101
|
+
when :delete_portal
|
102
|
+
Aws::IoTSiteWise::Endpoints::DeletePortal.build(context)
|
103
|
+
when :delete_project
|
104
|
+
Aws::IoTSiteWise::Endpoints::DeleteProject.build(context)
|
105
|
+
when :delete_time_series
|
106
|
+
Aws::IoTSiteWise::Endpoints::DeleteTimeSeries.build(context)
|
107
|
+
when :describe_access_policy
|
108
|
+
Aws::IoTSiteWise::Endpoints::DescribeAccessPolicy.build(context)
|
109
|
+
when :describe_asset
|
110
|
+
Aws::IoTSiteWise::Endpoints::DescribeAsset.build(context)
|
111
|
+
when :describe_asset_model
|
112
|
+
Aws::IoTSiteWise::Endpoints::DescribeAssetModel.build(context)
|
113
|
+
when :describe_asset_property
|
114
|
+
Aws::IoTSiteWise::Endpoints::DescribeAssetProperty.build(context)
|
115
|
+
when :describe_bulk_import_job
|
116
|
+
Aws::IoTSiteWise::Endpoints::DescribeBulkImportJob.build(context)
|
117
|
+
when :describe_dashboard
|
118
|
+
Aws::IoTSiteWise::Endpoints::DescribeDashboard.build(context)
|
119
|
+
when :describe_default_encryption_configuration
|
120
|
+
Aws::IoTSiteWise::Endpoints::DescribeDefaultEncryptionConfiguration.build(context)
|
121
|
+
when :describe_gateway
|
122
|
+
Aws::IoTSiteWise::Endpoints::DescribeGateway.build(context)
|
123
|
+
when :describe_gateway_capability_configuration
|
124
|
+
Aws::IoTSiteWise::Endpoints::DescribeGatewayCapabilityConfiguration.build(context)
|
125
|
+
when :describe_logging_options
|
126
|
+
Aws::IoTSiteWise::Endpoints::DescribeLoggingOptions.build(context)
|
127
|
+
when :describe_portal
|
128
|
+
Aws::IoTSiteWise::Endpoints::DescribePortal.build(context)
|
129
|
+
when :describe_project
|
130
|
+
Aws::IoTSiteWise::Endpoints::DescribeProject.build(context)
|
131
|
+
when :describe_storage_configuration
|
132
|
+
Aws::IoTSiteWise::Endpoints::DescribeStorageConfiguration.build(context)
|
133
|
+
when :describe_time_series
|
134
|
+
Aws::IoTSiteWise::Endpoints::DescribeTimeSeries.build(context)
|
135
|
+
when :disassociate_assets
|
136
|
+
Aws::IoTSiteWise::Endpoints::DisassociateAssets.build(context)
|
137
|
+
when :disassociate_time_series_from_asset_property
|
138
|
+
Aws::IoTSiteWise::Endpoints::DisassociateTimeSeriesFromAssetProperty.build(context)
|
139
|
+
when :get_asset_property_aggregates
|
140
|
+
Aws::IoTSiteWise::Endpoints::GetAssetPropertyAggregates.build(context)
|
141
|
+
when :get_asset_property_value
|
142
|
+
Aws::IoTSiteWise::Endpoints::GetAssetPropertyValue.build(context)
|
143
|
+
when :get_asset_property_value_history
|
144
|
+
Aws::IoTSiteWise::Endpoints::GetAssetPropertyValueHistory.build(context)
|
145
|
+
when :get_interpolated_asset_property_values
|
146
|
+
Aws::IoTSiteWise::Endpoints::GetInterpolatedAssetPropertyValues.build(context)
|
147
|
+
when :list_access_policies
|
148
|
+
Aws::IoTSiteWise::Endpoints::ListAccessPolicies.build(context)
|
149
|
+
when :list_asset_model_properties
|
150
|
+
Aws::IoTSiteWise::Endpoints::ListAssetModelProperties.build(context)
|
151
|
+
when :list_asset_models
|
152
|
+
Aws::IoTSiteWise::Endpoints::ListAssetModels.build(context)
|
153
|
+
when :list_asset_properties
|
154
|
+
Aws::IoTSiteWise::Endpoints::ListAssetProperties.build(context)
|
155
|
+
when :list_asset_relationships
|
156
|
+
Aws::IoTSiteWise::Endpoints::ListAssetRelationships.build(context)
|
157
|
+
when :list_assets
|
158
|
+
Aws::IoTSiteWise::Endpoints::ListAssets.build(context)
|
159
|
+
when :list_associated_assets
|
160
|
+
Aws::IoTSiteWise::Endpoints::ListAssociatedAssets.build(context)
|
161
|
+
when :list_bulk_import_jobs
|
162
|
+
Aws::IoTSiteWise::Endpoints::ListBulkImportJobs.build(context)
|
163
|
+
when :list_dashboards
|
164
|
+
Aws::IoTSiteWise::Endpoints::ListDashboards.build(context)
|
165
|
+
when :list_gateways
|
166
|
+
Aws::IoTSiteWise::Endpoints::ListGateways.build(context)
|
167
|
+
when :list_portals
|
168
|
+
Aws::IoTSiteWise::Endpoints::ListPortals.build(context)
|
169
|
+
when :list_project_assets
|
170
|
+
Aws::IoTSiteWise::Endpoints::ListProjectAssets.build(context)
|
171
|
+
when :list_projects
|
172
|
+
Aws::IoTSiteWise::Endpoints::ListProjects.build(context)
|
173
|
+
when :list_tags_for_resource
|
174
|
+
Aws::IoTSiteWise::Endpoints::ListTagsForResource.build(context)
|
175
|
+
when :list_time_series
|
176
|
+
Aws::IoTSiteWise::Endpoints::ListTimeSeries.build(context)
|
177
|
+
when :put_default_encryption_configuration
|
178
|
+
Aws::IoTSiteWise::Endpoints::PutDefaultEncryptionConfiguration.build(context)
|
179
|
+
when :put_logging_options
|
180
|
+
Aws::IoTSiteWise::Endpoints::PutLoggingOptions.build(context)
|
181
|
+
when :put_storage_configuration
|
182
|
+
Aws::IoTSiteWise::Endpoints::PutStorageConfiguration.build(context)
|
183
|
+
when :tag_resource
|
184
|
+
Aws::IoTSiteWise::Endpoints::TagResource.build(context)
|
185
|
+
when :untag_resource
|
186
|
+
Aws::IoTSiteWise::Endpoints::UntagResource.build(context)
|
187
|
+
when :update_access_policy
|
188
|
+
Aws::IoTSiteWise::Endpoints::UpdateAccessPolicy.build(context)
|
189
|
+
when :update_asset
|
190
|
+
Aws::IoTSiteWise::Endpoints::UpdateAsset.build(context)
|
191
|
+
when :update_asset_model
|
192
|
+
Aws::IoTSiteWise::Endpoints::UpdateAssetModel.build(context)
|
193
|
+
when :update_asset_property
|
194
|
+
Aws::IoTSiteWise::Endpoints::UpdateAssetProperty.build(context)
|
195
|
+
when :update_dashboard
|
196
|
+
Aws::IoTSiteWise::Endpoints::UpdateDashboard.build(context)
|
197
|
+
when :update_gateway
|
198
|
+
Aws::IoTSiteWise::Endpoints::UpdateGateway.build(context)
|
199
|
+
when :update_gateway_capability_configuration
|
200
|
+
Aws::IoTSiteWise::Endpoints::UpdateGatewayCapabilityConfiguration.build(context)
|
201
|
+
when :update_portal
|
202
|
+
Aws::IoTSiteWise::Endpoints::UpdatePortal.build(context)
|
203
|
+
when :update_project
|
204
|
+
Aws::IoTSiteWise::Endpoints::UpdateProject.build(context)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
def add_handlers(handlers, _config)
|
210
|
+
handlers.add(Handler, step: :build, priority: 75)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|