google-apis-places_v1 0.27.0 → 0.28.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 610c02a1be8a46bd4320a6508facfb5b6c40bb0e1e385a524dcf4da82d0d4e08
4
- data.tar.gz: 74fb35ecfa672272793291b24b1b24a4cac5bb9db6e78b1fe0626316f979ac0a
3
+ metadata.gz: 17902918e100820305f3557ef333c42bfddd001d3cafe039c5fb502db321ebe2
4
+ data.tar.gz: eac7bd5202bdcfb8bf36781b51811d576658e8901e4e74a37456e4a1615f08b2
5
5
  SHA512:
6
- metadata.gz: 17dc3e04b213e9bb12a89b4780b78a990878001cd8bd63a60bc7a43fef4c58c01aedee34e0953f5d247c7abacca8889a95b410b7064a65f231a4bd1e045d87d5
7
- data.tar.gz: 86d8f4d3f4dd4f7d7dd218dc0e4abaed0f51afbd832d701a9375f8a0413b43abfc8916a99bab1dba49d66f0c832d74485f60be24c82e4debbba74954a1077d3c
6
+ metadata.gz: 7e1f23f636b084ec80ce570b484af742354b1e973874540b30328d0af59057bb73de89b777d6e3953e7dffc51f0f0d711060c1ce604c6ee513609443d6f70fa0
7
+ data.tar.gz: 351e52fad6924842d4370fc98020c753eb0b13cb3bfc6f7fc8f6fa15272f2b778763dd159ea74641e545f92dc52190cac04e7b0c15f654aa3e0b4f09f1334d70
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.28.0 (2024-11-03)
4
+
5
+ * Regenerated from discovery document revision 20241029
6
+
3
7
  ### v0.27.0 (2024-10-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20241022
@@ -1045,6 +1045,16 @@ module Google
1045
1045
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution>]
1046
1046
  attr_accessor :author_attributions
1047
1047
 
1048
+ # A link where users can flag a problem with the photo.
1049
+ # Corresponds to the JSON property `flagContentUri`
1050
+ # @return [String]
1051
+ attr_accessor :flag_content_uri
1052
+
1053
+ # A link to show the photo on Google Maps.
1054
+ # Corresponds to the JSON property `googleMapsUri`
1055
+ # @return [String]
1056
+ attr_accessor :google_maps_uri
1057
+
1048
1058
  # The maximum available height, in pixels.
1049
1059
  # Corresponds to the JSON property `heightPx`
1050
1060
  # @return [Fixnum]
@@ -1069,6 +1079,8 @@ module Google
1069
1079
  # Update properties of this object
1070
1080
  def update!(**args)
1071
1081
  @author_attributions = args[:author_attributions] if args.key?(:author_attributions)
1082
+ @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
1083
+ @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
1072
1084
  @height_px = args[:height_px] if args.key?(:height_px)
1073
1085
  @name = args[:name] if args.key?(:name)
1074
1086
  @width_px = args[:width_px] if args.key?(:width_px)
@@ -1156,7 +1168,7 @@ module Google
1156
1168
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
1157
1169
  attr_accessor :attributions
1158
1170
 
1159
- # The business status for the place.
1171
+ #
1160
1172
  # Corresponds to the JSON property `businessStatus`
1161
1173
  # @return [String]
1162
1174
  attr_accessor :business_status
@@ -1250,6 +1262,11 @@ module Google
1250
1262
  attr_accessor :good_for_watching_sports
1251
1263
  alias_method :good_for_watching_sports?, :good_for_watching_sports
1252
1264
 
1265
+ # Links to trigger different Google Maps actions.
1266
+ # Corresponds to the JSON property `googleMapsLinks`
1267
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks]
1268
+ attr_accessor :google_maps_links
1269
+
1253
1270
  # A URL providing more information about this place.
1254
1271
  # Corresponds to the JSON property `googleMapsUri`
1255
1272
  # @return [String]
@@ -1544,6 +1561,7 @@ module Google
1544
1561
  @good_for_children = args[:good_for_children] if args.key?(:good_for_children)
1545
1562
  @good_for_groups = args[:good_for_groups] if args.key?(:good_for_groups)
1546
1563
  @good_for_watching_sports = args[:good_for_watching_sports] if args.key?(:good_for_watching_sports)
