google-apis-retail_v2alpha 0.27.0 → 0.28.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: 60786f3b6536b49e560668b159b5ed37244c89b14efeb86d8b0fd73023775253
4
- data.tar.gz: 0b314920d89f308c36aed11188b520c738139e0176b1e27ee404307b674a83a5
3
+ metadata.gz: 76e246cd8a76032a007f6eae66840c78d385787195cc9b522ba38db20c559d59
4
+ data.tar.gz: 430bed9ceefac161115db657682d1d0bb359121e63fe8156e93ae4865a8244e0
5
5
  SHA512:
6
- metadata.gz: bd617889f9ad8d9d5703d43fdbcb9b1fe1da9e2968629744b10551e798874eeeecd37bbb7d6416335df0a263cd626d1d305cb85df997320fe27b2d136a979d7a
7
- data.tar.gz: 162dcea3c5be7b0c124ae86a5bdbf355cd8e2de4b0d8f671aaaa0736591b6abb018e773fffcbec02e5fec54e442ce350daf8b31ad2f346942c00a159f41a4230
6
+ metadata.gz: 84cacc133295d72d41740379566a4d74a39d9eb5f36baaf38058a0f28919cce5ddaa2f5116a3dde3442c171187fd7a242018b1867b91ba0dc208896cb9f3687b
7
+ data.tar.gz: a83c839cb2ecc797f0ef02962ead1e8934d9e45df378477695a4d3975d0ce4337cc323284b6dac46828b7445140a24dfd48a99d928a03bb8ee68329fd21c87ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.28.0 (2022-02-03)
4
+
5
+ * Regenerated from discovery document revision 20220127
6
+
3
7
  ### v0.27.0 (2022-01-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20220121
@@ -2598,7 +2598,8 @@ module Google
2598
2598
  attr_accessor :primary_product_id
2599
2599
 
2600
2600
  # The promotions applied to the product. A maximum of 10 values are allowed per
2601
- # Product.
2601
+ # Product. Only Promotion.promotion_id will be used, other fields will be
2602
+ # ignored if set.
2602
2603
  # Corresponds to the JSON property `promotions`
2603
2604
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPromotion>]
2604
2605
  attr_accessor :promotions
@@ -2877,7 +2878,7 @@ module Google
2877
2878
  class GoogleCloudRetailV2alphaPromotion
2878
2879
  include Google::Apis::Core::Hashable
2879
2880
 
2880
- # ID of the promotion. For example, "free gift". The value value must be a UTF-8
2881
+ # ID of the promotion. For example, "free gift". The value must be a UTF-8
2881
2882
  # encoded string with a length limit of 128 characters, and match the pattern: `
2882
2883
  # a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
2883
2884
  # INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
@@ -3696,6 +3697,11 @@ module Google
3696
3697
  # @return [String]
3697
3698
  attr_accessor :page_token
3698
3699
 
3700
+ # The specification for personalization.
3701
+ # Corresponds to the JSON property `personalizationSpec`
3702
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec]
3703
+ attr_accessor :personalization_spec
3704
+
3699
3705
  # Raw search query.
3700
3706
  # Corresponds to the JSON property `query`
3701
3707
  # @return [String]
@@ -3782,6 +3788,7 @@ module Google
3782
3788
  @page_categories = args[:page_categories] if args.key?(:page_categories)
3783
3789
  @page_size = args[:page_size] if args.key?(:page_size)
3784
3790
  @page_token = args[:page_token] if args.key?(:page_token)
3791
+ @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
3785
3792
  @query = args[:query] if args.key?(:query)
3786
3793
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
3787
3794
  @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
@@ -4032,6 +4039,25 @@ module Google
4032
4039
  end
4033
4040
  end
4034
4041
 
4042
+ # The specification for personalization.
4043
+ class GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec
4044
+ include Google::Apis::Core::Hashable
4045
+
4046
+ # Defaults to Mode.AUTO.
4047
+ # Corresponds to the JSON property `mode`
4048
+ # @return [String]
4049
+ attr_accessor :mode
4050
+
4051
+ def initialize(**args)
4052
+ update!(**args)
4053
+ end
4054
+
4055
+ # Update properties of this object
4056
+ def update!(**args)
4057
+ @mode = args[:mode] if args.key?(:mode)
4058
+ end
4059
+ end
4060
+
4035
4061
  # Specification to determine under which conditions query expansion should occur.
4036
4062
  class GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec
4037
4063
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.28.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
@@ -676,6 +676,12 @@ module Google
676
676
  include Google::Apis::Core::JsonObjectSupport
677
677
  end
678
678
 
679
+ class GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
679
685
  class GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec
680
686
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
687
 
@@ -1889,6 +1895,8 @@ module Google
1889
1895
  collection :page_categories, as: 'pageCategories'
1890
1896
  property :page_size, as: 'pageSize'
1891
1897
  property :page_token, as: 'pageToken'
1898
+ property :personalization_spec, as: 'personalizationSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec::Representation
1899
+
1892
1900
  property :query, as: 'query'
1893
1901
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec::Representation
1894
1902
 
@@ -1949,6 +1957,13 @@ module Google
1949
1957
  end
1950
1958
  end
1951
1959
 
1960
+ class GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec
1961
+ # @private
1962
+ class Representation < Google::Apis::Core::JsonRepresentation
1963
+ property :mode, as: 'mode'
1964
+ end
1965
+ end
1966
+
1952
1967
  class GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec
1953
1968
  # @private
1954
1969
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []