Skip to content

Commit 4d130c5

Browse files
feat: Automated regeneration of places v1 client (googleapis#20433)
Auto-created at 2024-10-20 09:52:17 +0000 using the toys pull request generator.
1 parent bd7b39b commit 4d130c5

File tree

5 files changed

+218
-2
lines changed

5 files changed

+218
-2
lines changed

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272579,6 +272579,25 @@
272579272579
"/places:v1/GoogleGeoTypeViewport": google_geo_type_viewport
272580272580
"/places:v1/GoogleGeoTypeViewport/high": high
272581272581
"/places:v1/GoogleGeoTypeViewport/low": low
272582+
"/places:v1/GoogleMapsPlacesV1AddressDescriptor": google_maps_places_v1_address_descriptor
272583+
"/places:v1/GoogleMapsPlacesV1AddressDescriptor/areas": areas
272584+
"/places:v1/GoogleMapsPlacesV1AddressDescriptor/areas/area": area
272585+
"/places:v1/GoogleMapsPlacesV1AddressDescriptor/landmarks": landmarks
272586+
"/places:v1/GoogleMapsPlacesV1AddressDescriptor/landmarks/landmark": landmark
272587+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorArea": google_maps_places_v1_address_descriptor_area
272588+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorArea/containment": containment
272589+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorArea/displayName": display_name
272590+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorArea/name": name
272591+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorArea/placeId": place_id
272592+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark": google_maps_places_v1_address_descriptor_landmark
272593+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/displayName": display_name
272594+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/name": name
272595+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/placeId": place_id
272596+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/spatialRelationship": spatial_relationship
272597+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/straightLineDistanceMeters": straight_line_distance_meters
272598+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/travelDistanceMeters": travel_distance_meters
272599+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/types": types
272600+
"/places:v1/GoogleMapsPlacesV1AddressDescriptorLandmark/types/type": type
272582272601
"/places:v1/GoogleMapsPlacesV1AuthorAttribution": google_maps_places_v1_author_attribution
272583272602
"/places:v1/GoogleMapsPlacesV1AuthorAttribution/displayName": display_name
272584272603
"/places:v1/GoogleMapsPlacesV1AuthorAttribution/photoUri": photo_uri
@@ -272696,6 +272715,7 @@
272696272715
"/places:v1/GoogleMapsPlacesV1Place/accessibilityOptions": accessibility_options
272697272716
"/places:v1/GoogleMapsPlacesV1Place/addressComponents": address_components
272698272717
"/places:v1/GoogleMapsPlacesV1Place/addressComponents/address_component": address_component
272718+
"/places:v1/GoogleMapsPlacesV1Place/addressDescriptor": address_descriptor
272699272719
"/places:v1/GoogleMapsPlacesV1Place/adrFormatAddress": adr_format_address
272700272720
"/places:v1/GoogleMapsPlacesV1Place/allowsDogs": allows_dogs
272701272721
"/places:v1/GoogleMapsPlacesV1Place/areaSummary": area_summary

generated/google-apis-places_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-places_v1
22

3+
### v0.27.0 (2024-10-20)
4+
5+
* Regenerated from discovery document revision 20241015
6+
37
### v0.26.0 (2024-09-29)
48

59
* Regenerated from discovery document revision 20240920

generated/google-apis-places_v1/lib/google/apis/places_v1/classes.rb

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,135 @@ def update!(**args)
6868
end
6969
end
7070

71+
# A relational description of a location. Includes a ranked set of nearby
72+
# landmarks and precise containing areas and their relationship to the target
73+
# location.
74+
class GoogleMapsPlacesV1AddressDescriptor
75+
include Google::Apis::Core::Hashable
76+
77+
# A ranked list of containing or adjacent areas. The most recognizable and
78+
# precise areas are ranked first.
79+
# Corresponds to the JSON property `areas`
80+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea>]
81+
attr_accessor :areas
82+
83+
# A ranked list of nearby landmarks. The most recognizable and nearby landmarks
84+
# are ranked first.
85+
# Corresponds to the JSON property `landmarks`
86+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark>]
87+
attr_accessor :landmarks
88+
89+
def initialize(**args)
90+
update!(**args)
91+
end
92+
93+
# Update properties of this object
94+
def update!(**args)
95+
@areas = args[:areas] if args.key?(:areas)
96+
@landmarks = args[:landmarks] if args.key?(:landmarks)
97+
end
98+
end
99+
100+
# Area information and the area's relationship with the target location. Areas
101+
# includes precise sublocality, neighborhoods, and large compounds that are
102+
# useful for describing a location.
103+
class GoogleMapsPlacesV1AddressDescriptorArea
104+
include Google::Apis::Core::Hashable
105+
106+
# Defines the spatial relationship between the target location and the area.
107+
# Corresponds to the JSON property `containment`
108+
# @return [String]
109+
attr_accessor :containment
110+
111+
# Localized variant of a text in a particular language.
112+
# Corresponds to the JSON property `displayName`
113+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
114+
attr_accessor :display_name
115+
116+
# The area's resource name.
117+
# Corresponds to the JSON property `name`
118+
# @return [String]
119+
attr_accessor :name
120+
121+
# The area's place id.
122+
# Corresponds to the JSON property `placeId`
123+
# @return [String]
124+
attr_accessor :place_id
125+
126+
def initialize(**args)
127+
update!(**args)
128+
end
129+
130+
# Update properties of this object
131+
def update!(**args)
132+
@containment = args[:containment] if args.key?(:containment)
133+
@display_name = args[:display_name] if args.key?(:display_name)
134+
@name = args[:name] if args.key?(:name)
135+
@place_id = args[:place_id] if args.key?(:place_id)
136+
end
137+
end
138+
139+
# Basic landmark information and the landmark's relationship with the target
140+
# location. Landmarks are prominent places that can be used to describe a
141+
# location.
142+
class GoogleMapsPlacesV1AddressDescriptorLandmark
143+
include Google::Apis::Core::Hashable
144+
145+
# Localized variant of a text in a particular language.
146+
# Corresponds to the JSON property `displayName`
147+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
148+
attr_accessor :display_name
149+
150+
# The landmark's resource name.
151+
# Corresponds to the JSON property `name`
152+
# @return [String]
153+
attr_accessor :name
154+
155+
# The landmark's place id.
156+
# Corresponds to the JSON property `placeId`
157+
# @return [String]
158+
attr_accessor :place_id
159+
160+
# Defines the spatial relationship between the target location and the landmark.
161+
# Corresponds to the JSON property `spatialRelationship`
162+
# @return [String]
163+
attr_accessor :spatial_relationship
164+
165+
# The straight line distance in meters between the target location and the
166+
# landmark.
167+
# Corresponds to the JSON property `straightLineDistanceMeters`
168+
# @return [Float]
169+
attr_accessor :straight_line_distance_meters
170+
171+
# The travel distance in meters along the road network if known. This does not
172+
# take into account the mode of transportation (walking/driving).
173+
# Corresponds to the JSON property `travelDistanceMeters`
174+
# @return [Float]
175+
attr_accessor :travel_distance_meters
176+
177+
# A set of type tags for this landmark. For a complete list of possible values,
178+
# see https://developers.google.com/maps/documentation/places/web-service/place-
179+
# types.
180+
# Corresponds to the JSON property `types`
181+
# @return [Array<String>]
182+
attr_accessor :types
183+
184+
def initialize(**args)
185+
update!(**args)
186+
end
187+
188+
# Update properties of this object
189+
def update!(**args)
190+
@display_name = args[:display_name] if args.key?(:display_name)
191+
@name = args[:name] if args.key?(:name)
192+
@place_id = args[:place_id] if args.key?(:place_id)
193+
@spatial_relationship = args[:spatial_relationship] if args.key?(:spatial_relationship)
194+
@straight_line_distance_meters = args[:straight_line_distance_meters] if args.key?(:straight_line_distance_meters)
195+
@travel_distance_meters = args[:travel_distance_meters] if args.key?(:travel_distance_meters)
196+
@types = args[:types] if args.key?(:types)
197+
end
198+
end
199+
71200
# Information about the author of the UGC data. Used in Photo, and Review.
72201
class GoogleMapsPlacesV1AuthorAttribution
73202
include Google::Apis::Core::Hashable
@@ -995,6 +1124,13 @@ class GoogleMapsPlacesV1Place
9951124
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent>]
9961125
attr_accessor :address_components
9971126