1564
+ @google_maps_links = args[:google_maps_links] if args.key?(:google_maps_links)
1547
1565
  @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
1548
1566
  @icon_background_color = args[:icon_background_color] if args.key?(:icon_background_color)
1549
1567
  @icon_mask_base_uri = args[:icon_mask_base_uri] if args.key?(:icon_mask_base_uri)
@@ -1684,6 +1702,11 @@ module Google
1684
1702
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock>]
1685
1703
  attr_accessor :content_blocks
1686
1704
 
1705
+ # A link where users can flag a problem with the summary.
1706
+ # Corresponds to the JSON property `flagContentUri`
1707
+ # @return [String]
1708
+ attr_accessor :flag_content_uri
1709
+
1687
1710
  def initialize(**args)
1688
1711
  update!(**args)
1689
1712
  end
@@ -1691,6 +1714,7 @@ module Google
1691
1714
  # Update properties of this object
1692
1715
  def update!(**args)
1693
1716
  @content_blocks = args[:content_blocks] if args.key?(:content_blocks)
1717
+ @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
1694
1718
  end
1695
1719
  end
1696
1720
 
@@ -1730,11 +1754,21 @@ module Google
1730
1754
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
1731
1755
  attr_accessor :description
1732
1756
 
1757
+ # A link where users can flag a problem with the description summary.
1758
+ # Corresponds to the JSON property `descriptionFlagContentUri`
1759
+ # @return [String]
1760
+ attr_accessor :description_flag_content_uri
1761
+
1733
1762
  # Localized variant of a text in a particular language.
1734
1763
  # Corresponds to the JSON property `overview`
1735
1764
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
1736
1765
  attr_accessor :overview
1737
1766
 
1767
+ # A link where users can flag a problem with the overview summary.
1768
+ # Corresponds to the JSON property `overviewFlagContentUri`
1769
+ # @return [String]
1770
+ attr_accessor :overview_flag_content_uri
1771
+
1738
1772
  # Experimental: See https://developers.google.com/maps/documentation/places/web-
1739
1773
  # service/experimental/places-generative for more details. Reference that the
1740
1774
  # generative content is related to.
@@ -1749,11 +1783,60 @@ module Google
1749
1783
  # Update properties of this object
1750
1784
  def update!(**args)
1751
1785
  @description = args[:description] if args.key?(:description)
1786
+ @description_flag_content_uri = args[:description_flag_content_uri] if args.key?(:description_flag_content_uri)
1752
1787
  @overview = args[:overview] if args.key?(:overview)
1788
+ @overview_flag_content_uri = args[:overview_flag_content_uri] if args.key?(:overview_flag_content_uri)
1753
1789
  @references = args[:references] if args.key?(:references)
1754
1790
  end
1755
1791
  end
1756
1792
 
1793
+ # Links to trigger different Google Maps actions.
1794
+ class GoogleMapsPlacesV1PlaceGoogleMapsLinks
1795
+ include Google::Apis::Core::Hashable
1796
+
1797
+ # A link to show the directions to the place. The link only populates the
1798
+ # destination location and uses the default travel mode `DRIVE`.
1799
+ # Corresponds to the JSON property `directionsUri`
1800
+ # @return [String]
1801
+ attr_accessor :directions_uri
1802
+
1803
+ # A link to show photos of this place. This link is currently not supported on
1804
+ # Google Maps Mobile and only works on the web version of Google Maps.
1805
+ # Corresponds to the JSON property `photosUri`
1806
+ # @return [String]
1807
+ attr_accessor :photos_uri
1808
+
1809
+ # A link to show this place.
1810
+ # Corresponds to the JSON property `placeUri`
1811
+ # @return [String]
1812
+ attr_accessor :place_uri
1813
+
1814
+ # A link to show reviews of this place. This link is currently not supported on
1815
+ # Google Maps Mobile and only works on the web version of Google Maps.
1816
+ # Corresponds to the JSON property `reviewsUri`
1817
+ # @return [String]
1818
+ attr_accessor :reviews_uri
1819
+
1820
+ # A link to write a review for this place. This link is currently not supported
1821
+ # on Google Maps Mobile and only works on the web version of Google Maps.
1822
+ # Corresponds to the JSON property `writeAReviewUri`
1823
+ # @return [String]
1824
+ attr_accessor :write_a_review_uri
1825
+
1826
+ def initialize(**args)
1827
+ update!(**args)
1828
+ end
1829
+
1830
+ # Update properties of this object
1831
+ def update!(**args)
1832
+ @directions_uri = args[:directions_uri] if args.key?(:directions_uri)
1833
+ @photos_uri = args[:photos_uri] if args.key?(:photos_uri)
1834
+ @place_uri = args[:place_uri] if args.key?(:place_uri)
1835
+ @reviews_uri = args[:reviews_uri] if args.key?(:reviews_uri)
1836
+ @write_a_review_uri = args[:write_a_review_uri] if args.key?(:write_a_review_uri)
1837
+ end
1838
+ end
1839
+
1757
1840
  # Information about business hour of the place.
