google-apis-retail_v2 0.108.0 → 0.110.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: e01471f2a93620d0e7e35ce73f3d5a2b82375cfcba9245db5c0a0116ca7891bb
4
- data.tar.gz: a4bb5c1ad75969be2b6553e9e572e40dab251ded0156ec39aae44a266886c61b
3
+ metadata.gz: f4181ef79f3d14f5a56d305f91b0a76e7467d7e9a3eeba8c4796f732c4f25f7c
4
+ data.tar.gz: 712e6cd366520b80d48298437fb6dff185f0cf4aa1ed7f3951cdc2222e339092
5
5
  SHA512:
6
- metadata.gz: 81f31b8f354cfbd780874e873b8b490d36082814bb6901feb2e352652de1259a80e8c42edbbd3387db71190fac91fa4dbf5d1e3651de6312e14943eb0e3d5406
7
- data.tar.gz: 974fceb93953c7cf312aa9c1f84f092ec6b901b3f73bf28d34124f053a8ef1c4b40abf873641162ccae1eda1ab5228d11a4bc43501faeaa8cf4e7bb226719333
6
+ metadata.gz: 6b25dd876aeebbfb04a535d756cffbf874c7aa9054eb4bf6cc6b039bbc0820afbc37af818a331bb6ed0fb3744d12cb05e6ffc4b0ad9e4f5fa1c00190e406bb19
7
+ data.tar.gz: 7b02c4bb639a0f900abeea760e2d62ad825817835122144d997fc698cc884e3c9c3048448590c89d55c34afaa7d2e4ff32004257e22974f0601bbda939c0d7d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.110.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250221
6
+
7
+ ### v0.109.0 (2025-01-12)
8
+
9
+ * Regenerated from discovery document revision 20250107
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.108.0 (2025-01-05)
4
13
 
5
14
  * Regenerated from discovery document revision 20241231
data/OVERVIEW.md CHANGED
@@ -1,6 +1,6 @@
1
- # Simple REST client for version V2 of the Vertex AI Search for Retail API
1
+ # Simple REST client for version V2 of the Vertex AI Search for commerce API
2
2
 
3
- This is a simple client library for version V2 of the Vertex AI Search for Retail API. It provides:
3
+ This is a simple client library for version V2 of the Vertex AI Search for commerce API. It provides:
4
4
 
5
5
  * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
6
  * Ruby objects for data structures related to the service.
@@ -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 Retail service in particular.)
67
67
 
68
- For reference information on specific calls in the Vertex AI Search for Retail API, see the {Google::Apis::RetailV2::CloudRetailService class reference docs}.
68
+ For reference information on specific calls in the Vertex AI Search for commerce API, see the {Google::Apis::RetailV2::CloudRetailService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -1177,12 +1177,11 @@ module Google
1177
1177
  end
1178
1178
  end
1179
1179
 
1180
- # Resource that represents attribute results. The list of suggestions for the
1181
- # attribute.
1180
+ # Resource that represents attribute results.
1182
1181
  class GoogleCloudRetailV2CompleteQueryResponseAttributeResult
1183
1182
  include Google::Apis::Core::Hashable
1184
1183
 
1185
- #
1184
+ # The list of suggestions for the attribute.
1186
1185
  # Corresponds to the JSON property `suggestions`
1187
1186
  # @return [Array<String>]
1188
1187
  attr_accessor :suggestions
@@ -4451,6 +4450,21 @@ module Google
4451
4450
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction]
4452
4451
  attr_accessor :oneway_synonyms_action
4453
4452
 
4453
+ # Pins one or more specified products to a specific position in the results. *
4454
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
4455
+ # or Condition.page_categories (for browse only), but can't specify both. *
4456
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
4457
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
4458
+ # position specified in the final result order. Example: Suppose the query is `
4459
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
4460
+ # then product with `pid1` will be pinned to the top position in the final
4461
+ # results. If multiple PinActions are matched to a single request the actions
4462
+ # will be processed from most to least recently updated. Pins to positions
4463
+ # larger than the max allowed page size of 120 are not allowed.
4464
+ # Corresponds to the JSON property `pinAction`
4465
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction]
4466
+ attr_accessor :pin_action
4467
+
4454
4468
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
4455
4469
  # Condition.query_terms. * Action Input: Request Query * Action Result:
