google-apis-places_v1 0.1.0 → 0.3.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: 3bccb705767fdad70dfb4ed1c2fc80366b7eece351c5e1479bc5a1e4ca64dc00
4
- data.tar.gz: 75ff67cb9054988c43108b016e527a7a92253697eb743227c2f46bb068a1784d
3
+ metadata.gz: 4bb5fa1b4bcb21c6ef0fc97593431837a6a14ebcabe07b53c40779177045d025
4
+ data.tar.gz: fdf3f8ad4b544b4eaf92bf7ce42274601966a344b8a8814bba3c1e8b37e256db
5
5
  SHA512:
6
- metadata.gz: b93d4feddb1169a148c3503415283f8576bcc0e629ff7e590e6c0fa752743eaad65b182f3757801c29b1e2ffe6e6fbd7f887be37fba448e262e07804006db769
7
- data.tar.gz: efda2cfc1ad82567150670c3c78e3882939274536eaea37e2001f30cd7134b6dc3fbd5b24d99be506554ccdc2b28e0d18a79de25324bf03144ba07610f44986d
6
+ metadata.gz: b3cd538c38e9e0de0addc7d903ad9a4f972718949592cb29082118e97901f6ed50d8f49e58f7f2cff0b52bfcaa657a7a37707f88b495d9ea0a423c2c5d337008
7
+ data.tar.gz: 7737fdf3968132529082aed64f7094a97d9c8b811a2157253455a1851206c315403e7bc98b0ede52c4fad6c903eabcf4b51ccd115146c24c87e98fc86a0f8fd7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.3.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.2.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230801
10
+
3
11
  ### v0.1.0 (2023-07-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20230718
data/OVERVIEW.md CHANGED
@@ -48,7 +48,7 @@ Once the gem is installed, you can load the client code and instantiate a client
48
48
  require "google/apis/places_v1"
49
49
 
50
50
  # Create a client object
51
- client = Google::Apis::PlacesV1::PlacesAPINewService.new
51
+ client = Google::Apis::PlacesV1::MapsPlacesService.new
52
52
 
53
53
  # Authenticate calls
54
54
  client.authorization = # ... use the googleauth gem to create credentials
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Places service in particular.)
67
67
 
68
- For reference information on specific calls in the Places API (New), see the {Google::Apis::PlacesV1::PlacesAPINewService class reference docs}.
68
+ For reference information on specific calls in the Places API (New), see the {Google::Apis::PlacesV1::MapsPlacesService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -306,7 +306,7 @@ module Google
306
306
 
307
307
  # Output only. List of reviews about this place.
308
308
  # Corresponds to the JSON property `reviews`
309
- # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceReview>]
309
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
310
310
  attr_accessor :reviews
311
311
 
312
312
  # Output only. Contains an array of entries for information about regular
@@ -736,8 +736,8 @@ module Google
736
736
  end
737
737
  end
738
738
 
739
- # Information about a review of the place.
740
- class GoogleMapsPlacesV1PlaceReview
739
+ # Information about a review of a place.
740
+ class GoogleMapsPlacesV1Review
741
741
  include Google::Apis::Core::Hashable
742
742
 
743
743
  # Information about the author of the UGC data. Used in Photo, and Review.
@@ -745,27 +745,17 @@ module Google
745
745
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution]
746
746
  attr_accessor :author_attribution
747
747
 
748
- # Output only. A BCP-47 language code indicating the original language of the
749
- # review. If the review has been translated, then original_language != language.
750
- # This field contains the main language tag only, and not the secondary tag
751
- # indicating country or region. For example, all the English reviews are tagged
752
- # as 'en', and not 'en-AU' or 'en-UK' and so on.This field is empty if there is
753
- # only a rating with no review text.
754
- # Corresponds to the JSON property `originalLanguageCode`
755
- # @return [String]
756
- attr_accessor :original_language_code
757
-
758
748
  # Localized variant of a text in a particular language.
759
749
  # Corresponds to the JSON property `originalText`
760
750
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
761
751
  attr_accessor :original_text
762
752
 
