google-apis-retail_v2beta 0.102.0 → 0.104.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: f9a93314ac1819322ba4e424d74aa7bc13a377ece1abc9439fa10cd1a997973d
4
- data.tar.gz: 64102c49e10e9b4c0b5801b4e0d33522bb992bfedda9e790525bf3bba2a591c5
3
+ metadata.gz: 222d45b6e80f9ae174e870e5e3fb7de1104a9df1979aebc322abd764a3c97c85
4
+ data.tar.gz: b4f7b050eb6049aa75c71b2d756324db2d994e72a03795288a479ce17c8e6d14
5
5
  SHA512:
6
- metadata.gz: abd16936a73a7f471f5fad5ce92a3c9a248114f797ac9e1b5bb2729db2289154a33ab3728d3c65212c410b40ba3fec15ca488da9d37c6f3eb52ece176a66f95a
7
- data.tar.gz: ecb8a251ce6464e61ba5992fe898f9056ee6be8d0c34328ff0037f2d1a3b070fac3dd7682910da646ffaf8637f76472349368f718567761af06de275ee2240ef
6
+ metadata.gz: ff6c0dc4ae3a99ed5a43d7c27d49473a374670d0209fa038bf171321982cabf56bc0e44e92ed2d678ee6a98269967509dd1419b7f5925d2e193574abb2101287
7
+ data.tar.gz: 7ca97ea42a4fc1d27a1247847a84b29b18da53d820c5027193d2df543d81ccf42c29cb627303d7d696d01cb4a83c8a01cd13443ee17acd2694bd411d277a82a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.104.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250221
6
+
7
+ ### v0.103.0 (2025-01-12)
8
+
9
+ * Regenerated from discovery document revision 20250107
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.102.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 V2beta of the Vertex AI Search for Retail API
1
+ # Simple REST client for version V2beta of the Vertex AI Search for commerce API
2
2
 
3
- This is a simple client library for version V2beta of the Vertex AI Search for Retail API. It provides:
3
+ This is a simple client library for version V2beta 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::RetailV2beta::CloudRetailService class reference docs}.
68
+ For reference information on specific calls in the Vertex AI Search for commerce API, see the {Google::Apis::RetailV2beta::CloudRetailService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -3469,12 +3469,11 @@ module Google
3469
3469
  end
3470
3470
  end
3471
3471
 
3472
- # Resource that represents attribute results. The list of suggestions for the
3473
- # attribute.
3472
+ # Resource that represents attribute results.
3474
3473
  class GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult
3475
3474
  include Google::Apis::Core::Hashable
3476
3475
 
3477
- #
3476
+ # The list of suggestions for the attribute.
3478
3477
  # Corresponds to the JSON property `suggestions`
3479
3478
  # @return [Array<String>]
3480
3479
  attr_accessor :suggestions
@@ -7030,6 +7029,21 @@ module Google
7030
7029
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction]
7031
7030
  attr_accessor :oneway_synonyms_action
7032
7031
 
7032
+ # Pins one or more specified products to a specific position in the results. *
7033
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
7034
+ # or Condition.page_categories (for browse only), but can't specify both. *
7035
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
7036
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
7037
+ # position specified in the final result order. Example: Suppose the query is `
7038
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
7039
+ # then product with `pid1` will be pinned to the top position in the final
7040
+ # results. If multiple PinActions are matched to a single request the actions
7041
+ # will be processed from most to least recently updated. Pins to positions
7042
+ # larger than the max allowed page size of 120 are not allowed.
7043
+ # Corresponds to the JSON property `pinAction`
7044
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction]
7045
+ attr_accessor :pin_action
7046
+
7033
7047
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
7034
7048
  # Condition.query_terms. * Action Input: Request Query * Action Result:
7035
7049
  # Redirects shopper to provided uri.
@@ -7075,6 +7089,7 @@ module Google
7075
7089
  @force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
7076
7090
  @ignore_action = args[:ignore_action] if args.key?(:ignore_action)
7077
7091
  @oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
7092
+ @pin_action = args[:pin_action] if args.key?(:pin_action)
7078
7093
  @redirect_action = args[:redirect_action] if args.key?(:redirect_action)
7079
7094
  @remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
7080
7095
  @replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -7300,6 +7315,43 @@ module Google
