google-apis-retail_v2 0.108.0 → 0.109.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: 53a99bcd01f678ae1f49d39948927b996c557dd67f3bee6366d240d66875ddd5
|
4
|
+
data.tar.gz: d7a47a6cfae677c27d9f29fb2e5da5ebfe17b42fac9407562eea1a43894999fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b66bf58cd1d27490496728182dbbe16bb5727cab791442de01df7f3179a9a28cd55632a11a08c1a2882e3321b05bf66e2de51181f1e4482d49ee1c8a94b2f49
|
7
|
+
data.tar.gz: a34e77109a19db75bf431c7b6224c50d9e3f437b151e2781f8e4a0ad590382655309cba5333ca6181f3965d375ef14c06f7b7c7435065a6d9b82c95772f614ff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.109.0 (2025-01-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250107
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
3
8
|
### v0.108.0 (2025-01-05)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20241231
|
@@ -4451,6 +4451,21 @@ module Google
|
|
4451
4451
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction]
|
4452
4452
|
attr_accessor :oneway_synonyms_action
|
4453
4453
|
|
4454
|
+
# Pins one or more specified products to a specific position in the results. *
|
4455
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
4456
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
4457
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
4458
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
4459
|
+
# position specified in the final result order. Example: Suppose the query is `
|
4460
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
4461
|
+
# then product with `pid1` will be pinned to the top position in the final
|
4462
|
+
# results. If multiple PinActions are matched to a single request the actions
|
4463
|
+
# will be processed from most to least recently updated. Pins to positions
|
4464
|
+
# larger than the max allowed page size of 120 are not allowed.
|
4465
|
+
# Corresponds to the JSON property `pinAction`
|
4466
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction]
|
4467
|
+
attr_accessor :pin_action
|
4468
|
+
|
4454
4469
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
4455
4470
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4456
4471
|
# Redirects shopper to provided uri.
|
@@ -4496,6 +4511,7 @@ module Google
|
|
4496
4511
|
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
|
4497
4512
|
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
|
4498
4513
|
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
|
4514
|
+
@pin_action = args[:pin_action] if args.key?(:pin_action)
|
4499
4515
|
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
|
4500
4516
|
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
|
4501
4517
|
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
|
@@ -4721,6 +4737,43 @@ module Google
|
|
4721
4737
|
end
|
4722
4738
|
end
|
4723
4739
|
|
4740
|
+
# Pins one or more specified products to a specific position in the results. *
|
4741
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
4742
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
4743
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
4744
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
4745
|
+
# position specified in the final result order. Example: Suppose the query is `
|
4746
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
4747
|
+
# then product with `pid1` will be pinned to the top position in the final
|
4748
|
+
# results. If multiple PinActions are matched to a single request the actions
|
4749
|
+
# will be processed from most to least recently updated. Pins to positions
|
4750
|
+
# larger than the max allowed page size of 120 are not allowed.
|
4751
|
+
class GoogleCloudRetailV2RulePinAction
|
4752
|
+
include Google::Apis::Core::Hashable
|
4753
|
+
|
4754
|
+
# Required. A map of positions to product_ids. Partial matches per action are
|
4755
|
+
# allowed, if a certain position in the map is already filled that `[position,
|
4756
|
+
# product_id]` pair will be ignored but the rest may still be applied. This case
|
4757
|
+
# will only occur if multiple pin actions are matched to a single request, as
|
4758
|
+
# the map guarantees that pin positions are unique within the same action.
|
4759
|
+
# Duplicate product_ids are not permitted within a single pin map. The max size
|
4760
|
+
# of this map is 120, equivalent to the max [request page size](https://cloud.
|
4761
|
+
# google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
|
4762
|
+
# placements/search#request-body).
|
4763
|
+
# Corresponds to the JSON property `pinMap`
|
4764
|
+
# @return [Hash<String,String>]
|
4765
|
+
attr_accessor :pin_map
|
4766
|
+
|
4767
|
+
def initialize(**args)
|
4768
|
+
update!(**args)
|
4769
|
+
end
|
4770
|
+
|
4771
|
+
# Update properties of this object
|
4772
|
+
def update!(**args)
|
4773
|
+
@pin_map = args[:pin_map] if args.key?(:pin_map)
|
4774
|
+
end
|
4775
|
+
end
|
4776
|
+
|
4724
4777
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
4725
4778
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4726
4779
|
# Redirects shopper to provided uri.
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.109.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250107"
|
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
|
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.
|
4
|
+
version: 0.109.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-
|
10
|
+
date: 2025-01-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.109.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.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.2
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Vertex AI Search for Retail API V2
|
82
79
|
test_files: []
|