Skip to content

Commit 36a0726

Browse files
feat: Automated regeneration of places v1 client (googleapis#24457)
Auto-created at 2025-09-28 11:00:47 +0000 using the toys pull request generator.
1 parent 81462d2 commit 36a0726

File tree

5 files changed

+177
-2
lines changed

5 files changed

+177
-2
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314213,6 +314213,7 @@
314213314213
"/places:v1/GoogleMapsPlacesV1Place/attributions": attributions
314214314214
"/places:v1/GoogleMapsPlacesV1Place/attributions/attribution": attribution
314215314215
"/places:v1/GoogleMapsPlacesV1Place/businessStatus": business_status
314216+
"/places:v1/GoogleMapsPlacesV1Place/consumerAlert": consumer_alert
314216314217
"/places:v1/GoogleMapsPlacesV1Place/containingPlaces": containing_places
314217314218
"/places:v1/GoogleMapsPlacesV1Place/containingPlaces/containing_place": containing_place
314218314219
"/places:v1/GoogleMapsPlacesV1Place/curbsidePickup": curbside_pickup
@@ -314307,6 +314308,17 @@
314307314308
"/places:v1/GoogleMapsPlacesV1PlaceAttribution": google_maps_places_v1_place_attribution
314308314309
"/places:v1/GoogleMapsPlacesV1PlaceAttribution/provider": provider
314309314310
"/places:v1/GoogleMapsPlacesV1PlaceAttribution/providerUri": provider_uri
314311+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlert": google_maps_places_v1_place_consumer_alert
314312+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlert/details": details
314313+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlert/languageCode": language_code
314314+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlert/overview": overview
314315+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetails": google_maps_places_v1_place_consumer_alert_details
314316+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetails/aboutLink": about_link
314317+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetails/description": description
314318+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetails/title": title
314319+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink": google_maps_places_v1_place_consumer_alert_details_link
314320+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink/title": title
314321+
"/places:v1/GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink/uri": uri
314310314322
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace": google_maps_places_v1_place_containing_place
314311314323
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace/id": id
314312314324
"/places:v1/GoogleMapsPlacesV1PlaceContainingPlace/name": name

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.38.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250921
6+
37
### v0.37.0 (2025-07-06)
48

59
* Regenerated from discovery document revision 20250629

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

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,12 @@ class GoogleMapsPlacesV1Place
11721172
# @return [String]
11731173
attr_accessor :business_status
11741174

1175+
# The consumer alert message for the place when we detect suspicious review
1176+
# activity on a business or a business violates our policies.
1177+
# Corresponds to the JSON property `consumerAlert`
1178+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlert]
1179+
attr_accessor :consumer_alert
1180+
11751181
# List of places in which the current place is located.
11761182
# Corresponds to the JSON property `containingPlaces`
11771183
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace>]
@@ -1604,6 +1610,7 @@ def update!(**args)
16041610
@allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
16051611
@attributions = args[:attributions] if args.key?(:attributions)
16061612
@business_status = args[:business_status] if args.key?(:business_status)
1613+
@consumer_alert = args[:consumer_alert] if args.key?(:consumer_alert)
16071614
@containing_places = args[:containing_places] if args.key?(:containing_places)
16081615
@curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
16091616
@current_opening_hours = args[:current_opening_hours] if args.key?(:current_opening_hours)
@@ -1780,6 +1787,95 @@ def update!(**args)
17801787
end
17811788
end
17821789

1790+
# The consumer alert message for the place when we detect suspicious review
1791+
# activity on a business or a business violates our policies.
1792+
class GoogleMapsPlacesV1PlaceConsumerAlert
1793+
include Google::Apis::Core::Hashable
1794+
1795+
# The details of the consumer alert message.
1796+
# Corresponds to the JSON property `details`
1797+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetails]
1798+
attr_accessor :details
1799+
1800+
# The language code of the consumer alert message. This is a BCP 47 language
1801+
# code.
1802+
# Corresponds to the JSON property `languageCode`
1803+
# @return [String]
1804+
attr_accessor :language_code
1805+
1806+
# The overview of the consumer alert message.
1807+
# Corresponds to the JSON property `overview`
1808+
# @return [String]
1809+
attr_accessor :overview
1810+
1811+
def initialize(**args)
1812+
update!(**args)
1813+
end
1814+
1815+
# Update properties of this object
1816+
def update!(**args)
1817+
@details = args[:details] if args.key?(:details)
1818+
@language_code = args[:language_code] if args.key?(:language_code)
1819+
@overview = args[:overview] if args.key?(:overview)
1820+
end
1821+
end
1822+
1823+
# The details of the consumer alert message.
1824+
class GoogleMapsPlacesV1PlaceConsumerAlertDetails
1825+
include Google::Apis::Core::Hashable
1826+
1827+
# The link to show together with the description to provide more information.
1828+
# Corresponds to the JSON property `aboutLink`
1829+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink]
1830+
attr_accessor :about_link
1831+
1832+
# The description of the consumer alert message.
1833+
# Corresponds to the JSON property `description`
1834+
# @return [String]
1835+
attr_accessor :description
1836+
1837+
# The title to show together with the description.
1838+
# Corresponds to the JSON property `title`
1839+
# @return [String]
1840+
attr_accessor :title
1841+
1842+
def initialize(**args)
1843+
update!(**args)
1844+
end
1845+
1846+
# Update properties of this object
1847+
def update!(**args)
1848+
@about_link = args[:about_link] if args.key?(:about_link)
1849+
@description = args[:description] if args.key?(:description)
1850+
@title = args[:title] if args.key?(:title)
1851+
end
1852+
end
1853+
1854+
# The link to show together with the description to provide more information.
1855+
class GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink
1856+
include Google::Apis::Core::Hashable
1857+
1858+
# The title to show for the link.
1859+
# Corresponds to the JSON property `title`
1860+
# @return [String]
1861+
attr_accessor :title
1862+
1863+
# The uri of the link.
1864+
# Corresponds to the JSON property `uri`
1865+
# @return [String]
1866+
attr_accessor :uri
1867+
1868+
def initialize(**args)
1869+
update!(**args)
1870+
end
1871+
1872+
# Update properties of this object
1873+
def update!(**args)
1874+
@title = args[:title] if args.key?(:title)
1875+
@uri = args[:uri] if args.key?(:uri)
1876+
end
1877+
end
1878+
17831879
# Info about the place in which this place is located.
17841880
class GoogleMapsPlacesV1PlaceContainingPlace
17851881
include Google::Apis::Core::Hashable
@@ -2465,6 +2561,18 @@ class GoogleMapsPlacesV1Review
24652561
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
24662562
attr_accessor :text
24672563