1127+
# A relational description of a location. Includes a ranked set of nearby
1128+
# landmarks and precise containing areas and their relationship to the target
1129+
# location.
1130+
# Corresponds to the JSON property `addressDescriptor`
1131+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor]
1132+
attr_accessor :address_descriptor
1133+
9981134
# The place's address in adr microformat: http://microformats.org/wiki/adr.
9991135
# Corresponds to the JSON property `adrFormatAddress`
10001136
# @return [String]
@@ -1386,6 +1522,7 @@ def initialize(**args)
13861522
def update!(**args)
13871523
@accessibility_options = args[:accessibility_options] if args.key?(:accessibility_options)
13881524
@address_components = args[:address_components] if args.key?(:address_components)
1525+
@address_descriptor = args[:address_descriptor] if args.key?(:address_descriptor)
13891526
@adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
13901527
@allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
13911528
@area_summary = args[:area_summary] if args.key?(:area_summary)

generated/google-apis-places_v1/lib/google/apis/places_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PlacesV1
1818
# Version of the google-apis-places_v1 gem
19-
GEM_VERSION = "0.26.0"
19+
GEM_VERSION = "0.27.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240920"
25+
REVISION = "20241015"
2626
end
2727
end
2828
end

generated/google-apis-places_v1/lib/google/apis/places_v1/representations.rb

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
2828
include Google::Apis::Core::JsonObjectSupport
2929
end
3030