7300
7315
  end
7301
7316
  end
7302
7317
 
7318
+ # Pins one or more specified products to a specific position in the results. *
7319
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
7320
+ # or Condition.page_categories (for browse only), but can't specify both. *
7321
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
7322
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
7323
+ # position specified in the final result order. Example: Suppose the query is `
7324
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
7325
+ # then product with `pid1` will be pinned to the top position in the final
7326
+ # results. If multiple PinActions are matched to a single request the actions
7327
+ # will be processed from most to least recently updated. Pins to positions
7328
+ # larger than the max allowed page size of 120 are not allowed.
7329
+ class GoogleCloudRetailV2betaRulePinAction
7330
+ include Google::Apis::Core::Hashable
7331
+
7332
+ # Required. A map of positions to product_ids. Partial matches per action are
7333
+ # allowed, if a certain position in the map is already filled that `[position,
7334
+ # product_id]` pair will be ignored but the rest may still be applied. This case
7335
+ # will only occur if multiple pin actions are matched to a single request, as
7336
+ # the map guarantees that pin positions are unique within the same action.
7337
+ # Duplicate product_ids are not permitted within a single pin map. The max size
7338
+ # of this map is 120, equivalent to the max [request page size](https://cloud.
7339
+ # google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
7340
+ # placements/search#request-body).
7341
+ # Corresponds to the JSON property `pinMap`
7342
+ # @return [Hash<String,String>]
7343
+ attr_accessor :pin_map
7344
+
7345
+ def initialize(**args)
7346
+ update!(**args)
7347
+ end
7348
+
7349
+ # Update properties of this object
7350
+ def update!(**args)
7351
+ @pin_map = args[:pin_map] if args.key?(:pin_map)
7352
+ end
7353
+ end
7354
+
7303
7355
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
7304
7356
  # Condition.query_terms. * Action Input: Request Query * Action Result:
7305
7357
  # Redirects shopper to provided uri.
@@ -7484,6 +7536,15 @@ module Google
7484
7536
  # @return [Hash<String,String>]
7485
7537
  attr_accessor :labels
7486
7538
 
7539
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn" [list](https:/
7540
+ # /www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [
7541
+ # Standardized codes](https://google.aip.dev/143). This field helps to better
7542
+ # interpret the query. If a value isn't specified, the query language code is
7543
+ # automatically detected, which may not be accurate.
7544
+ # Corresponds to the JSON property `languageCode`
7545
+ # @return [String]
7546
+ attr_accessor :language_code
7547
+
7487
7548
  # A 0-indexed integer that specifies the current offset (that is, starting
7488
7549
  # result location, amongst the Products deemed by the API as relevant) in search
7489
7550
  # results. This field is only considered if page_token is unset. If this field
@@ -7544,6 +7605,15 @@ module Google
7544
7605
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec]
7545
7606
  attr_accessor :query_expansion_spec
7546
7607
 
7608
+ # Optional. The Unicode country/region code (CLDR) of a location, such as "US"
7609
+ # and "419" [list](https://www.unicode.org/cldr/charts/46/supplemental/
7610
+ # territory_information.html). For more information, see [Standardized codes](
7611
+ # https://google.aip.dev/143). If set, then results will be boosted based on the
7612
+ # region_code provided.
7613
+ # Corresponds to the JSON property `regionCode`
7614
+ # @return [String]
7615
+ attr_accessor :region_code
7616
+
7547
7617
  # The search mode of the search request. If not specified, a single search
7548
7618
  # request triggers both product search and faceted search.
7549
7619
  # Corresponds to the JSON property `searchMode`
@@ -7620,6 +7690,7 @@ module Google
7620
7690
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
7621
7691
  @filter = args[:filter] if args.key?(:filter)
7622
7692
  @labels = args[:labels] if args.key?(:labels)
7693
+ @language_code = args[:language_code] if args.key?(:language_code)
7623
7694
  @offset = args[:offset] if args.key?(:offset)
7624
7695
  @order_by = args[:order_by] if args.key?(:order_by)
7625
7696
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -7628,6 +7699,7 @@ module Google
7628
7699
  @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
7629
7700
  @query = args[:query] if args.key?(:query)
7630
7701
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
7702
+ @region_code = args[:region_code] if args.key?(:region_code)
7631
7703
  @search_mode = args[:search_mode] if args.key?(:search_mode)
