google-apis-places_v1 0.10.0 → 0.11.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.
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231016"
25
+ REVISION = "20231025"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,42 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleMapsPlacesV1EvChargeOptions
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleMapsPlacesV1FuelOptions
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleMapsPlacesV1FuelOptionsFuelPrice
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleMapsPlacesV1Photo
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleMapsPlacesV1PhotoMedia
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
43
79
  class GoogleMapsPlacesV1Place
44
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
81
 
@@ -88,18 +124,54 @@ module Google
88
124
  include Google::Apis::Core::JsonObjectSupport
89
125
  end
90
126
 
127
+ class GoogleMapsPlacesV1PlaceParkingOptions
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleMapsPlacesV1PlacePaymentOptions
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
91
139
  class GoogleMapsPlacesV1PlacePlusCode
92
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
141
 
94
142
  include Google::Apis::Core::JsonObjectSupport
95
143
  end
96
144
 
145
+ class GoogleMapsPlacesV1PlaceSubDestination
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
97
151
  class GoogleMapsPlacesV1Review
98
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
153
 
100
154
  include Google::Apis::Core::JsonObjectSupport
101
155
  end
102
156
 
157
+ class GoogleMapsPlacesV1SearchNearbyRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GoogleMapsPlacesV1SearchNearbyResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
103
175
  class GoogleMapsPlacesV1SearchTextRequest
104
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
177
 
@@ -142,6 +214,12 @@ module Google
142
214
  include Google::Apis::Core::JsonObjectSupport
143
215
  end
144
216
 
217
+ class GoogleTypeMoney
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
145
223
  class GoogleGeoTypeViewport
146
224
  # @private
147
225
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -170,6 +248,64 @@ module Google
170
248
  end
171
249
  end
172
250
 
251
+ class GoogleMapsPlacesV1EvChargeOptions
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ collection :connector_aggregation, as: 'connectorAggregation', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation::Representation
255
+
256
+ property :connector_count, as: 'connectorCount'
257
+ end
258
+ end
259
+
260
+ class GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :availability_last_update_time, as: 'availabilityLastUpdateTime'
264
+ property :available_count, as: 'availableCount'
265
+ property :count, as: 'count'
266
+ property :max_charge_rate_kw, as: 'maxChargeRateKw'
267
+ property :out_of_service_count, as: 'outOfServiceCount'
268
+ property :type, as: 'type'
269
+ end
270
+ end
271
+
272
+ class GoogleMapsPlacesV1FuelOptions
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ collection :fuel_prices, as: 'fuelPrices', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice::Representation
276
+
277
+ end
278
+ end
279
+
280
+ class GoogleMapsPlacesV1FuelOptionsFuelPrice
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ property :price, as: 'price', class: Google::Apis::PlacesV1::GoogleTypeMoney, decorator: Google::Apis::PlacesV1::GoogleTypeMoney::Representation
284
+
285
+ property :type, as: 'type'
286
+ property :update_time, as: 'updateTime'
287
+ end
288
+ end
289
+
290
+ class GoogleMapsPlacesV1Photo
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ collection :author_attributions, as: 'authorAttributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution::Representation
294
+
295
+ property :height_px, as: 'heightPx'
296
+ property :name, as: 'name'
297
+ property :width_px, as: 'widthPx'
298
+ end
299
+ end
300
+
301
+ class GoogleMapsPlacesV1PhotoMedia
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :name, as: 'name'
305
+ property :photo_uri, as: 'photoUri'
306
+ end
307
+ end
308
+
173
309
  class GoogleMapsPlacesV1Place
174
310
  # @private
175
311
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -178,6 +314,7 @@ module Google
178
314
  collection :address_components, as: 'addressComponents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent::Representation
179
315
 
180
316
  property :adr_format_address, as: 'adrFormatAddress'
317
+ property :allows_dogs, as: 'allowsDogs'
181
318
  collection :attributions, as: 'attributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution::Representation
182
319
 
183
320
  property :business_status, as: 'businessStatus'
@@ -192,34 +329,60 @@ module Google
192
329
 
193
330
  property :editorial_summary, as: 'editorialSummary', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
194
331
 
332
+ property :ev_charge_options, as: 'evChargeOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptions::Representation
333
+
195
334
  property :formatted_address, as: 'formattedAddress'
335
+ property :fuel_options, as: 'fuelOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions::Representation
336
+
337
+ property :good_for_children, as: 'goodForChildren'
338
+ property :good_for_groups, as: 'goodForGroups'
339
+ property :good_for_watching_sports, as: 'goodForWatchingSports'
196
340
  property :google_maps_uri, as: 'googleMapsUri'
197
341
  property :icon_background_color, as: 'iconBackgroundColor'
198
342
  property :icon_mask_base_uri, as: 'iconMaskBaseUri'
