aws-sdk-forecastservice 1.37.0 → 1.38.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-forecastservice/client.rb +20 -3
- data/lib/aws-sdk-forecastservice/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-forecastservice/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-forecastservice/endpoints.rb +897 -0
- data/lib/aws-sdk-forecastservice/plugins/endpoints.rb +194 -0
- data/lib/aws-sdk-forecastservice.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,194 @@
|
|
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::ForecastService
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ForecastService::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::ForecastService::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ForecastService::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 :create_auto_predictor
|
60
|
+
Aws::ForecastService::Endpoints::CreateAutoPredictor.build(context)
|
61
|
+
when :create_dataset
|
62
|
+
Aws::ForecastService::Endpoints::CreateDataset.build(context)
|
63
|
+
when :create_dataset_group
|
64
|
+
Aws::ForecastService::Endpoints::CreateDatasetGroup.build(context)
|
65
|
+
when :create_dataset_import_job
|
66
|
+
Aws::ForecastService::Endpoints::CreateDatasetImportJob.build(context)
|
67
|
+
when :create_explainability
|
68
|
+
Aws::ForecastService::Endpoints::CreateExplainability.build(context)
|
69
|
+
when :create_explainability_export
|
70
|
+
Aws::ForecastService::Endpoints::CreateExplainabilityExport.build(context)
|
71
|
+
when :create_forecast
|
72
|
+
Aws::ForecastService::Endpoints::CreateForecast.build(context)
|
73
|
+
when :create_forecast_export_job
|
74
|
+
Aws::ForecastService::Endpoints::CreateForecastExportJob.build(context)
|
75
|
+
when :create_monitor
|
76
|
+
Aws::ForecastService::Endpoints::CreateMonitor.build(context)
|
77
|
+
when :create_predictor
|
78
|
+
Aws::ForecastService::Endpoints::CreatePredictor.build(context)
|
79
|
+
when :create_predictor_backtest_export_job
|
80
|
+
Aws::ForecastService::Endpoints::CreatePredictorBacktestExportJob.build(context)
|
81
|
+
when :create_what_if_analysis
|
82
|
+
Aws::ForecastService::Endpoints::CreateWhatIfAnalysis.build(context)
|
83
|
+
when :create_what_if_forecast
|
84
|
+
Aws::ForecastService::Endpoints::CreateWhatIfForecast.build(context)
|
85
|
+
when :create_what_if_forecast_export
|
86
|
+
Aws::ForecastService::Endpoints::CreateWhatIfForecastExport.build(context)
|
87
|
+
when :delete_dataset
|
88
|
+
Aws::ForecastService::Endpoints::DeleteDataset.build(context)
|
89
|
+
when :delete_dataset_group
|
90
|
+
Aws::ForecastService::Endpoints::DeleteDatasetGroup.build(context)
|
91
|
+
when :delete_dataset_import_job
|
92
|
+
Aws::ForecastService::Endpoints::DeleteDatasetImportJob.build(context)
|
93
|
+
when :delete_explainability
|
94
|
+
Aws::ForecastService::Endpoints::DeleteExplainability.build(context)
|
95
|
+
when :delete_explainability_export
|
96
|
+
Aws::ForecastService::Endpoints::DeleteExplainabilityExport.build(context)
|
97
|
+
when :delete_forecast
|
98
|
+
Aws::ForecastService::Endpoints::DeleteForecast.build(context)
|
99
|
+
when :delete_forecast_export_job
|
100
|
+
Aws::ForecastService::Endpoints::DeleteForecastExportJob.build(context)
|
101
|
+
when :delete_monitor
|
102
|
+
Aws::ForecastService::Endpoints::DeleteMonitor.build(context)
|
103
|
+
when :delete_predictor
|
104
|
+
Aws::ForecastService::Endpoints::DeletePredictor.build(context)
|
105
|
+
when :delete_predictor_backtest_export_job
|
106
|
+
Aws::ForecastService::Endpoints::DeletePredictorBacktestExportJob.build(context)
|
107
|
+
when :delete_resource_tree
|
108
|
+
Aws::ForecastService::Endpoints::DeleteResourceTree.build(context)
|
109
|
+
when :delete_what_if_analysis
|
110
|
+
Aws::ForecastService::Endpoints::DeleteWhatIfAnalysis.build(context)
|
111
|
+
when :delete_what_if_forecast
|
112
|
+
Aws::ForecastService::Endpoints::DeleteWhatIfForecast.build(context)
|
113
|
+
when :delete_what_if_forecast_export
|
114
|
+
Aws::ForecastService::Endpoints::DeleteWhatIfForecastExport.build(context)
|
115
|
+
when :describe_auto_predictor
|
116
|
+
Aws::ForecastService::Endpoints::DescribeAutoPredictor.build(context)
|
117
|
+
when :describe_dataset
|
118
|
+
Aws::ForecastService::Endpoints::DescribeDataset.build(context)
|
119
|
+
when :describe_dataset_group
|
120
|
+
Aws::ForecastService::Endpoints::DescribeDatasetGroup.build(context)
|
121
|
+
when :describe_dataset_import_job
|
122
|
+
Aws::ForecastService::Endpoints::DescribeDatasetImportJob.build(context)
|
123
|
+
when :describe_explainability
|
124
|
+
Aws::ForecastService::Endpoints::DescribeExplainability.build(context)
|
125
|
+
when :describe_explainability_export
|
126
|
+
Aws::ForecastService::Endpoints::DescribeExplainabilityExport.build(context)
|
127
|
+
when :describe_forecast
|
128
|
+
Aws::ForecastService::Endpoints::DescribeForecast.build(context)
|
129
|
+
when :describe_forecast_export_job
|
130
|
+
Aws::ForecastService::Endpoints::DescribeForecastExportJob.build(context)
|
131
|
+
when :describe_monitor
|
132
|
+
Aws::ForecastService::Endpoints::DescribeMonitor.build(context)
|
133
|
+
when :describe_predictor
|
134
|
+
Aws::ForecastService::Endpoints::DescribePredictor.build(context)
|
135
|
+
when :describe_predictor_backtest_export_job
|
136
|
+
Aws::ForecastService::Endpoints::DescribePredictorBacktestExportJob.build(context)
|
137
|
+
when :describe_what_if_analysis
|
138
|
+
Aws::ForecastService::Endpoints::DescribeWhatIfAnalysis.build(context)
|
139
|
+
when :describe_what_if_forecast
|
140
|
+
Aws::ForecastService::Endpoints::DescribeWhatIfForecast.build(context)
|
141
|
+
when :describe_what_if_forecast_export
|
142
|
+
Aws::ForecastService::Endpoints::DescribeWhatIfForecastExport.build(context)
|
143
|
+
when :get_accuracy_metrics
|
144
|
+
Aws::ForecastService::Endpoints::GetAccuracyMetrics.build(context)
|
145
|
+
when :list_dataset_groups
|
146
|
+
Aws::ForecastService::Endpoints::ListDatasetGroups.build(context)
|
147
|
+
when :list_dataset_import_jobs
|
148
|
+
Aws::ForecastService::Endpoints::ListDatasetImportJobs.build(context)
|
149
|
+
when :list_datasets
|
150
|
+
Aws::ForecastService::Endpoints::ListDatasets.build(context)
|
151
|
+
when :list_explainabilities
|
152
|
+
Aws::ForecastService::Endpoints::ListExplainabilities.build(context)
|
153
|
+
when :list_explainability_exports
|
154
|
+
Aws::ForecastService::Endpoints::ListExplainabilityExports.build(context)
|
155
|
+
when :list_forecast_export_jobs
|
156
|
+
Aws::ForecastService::Endpoints::ListForecastExportJobs.build(context)
|
157
|
+
when :list_forecasts
|
158
|
+
Aws::ForecastService::Endpoints::ListForecasts.build(context)
|
159
|
+
when :list_monitor_evaluations
|
160
|
+
Aws::ForecastService::Endpoints::ListMonitorEvaluations.build(context)
|
161
|
+
when :list_monitors
|
162
|
+
Aws::ForecastService::Endpoints::ListMonitors.build(context)
|
163
|
+
when :list_predictor_backtest_export_jobs
|
164
|
+
Aws::ForecastService::Endpoints::ListPredictorBacktestExportJobs.build(context)
|
165
|
+
when :list_predictors
|
166
|
+
Aws::ForecastService::Endpoints::ListPredictors.build(context)
|
167
|
+
when :list_tags_for_resource
|
168
|
+
Aws::ForecastService::Endpoints::ListTagsForResource.build(context)
|
169
|
+
when :list_what_if_analyses
|
170
|
+
Aws::ForecastService::Endpoints::ListWhatIfAnalyses.build(context)
|
171
|
+
when :list_what_if_forecast_exports
|
172
|
+
Aws::ForecastService::Endpoints::ListWhatIfForecastExports.build(context)
|
173
|
+
when :list_what_if_forecasts
|
174
|
+
Aws::ForecastService::Endpoints::ListWhatIfForecasts.build(context)
|
175
|
+
when :resume_resource
|
176
|
+
Aws::ForecastService::Endpoints::ResumeResource.build(context)
|
177
|
+
when :stop_resource
|
178
|
+
Aws::ForecastService::Endpoints::StopResource.build(context)
|
179
|
+
when :tag_resource
|
180
|
+
Aws::ForecastService::Endpoints::TagResource.build(context)
|
181
|
+
when :untag_resource
|
182
|
+
Aws::ForecastService::Endpoints::UntagResource.build(context)
|
183
|
+
when :update_dataset_group
|
184
|
+
Aws::ForecastService::Endpoints::UpdateDatasetGroup.build(context)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
def add_handlers(handlers, _config)
|
190
|
+
handlers.add(Handler, step: :build, priority: 75)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-forecastservice/types'
|
15
15
|
require_relative 'aws-sdk-forecastservice/client_api'
|
16
|
+
require_relative 'aws-sdk-forecastservice/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-forecastservice/client'
|
17
18
|
require_relative 'aws-sdk-forecastservice/errors'
|
18
19
|
require_relative 'aws-sdk-forecastservice/resource'
|
20
|
+
require_relative 'aws-sdk-forecastservice/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-forecastservice/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-forecastservice/endpoints'
|
19
23
|
require_relative 'aws-sdk-forecastservice/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Forecast Service. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-forecastservice/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::ForecastService
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.38.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-forecastservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.38.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-forecastservice/client.rb
|
60
60
|
- lib/aws-sdk-forecastservice/client_api.rb
|
61
61
|
- lib/aws-sdk-forecastservice/customizations.rb
|
62
|
+
- lib/aws-sdk-forecastservice/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-forecastservice/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-forecastservice/endpoints.rb
|
62
65
|
- lib/aws-sdk-forecastservice/errors.rb
|
66
|
+
- lib/aws-sdk-forecastservice/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-forecastservice/resource.rb
|
64
68
|
- lib/aws-sdk-forecastservice/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|