4456
4470
  # Redirects shopper to provided uri.
@@ -4496,6 +4510,7 @@ module Google
4496
4510
  @force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
4497
4511
  @ignore_action = args[:ignore_action] if args.key?(:ignore_action)
4498
4512
  @oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
4513
+ @pin_action = args[:pin_action] if args.key?(:pin_action)
4499
4514
  @redirect_action = args[:redirect_action] if args.key?(:redirect_action)
4500
4515
  @remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
4501
4516
  @replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -4721,6 +4736,43 @@ module Google
4721
4736
  end
4722
4737
  end
4723
4738
 
4739
+ # Pins one or more specified products to a specific position in the results. *
4740
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
4741
+ # or Condition.page_categories (for browse only), but can't specify both. *
4742
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
4743
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
4744
+ # position specified in the final result order. Example: Suppose the query is `
4745
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
4746
+ # then product with `pid1` will be pinned to the top position in the final
4747
+ # results. If multiple PinActions are matched to a single request the actions
4748
+ # will be processed from most to least recently updated. Pins to positions
4749
+ # larger than the max allowed page size of 120 are not allowed.
4750
+ class GoogleCloudRetailV2RulePinAction
4751
+ include Google::Apis::Core::Hashable
4752
+
4753
+ # Required. A map of positions to product_ids. Partial matches per action are
4754
+ # allowed, if a certain position in the map is already filled that `[position,
4755
+ # product_id]` pair will be ignored but the rest may still be applied. This case
4756
+ # will only occur if multiple pin actions are matched to a single request, as
4757
+ # the map guarantees that pin positions are unique within the same action.
4758
+ # Duplicate product_ids are not permitted within a single pin map. The max size
4759
+ # of this map is 120, equivalent to the max [request page size](https://cloud.
4760
+ # google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
4761
+ # placements/search#request-body).
4762
+ # Corresponds to the JSON property `pinMap`
4763
+ # @return [Hash<String,String>]
4764
+ attr_accessor :pin_map
4765
+
4766
+ def initialize(**args)
4767
+ update!(**args)
4768
+ end
4769
+
4770
+ # Update properties of this object
4771
+ def update!(**args)
4772
+ @pin_map = args[:pin_map] if args.key?(:pin_map)
4773
+ end
4774
+ end
4775
+
4724
4776
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
4725
4777
  # Condition.query_terms. * Action Input: Request Query * Action Result:
4726
4778
  # Redirects shopper to provided uri.
@@ -4905,6 +4957,15 @@ module Google
4905
4957
  # @return [Hash<String,String>]
4906
4958
  attr_accessor :labels
4907
4959
 
4960
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn" [list](https:/
4961
+ # /www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [
4962
+ # Standardized codes](https://google.aip.dev/143). This field helps to better
4963
+ # interpret the query. If a value isn't specified, the query language code is
4964
+ # automatically detected, which may not be accurate.
4965
+ # Corresponds to the JSON property `languageCode`
4966
+ # @return [String]
4967
+ attr_accessor :language_code
4968
+
4908
4969
  # A 0-indexed integer that specifies the current offset (that is, starting
4909
4970
  # result location, amongst the Products deemed by the API as relevant) in search
4910
4971
  # results. This field is only considered if page_token is unset. If this field
@@ -4965,6 +5026,15 @@ module Google
4965
5026
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec]
4966
5027
  attr_accessor :query_expansion_spec
4967
5028
 