199
343
  property :id, as: 'id'
200
344
  property :international_phone_number, as: 'internationalPhoneNumber'
345
+ property :live_music, as: 'liveMusic'
201
346
  property :location, as: 'location', class: Google::Apis::PlacesV1::GoogleTypeLatLng, decorator: Google::Apis::PlacesV1::GoogleTypeLatLng::Representation
202
347
 
348
+ property :menu_for_children, as: 'menuForChildren'
203
349
  property :name, as: 'name'
204
350
  property :national_phone_number, as: 'nationalPhoneNumber'
351
+ property :outdoor_seating, as: 'outdoorSeating'
352
+ property :parking_options, as: 'parkingOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceParkingOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceParkingOptions::Representation
353
+
354
+ property :payment_options, as: 'paymentOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePaymentOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePaymentOptions::Representation
355
+
356
+ collection :photos, as: 'photos', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo::Representation
357
+
205
358
  property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
206
359
 
207
360
  property :price_level, as: 'priceLevel'
361
+ property :primary_type, as: 'primaryType'
362
+ property :primary_type_display_name, as: 'primaryTypeDisplayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
363
+
208
364
  property :rating, as: 'rating'
209
365
  property :regular_opening_hours, as: 'regularOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
210
366
 
211
367
  collection :regular_secondary_opening_hours, as: 'regularSecondaryOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
212
368
 
213
369
  property :reservable, as: 'reservable'
370
+ property :restroom, as: 'restroom'
214
371
  collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
215
372
 
216
373
  property :serves_beer, as: 'servesBeer'
217
374
  property :serves_breakfast, as: 'servesBreakfast'
218
375
  property :serves_brunch, as: 'servesBrunch'
376
+ property :serves_cocktails, as: 'servesCocktails'
377
+ property :serves_coffee, as: 'servesCoffee'
378
+ property :serves_dessert, as: 'servesDessert'
219
379
  property :serves_dinner, as: 'servesDinner'
220
380
  property :serves_lunch, as: 'servesLunch'
221
381
  property :serves_vegetarian_food, as: 'servesVegetarianFood'
222
382
  property :serves_wine, as: 'servesWine'
383
+ property :short_formatted_address, as: 'shortFormattedAddress'
384
+ collection :sub_destinations, as: 'subDestinations', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination::Representation
385
+
223
386
  property :takeout, as: 'takeout'
224
387
  collection :types, as: 'types'
225
388
  property :user_rating_count, as: 'userRatingCount'
@@ -234,6 +397,9 @@ module Google
234
397
  # @private
235
398
  class Representation < Google::Apis::Core::JsonRepresentation
236
399
  property :wheelchair_accessible_entrance, as: 'wheelchairAccessibleEntrance'
400
+ property :wheelchair_accessible_parking, as: 'wheelchairAccessibleParking'
401
+ property :wheelchair_accessible_restroom, as: 'wheelchairAccessibleRestroom'
402
+ property :wheelchair_accessible_seating, as: 'wheelchairAccessibleSeating'
237
403
  end
238
404
  end
239
405
 
@@ -298,6 +464,29 @@ module Google
298
464
  end
299
465
  end
300
466
 
467
+ class GoogleMapsPlacesV1PlaceParkingOptions
468
+ # @private
469
+ class Representation < Google::Apis::Core::JsonRepresentation
470
+ property :free_garage_parking, as: 'freeGarageParking'
471
+ property :free_parking_lot, as: 'freeParkingLot'
472
+ property :free_street_parking, as: 'freeStreetParking'
473
+ property :paid_garage_parking, as: 'paidGarageParking'
474
+ property :paid_parking_lot, as: 'paidParkingLot'
475
+ property :paid_street_parking, as: 'paidStreetParking'
476
+ property :valet_parking, as: 'valetParking'
477
+ end
478
+ end
479
+
480
+ class GoogleMapsPlacesV1PlacePaymentOptions
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :accepts_cash_only, as: 'acceptsCashOnly'
484
+ property :accepts_credit_cards, as: 'acceptsCreditCards'
485
+ property :accepts_debit_cards, as: 'acceptsDebitCards'
486
+ property :accepts_nfc, as: 'acceptsNfc'
487
+ end
488
+ end
489
+
301
490
  class GoogleMapsPlacesV1PlacePlusCode
302
491
  # @private
303
492
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -306,11 +495,20 @@ module Google
306
495
  end
307
496
  end
308
497
 
498
+ class GoogleMapsPlacesV1PlaceSubDestination
499
+ # @private
500
+ class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :id, as: 'id'
502
+ property :name, as: 'name'
503
+ end
504
+ end
505
+
309
506
  class GoogleMapsPlacesV1Review
310
507
  # @private
311
508
  class Representation < Google::Apis::Core::JsonRepresentation
