aws-sdk-geoplaces 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.
@@ -0,0 +1,61 @@
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
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:geoplaces)
15
+
16
+ # This module provides support for Amazon Location Service Places V2. This module is available in the
17
+ # `aws-sdk-geoplaces` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # geo_places = Aws::GeoPlaces::Client.new
26
+ # resp = geo_places.autocomplete(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from Amazon Location Service Places V2 are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::GeoPlaces::Errors::ServiceError
38
+ # # rescues all Amazon Location Service Places V2 API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::GeoPlaces
45
+ autoload :Types, 'aws-sdk-geoplaces/types'
46
+ autoload :ClientApi, 'aws-sdk-geoplaces/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-geoplaces/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-geoplaces/client'
51
+ autoload :Errors, 'aws-sdk-geoplaces/errors'
52
+ autoload :Resource, 'aws-sdk-geoplaces/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-geoplaces/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-geoplaces/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-geoplaces/endpoints'
56
+
57
+ GEM_VERSION = '1.0.0'
58
+
59
+ end
60
+
61
+ require_relative 'aws-sdk-geoplaces/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,281 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module GeoPlaces
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ interface _AutocompleteResponseSuccess
79
+ include ::Seahorse::Client::_ResponseSuccess[Types::AutocompleteResponse]
80
+ def pricing_bucket: () -> ::String
81
+ def result_items: () -> ::Array[Types::AutocompleteResultItem]
82
+ end
83
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#autocomplete-instance_method
84
+ def autocomplete: (
85
+ query_text: ::String,
86
+ ?max_results: ::Integer,
87
+ ?bias_position: Array[::Float],
88
+ ?filter: {
89
+ bounding_box: Array[::Float]?,
90
+ circle: {
91
+ center: Array[::Float],
92
+ radius: ::Integer
93
+ }?,
94
+ include_countries: Array[::String]?,
95
+ include_place_types: Array[("Locality" | "PostalCode")]?
96
+ },
97
+ ?postal_code_mode: ("MergeAllSpannedLocalities" | "EnumerateSpannedLocalities"),
98
+ ?additional_features: Array[("Core")],
99
+ ?language: ::String,
100
+ ?political_view: ::String,
101
+ ?intended_use: ("SingleUse"),
102
+ ?key: ::String
103
+ ) -> _AutocompleteResponseSuccess
104
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AutocompleteResponseSuccess
105
+
106
+ interface _GeocodeResponseSuccess
107
+ include ::Seahorse::Client::_ResponseSuccess[Types::GeocodeResponse]
108
+ def pricing_bucket: () -> ::String
109
+ def result_items: () -> ::Array[Types::GeocodeResultItem]
110
+ end
111
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#geocode-instance_method
112
+ def geocode: (
113
+ ?query_text: ::String,
114
+ ?query_components: {
115
+ country: ::String?,
116
+ region: ::String?,
117
+ sub_region: ::String?,
118
+ locality: ::String?,
119
+ district: ::String?,
120
+ street: ::String?,
121
+ address_number: ::String?,
122
+ postal_code: ::String?
123
+ },
124
+ ?max_results: ::Integer,
125
+ ?bias_position: Array[::Float],
126
+ ?filter: {
127
+ include_countries: Array[::String]?,
128
+ include_place_types: Array[("Locality" | "PostalCode" | "Intersection" | "Street" | "PointAddress" | "InterpolatedAddress")]?
129
+ },
130
+ ?additional_features: Array[("TimeZone" | "Access")],
131
+ ?language: ::String,
132
+ ?political_view: ::String,
133
+ ?intended_use: ("SingleUse" | "Storage"),
134
+ ?key: ::String
135
+ ) -> _GeocodeResponseSuccess
136
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GeocodeResponseSuccess
137
+
138
+ interface _GetPlaceResponseSuccess
139
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlaceResponse]
140
+ def place_id: () -> ::String
141
+ def place_type: () -> ("Country" | "Region" | "SubRegion" | "Locality" | "District" | "SubDistrict" | "PostalCode" | "Block" | "SubBlock" | "Intersection" | "Street" | "PointOfInterest" | "PointAddress" | "InterpolatedAddress")
142
+ def title: () -> ::String
143
+ def pricing_bucket: () -> ::String
144
+ def address: () -> Types::Address
145
+ def address_number_corrected: () -> bool
146
+ def postal_code_details: () -> ::Array[Types::PostalCodeDetails]
147
+ def position: () -> ::Array[::Float]
148
+ def map_view: () -> ::Array[::Float]
149
+ def categories: () -> ::Array[Types::Category]
150
+ def food_types: () -> ::Array[Types::FoodType]
151
+ def business_chains: () -> ::Array[Types::BusinessChain]
152
+ def contacts: () -> Types::Contacts
153
+ def opening_hours: () -> ::Array[Types::OpeningHours]
154
+ def access_points: () -> ::Array[Types::AccessPoint]
155
+ def access_restrictions: () -> ::Array[Types::AccessRestriction]
156
+ def time_zone: () -> Types::TimeZone
157
+ def political_view: () -> ::String
158
+ def phonemes: () -> Types::PhonemeDetails
159
+ end
160
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#get_place-instance_method
161
+ def get_place: (
162
+ place_id: ::String,
163
+ ?additional_features: Array[("TimeZone" | "Phonemes" | "Access" | "Contact")],
164
+ ?language: ::String,
165
+ ?political_view: ::String,
166
+ ?intended_use: ("SingleUse" | "Storage"),
167
+ ?key: ::String
168
+ ) -> _GetPlaceResponseSuccess
169
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlaceResponseSuccess
170
+
171
+ interface _ReverseGeocodeResponseSuccess
172
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReverseGeocodeResponse]
173
+ def pricing_bucket: () -> ::String
174
+ def result_items: () -> ::Array[Types::ReverseGeocodeResultItem]
175
+ end
176
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#reverse_geocode-instance_method
177
+ def reverse_geocode: (
178
+ query_position: Array[::Float],
179
+ ?query_radius: ::Integer,
180
+ ?max_results: ::Integer,
181
+ ?filter: {
182
+ include_place_types: Array[("Locality" | "Intersection" | "Street" | "PointAddress" | "InterpolatedAddress")]?
183
+ },
184
+ ?additional_features: Array[("TimeZone" | "Access")],
185
+ ?language: ::String,
186
+ ?political_view: ::String,
187
+ ?intended_use: ("SingleUse" | "Storage"),
188
+ ?key: ::String
189
+ ) -> _ReverseGeocodeResponseSuccess
190
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReverseGeocodeResponseSuccess
191
+
192
+ interface _SearchNearbyResponseSuccess
193
+ include ::Seahorse::Client::_ResponseSuccess[Types::SearchNearbyResponse]
194
+ def pricing_bucket: () -> ::String
195
+ def result_items: () -> ::Array[Types::SearchNearbyResultItem]
196
+ def next_token: () -> ::String
197
+ end
198
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#search_nearby-instance_method
199
+ def search_nearby: (
200
+ query_position: Array[::Float],
201
+ ?query_radius: ::Integer,
202
+ ?max_results: ::Integer,
203
+ ?filter: {
204
+ bounding_box: Array[::Float]?,
205
+ include_countries: Array[::String]?,
206
+ include_categories: Array[::String]?,
207
+ exclude_categories: Array[::String]?,
208
+ include_business_chains: Array[::String]?,
209
+ exclude_business_chains: Array[::String]?,
210
+ include_food_types: Array[::String]?,
211
+ exclude_food_types: Array[::String]?
212
+ },
213
+ ?additional_features: Array[("TimeZone" | "Phonemes" | "Access" | "Contact")],
214
+ ?language: ::String,
215
+ ?political_view: ::String,
216
+ ?intended_use: ("SingleUse" | "Storage"),
217
+ ?next_token: ::String,
218
+ ?key: ::String
219
+ ) -> _SearchNearbyResponseSuccess
220
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchNearbyResponseSuccess
221
+
222
+ interface _SearchTextResponseSuccess
223
+ include ::Seahorse::Client::_ResponseSuccess[Types::SearchTextResponse]
224
+ def pricing_bucket: () -> ::String
225
+ def result_items: () -> ::Array[Types::SearchTextResultItem]
226
+ def next_token: () -> ::String
227
+ end
228
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#search_text-instance_method
229
+ def search_text: (
230
+ ?query_text: ::String,
231
+ ?query_id: ::String,
232
+ ?max_results: ::Integer,
233
+ ?bias_position: Array[::Float],
234
+ ?filter: {
235
+ bounding_box: Array[::Float]?,
236
+ circle: {
237
+ center: Array[::Float],
238
+ radius: ::Integer
239
+ }?,
240
+ include_countries: Array[::String]?
241
+ },
242
+ ?additional_features: Array[("TimeZone" | "Phonemes" | "Access" | "Contact")],
243
+ ?language: ::String,
244
+ ?political_view: ::String,
245
+ ?intended_use: ("SingleUse" | "Storage"),
246
+ ?next_token: ::String,
247
+ ?key: ::String
248
+ ) -> _SearchTextResponseSuccess
249
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchTextResponseSuccess
250
+
251
+ interface _SuggestResponseSuccess
252
+ include ::Seahorse::Client::_ResponseSuccess[Types::SuggestResponse]
253
+ def pricing_bucket: () -> ::String
254
+ def result_items: () -> ::Array[Types::SuggestResultItem]
255
+ def query_refinements: () -> ::Array[Types::QueryRefinement]
256
+ end
257
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Client.html#suggest-instance_method
258
+ def suggest: (
259
+ query_text: ::String,
260
+ ?max_results: ::Integer,
261
+ ?max_query_refinements: ::Integer,
262
+ ?bias_position: Array[::Float],
263
+ ?filter: {
264
+ bounding_box: Array[::Float]?,
265
+ circle: {
266
+ center: Array[::Float],
267
+ radius: ::Integer
268
+ }?,
269
+ include_countries: Array[::String]?
270
+ },
271
+ ?additional_features: Array[("Core" | "TimeZone" | "Phonemes" | "Access")],
272
+ ?language: ::String,
273
+ ?political_view: ::String,
274
+ ?intended_use: ("SingleUse"),
275
+ ?key: ::String
276
+ ) -> _SuggestResponseSuccess
277
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SuggestResponseSuccess
278
+ end
279
+ end
280
+ end
281
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,30 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module GeoPlaces
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ThrottlingException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ValidationException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ def reason: () -> ::String
26
+ def field_list: () -> ::String
27
+ end
28
+ end
29
+ end
30
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,82 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module GeoPlaces
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoPlaces/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> void
75
+ | (?Hash[Symbol, untyped]) -> void
76
+
77
+ def client: () -> Client
78
+
79
+
80
+ end
81
+ end
82
+ end