aws-sdk-iotsitewise 1.44.0 → 1.46.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,210 @@
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_models
150
+ Aws::IoTSiteWise::Endpoints::ListAssetModels.build(context)
151
+ when :list_asset_relationships
152
+ Aws::IoTSiteWise::Endpoints::ListAssetRelationships.build(context)
153
+ when :list_assets
154
+ Aws::IoTSiteWise::Endpoints::ListAssets.build(context)
155
+ when :list_associated_assets
156
+ Aws::IoTSiteWise::Endpoints::ListAssociatedAssets.build(context)
157
+ when :list_bulk_import_jobs
158
+ Aws::IoTSiteWise::Endpoints::ListBulkImportJobs.build(context)
159
+ when :list_dashboards
160
+ Aws::IoTSiteWise::Endpoints::ListDashboards.build(context)
161
+ when :list_gateways
162
+ Aws::IoTSiteWise::Endpoints::ListGateways.build(context)
163
+ when :list_portals
164
+ Aws::IoTSiteWise::Endpoints::ListPortals.build(context)
165
+ when :list_project_assets
166
+ Aws::IoTSiteWise::Endpoints::ListProjectAssets.build(context)
167
+ when :list_projects
168
+ Aws::IoTSiteWise::Endpoints::ListProjects.build(context)
169
+ when :list_tags_for_resource
170
+ Aws::IoTSiteWise::Endpoints::ListTagsForResource.build(context)
171
+ when :list_time_series
172
+ Aws::IoTSiteWise::Endpoints::ListTimeSeries.build(context)
173
+ when :put_default_encryption_configuration
174
+ Aws::IoTSiteWise::Endpoints::PutDefaultEncryptionConfiguration.build(context)
175
+ when :put_logging_options
176
+ Aws::IoTSiteWise::Endpoints::PutLoggingOptions.build(context)
177
+ when :put_storage_configuration
178
+ Aws::IoTSiteWise::Endpoints::PutStorageConfiguration.build(context)
179
+ when :tag_resource
180
+ Aws::IoTSiteWise::Endpoints::TagResource.build(context)
181
+ when :untag_resource
182
+ Aws::IoTSiteWise::Endpoints::UntagResource.build(context)
183
+ when :update_access_policy
184
+ Aws::IoTSiteWise::Endpoints::UpdateAccessPolicy.build(context)
185
+ when :update_asset
186
+ Aws::IoTSiteWise::Endpoints::UpdateAsset.build(context)
187
+ when :update_asset_model
188
+ Aws::IoTSiteWise::Endpoints::UpdateAssetModel.build(context)
189
+ when :update_asset_property
190
+ Aws::IoTSiteWise::Endpoints::UpdateAssetProperty.build(context)
191
+ when :update_dashboard
192
+ Aws::IoTSiteWise::Endpoints::UpdateDashboard.build(context)
193
+ when :update_gateway
194
+ Aws::IoTSiteWise::Endpoints::UpdateGateway.build(context)
195
+ when :update_gateway_capability_configuration
196
+ Aws::IoTSiteWise::Endpoints::UpdateGatewayCapabilityConfiguration.build(context)
197
+ when :update_portal
198
+ Aws::IoTSiteWise::Endpoints::UpdatePortal.build(context)
199
+ when :update_project
200
+ Aws::IoTSiteWise::Endpoints::UpdateProject.build(context)
201
+ end
202
+ end
203
+ end
204
+
205
+ def add_handlers(handlers, _config)
206
+ handlers.add(Handler, step: :build, priority: 75)
207
+ end
208
+ end
209
+ end
210
+ end
@@ -2564,7 +2564,7 @@ module Aws::IoTSiteWise
2564
2564
  # }
2565
2565
  #
2566
2566
  # @!attribute [rw] asset_name
2567
- # A unique, friendly name for the asset.
2567
+ # A friendly name for the asset.
2568
2568
  # @return [String]
2569
2569
  #
2570
2570
  # @!attribute [rw] asset_model_id
@@ -8003,6 +8003,7 @@ module Aws::IoTSiteWise
8003
8003
  # property_alias: "PropertyAlias",
8004
8004
  # property_notification_state: "ENABLED", # accepts ENABLED, DISABLED
8005
8005
  # client_token: "ClientToken",
8006
+ # property_unit: "PropertyUnit",
8006
8007
  # }
8007
8008
  #
8008
8009
  # @!attribute [rw] asset_id
@@ -8051,12 +8052,19 @@ module Aws::IoTSiteWise
8051
8052
  # not need to pass this option.
8052
8053
  # @return [String]
8053
8054
  #
8055
+ # @!attribute [rw] property_unit
8056
+ # The unit of measure (such as Newtons or RPM) of the asset property.
8057
+ # If you don't specify a value for this parameter, the service uses
8058
+ # the value of the `assetModelProperty` in the asset model.
8059
+ # @return [String]
8060
+ #
8054
8061
  class UpdateAssetPropertyRequest < Struct.new(
8055
8062
  :asset_id,
8056
8063
  :property_id,
8057
8064
  :property_alias,
8058
8065
  :property_notification_state,
8059
- :client_token)
8066
+ :client_token,
8067
+ :property_unit)
8060
8068
  SENSITIVE = []
8061
8069
  include Aws::Structure
8062
8070
  end
@@ -8076,7 +8084,7 @@ module Aws::IoTSiteWise
8076
8084
  # @return [String]
8077
8085
  #
8078
8086
  # @!attribute [rw] asset_name
8079
- # A unique, friendly name for the asset.
8087
+ # A friendly name for the asset.
8080
8088
  # @return [String]
8081
8089
  #
8082
8090
  # @!attribute [rw] client_token
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-iotsitewise/types'
15
15
  require_relative 'aws-sdk-iotsitewise/client_api'
16
+ require_relative 'aws-sdk-iotsitewise/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-iotsitewise/client'
17
18
  require_relative 'aws-sdk-iotsitewise/errors'
18
19
  require_relative 'aws-sdk-iotsitewise/waiters'
19
20
  require_relative 'aws-sdk-iotsitewise/resource'
21
+ require_relative 'aws-sdk-iotsitewise/endpoint_parameters'
22
+ require_relative 'aws-sdk-iotsitewise/endpoint_provider'
23
+ require_relative 'aws-sdk-iotsitewise/endpoints'
20
24
  require_relative 'aws-sdk-iotsitewise/customizations'
21
25
 
22
26
  # This module provides support for AWS IoT SiteWise. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-iotsitewise/customizations'
49
53
  # @!group service
50
54
  module Aws::IoTSiteWise
51
55
 
52
- GEM_VERSION = '1.44.0'
56
+ GEM_VERSION = '1.46.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iotsitewise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.46.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-08-22 00:00:00.000000000 Z
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.127.0
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.127.0
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-iotsitewise/client.rb
60
60
  - lib/aws-sdk-iotsitewise/client_api.rb
61
61
  - lib/aws-sdk-iotsitewise/customizations.rb
62
+ - lib/aws-sdk-iotsitewise/endpoint_parameters.rb
63
+ - lib/aws-sdk-iotsitewise/endpoint_provider.rb
64
+ - lib/aws-sdk-iotsitewise/endpoints.rb
62
65
  - lib/aws-sdk-iotsitewise/errors.rb
66
+ - lib/aws-sdk-iotsitewise/plugins/endpoints.rb
63
67
  - lib/aws-sdk-iotsitewise/resource.rb
64
68
  - lib/aws-sdk-iotsitewise/types.rb
65
69
  - lib/aws-sdk-iotsitewise/waiters.rb