7632
7704
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
7633
7705
  @tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
@@ -8084,9 +8156,12 @@ module Google
8084
8156
  class GoogleCloudRetailV2betaSearchRequestTileNavigationSpec
8085
8157
  include Google::Apis::Core::Hashable
8086
8158
 
8087
- # This field specifies the tiles which are already clicked in client side. NOTE:
8088
- # This field is not being used for filtering search products. Client side should
8089
- # also put all the applied tiles in SearchRequest.filter.
8159
+ # This optional field specifies the tiles which are already clicked in client
8160
+ # side. While the feature works without this field set, particularly for an
8161
+ # initial query, it is highly recommended to set this field because it can
8162
+ # improve the quality of the search response and removes possible duplicate
8163
+ # tiles. NOTE: This field is not being used for filtering search products.
8164
+ # Client side should also put all the applied tiles in SearchRequest.filter.
8090
8165
  # Corresponds to the JSON property `appliedTiles`
8091
8166
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaTile>]
8092
8167
  attr_accessor :applied_tiles
@@ -9010,10 +9085,8 @@ module Google
9010
9085
  # added to cart. * `remove-from-cart`: Products being removed from cart. * `
9011
9086
  # category-page-view`: Special pages such as sale or promotion pages viewed. * `
9012
9087
  # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
9013
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
9014
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
9015
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
9016
- # User viewing a shopping cart.
9088
+ # viewed. * `purchase-complete`: User finishing a purchase. * `search`: Product
9089
+ # search. * `shopping-cart-page-view`: User viewing a shopping cart.
9017
9090
  # Corresponds to the JSON property `eventType`
9018
9091
  # @return [String]
9019
9092
  attr_accessor :event_type
@@ -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.102.0"
19
+ GEM_VERSION = "0.104.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
@@ -1330,6 +1330,12 @@ module Google
1330
1330
  include Google::Apis::Core::JsonObjectSupport
1331
1331
  end
1332
1332
 
1333
+ class GoogleCloudRetailV2betaRulePinAction
1334
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1335
+
1336
+ include Google::Apis::Core::JsonObjectSupport
1337
+ end
1338
+
1333
1339
  class GoogleCloudRetailV2betaRuleRedirectAction
1334
1340
  class Representation < Google::Apis::Core::JsonRepresentation; end
1335
1341
 
@@ -3518,6 +3524,8 @@ module Google
3518
3524
 
3519
3525
  property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction::Representation
3520
3526
 
3527
+ property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction::Representation
3528
+
3521
3529
  property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction::Representation
3522
3530
 
3523
3531
  property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction::Representation
@@ -3585,6 +3593,13 @@ module Google
3585
3593
  end
3586
3594
  end
3587
3595
 
3596
+ class GoogleCloudRetailV2betaRulePinAction
3597
+ # @private
3598
+ class Representation < Google::Apis::Core::JsonRepresentation
3599
+ hash :pin_map, as: 'pinMap'
3600
+ end
3601
+ end
3602
+
3588
3603
  class GoogleCloudRetailV2betaRuleRedirectAction
3589
3604
  # @private
3590
3605
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3631,6 +3646,7 @@ module Google
3631
3646
 
3632
3647
  property :filter, as: 'filter'
3633
3648
  hash :labels, as: 'labels'
3649
+ property :language_code, as: 'languageCode'
3634
3650
  property :offset, as: 'offset'
3635
3651
  property :order_by, as: 'orderBy'
3636
3652
  collection :page_categories, as: 'pageCategories'
@@ -3641,6 +3657,7 @@ module Google
3641
3657
  property :query, as: 'query'
3642
3658
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec::Representation
3643
3659
 
3660
+ property :region_code, as: 'regionCode'
3644
3661
  property :search_mode, as: 'searchMode'
3645
3662
  property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec::Representation
3646
3663
 
@@ -20,9 +20,9 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module RetailV2beta
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_v2beta/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 RetailV2beta
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 = 'V2beta'
34
34
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.102.0
4
+ version: 0.104.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 V2beta.
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
+ V2beta. 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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.102.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.104.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
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 V2beta
78
+ summary: Simple REST client for Vertex AI Search for commerce API V2beta
82
79
  test_files: []