31+
class GoogleMapsPlacesV1AddressDescriptor
32+
class Representation < Google::Apis::Core::JsonRepresentation; end
33+
34+
include Google::Apis::Core::JsonObjectSupport
35+
end
36+
37+
class GoogleMapsPlacesV1AddressDescriptorArea
38+
class Representation < Google::Apis::Core::JsonRepresentation; end
39+
40+
include Google::Apis::Core::JsonObjectSupport
41+
end
42+
43+
class GoogleMapsPlacesV1AddressDescriptorLandmark
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
3149
class GoogleMapsPlacesV1AuthorAttribution
3250
class Representation < Google::Apis::Core::JsonRepresentation; end
3351

@@ -392,6 +410,41 @@ class Representation < Google::Apis::Core::JsonRepresentation
392410
end
393411
end
394412

413+
class GoogleMapsPlacesV1AddressDescriptor
414+
# @private
415+
class Representation < Google::Apis::Core::JsonRepresentation
416+
collection :areas, as: 'areas', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea::Representation
417+
418+
collection :landmarks, as: 'landmarks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark::Representation
419+
420+
end
421+
end
422+
423+
class GoogleMapsPlacesV1AddressDescriptorArea
424+
# @private
425+
class Representation < Google::Apis::Core::JsonRepresentation
426+
property :containment, as: 'containment'
427+
property :display_name, as: 'displayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
428+
429+
property :name, as: 'name'
430+
property :place_id, as: 'placeId'
431+
end
432+
end
433+
434+
class GoogleMapsPlacesV1AddressDescriptorLandmark
435+
# @private
436+
class Representation < Google::Apis::Core::JsonRepresentation
437+
property :display_name, as: 'displayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
438+
439+
property :name, as: 'name'
440+
property :place_id, as: 'placeId'
441+
property :spatial_relationship, as: 'spatialRelationship'
442+
property :straight_line_distance_meters, as: 'straightLineDistanceMeters'
443+
property :travel_distance_meters, as: 'travelDistanceMeters'
444+
collection :types, as: 'types'
445+
end
446+
end
447+
395448
class GoogleMapsPlacesV1AuthorAttribution
396449
# @private
397450
class Representation < Google::Apis::Core::JsonRepresentation
@@ -653,6 +706,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
653706

654707
collection :address_components, as: 'addressComponents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent::Representation
655708

709+
property :address_descriptor, as: 'addressDescriptor', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor::Representation
710+
656711
property :adr_format_address, as: 'adrFormatAddress'
657712
property :allows_dogs, as: 'allowsDogs'
658713
property :area_summary, as: 'areaSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary::Representation

0 commit comments

Comments
 (0)