312
509
  property :author_attribution, as: 'authorAttribution', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution::Representation
313
510
 
511
+ property :name, as: 'name'
314
512
  property :original_text, as: 'originalText', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
315
513
 
316
514
  property :publish_time, as: 'publishTime'
@@ -321,6 +519,38 @@ module Google
321
519
  end
322
520
  end
323
521
 
522
+ class GoogleMapsPlacesV1SearchNearbyRequest
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ collection :excluded_primary_types, as: 'excludedPrimaryTypes'
526
+ collection :excluded_types, as: 'excludedTypes'
527
+ collection :included_primary_types, as: 'includedPrimaryTypes'
528
+ collection :included_types, as: 'includedTypes'
529
+ property :language_code, as: 'languageCode'
530
+ property :location_restriction, as: 'locationRestriction', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction::Representation
531
+
532
+ property :max_result_count, as: 'maxResultCount'
533
+ property :rank_preference, as: 'rankPreference'
534
+ property :region_code, as: 'regionCode'
535
+ end
536
+ end
537
+
538
+ class GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction
539
+ # @private
540
+ class Representation < Google::Apis::Core::JsonRepresentation
541
+ property :circle, as: 'circle', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Circle, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Circle::Representation
542
+
543
+ end
544
+ end
545
+
546
+ class GoogleMapsPlacesV1SearchNearbyResponse
547
+ # @private
548
+ class Representation < Google::Apis::Core::JsonRepresentation
549
+ collection :places, as: 'places', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
550
+
551
+ end
552
+ end
553
+
324
554
  class GoogleMapsPlacesV1SearchTextRequest
325
555
  # @private
326
556
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -391,6 +621,15 @@ module Google
391
621
  property :text, as: 'text'
392
622
  end
393
623
  end
624
+
625
+ class GoogleTypeMoney
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :currency_code, as: 'currencyCode'
629
+ property :nanos, as: 'nanos'
630
+ property :units, :numeric_string => true, as: 'units'
631
+ end
632
+ end
394
633
  end
395
634
  end
396
635
  end