2564+
# Represents a whole or partial calendar date, such as a birthday. The time of
2565+
# day and time zone are either specified elsewhere or are insignificant. The
2566+
# date is relative to the Gregorian Calendar. This can represent one of the
2567+
# following: * A full date, with non-zero year, month, and day values. * A month
2568+
# and day, with a zero year (for example, an anniversary). * A year on its own,
2569+
# with a zero month and a zero day. * A year and month, with a zero day (for
2570+
# example, a credit card expiration date). Related types: * google.type.
2571+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2572+
# Corresponds to the JSON property `visitDate`
2573+
# @return [Google::Apis::PlacesV1::GoogleTypeDate]
2574+
attr_accessor :visit_date
2575+
24682576
def initialize(**args)
24692577
update!(**args)
24702578
end
@@ -2480,6 +2588,7 @@ def update!(**args)
24802588
@rating = args[:rating] if args.key?(:rating)
24812589
@relative_publish_time_description = args[:relative_publish_time_description] if args.key?(:relative_publish_time_description)
24822590
@text = args[:text] if args.key?(:text)
2591+
@visit_date = args[:visit_date] if args.key?(:visit_date)
24832592
end
24842593
end
24852594

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.37.0"
19+
GEM_VERSION = "0.38.0"
2020

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

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

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
220220
include Google::Apis::Core::JsonObjectSupport
221221
end
222222

223+
class GoogleMapsPlacesV1PlaceConsumerAlert
224+
class Representation < Google::Apis::Core::JsonRepresentation; end
225+
226+
include Google::Apis::Core::JsonObjectSupport
227+
end
228+
229+
class GoogleMapsPlacesV1PlaceConsumerAlertDetails
230+
class Representation < Google::Apis::Core::JsonRepresentation; end
231+
232+
include Google::Apis::Core::JsonObjectSupport
233+
end
234+
235+
class GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink
236+
class Representation < Google::Apis::Core::JsonRepresentation; end
237+
238+
include Google::Apis::Core::JsonObjectSupport
239+
end
240+
223241
class GoogleMapsPlacesV1PlaceContainingPlace
224242
class Representation < Google::Apis::Core::JsonRepresentation; end
225243

@@ -750,6 +768,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
750768
collection :attributions, as: 'attributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution::Representation
751769

752770
property :business_status, as: 'businessStatus'
771+
property :consumer_alert, as: 'consumerAlert', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlert, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlert::Representation
772+
753773
collection :containing_places, as: 'containingPlaces', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace::Representation
754774

755775
property :curbside_pickup, as: 'curbsidePickup'
@@ -872,6 +892,34 @@ class Representation < Google::Apis::Core::JsonRepresentation
872892
end
873893
end
874894

895+
class GoogleMapsPlacesV1PlaceConsumerAlert
896+
# @private
897+
class Representation < Google::Apis::Core::JsonRepresentation
898+
property :details, as: 'details', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetails, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetails::Representation
899+
900+
property :language_code, as: 'languageCode'
901+
property :overview, as: 'overview'
902+
end
903+
end
904+
905+
class GoogleMapsPlacesV1PlaceConsumerAlertDetails
906+
# @private
907+
class Representation < Google::Apis::Core::JsonRepresentation
908+
property :about_link, as: 'aboutLink', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink::Representation
909+
910+
property :description, as: 'description'
911+
property :title, as: 'title'
912+
end
913+
end
914+
915+
class GoogleMapsPlacesV1PlaceConsumerAlertDetailsLink
916+
# @private
917+
class Representation < Google::Apis::Core::JsonRepresentation
918+
property :title, as: 'title'
919+
property :uri, as: 'uri'
920+
end
921+
end
922+
875923
class GoogleMapsPlacesV1PlaceContainingPlace
876924
# @private
877925
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1060,6 +1108,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10601108
property :relative_publish_time_description, as: 'relativePublishTimeDescription'
10611109
property :text, as: 'text', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
10621110

1111+
property :visit_date, as: 'visitDate', class: Google::Apis::PlacesV1::GoogleTypeDate, decorator: Google::Apis::PlacesV1::GoogleTypeDate::Representation
1112+
10631113
end
10641114
end
10651115

0 commit comments

Comments
 (0)