Skip to content

Commit c2af730

Browse files
feat: Automated regeneration of places v1 client (#20542)
Auto-created at 2024-11-10 09:47:40 +0000 using the toys pull request generator.
1 parent d27786a commit c2af730

File tree

5 files changed

+177
-3
lines changed

5 files changed

+177
-3
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274143,6 +274143,7 @@
274143274143
"/places:v1/GoogleMapsPlacesV1AuthorAttribution/photoUri": photo_uri
274144274144
"/places:v1/GoogleMapsPlacesV1AuthorAttribution/uri": uri
274145274145
"/places:v1/GoogleMapsPlacesV1AutocompletePlacesRequest": google_maps_places_v1_autocomplete_places_request
274146+
"/places:v1/GoogleMapsPlacesV1AutocompletePlacesRequest/includePureServiceAreaBusinesses": include_pure_service_area_businesses
274146274147
"/places:v1/GoogleMapsPlacesV1AutocompletePlacesRequest/includeQueryPredictions": include_query_predictions
274147274148
"/places:v1/GoogleMapsPlacesV1AutocompletePlacesRequest/includedPrimaryTypes": included_primary_types
274148274149
"/places:v1/GoogleMapsPlacesV1AutocompletePlacesRequest/includedPrimaryTypes/included_primary_type": included_primary_type
@@ -274264,6 +274265,8 @@
274264274265
"/places:v1/GoogleMapsPlacesV1Place/attributions": attributions
274265274266
"/places:v1/GoogleMapsPlacesV1Place/attributions/attribution": attribution
274266274267
"/places:v1/GoogleMapsPlacesV1Place/businessStatus": business_status
274268+
"/places:v1/GoogleMapsPlacesV1Place/containingPlaces": containing_places
274269+
"/places:v1/GoogleMapsPlacesV1Place/containingPlaces/containing_place": containing_place
274267274270
"/places:v1/GoogleMapsPlacesV1Place/curbsidePickup": curbside_pickup
274268274271
"/places:v1/GoogleMapsPlacesV1Place/currentOpeningHours": current_opening_hours
274269274272
"/places:v1/GoogleMapsPlacesV1Place/currentSecondaryOpeningHours": current_secondary_opening_hours
@@ -274298,8 +274301,10 @@
274298274301
"/places:v1/GoogleMapsPlacesV1Place/photos/photo": photo
274299274302
"/places:v1/GoogleMapsPlacesV1Place/plusCode": plus_code
274300274303
"/places:v1/GoogleMapsPlacesV1Place/priceLevel": price_level
274304+
"/places:v1/GoogleMapsPlacesV1Place/priceRange": price_range
274301274305
"/places:v1/GoogleMapsPlacesV1Place/primaryType": primary_type
274302274306
"/places:v1/GoogleMapsPlacesV1Place/primaryTypeDisplayName": primary_type_display_name
274307+
"/places:v1/GoogleMapsPlacesV1Place/pureServiceAreaBusiness": pure_service_area_business
274303274308
"/places:v1/GoogleMapsPlacesV1Place/rating": rating
274304274309
"/places:v1/GoogleMapsPlacesV1Place/regularOpeningHours": regular_opening_hours
274305274310
"/places:v1/GoogleMapsPlacesV1Place/regularSecondaryOpeningHours": regular_secondary_opening_hours
@@ -274349,6 +274354,9 @@
274349274354
"/places:v1/GoogleMapsPlacesV1PlaceAttribution": google_maps_places_v1_place_attribution
274350274355
"/places:v1/GoogleMapsPlacesV1PlaceAttribution/provider": provider
274351274356
"/places:v1/GoogleMapsPlacesV1PlaceAttribution/providerUri": provider_uri
274357+
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace": google_maps_places_v1_place_containing_place
274358+
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace/id": id
274359+
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace/name": name
274352274360
"/places:v1/GoogleMapsPlacesV1PlaceGenerativeSummary": google_maps_places_v1_place_generative_summary
274353274361
"/places:v1/GoogleMapsPlacesV1PlaceGenerativeSummary/description": description
274354274362
"/places:v1/GoogleMapsPlacesV1PlaceGenerativeSummary/descriptionFlagContentUri": description_flag_content_uri
@@ -274362,6 +274370,8 @@
274362274370
"/places:v1/GoogleMapsPlacesV1PlaceGoogleMapsLinks/reviewsUri": reviews_uri
274363274371
"/places:v1/GoogleMapsPlacesV1PlaceGoogleMapsLinks/writeAReviewUri": write_a_review_uri
274364274372
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours": google_maps_places_v1_place_opening_hours
274373+
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours/nextCloseTime": next_close_time
274374+
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours/nextOpenTime": next_open_time
274365274375
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours/openNow": open_now
274366274376
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours/periods": periods
274367274377
"/places:v1/GoogleMapsPlacesV1PlaceOpeningHours/periods/period": period
@@ -274412,6 +274422,9 @@
274412274422
"/places:v1/GoogleMapsPlacesV1PlaceSubDestination/name": name
274413274423
"/places:v1/GoogleMapsPlacesV1Polyline": google_maps_places_v1_polyline
274414274424
"/places:v1/GoogleMapsPlacesV1Polyline/encodedPolyline": encoded_polyline
274425+
"/places:v1/GoogleMapsPlacesV1PriceRange": google_maps_places_v1_price_range
274426+
"/places:v1/GoogleMapsPlacesV1PriceRange/endPrice": end_price
274427+
"/places:v1/GoogleMapsPlacesV1PriceRange/startPrice": start_price
274415274428
"/places:v1/GoogleMapsPlacesV1References": google_maps_places_v1_references
274416274429
"/places:v1/GoogleMapsPlacesV1References/places": places
274417274430
"/places:v1/GoogleMapsPlacesV1References/places/place": place
@@ -274468,6 +274481,7 @@
274468274481
"/places:v1/GoogleMapsPlacesV1SearchNearbyResponse/routingSummaries/routing_summary": routing_summary
274469274482
"/places:v1/GoogleMapsPlacesV1SearchTextRequest": google_maps_places_v1_search_text_request
274470274483
"/places:v1/GoogleMapsPlacesV1SearchTextRequest/evOptions": ev_options
274484+
"/places:v1/GoogleMapsPlacesV1SearchTextRequest/includePureServiceAreaBusinesses": include_pure_service_area_businesses
274471274485
"/places:v1/GoogleMapsPlacesV1SearchTextRequest/includedType": included_type
274472274486
"/places:v1/GoogleMapsPlacesV1SearchTextRequest/languageCode": language_code
274473274487
"/places:v1/GoogleMapsPlacesV1SearchTextRequest/location": location

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.29.0 (2024-11-10)
4+
5+
* Regenerated from discovery document revision 20241106
6+
37
### v0.28.0 (2024-11-03)
48

59
* Regenerated from discovery document revision 20241029

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

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,18 @@ def update!(**args)
234234
class GoogleMapsPlacesV1AutocompletePlacesRequest
235235
include Google::Apis::Core::Hashable
236236

237+
# Optional. Include pure service area businesses if the field is set to true.
238+
# Pure service area business is a business that visits or delivers to customers
239+
# directly but does not serve customers at their business address. For example,
240+
# businesses like cleaning services or plumbers. Those businesses do not have a
241+
# physical address or location on Google Maps. Places will not return fields
242+
# including `location`, `plus_code`, and other location related fields for these
243+
# businesses.
244+
# Corresponds to the JSON property `includePureServiceAreaBusinesses`
245+
# @return [Boolean]
246+
attr_accessor :include_pure_service_area_businesses
247+
alias_method :include_pure_service_area_businesses?, :include_pure_service_area_businesses
248+
237249
# Optional. If true, the response will include both Place and query predictions.
238250
# Otherwise the response will only return Place predictions.
239251
# Corresponds to the JSON property `includeQueryPredictions`
@@ -334,6 +346,7 @@ def initialize(**args)
334346

335347
# Update properties of this object
336348
def update!(**args)
349+
@include_pure_service_area_businesses = args[:include_pure_service_area_businesses] if args.key?(:include_pure_service_area_businesses)
337350
@include_query_predictions = args[:include_query_predictions] if args.key?(:include_query_predictions)
338351
@included_primary_types = args[:included_primary_types] if args.key?(:included_primary_types)
339352
@included_region_codes = args[:included_region_codes] if args.key?(:included_region_codes)
@@ -1168,11 +1181,16 @@ class GoogleMapsPlacesV1Place
11681181
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
11691182
attr_accessor :attributions
11701183

1171-
#
1184+
# The business status for the place.
11721185
# Corresponds to the JSON property `businessStatus`
11731186
# @return [String]
11741187
attr_accessor :business_status
11751188

1189+
# List of places in which the current place is located.
1190+
# Corresponds to the JSON property `containingPlaces`
1191+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace>]
1192+
attr_accessor :containing_places
1193+
11761194
# Specifies if the business supports curbside pickup.
11771195
# Corresponds to the JSON property `curbsidePickup`
11781196
# @return [Boolean]
@@ -1359,6 +1377,12 @@ class GoogleMapsPlacesV1Place
13591377
# @return [String]
13601378
attr_accessor :price_level
13611379