1758
1841
  class GoogleMapsPlacesV1PlaceOpeningHours
1759
1842
  include Google::Apis::Core::Hashable
@@ -2142,6 +2225,16 @@ module Google
2142
2225
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution]
2143
2226
  attr_accessor :author_attribution
2144
2227
 
2228
+ # A link where users can flag a problem with the review.
2229
+ # Corresponds to the JSON property `flagContentUri`
2230
+ # @return [String]
2231
+ attr_accessor :flag_content_uri
2232
+
2233
+ # A link to show the review on Google Maps.
2234
+ # Corresponds to the JSON property `googleMapsUri`
2235
+ # @return [String]
2236
+ attr_accessor :google_maps_uri
2237
+
2145
2238
  # A reference representing this place review which may be used to look up this
2146
2239
  # place review again (also called the API "resource" name: `places/`place_id`/
2147
2240
  # reviews/`review``).
@@ -2182,6 +2275,8 @@ module Google
2182
2275
  # Update properties of this object
2183
2276
  def update!(**args)
2184
2277
  @author_attribution = args[:author_attribution] if args.key?(:author_attribution)
2278
+ @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
2279
+ @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
2185
2280
  @name = args[:name] if args.key?(:name)
2186
2281
  @original_text = args[:original_text] if args.key?(:original_text)
2187
2282
  @publish_time = args[:publish_time] if args.key?(:publish_time)
@@ -2295,6 +2390,16 @@ module Google
2295
2390
  class GoogleMapsPlacesV1RoutingSummary
2296
2391
  include Google::Apis::Core::Hashable
2297
2392
 
2393
+ # A link to show directions on Google Maps using the waypoints from the given
2394
+ # routing summary. The route generated by this link is not guaranteed to be the
2395
+ # same as the route used to generate the routing summary. The link uses
2396
+ # information provided in the request, from fields including `routingParameters`
2397
+ # and `searchAlongRouteParameters` when applicable, to generate the directions
2398
+ # link.
2399
+ # Corresponds to the JSON property `directionsUri`
2400
+ # @return [String]
2401
+ attr_accessor :directions_uri
2402
+
2298
2403
  # The legs of the trip. When you calculate travel duration and distance from a
2299
2404
  # set origin, `legs` contains a single leg containing the duration and distance
2300
2405
  # from the origin to the destination. When you do a search along route, `legs`
@@ -2310,6 +2415,7 @@ module Google
2310
2415
 
2311
2416
  # Update properties of this object
2312
2417
  def update!(**args)
2418
+ @directions_uri = args[:directions_uri] if args.key?(:directions_uri)
2313
2419
  @legs = args[:legs] if args.key?(:legs)
2314
2420
  end
2315
2421
  end
@@ -2855,6 +2961,12 @@ module Google
2855
2961
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary>]
2856
2962
  attr_accessor :routing_summaries
2857
2963
 
2964
+ # A link allows the user to search with the same text query as specified in the
2965
+ # request on Google Maps.
2966
+ # Corresponds to the JSON property `searchUri`
2967
+ # @return [String]
2968
+ attr_accessor :search_uri
2969
+
2858
2970
  def initialize(**args)
2859
2971
  update!(**args)
2860
2972
  end
@@ -2865,6 +2977,7 @@ module Google
2865
2977
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2866
2978
  @places = args[:places] if args.key?(:places)
2867
2979
  @routing_summaries = args[:routing_summaries] if args.key?(:routing_summaries)
2980
+ @search_uri = args[:search_uri] if args.key?(:search_uri)
2868
2981
  end
2869
2982
  end
