google-apis-places_v1 0.15.0 → 0.17.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/places_v1/classes.rb +43 -35
- data/lib/google/apis/places_v1/gem_version.rb +3 -3
- data/lib/google/apis/places_v1/service.rb +11 -9
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e8d84f3621353fe02ef7f42eb4718feb46e9fa5622f2f8c1623d8b4a9fca5e
|
4
|
+
data.tar.gz: 98eb2aec7985e8e392ad1d9dacb19f6cbf1588e164ab5fbbe8e08ef2dd12937a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61ad3186f5409f7248b6e460830a65d3ecce21540d9542d3a8f5edad0634964c16de8690819e153eae3b0de471dd6b1ae43ff93fcf8405924b6eb80785a50f7f
|
7
|
+
data.tar.gz: 7271eca09dbf1b0c7048da08a43a9e7e5374669d580a82bdd849f3709b28ff8a9d07ba2ab0711cfc0410c5d485aee43588c0cce411da3940221c79677ae30571
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240114
|
6
|
+
* Regenerated using generator version 0.13.0
|
7
|
+
|
8
|
+
### v0.16.0 (2023-12-10)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20231205
|
11
|
+
|
3
12
|
### v0.15.0 (2023-11-26)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20231119
|
@@ -277,8 +277,8 @@ module Google
|
|
277
277
|
attr_accessor :height_px
|
278
278
|
|
279
279
|
# Identifier. A reference representing this place photo which may be used to
|
280
|
-
# look up this place photo again (
|
281
|
-
# place_id`/photos/`photo
|
280
|
+
# look up this place photo again (also called the API "resource" name: `places/`
|
281
|
+
# place_id`/photos/`photo``).
|
282
282
|
# Corresponds to the JSON property `name`
|
283
283
|
# @return [String]
|
284
284
|
attr_accessor :name
|
@@ -305,8 +305,8 @@ module Google
|
|
305
305
|
class GoogleMapsPlacesV1PhotoMedia
|
306
306
|
include Google::Apis::Core::Hashable
|
307
307
|
|
308
|
-
# The resource name of a photo media in the format: `places
|
309
|
-
# photo_reference
|
308
|
+
# The resource name of a photo media in the format: `places/`place_id`/photos/`
|
309
|
+
# photo_reference`/media`.
|
310
310
|
# Corresponds to the JSON property `name`
|
311
311
|
# @return [String]
|
312
312
|
attr_accessor :name
|
@@ -501,8 +501,8 @@ module Google
|
|
501
501
|
attr_accessor :menu_for_children
|
502
502
|
alias_method :menu_for_children?, :menu_for_children
|
503
503
|
|
504
|
-
#
|
505
|
-
#
|
504
|
+
# This Place's resource name, in `places/`place_id`` format. Can be used to look
|
505
|
+
# up the Place.
|
506
506
|
# Corresponds to the JSON property `name`
|
507
507
|
# @return [String]
|
508
508
|
attr_accessor :name
|
@@ -1229,8 +1229,8 @@ module Google
|
|
1229
1229
|
attr_accessor :author_attribution
|
1230
1230
|
|
1231
1231
|
# A reference representing this place review which may be used to look up this
|
1232
|
-
# place review again (also called the API "resource" name: places
|
1233
|
-
# reviews
|
1232
|
+
# place review again (also called the API "resource" name: `places/`place_id`/
|
1233
|
+
# reviews/`review``).
|
1234
1234
|
# Corresponds to the JSON property `name`
|
1235
1235
|
# @return [String]
|
1236
1236
|
attr_accessor :name
|
@@ -1282,30 +1282,34 @@ module Google
|
|
1282
1282
|
include Google::Apis::Core::Hashable
|
1283
1283
|
|
1284
1284
|
# Excluded primary Place type (e.g. "restaurant" or "gas_station") from https://
|
1285
|
-
# developers.google.com/maps/documentation/places/web-service/place-types.
|
1286
|
-
#
|
1287
|
-
#
|
1288
|
-
#
|
1289
|
-
#
|
1290
|
-
#
|
1291
|
-
#
|
1292
|
-
#
|
1285
|
+
# developers.google.com/maps/documentation/places/web-service/place-types. Up to
|
1286
|
+
# 50 types from [Table A](https://developers.google.com/maps/documentation/
|
1287
|
+
# places/web-service/place-types#table-a) may be specified. If there are any
|
1288
|
+
# conflicting primary types, i.e. a type appears in both included_primary_types
|
1289
|
+
# and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place
|
1290
|
+
# type is specified with multiple type restrictions, only places that satisfy
|
1291
|
+
# all of the restrictions are returned. For example, if we have `included_types =
|
1292
|
+
# ["restaurant"], excluded_primary_types = ["restaurant"]`, the returned places
|
1293
|
+
# provide "restaurant" related services but do not operate primarily as "
|
1294
|
+
# restaurants".
|
1293
1295
|
# Corresponds to the JSON property `excludedPrimaryTypes`
|
1294
1296
|
# @return [Array<String>]
|
1295
1297
|
attr_accessor :excluded_primary_types
|
1296
1298
|
|
1297
1299
|
# Excluded Place type (eg, "restaurant" or "gas_station") from https://
|
1298
|
-
# developers.google.com/maps/documentation/places/web-service/place-types.
|
1299
|
-
#
|
1300
|
-
#
|
1301
|
-
#
|
1302
|
-
#
|
1303
|
-
#
|
1304
|
-
#
|
1305
|
-
#
|
1306
|
-
# returned.
|
1307
|
-
#
|
1308
|
-
#
|
1300
|
+
# developers.google.com/maps/documentation/places/web-service/place-types. Up to
|
1301
|
+
# 50 types from [Table A](https://developers.google.com/maps/documentation/
|
1302
|
+
# places/web-service/place-types#table-a) may be specified. If the client
|
1303
|
+
# provides both included_types (e.g. restaurant) and excluded_types (e.g. cafe),
|
1304
|
+
# then the response should include places that are restaurant but not cafe. The
|
1305
|
+
# response includes places that match at least one of the included_types and
|
1306
|
+
# none of the excluded_types. If there are any conflicting types, i.e. a type
|
1307
|
+
# appears in both included_types and excluded_types, an INVALID_ARGUMENT error
|
1308
|
+
# is returned. If a Place type is specified with multiple type restrictions,
|
1309
|
+
# only places that satisfy all of the restrictions are returned. For example, if
|
1310
|
+
# we have `included_types = ["restaurant"], excluded_primary_types = ["
|
1311
|
+
# restaurant"]`, the returned places provide "restaurant" related services but
|
1312
|
+
# do not operate primarily as "restaurants".
|
1309
1313
|
# Corresponds to the JSON property `excludedTypes`
|
1310
1314
|
# @return [Array<String>]
|
1311
1315
|
attr_accessor :excluded_types
|
@@ -1313,11 +1317,13 @@ module Google
|
|
1313
1317
|
# Included primary Place type (e.g. "restaurant" or "gas_station") from https://
|
1314
1318
|
# developers.google.com/maps/documentation/places/web-service/place-types. A
|
1315
1319
|
# place can only have a single primary type from the supported types table
|
1316
|
-
# associated with it.
|
1317
|
-
#
|
1318
|
-
#
|
1319
|
-
#
|
1320
|
-
# returned.
|
1320
|
+
# associated with it. Up to 50 types from [Table A](https://developers.google.
|
1321
|
+
# com/maps/documentation/places/web-service/place-types#table-a) may be
|
1322
|
+
# specified. If there are any conflicting primary types, i.e. a type appears in
|
1323
|
+
# both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT
|
1324
|
+
# error is returned. If a Place type is specified with multiple type
|
1325
|
+
# restrictions, only places that satisfy all of the restrictions are returned.
|
1326
|
+
# For example, if we have `included_types = ["restaurant"],
|
1321
1327
|
# excluded_primary_types = ["restaurant"]`, the returned places provide "
|
1322
1328
|
# restaurant" related services but do not operate primarily as "restaurants".
|
1323
1329
|
# Corresponds to the JSON property `includedPrimaryTypes`
|
@@ -1325,9 +1331,11 @@ module Google
|
|
1325
1331
|
attr_accessor :included_primary_types
|
1326
1332
|
|
1327
1333
|
# Included Place type (eg, "restaurant" or "gas_station") from https://
|
1328
|
-
# developers.google.com/maps/documentation/places/web-service/place-types.
|
1329
|
-
#
|
1330
|
-
#
|
1334
|
+
# developers.google.com/maps/documentation/places/web-service/place-types. Up to
|
1335
|
+
# 50 types from [Table A](https://developers.google.com/maps/documentation/
|
1336
|
+
# places/web-service/place-types#table-a) may be specified. If there are any
|
1337
|
+
# conflicting types, i.e. a type appears in both included_types and
|
1338
|
+
# excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is
|
1331
1339
|
# specified with multiple type restrictions, only places that satisfy all of the
|
1332
1340
|
# restrictions are returned. For example, if we have `included_types = ["
|
1333
1341
|
# restaurant"], excluded_primary_types = ["restaurant"]`, the returned places
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PlacesV1
|
18
18
|
# Version of the google-apis-places_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240114"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://mapsplatform.google.com/maps-products/#places-section
|
34
34
|
class MapsPlacesService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://places.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,16 +45,16 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
47
49
|
client_name: 'google-apis-places_v1',
|
48
50
|
client_version: Google::Apis::PlacesV1::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
50
52
|
end
|
51
53
|
|
52
|
-
# Get
|
54
|
+
# Get the details of a place based on its resource name, which is a string in
|
55
|
+
# the `places/`place_id`` format.
|
53
56
|
# @param [String] name
|
54
|
-
# Required.
|
55
|
-
# equivalently the name in the same Place. Format: places/*place_id*.
|
57
|
+
# Required. The resource name of a place, in the `places/`place_id`` format.
|
56
58
|
# @param [String] language_code
|
57
59
|
# Optional. Place details will be displayed with the preferred language if
|
58
60
|
# available. Current list of supported languages: https://developers.google.com/
|
@@ -155,11 +157,11 @@ module Google
|
|
155
157
|
|
156
158
|
# Get a photo media with a photo reference string.
|
157
159
|
# @param [String] name
|
158
|
-
# Required. The resource name of a photo media in the format: `
|
159
|
-
# photos
|
160
|
-
# Place object's `photos.name` field comes with the format `
|
161
|
-
# photos
|
162
|
-
#
|
160
|
+
# Required. The resource name of a photo media in the format: `places/`place_id`/
|
161
|
+
# photos/`photo_reference`/media`. The resource name of a photo as returned in a
|
162
|
+
# Place object's `photos.name` field comes with the format `places/`place_id`/
|
163
|
+
# photos/`photo_reference``. You need to append `/media` at the end of the photo
|
164
|
+
# resource to get the photo media resource name.
|
163
165
|
# @param [Fixnum] max_height_px
|
164
166
|
# Optional. Specifies the maximum desired height, in pixels, of the image. If
|
165
167
|
# the image is smaller than the values specified, the original image will be
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-places_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Places API (New) V1
|