1380+
# The price range associated with a Place. `end_price` could be unset, which
1381+
# indicates a range without upper bound (e.g. "More than $100").
1382+
# Corresponds to the JSON property `priceRange`
1383+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange]
1384+
attr_accessor :price_range
1385+
13621386
# The primary type of the given result. This type must one of the Places API
13631387
# supported types. For example, "restaurant", "cafe", "airport", etc. A place
13641388
# can only have a single primary type. For the complete list of possible values,
@@ -1373,6 +1397,16 @@ class GoogleMapsPlacesV1Place
13731397
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
13741398
attr_accessor :primary_type_display_name
13751399

1400+
# Indicates whether the place is a pure service area business. Pure service area
1401+
# business is a business that visits or delivers to customers directly but does
1402+
# not serve customers at their business address. For example, businesses like
1403+
# cleaning services or plumbers. Those businesses may not have a physical
1404+
# address or location on Google Maps.
1405+
# Corresponds to the JSON property `pureServiceAreaBusiness`
1406+
# @return [Boolean]
1407+
attr_accessor :pure_service_area_business
1408+
alias_method :pure_service_area_business?, :pure_service_area_business
1409+
13761410
# A rating between 1.0 and 5.0, based on user reviews of this place.
13771411
# Corresponds to the JSON property `rating`
13781412
# @return [Float]
@@ -1547,6 +1581,7 @@ def update!(**args)
15471581
@area_summary = args[:area_summary] if args.key?(:area_summary)
15481582
@attributions = args[:attributions] if args.key?(:attributions)
15491583
@business_status = args[:business_status] if args.key?(:business_status)
1584+
@containing_places = args[:containing_places] if args.key?(:containing_places)
15501585
@curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
15511586
@current_opening_hours = args[:current_opening_hours] if args.key?(:current_opening_hours)
15521587
@current_secondary_opening_hours = args[:current_secondary_opening_hours] if args.key?(:current_secondary_opening_hours)
@@ -1578,8 +1613,10 @@ def update!(**args)
15781613
@photos = args[:photos] if args.key?(:photos)
15791614
@plus_code = args[:plus_code] if args.key?(:plus_code)
15801615
@price_level = args[:price_level] if args.key?(:price_level)
1616+
@price_range = args[:price_range] if args.key?(:price_range)
15811617
@primary_type = args[:primary_type] if args.key?(:primary_type)
15821618
@primary_type_display_name = args[:primary_type_display_name] if args.key?(:primary_type_display_name)
1619+
@pure_service_area_business = args[:pure_service_area_business] if args.key?(:pure_service_area_business)
15831620
@rating = args[:rating] if args.key?(:rating)
15841621
@regular_opening_hours = args[:regular_opening_hours] if args.key?(:regular_opening_hours)
15851622
@regular_secondary_opening_hours = args[:regular_secondary_opening_hours] if args.key?(:regular_secondary_opening_hours)
@@ -1743,6 +1780,31 @@ def update!(**args)
17431780
end
17441781
end
17451782