@@ -49,6 +49,80 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Get place details with a place id (in a name) string.
53
+ # @param [String] name
54
+ # Required. A place ID returned in a Place (with "places/" prefix), or
55
+ # equivalently the name in the same Place. Format: places/*place_id*.
56
+ # @param [String] language_code
57
+ # Optional. Place details will be displayed with the preferred language if
58
+ # available. Current list of supported languages: https://developers.google.com/
59
+ # maps/faq#languagesupport.
60
+ # @param [String] region_code
61
+ # Optional. The Unicode country/region code (CLDR) of the location where the
62
+ # request is coming from. This parameter is used to display the place details,
63
+ # like region-specific place name, if available. The parameter can affect
64
+ # results based on applicable law. For more information, see https://www.unicode.
65
+ # org/cldr/charts/latest/supplemental/territory_language_information.html. Note
66
+ # that 3-digit region codes are not currently supported.
67
+ # @param [String] fields
68
+ # Selector specifying which fields to include in a partial response.
69
+ # @param [String] quota_user
70
+ # Available to use for quota purposes for server-side applications. Can be any
71
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [Google::Apis::PlacesV1::GoogleMapsPlacesV1Place] parsed result object
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Place]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def get_place(name, language_code: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ command = make_simple_command(:get, 'v1/{+name}', options)
86
+ command.response_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
87
+ command.response_class = Google::Apis::PlacesV1::GoogleMapsPlacesV1Place
88
+ command.params['name'] = name unless name.nil?
89
+ command.query['languageCode'] = language_code unless language_code.nil?
90
+ command.query['regionCode'] = region_code unless region_code.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ execute_or_queue_command(command, &block)
94
+ end
95
+
96
+ # Search for places near locations.
97
+ # @param [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequest] google_maps_places_v1_search_nearby_request_object
98
+ # @param [String] fields
99
+ # Selector specifying which fields to include in a partial response.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [Google::Apis::RequestOptions] options
104
+ # Request-specific options
105
+ #
106
+ # @yield [result, err] Result & error if block supplied
107
+ # @yieldparam result [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyResponse] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyResponse]
111
+ #
112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
115
+ def search_place_nearby(google_maps_places_v1_search_nearby_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
116
+ command = make_simple_command(:post, 'v1/places:searchNearby', options)
117
+ command.request_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequest::Representation
118
+ command.request_object = google_maps_places_v1_search_nearby_request_object
119
+ command.response_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyResponse::Representation
120
+ command.response_class = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyResponse
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
52
126
  # Text query based place search.
53
127
  # @param [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequest] google_maps_places_v1_search_text_request_object
54
128
  # @param [String] fields
@@ -78,6 +152,65 @@ module Google
78
152
  command.query['quotaUser'] = quota_user unless quota_user.nil?
79
153
  execute_or_queue_command(command, &block)
80
154
  end
155
+
156
+ # Get a photo media with a photo reference string.
157
+ # @param [String] name
158
+ # Required. The resource name of a photo as returned in a Place object's photos.
159
+ # name field. Format: places/place_id/photos/photo_reference.
160
+ # @param [Fixnum] max_height_px
161
+ # Optional. Specifies the maximum desired height, in pixels, of the image. If
162
+ # the image is smaller than the values specified, the original image will be
163
+ # returned. If the image is larger in either dimension, it will be scaled to
164
+ # match the smaller of the two dimensions, restricted to its original aspect
165
+ # ratio. Both the max_height_px and max_width_px properties accept an integer
166
+ # between 1 and 4800, inclusively. If the value is not within the allowed range,
167
+ # an INVALID_ARGUMENT error will be returned. At least one of max_height_px or
168
+ # max_width_px needs to be specified. If neither max_height_px nor max_width_px
169
+ # is specified, an INVALID_ARGUMENT error will be returned.
170
+ # @param [Fixnum] max_width_px
171
+ # Optional. Specifies the maximum desired width, in pixels, of the image. If the
172
+ # image is smaller than the values specified, the original image will be
173
+ # returned. If the image is larger in either dimension, it will be scaled to
174
+ # match the smaller of the two dimensions, restricted to its original aspect
175
+ # ratio. Both the max_height_px and max_width_px properties accept an integer
176
+ # between 1 and 4800, inclusively. If the value is not within the allowed range,
177
+ # an INVALID_ARGUMENT error will be returned. At least one of max_height_px or
178
+ # max_width_px needs to be specified. If neither max_height_px nor max_width_px
179
+ # is specified, an INVALID_ARGUMENT error will be returned.
180
+ # @param [Boolean] skip_http_redirect
181
+ # Optional. If set, skip the default HTTP redirect behavior and render a text
182
+ # format (for example, in JSON format for HTTP use case) response. If not set,
183
+ # an HTTP redirect will be issued to redirect the call to the image midea. This
184
+ # option is ignored for non-HTTP requests.
185
+ # @param [String] fields
186
+ # Selector specifying which fields to include in a partial response.
187
+ # @param [String] quota_user
188
+ # Available to use for quota purposes for server-side applications. Can be any
189
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
190
+ # @param [Google::Apis::RequestOptions] options
191
+ # Request-specific options
192
+ #
193
+ # @yield [result, err] Result & error if block supplied
194
+ # @yieldparam result [Google::Apis::PlacesV1::GoogleMapsPlacesV1PhotoMedia] parsed result object
195
+ # @yieldparam err [StandardError] error object if request failed
196
+ #
197
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PhotoMedia]
198
+ #
199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
202
+ def get_place_photo_media(name, max_height_px: nil, max_width_px: nil, skip_http_redirect: nil, fields: nil, quota_user: nil, options: nil, &block)
203
+ command = make_simple_command(:get, 'v1/{+name}', options)
204
+ command.response_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1PhotoMedia::Representation
205
+ command.response_class = Google::Apis::PlacesV1::GoogleMapsPlacesV1PhotoMedia
206
+ command.params['name'] = name unless name.nil?
207
+ command.query['maxHeightPx'] = max_height_px unless max_height_px.nil?
208
+ command.query['maxWidthPx'] = max_width_px unless max_width_px.nil?
209
+ command.query['skipHttpRedirect'] = skip_http_redirect unless skip_http_redirect.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
81
214
 
82
215
  protected
83
216
 
@@ -35,6 +35,12 @@ module Google
35
35
  # Private Service: https://www.googleapis.com/auth/maps-platform.places
36
36
  AUTH_MAPS_PLATFORM_PLACES = 'https://www.googleapis.com/auth/maps-platform.places'
37
37
 
38
+ # Private Service: https://www.googleapis.com/auth/maps-platform.places.details
39
+ AUTH_MAPS_PLATFORM_PLACES_DETAILS = 'https://www.googleapis.com/auth/maps-platform.places.details'
40
+
41
+ # Private Service: https://www.googleapis.com/auth/maps-platform.places.nearbysearch
42
+ AUTH_MAPS_PLATFORM_PLACES_NEARBYSEARCH = 'https://www.googleapis.com/auth/maps-platform.places.nearbysearch'
43
+
38
44
  # Private Service: https://www.googleapis.com/auth/maps-platform.places.textsearch
39
45
  AUTH_MAPS_PLATFORM_PLACES_TEXTSEARCH = 'https://www.googleapis.com/auth/maps-platform.places.textsearch'
40
46
  end
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.10.0
4
+ version: 0.11.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: 2023-10-22 00:00:00.000000000 Z
11
+ date: 2023-10-29 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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.11.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: []