google-apis-retail_v2beta 0.26.0 → 0.27.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: 442238dcc56ad57e4dc8473c0ba48088053b69c3438725d8a275ab7f73a3658e
4
- data.tar.gz: 6318a511c5e53d9926edecbf71c3675369f8b0ff92df5c6aa32d313ccc1d1ef2
3
+ metadata.gz: 45c64f62e4714193b30970f9cd7580ae8f885512f383ae80c5457ffbbd3b0339
4
+ data.tar.gz: 0a8b92545ca53f62801e91bca1a327e0ebf834b174d083a00c5927cc4026a6b3
5
5
  SHA512:
6
- metadata.gz: 4f03c176f46fedb8495c5b971dea6d81aabaf79c9ba015e2a9223ba366105b31b037183461b40f839f818f08f98d6da86fa3cdfc1b6fbdbf6191ef923eed99ad
7
- data.tar.gz: 37aeea8c767c9c2ed57c4c2cf41d253db36466d1b53ace996fa681068c578e79d901994f8d6aac8eb22d65fa25dce1869a01a58a4ae633433709d92ec5cf379c
6
+ metadata.gz: 1476768e50f8ac8a67c29687e13b1aa496662e031d02e843db7bc7711351c95db1f978c936ec2ae74f555f9c49f68a179de1744935e747e12585ed6b6a173d06
7
+ data.tar.gz: d67bde627e332a7a2cf725df9b9c7d3a30bbb134ab5ede6cf4eefc8beecfd20e12f963a906f98ce4beb58f34e4b1215a18d32e3e7498e7fe2ad3db004d0649de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.27.0 (2022-02-03)
4
+
5
+ * Regenerated from discovery document revision 20220127
6
+
3
7
  ### v0.26.0 (2022-01-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20220121
@@ -2880,7 +2880,8 @@ module Google
2880
2880
  attr_accessor :primary_product_id
2881
2881
 
2882
2882
  # The promotions applied to the product. A maximum of 10 values are allowed per
2883
- # Product.
2883
+ # Product. Only Promotion.promotion_id will be used, other fields will be
2884
+ # ignored if set.
2884
2885
  # Corresponds to the JSON property `promotions`
2885
2886
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPromotion>]
2886
2887
  attr_accessor :promotions
@@ -3159,7 +3160,7 @@ module Google
3159
3160
  class GoogleCloudRetailV2betaPromotion
3160
3161
  include Google::Apis::Core::Hashable
3161
3162
 
3162
- # ID of the promotion. For example, "free gift". The value value must be a UTF-8
3163
+ # ID of the promotion. For example, "free gift". The value must be a UTF-8
3163
3164
  # encoded string with a length limit of 128 characters, and match the pattern: `
3164
3165
  # a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
3165
3166
  # INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
@@ -3911,6 +3912,11 @@ module Google
3911
3912
  # @return [String]
3912
3913
  attr_accessor :page_token
3913
3914
 
3915
+ # The specification for personalization.
3916
+ # Corresponds to the JSON property `personalizationSpec`
3917
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec]
3918
+ attr_accessor :personalization_spec
3919
+
3914
3920
  # Raw search query.
3915
3921
  # Corresponds to the JSON property `query`
3916
3922
  # @return [String]
@@ -3989,6 +3995,7 @@ module Google
3989
3995
  @page_categories = args[:page_categories] if args.key?(:page_categories)
3990
3996
  @page_size = args[:page_size] if args.key?(:page_size)
3991
3997
  @page_token = args[:page_token] if args.key?(:page_token)
3998
+ @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
3992
3999
  @query = args[:query] if args.key?(:query)
3993
4000
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
3994
4001
  @search_mode = args[:search_mode] if args.key?(:search_mode)
@@ -4238,6 +4245,25 @@ module Google
4238
4245
  end
4239
4246
  end
4240
4247
 
4248
+ # The specification for personalization.
4249
+ class GoogleCloudRetailV2betaSearchRequestPersonalizationSpec
4250
+ include Google::Apis::Core::Hashable
4251
+
4252
+ # Defaults to Mode.AUTO.
4253
+ # Corresponds to the JSON property `mode`
4254
+ # @return [String]
4255
+ attr_accessor :mode
4256
+
4257
+ def initialize(**args)
4258
+ update!(**args)
4259
+ end
4260
+
4261
+ # Update properties of this object
4262
+ def update!(**args)
4263
+ @mode = args[:mode] if args.key?(:mode)
4264
+ end
4265
+ end
4266
+
4241
4267
  # Specification to determine under which conditions query expansion should occur.
4242
4268
  class GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec
4243
4269
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.26.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220121"
25
+ REVISION = "20220127"
26
26
  end
27
27
  end
28
28
  end
@@ -766,6 +766,12 @@ module Google
766
766
  include Google::Apis::Core::JsonObjectSupport
767
767
  end
768
768
 
769
+ class GoogleCloudRetailV2betaSearchRequestPersonalizationSpec
770
+ class Representation < Google::Apis::Core::JsonRepresentation; end
771
+
772
+ include Google::Apis::Core::JsonObjectSupport
773
+ end
774
+
769
775
  class GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec
770
776
  class Representation < Google::Apis::Core::JsonRepresentation; end
771
777
 
@@ -1960,6 +1966,8 @@ module Google
1960
1966
  collection :page_categories, as: 'pageCategories'
1961
1967
  property :page_size, as: 'pageSize'
1962
1968
  property :page_token, as: 'pageToken'
1969
+ property :personalization_spec, as: 'personalizationSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec::Representation
1970
+
1963
1971
  property :query, as: 'query'
1964
1972
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec::Representation
1965
1973
 
@@ -2019,6 +2027,13 @@ module Google
2019
2027
  end
2020
2028
  end
2021
2029
 
2030
+ class GoogleCloudRetailV2betaSearchRequestPersonalizationSpec
2031
+ # @private
2032
+ class Representation < Google::Apis::Core::JsonRepresentation
2033
+ property :mode, as: 'mode'
2034
+ end
2035
+ end
2036
+
2022
2037
  class GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec
2023
2038
  # @private
2024
2039
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.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: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-07 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-retail_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []