aws-sdk-sagemakergeospatial 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-sagemakergeospatial/client.rb +1657 -0
- data/lib/aws-sdk-sagemakergeospatial/client_api.rb +1074 -0
- data/lib/aws-sdk-sagemakergeospatial/customizations.rb +0 -0
- data/lib/aws-sdk-sagemakergeospatial/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-sagemakergeospatial/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-sagemakergeospatial/endpoints.rb +281 -0
- data/lib/aws-sdk-sagemakergeospatial/errors.rb +180 -0
- data/lib/aws-sdk-sagemakergeospatial/plugins/endpoints.rb +106 -0
- data/lib/aws-sdk-sagemakergeospatial/resource.rb +26 -0
- data/lib/aws-sdk-sagemakergeospatial/types.rb +2322 -0
- data/lib/aws-sdk-sagemakergeospatial.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,106 @@
|
|
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::SageMakerGeospatial
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SageMakerGeospatial::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::SageMakerGeospatial::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SageMakerGeospatial::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 :delete_earth_observation_job
|
60
|
+
Aws::SageMakerGeospatial::Endpoints::DeleteEarthObservationJob.build(context)
|
61
|
+
when :delete_vector_enrichment_job
|
62
|
+
Aws::SageMakerGeospatial::Endpoints::DeleteVectorEnrichmentJob.build(context)
|
63
|
+
when :export_earth_observation_job
|
64
|
+
Aws::SageMakerGeospatial::Endpoints::ExportEarthObservationJob.build(context)
|
65
|
+
when :export_vector_enrichment_job
|
66
|
+
Aws::SageMakerGeospatial::Endpoints::ExportVectorEnrichmentJob.build(context)
|
67
|
+
when :get_earth_observation_job
|
68
|
+
Aws::SageMakerGeospatial::Endpoints::GetEarthObservationJob.build(context)
|
69
|
+
when :get_raster_data_collection
|
70
|
+
Aws::SageMakerGeospatial::Endpoints::GetRasterDataCollection.build(context)
|
71
|
+
when :get_tile
|
72
|
+
Aws::SageMakerGeospatial::Endpoints::GetTile.build(context)
|
73
|
+
when :get_vector_enrichment_job
|
74
|
+
Aws::SageMakerGeospatial::Endpoints::GetVectorEnrichmentJob.build(context)
|
75
|
+
when :list_earth_observation_jobs
|
76
|
+
Aws::SageMakerGeospatial::Endpoints::ListEarthObservationJobs.build(context)
|
77
|
+
when :list_raster_data_collections
|
78
|
+
Aws::SageMakerGeospatial::Endpoints::ListRasterDataCollections.build(context)
|
79
|
+
when :list_tags_for_resource
|
80
|
+
Aws::SageMakerGeospatial::Endpoints::ListTagsForResource.build(context)
|
81
|
+
when :list_vector_enrichment_jobs
|
82
|
+
Aws::SageMakerGeospatial::Endpoints::ListVectorEnrichmentJobs.build(context)
|
83
|
+
when :search_raster_data_collection
|
84
|
+
Aws::SageMakerGeospatial::Endpoints::SearchRasterDataCollection.build(context)
|
85
|
+
when :start_earth_observation_job
|
86
|
+
Aws::SageMakerGeospatial::Endpoints::StartEarthObservationJob.build(context)
|
87
|
+
when :start_vector_enrichment_job
|
88
|
+
Aws::SageMakerGeospatial::Endpoints::StartVectorEnrichmentJob.build(context)
|
89
|
+
when :stop_earth_observation_job
|
90
|
+
Aws::SageMakerGeospatial::Endpoints::StopEarthObservationJob.build(context)
|
91
|
+
when :stop_vector_enrichment_job
|
92
|
+
Aws::SageMakerGeospatial::Endpoints::StopVectorEnrichmentJob.build(context)
|
93
|
+
when :tag_resource
|
94
|
+
Aws::SageMakerGeospatial::Endpoints::TagResource.build(context)
|
95
|
+
when :untag_resource
|
96
|
+
Aws::SageMakerGeospatial::Endpoints::UntagResource.build(context)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def add_handlers(handlers, _config)
|
102
|
+
handlers.add(Handler, step: :build, priority: 75)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
module Aws::SageMakerGeospatial
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|