google-apis-places_v1 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04aabd735f2c8ac1530c367d83b1691cbb50e18ed0bf9078291561999c03f1ee
4
- data.tar.gz: 552b0f1f55ed7aa7e0b56df05ce32eaa4c1405589aa9da8c62fe09f80051bf31
3
+ metadata.gz: c88b38fd7035f8eacd359ad91df1f5897fbcef94b1378f0ce145d02920b7ef20
4
+ data.tar.gz: 87887119ece4c9267b6e48a799621b70470e1491900c60ef663ae83553e6f78a
5
5
  SHA512:
6
- metadata.gz: 04c96d5dcc180562e9a01ebfeb665b82a789b202601dcdff36a2e389d4a7d0521b5d494bbdd366e8edd09d8abf83d07df2045f87415c5714be45aa7ed53f3aa3
7
- data.tar.gz: 2f17c043f841135491331414d40c18b0bb60889102e469f83a9dc0a8d5e1e1fc8ffe04b5d6ff1eacd7ec01d3639dfa075d3ba1f999aec686fad925beba4c65d0
6
+ metadata.gz: 36e549023b9274c3c71e2a607aa40715b038dba76b145ab3c1a3446333c47c41404df929cd636a58f70f52f2211ca55fc2bdb28d7bba5d65e77f770353dda808
7
+ data.tar.gz: 24bdb7335eccda8f94a710bbf1deabdd932a8fbe4b77e2b2fc414caea1ae32c9561270c18a57e847530a2b9800ff8d4810268aa9472d25268ffbf287c81faf1c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.8.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230920
6
+
7
+ ### v0.7.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230912
10
+
3
11
  ### v0.6.0 (2023-09-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20230905
@@ -249,11 +249,6 @@ module Google
249
249
  # @return [String]
250
250
  attr_accessor :national_phone_number
251
251
 
252
- # Information about business hour of the place.
253
- # Corresponds to the JSON property `openingHours`
254
- # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours]
255
- attr_accessor :opening_hours
256
-
257
252
  # Plus code (http://plus.codes) is a location reference with two formats: global
258
253
  # code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and
259
254
  # compound code, replacing the prefix with a reference location.
@@ -271,6 +266,21 @@ module Google
271
266
  # @return [Float]
272
267
  attr_accessor :rating
273
268
 
269
+ # Information about business hour of the place.
270
+ # Corresponds to the JSON property `regularOpeningHours`
271
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours]
272
+ attr_accessor :regular_opening_hours
273
+
274
+ # Output only. Contains an array of entries for information about regular
275
+ # secondary hours of a business. Secondary hours are different from a business's
276
+ # main hours. For example, a restaurant can specify drive through hours or
277
+ # delivery hours as its secondary hours. This field populates the type subfield,
278
+ # which draws from a predefined list of opening hours types (such as
279
+ # DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.
280
+ # Corresponds to the JSON property `regularSecondaryOpeningHours`
281
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours>]
282
+ attr_accessor :regular_secondary_opening_hours
283
+
274
284
  # Output only. Specifies if the place supports reservations.
275
285
  # Corresponds to the JSON property `reservable`
276
286
  # @return [Boolean]
@@ -282,16 +292,6 @@ module Google
282
292
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
283
293
  attr_accessor :reviews
284
294
 
285
- # Output only. Contains an array of entries for information about regular
286
- # secondary hours of a business. Secondary hours are different from a business's
287
- # main hours. For example, a restaurant can specify drive through hours or
288
- # delivery hours as its secondary hours. This field populates the type subfield,
289
- # which draws from a predefined list of opening hours types (such as
290
- # DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.
291
- # Corresponds to the JSON property `secondaryOpeningHours`
292
- # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours>]
293
- attr_accessor :secondary_opening_hours
294
-
295
295
  # Output only. Specifies if the place serves beer.
296
296
  # Corresponds to the JSON property `servesBeer`
297
297
  # @return [Boolean]
@@ -386,13 +386,6 @@ module Google
386
386
  # @return [String]
387
387
  attr_accessor :website_uri
388
388
 
389
- # Output only. [Deprecated!] Specifies if the place has an entrance that is
390
- # wheelchair-accessible.
391
- # Corresponds to the JSON property `wheelchairAccessibleEntrance`
392
- # @return [Boolean]
393
- attr_accessor :wheelchair_accessible_entrance
394
- alias_method :wheelchair_accessible_entrance?, :wheelchair_accessible_entrance
395
-
396
389
  def initialize(**args)
397
390
  update!(**args)
398
391
  end
@@ -419,13 +412,13 @@ module Google
419
412
  @location = args[:location] if args.key?(:location)
420
413
  @name = args[:name] if args.key?(:name)
421
414
  @national_phone_number = args[:national_phone_number] if args.key?(:national_phone_number)