2870
2983
 
@@ -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.27.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241022"
25
+ REVISION = "20241029"
26
26
  end
27
27
  end
28
28
  end
@@ -232,6 +232,12 @@ module Google
232
232
  include Google::Apis::Core::JsonObjectSupport
233
233
  end
234
234
 
235
+ class GoogleMapsPlacesV1PlaceGoogleMapsLinks
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
235
241
  class GoogleMapsPlacesV1PlaceOpeningHours
236
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
243
 
@@ -685,6 +691,8 @@ module Google
685
691
  class Representation < Google::Apis::Core::JsonRepresentation
686
692
  collection :author_attributions, as: 'authorAttributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution::Representation
687
693
 
694
+ property :flag_content_uri, as: 'flagContentUri'
695
+ property :google_maps_uri, as: 'googleMapsUri'
688
696
  property :height_px, as: 'heightPx'
689
697
  property :name, as: 'name'
690
698
  property :width_px, as: 'widthPx'
@@ -736,6 +744,8 @@ module Google
736
744
  property :good_for_children, as: 'goodForChildren'
737
745
  property :good_for_groups, as: 'goodForGroups'
738
746
  property :good_for_watching_sports, as: 'goodForWatchingSports'
747
+ property :google_maps_links, as: 'googleMapsLinks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks::Representation
748
+
739
749
  property :google_maps_uri, as: 'googleMapsUri'
740
750
  property :icon_background_color, as: 'iconBackgroundColor'
741
751
  property :icon_mask_base_uri, as: 'iconMaskBaseUri'
@@ -817,6 +827,7 @@ module Google
817
827
  class Representation < Google::Apis::Core::JsonRepresentation
818
828
  collection :content_blocks, as: 'contentBlocks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock::Representation
819
829
 
830
+ property :flag_content_uri, as: 'flagContentUri'
820
831
  end
821
832
  end
822
833
 
@@ -833,13 +844,26 @@ module Google
833
844
  class Representation < Google::Apis::Core::JsonRepresentation
834
845
  property :description, as: 'description', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
835
846
 
847
+ property :description_flag_content_uri, as: 'descriptionFlagContentUri'
836
848
  property :overview, as: 'overview', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
837
849
 
850
+ property :overview_flag_content_uri, as: 'overviewFlagContentUri'
838
851
  property :references, as: 'references', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1References::Representation
839
852
 
840
853
  end
841
854
  end
842
855
 
856
+ class GoogleMapsPlacesV1PlaceGoogleMapsLinks
857
+ # @private
858
+ class Representation < Google::Apis::Core::JsonRepresentation
859
+ property :directions_uri, as: 'directionsUri'
860
+ property :photos_uri, as: 'photosUri'
861
+ property :place_uri, as: 'placeUri'
862
+ property :reviews_uri, as: 'reviewsUri'
863
+ property :write_a_review_uri, as: 'writeAReviewUri'
864
+ end
865
+ end
866
+
843
867
  class GoogleMapsPlacesV1PlaceOpeningHours
844
868
  # @private
845
869
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -943,6 +967,8 @@ module Google
943
967
  class Representation < Google::Apis::Core::JsonRepresentation
944
968
  property :author_attribution, as: 'authorAttribution', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution::Representation
945
969
 
970
+ property :flag_content_uri, as: 'flagContentUri'
971
+ property :google_maps_uri, as: 'googleMapsUri'
946
972
  property :name, as: 'name'
947
973
  property :original_text, as: 'originalText', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
948
974
 
@@ -979,6 +1005,7 @@ module Google
979
1005
  class GoogleMapsPlacesV1RoutingSummary
980
1006
  # @private
981
1007
  class Representation < Google::Apis::Core::JsonRepresentation
1008
+ property :directions_uri, as: 'directionsUri'
982
1009
  collection :legs, as: 'legs', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummaryLeg, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummaryLeg::Representation
983
1010
 
984
1011
  end
@@ -1100,6 +1127,7 @@ module Google
1100
1127
 
1101
1128
  collection :routing_summaries, as: 'routingSummaries', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary::Representation
1102
1129
 
1130
+ property :search_uri, as: 'searchUri'
1103
1131
  end
1104
1132
  end
1105
1133
 
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.27.0
4
+ version: 0.28.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: 2024-10-27 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.28.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: []