google-apis-places_v1 0.1.0 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b41450b4bd937edd1899acfd252877a73ae22bab7ea0a7556ddcc81559f45e08
|
4
|
+
data.tar.gz: b17ca03d87ea7444dc2bdfa93f91f35f98cfac38d6bb3cbbd25a809c098728d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 955854b9b566ce4bb387ad15916c5e7266a6bc2641152596c678cb320f39bcb6c3209090b69cb92dcb2c1b6fb3694d3bc428c43332efc5bb324c4724117d9632
|
7
|
+
data.tar.gz: 5d41ac9efdf7f949797c2280eb2b51fc7a9b43f4dd41fa7b28c66735641ef792aecc811cece19e414613fd7d07edc4cf043a93203089104e3f95c9b94d2ed49a
|
data/CHANGELOG.md
CHANGED
@@ -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::
|
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
|
740
|
-
class
|
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
|
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
|
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.
|
19
|
+
GEM_VERSION = "0.2.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 = "
|
25
|
+
REVISION = "20230801"
|
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
|
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::
|
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
|
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
|
|
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.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2023-08-06 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.2.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: []
|