5029
+ # Optional. The Unicode country/region code (CLDR) of a location, such as "US"
5030
+ # and "419" [list](https://www.unicode.org/cldr/charts/46/supplemental/
5031
+ # territory_information.html). For more information, see [Standardized codes](
5032
+ # https://google.aip.dev/143). If set, then results will be boosted based on the
5033
+ # region_code provided.
5034
+ # Corresponds to the JSON property `regionCode`
5035
+ # @return [String]
5036
+ attr_accessor :region_code
5037
+
4968
5038
  # The search mode of the search request. If not specified, a single search
4969
5039
  # request triggers both product search and faceted search.
4970
5040
  # Corresponds to the JSON property `searchMode`
@@ -5041,6 +5111,7 @@ module Google
5041
5111
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
5042
5112
  @filter = args[:filter] if args.key?(:filter)
5043
5113
  @labels = args[:labels] if args.key?(:labels)
5114
+ @language_code = args[:language_code] if args.key?(:language_code)
5044
5115
  @offset = args[:offset] if args.key?(:offset)
5045
5116
  @order_by = args[:order_by] if args.key?(:order_by)
5046
5117
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -5049,6 +5120,7 @@ module Google
5049
5120
  @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
5050
5121
  @query = args[:query] if args.key?(:query)
5051
5122
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
5123
+ @region_code = args[:region_code] if args.key?(:region_code)
5052
5124
  @search_mode = args[:search_mode] if args.key?(:search_mode)
5053
5125
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
5054
5126
  @tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
@@ -5505,9 +5577,12 @@ module Google
5505
5577
  class GoogleCloudRetailV2SearchRequestTileNavigationSpec
5506
5578
  include Google::Apis::Core::Hashable
5507
5579
 
5508
- # This field specifies the tiles which are already clicked in client side. NOTE:
5509
- # This field is not being used for filtering search products. Client side should
5510
- # also put all the applied tiles in SearchRequest.filter.
5580
+ # This optional field specifies the tiles which are already clicked in client
5581
+ # side. While the feature works without this field set, particularly for an
5582
+ # initial query, it is highly recommended to set this field because it can
5583
+ # improve the quality of the search response and removes possible duplicate
5584
+ # tiles. NOTE: This field is not being used for filtering search products.
5585
+ # Client side should also put all the applied tiles in SearchRequest.filter.
5511
5586
  # Corresponds to the JSON property `appliedTiles`
5512
5587
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Tile>]
5513
5588
  attr_accessor :applied_tiles
@@ -6431,10 +6506,8 @@ module Google
6431
6506
  # added to cart. * `remove-from-cart`: Products being removed from cart. * `
6432
6507
  # category-page-view`: Special pages such as sale or promotion pages viewed. * `
6433
6508
  # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
6434
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
6435
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
6436
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
6437
- # User viewing a shopping cart.
6509
+ # viewed. * `purchase-complete`: User finishing a purchase. * `search`: Product
6510
+ # search. * `shopping-cart-page-view`: User viewing a shopping cart.
6438
6511
  # Corresponds to the JSON property `eventType`
6439
6512
  # @return [String]
6440
6513
  attr_accessor :event_type
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.108.0"
19
+ GEM_VERSION = "0.110.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241231"
25
+ REVISION = "20250221"
26
26
  end
27
27
  end
28
28
  end
@@ -772,6 +772,12 @@ module Google
772
772
  include Google::Apis::Core::JsonObjectSupport
773
773
  end
774
774
 
775
+ class GoogleCloudRetailV2RulePinAction
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
775
781
  class GoogleCloudRetailV2RuleRedirectAction
776
782
  class Representation < Google::Apis::Core::JsonRepresentation; end
777
783
 
@@ -2675,6 +2681,8 @@ module Google
2675
2681
 
2676
2682
  property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction::Representation
2677
2683
 
2684
+ property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction::Representation
2685
+
2678
2686
  property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRedirectAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRedirectAction::Representation
2679
2687
 
2680
2688
  property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRemoveFacetAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRemoveFacetAction::Representation