422
- @opening_hours = args[:opening_hours] if args.key?(:opening_hours)
423
415
  @plus_code = args[:plus_code] if args.key?(:plus_code)
424
416
  @price_level = args[:price_level] if args.key?(:price_level)
425
417
  @rating = args[:rating] if args.key?(:rating)
418
+ @regular_opening_hours = args[:regular_opening_hours] if args.key?(:regular_opening_hours)
419
+ @regular_secondary_opening_hours = args[:regular_secondary_opening_hours] if args.key?(:regular_secondary_opening_hours)
426
420
  @reservable = args[:reservable] if args.key?(:reservable)
427
421
  @reviews = args[:reviews] if args.key?(:reviews)
428
- @secondary_opening_hours = args[:secondary_opening_hours] if args.key?(:secondary_opening_hours)
429
422
  @serves_beer = args[:serves_beer] if args.key?(:serves_beer)
430
423
  @serves_breakfast = args[:serves_breakfast] if args.key?(:serves_breakfast)
431
424
  @serves_brunch = args[:serves_brunch] if args.key?(:serves_brunch)
@@ -439,7 +432,6 @@ module Google
439
432
  @utc_offset_minutes = args[:utc_offset_minutes] if args.key?(:utc_offset_minutes)
440
433
  @viewport = args[:viewport] if args.key?(:viewport)
441
434
  @website_uri = args[:website_uri] if args.key?(:website_uri)
442
- @wheelchair_accessible_entrance = args[:wheelchair_accessible_entrance] if args.key?(:wheelchair_accessible_entrance)
443
435
  end
444
436
  end
445
437
 
@@ -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.6.0"
19
+ GEM_VERSION = "0.8.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 = "20230905"
25
+ REVISION = "20230920"
26
26
  end
27
27
  end
28
28
  end
@@ -194,17 +194,17 @@ module Google
194
194
 
195
195
  property :name, as: 'name'
196
196
  property :national_phone_number, as: 'nationalPhoneNumber'
197
- property :opening_hours, as: 'openingHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
198
-
199
197
  property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
200
198
 
201
199
  property :price_level, as: 'priceLevel'
202
200
  property :rating, as: 'rating'
201
+ property :regular_opening_hours, as: 'regularOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
202
+
203
+ collection :regular_secondary_opening_hours, as: 'regularSecondaryOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
204
+
203
205
  property :reservable, as: 'reservable'
204
206
  collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
205
207
 
206
- collection :secondary_opening_hours, as: 'secondaryOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
207
-
208
208
  property :serves_beer, as: 'servesBeer'
209
209
  property :serves_breakfast, as: 'servesBreakfast'
210
210
  property :serves_brunch, as: 'servesBrunch'
@@ -219,7 +219,6 @@ module Google
219
219
  property :viewport, as: 'viewport', class: Google::Apis::PlacesV1::GoogleGeoTypeViewport, decorator: Google::Apis::PlacesV1::GoogleGeoTypeViewport::Representation
220
220
 
221
221
  property :website_uri, as: 'websiteUri'
222
- property :wheelchair_accessible_entrance, as: 'wheelchairAccessibleEntrance'
223
222
  end
224
223
  end
225
224
 
@@ -49,36 +49,6 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Text query based place search.
53
- # @param [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequest] google_maps_places_v1_search_text_request_object
54
- # @param [String] fields
55
- # Selector specifying which fields to include in a partial response.
56
- # @param [String] quota_user
57
- # Available to use for quota purposes for server-side applications. Can be any
58
- # arbitrary string assigned to a user, but should not exceed 40 characters.
59
- # @param [Google::Apis::RequestOptions] options
60
- # Request-specific options
61
- #
62
- # @yield [result, err] Result & error if block supplied
63
- # @yieldparam result [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextResponse] parsed result object
64
- # @yieldparam err [StandardError] error object if request failed
65
- #
66
- # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextResponse]
67
- #
68
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
- # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def search_texts(google_maps_places_v1_search_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
72
- command = make_simple_command(:post, 'v1/Text:search', options)
73
- command.request_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequest::Representation
74
- command.request_object = google_maps_places_v1_search_text_request_object
75
- command.response_representation = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextResponse::Representation
76
- command.response_class = Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextResponse
77
- command.query['fields'] = fields unless fields.nil?
78
- command.query['quotaUser'] = quota_user unless quota_user.nil?
79
- execute_or_queue_command(command, &block)
80
- end
81
-
82
52
  # Text query based place search.
83
53
  # @param [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequest] google_maps_places_v1_search_text_request_object
84
54
  # @param [String] fields
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.6.0
4
+ version: 0.8.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-09-10 00:00:00.000000000 Z
11
+ date: 2023-09-24 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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.8.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: []