763
- # Output only. Timestamp for the review, expressed in seconds since epoch.
753
+ # Output only. Timestamp for the review.
764
754
  # Corresponds to the JSON property `publishTime`
765
755
  # @return [String]
766
756
  attr_accessor :publish_time
767
757
 
768
- # Output only. A whole number between 1.0 and 5.0, a.k.a. the number of stars.
758
+ # Output only. A number between 1.0 and 5.0, a.k.a. the number of stars.
769
759
  # Corresponds to the JSON property `rating`
770
760
  # @return [Float]
771
761
  attr_accessor :rating
@@ -782,16 +772,6 @@ module Google
782
772
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
783
773
  attr_accessor :text
784
774
 
785
- # Output only. A boolean value indicating if the review was translated from the
786
- # original language it was written in. If a review has been translated,
787
- # corresponding to a value of true, Google recommends that you indicate this to
788
- # your users. For example, you can add the following string, “Translated by
789
- # Google”, to the review.
790
- # Corresponds to the JSON property `translated`
791
- # @return [Boolean]
792
- attr_accessor :translated
793
- alias_method :translated?, :translated
794
-
795
775
  def initialize(**args)
796
776
  update!(**args)
797
777
  end
@@ -799,13 +779,11 @@ module Google
799
779
  # Update properties of this object
800
780
  def update!(**args)
801
781
  @author_attribution = args[:author_attribution] if args.key?(:author_attribution)
802
- @original_language_code = args[:original_language_code] if args.key?(:original_language_code)
803
782
  @original_text = args[:original_text] if args.key?(:original_text)
804
783
  @publish_time = args[:publish_time] if args.key?(:publish_time)
805
784
  @rating = args[:rating] if args.key?(:rating)
806
785
  @relative_publish_time_description = args[:relative_publish_time_description] if args.key?(:relative_publish_time_description)
807
786
  @text = args[:text] if args.key?(:text)
808
- @translated = args[:translated] if args.key?(:translated)
809
787
  end
810
788
  end
811
789
 
@@ -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.1.0"
19
+ GEM_VERSION = "0.3.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 = "20230718"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -94,7 +94,7 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class GoogleMapsPlacesV1PlaceReview
97
+ class GoogleMapsPlacesV1Review
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
@@ -221,7 +221,7 @@ module Google
221
221
  property :price_level, as: 'priceLevel'
222
222
  property :rating, as: 'rating'
223
223
  property :reservable, as: 'reservable'
224
- collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceReview, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceReview::Representation
224
+ collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
225
225
 
226
226
  collection :secondary_opening_hours, as: 'secondaryOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
227
227
 
@@ -313,12 +313,11 @@ module Google
313
313
  end
314
314
  end
315
315
 
316
- class GoogleMapsPlacesV1PlaceReview
316
+ class GoogleMapsPlacesV1Review
317
317
  # @private
318
318
  class Representation < Google::Apis::Core::JsonRepresentation
319
319
  property :author_attribution, as: 'authorAttribution', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution::Representation
320
320
 
321
- property :original_language_code, as: 'originalLanguageCode'
322
321
  property :original_text, as: 'originalText', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
323
322
 
324
323
  property :publish_time, as: 'publishTime'
@@ -326,7 +325,6 @@ module Google
326
325
  property :relative_publish_time_description, as: 'relativePublishTimeDescription'
327
326
  property :text, as: 'text', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
328
327
 
329
- property :translated, as: 'translated'
330
328
  end
331
329
  end
332
330
 
@@ -28,10 +28,10 @@ module Google
28
28
  # require 'google/apis/places_v1'
29
29
  #
30
30
  # Places = Google::Apis::PlacesV1 # Alias the module
31
- # service = Places::PlacesAPINewService.new
31
+ # service = Places::MapsPlacesService.new
32
32
  #
33
33
  # @see https://mapsplatform.google.com/maps-products/#places-section
34
- class PlacesAPINewService < Google::Apis::Core::BaseService
34
+ class MapsPlacesService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
37
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
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.1.0
4
+ version: 0.3.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-07-23 00:00:00.000000000 Z
11
+ date: 2023-08-13 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.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.3.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: []