@@ -2742,6 +2750,13 @@ module Google
2742
2750
  end
2743
2751
  end
2744
2752
 
2753
+ class GoogleCloudRetailV2RulePinAction
2754
+ # @private
2755
+ class Representation < Google::Apis::Core::JsonRepresentation
2756
+ hash :pin_map, as: 'pinMap'
2757
+ end
2758
+ end
2759
+
2745
2760
  class GoogleCloudRetailV2RuleRedirectAction
2746
2761
  # @private
2747
2762
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2788,6 +2803,7 @@ module Google
2788
2803
 
2789
2804
  property :filter, as: 'filter'
2790
2805
  hash :labels, as: 'labels'
2806
+ property :language_code, as: 'languageCode'
2791
2807
  property :offset, as: 'offset'
2792
2808
  property :order_by, as: 'orderBy'
2793
2809
  collection :page_categories, as: 'pageCategories'
@@ -2798,6 +2814,7 @@ module Google
2798
2814
  property :query, as: 'query'
2799
2815
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
2800
2816
 
2817
+ property :region_code, as: 'regionCode'
2801
2818
  property :search_mode, as: 'searchMode'
2802
2819
  property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec::Representation
2803
2820
 
@@ -20,9 +20,9 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module RetailV2
23
- # Vertex AI Search for Retail API
23
+ # Vertex AI Search for commerce API
24
24
  #
25
- # Vertex AI Search for Retail API is made up of Retail Search, Browse and
25
+ # Vertex AI Search for commerce API is made up of Retail Search, Browse and
26
26
  # Recommendations. These discovery AI solutions help you implement personalized
27
27
  # search, browse and recommendations, based on machine learning models, across
28
28
  # your websites and mobile applications.
@@ -19,16 +19,16 @@ require 'google/apis/retail_v2/gem_version.rb'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- # Vertex AI Search for Retail API
22
+ # Vertex AI Search for commerce API
23
23
  #
24
- # Vertex AI Search for Retail API is made up of Retail Search, Browse and
24
+ # Vertex AI Search for commerce API is made up of Retail Search, Browse and
25
25
  # Recommendations. These discovery AI solutions help you implement personalized
26
26
  # search, browse and recommendations, based on machine learning models, across
27
27
  # your websites and mobile applications.
28
28
  #
29
29
  # @see https://cloud.google.com/recommendations
30
30
  module RetailV2
31
- # Version of the Vertex AI Search for Retail API this client connects to.
31
+ # Version of the Vertex AI Search for commerce API this client connects to.
32
32
  # This is NOT the gem version.
33
33
  VERSION = 'V2'
34
34
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.108.0
4
+ version: 0.110.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -30,13 +29,13 @@ dependencies:
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
33
- description: This is the simple REST client for Vertex AI Search for Retail API V2.
34
- Simple REST clients are Ruby client libraries that provide access to Google services
35
- via their HTTP REST API endpoints. These libraries are generated and updated automatically
36
- based on the discovery documents published by the service, and they handle most
37
- concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
- use this client to access the Vertex AI Search for Retail API, but note that some
39
- services may provide a separate modern client that is easier to use.
32
+ description: This is the simple REST client for Vertex AI Search for commerce API
33
+ V2. Simple REST clients are Ruby client libraries that provide access to Google
34
+ services via their HTTP REST API endpoints. These libraries are generated and updated
35
+ automatically based on the discovery documents published by the service, and they
36
+ handle most concerns such as authentication, pagination, retry, timeouts, and logging.
37
+ You can use this client to access the Vertex AI Search for commerce API, but note
38
+ that some services may provide a separate modern client that is easier to use.
40
39
  email: googleapis-packages@google.com
41
40
  executables: []
42
41
  extensions: []
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.108.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.110.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
- summary: Simple REST client for Vertex AI Search for Retail API V2
78
+ summary: Simple REST client for Vertex AI Search for commerce API V2
82
79
  test_files: []