1783+
# Info about the place in which this place is located.
1784+
class GoogleMapsPlacesV1PlaceContainingPlace
1785+
include Google::Apis::Core::Hashable
1786+
1787+
# The place id of the place in which this place is located.
1788+
# Corresponds to the JSON property `id`
1789+
# @return [String]
1790+
attr_accessor :id
1791+
1792+
# The resource name of the place in which this place is located.
1793+
# Corresponds to the JSON property `name`
1794+
# @return [String]
1795+
attr_accessor :name
1796+
1797+
def initialize(**args)
1798+
update!(**args)
1799+
end
1800+
1801+
# Update properties of this object
1802+
def update!(**args)
1803+
@id = args[:id] if args.key?(:id)
1804+
@name = args[:name] if args.key?(:name)
1805+
end
1806+
end
1807+
17461808
# Experimental: See https://developers.google.com/maps/documentation/places/web-
17471809
# service/experimental/places-generative for more details. AI-generated summary
17481810
# of the place.
@@ -1841,6 +1903,20 @@ def update!(**args)
18411903
class GoogleMapsPlacesV1PlaceOpeningHours
18421904
include Google::Apis::Core::Hashable
18431905

1906+
# The next time the current opening hours period ends up to 7 days in the future.
1907+
# This field is only populated if the opening hours period is active at the
1908+
# time of serving the request.
1909+
# Corresponds to the JSON property `nextCloseTime`
1910+
# @return [String]
1911+
attr_accessor :next_close_time
1912+
1913+
# The next time the current opening hours period starts up to 7 days in the
1914+
# future. This field is only populated if the opening hours period is not active
1915+
# at the time of serving the request.
1916+
# Corresponds to the JSON property `nextOpenTime`
1917+
# @return [String]
1918+
attr_accessor :next_open_time
1919+
18441920
# Whether the opening hours period is currently active. For regular opening
18451921
# hours and current opening hours, this field means whether the place is open.
18461922
# For secondary opening hours and current secondary opening hours, this field
@@ -1884,6 +1960,8 @@ def initialize(**args)
18841960

18851961
# Update properties of this object
18861962
def update!(**args)
1963+
@next_close_time = args[:next_close_time] if args.key?(:next_close_time)
1964+
@next_open_time = args[:next_open_time] if args.key?(:next_open_time)
18871965
@open_now = args[:open_now] if args.key?(:open_now)
18881966
@periods = args[:periods] if args.key?(:periods)
18891967
@secondary_hours_type = args[:secondary_hours_type] if args.key?(:secondary_hours_type)
@@ -2188,6 +2266,32 @@ def update!(**args)
21882266
end
21892267
end
21902268

2269+
# The price range associated with a Place. `end_price` could be unset, which
2270+
# indicates a range without upper bound (e.g. "More than $100").
2271+
class GoogleMapsPlacesV1PriceRange
2272+
include Google::Apis::Core::Hashable
2273+
2274+
# Represents an amount of money with its currency type.
2275+
# Corresponds to the JSON property `endPrice`
2276+
# @return [Google::Apis::PlacesV1::GoogleTypeMoney]
2277+
attr_accessor :end_price
2278+
2279+
# Represents an amount of money with its currency type.
2280+
# Corresponds to the JSON property `startPrice`
2281+
# @return [Google::Apis::PlacesV1::GoogleTypeMoney]
2282+
attr_accessor :start_price
2283+
2284+
def initialize(**args)
2285+
update!(**args)
2286+
end
2287+
2288+
# Update properties of this object
2289+
def update!(**args)
2290+
@end_price = args[:end_price] if args.key?(:end_price)
2291+
@start_price = args[:start_price] if args.key?(:start_price)
2292+
end
2293+
end
2294+
21912295
# Experimental: See https://developers.google.com/maps/documentation/places/web-
21922296
# service/experimental/places-generative for more details. Reference that the
21932297
# generative content is related to.
@@ -2633,6 +2737,18 @@ class GoogleMapsPlacesV1SearchTextRequest
26332737
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestEvOptions]
26342738
attr_accessor :ev_options
26352739

2740+
# Optional. Include pure service area businesses if the field is set to true.
2741+
# Pure service area business is a business that visits or delivers to customers
2742+
# directly but does not serve customers at their business address. For example,
2743+
# businesses like cleaning services or plumbers. Those businesses do not have a
2744+
# physical address or location on Google Maps. Places will not return fields
2745+
# including `location`, `plus_code`, and other location related fields for these
2746+
# businesses.
2747+
# Corresponds to the JSON property `includePureServiceAreaBusinesses`
2748+
# @return [Boolean]
2749+
attr_accessor :include_pure_service_area_businesses
2750+
alias_method :include_pure_service_area_businesses?, :include_pure_service_area_businesses
2751+
26362752
# The requested place type. Full list of types supported: https://developers.
26372753
# google.com/maps/documentation/places/web-service/place-types. Only support one
26382754
# included type.
@@ -2772,6 +2888,7 @@ def initialize(**args)
27722888
# Update properties of this object
27732889
def update!(**args)
27742890
@ev_options = args[:ev_options] if args.key?(:ev_options)
2891+
@include_pure_service_area_businesses = args[:include_pure_service_area_businesses] if args.key?(:include_pure_service_area_businesses)
27752892
@included_type = args[:included_type] if args.key?(:included_type)
27762893
@language_code = args[:language_code] if args.key?(:language_code)
27772894
@location_bias = args[:location_bias] if args.key?(:location_bias)

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.28.0"
19+
GEM_VERSION = "0.29.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 = "20241029"
25+
REVISION = "20241106"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)