google-apis-retail_v2alpha 0.107.0 → 0.108.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cd1a34e2d99550069ac0acdccff035eb50acc77910e60039a22ffe9364f5253
|
4
|
+
data.tar.gz: 05f1b5f1e765ee107985582dbae0250631ea195231f9796be8cfb5d6aaaa7507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b0c2945c976bf7273edb4fd3c54964caa8e9e459e119049c9ba35ae86769663bb66b9ed5966fdfb76edbb776fa26f800f027184fd0e163eda6146cdef971c6
|
7
|
+
data.tar.gz: 0f2142c017142504646a5d027dbf30ee013caa70a088127a4766f4c4b34f553d46ba6c71913be2f072944dabf535f36a520c7c8f73522fbf88cb5ad3447cdb7d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.108.0 (2025-01-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250107
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
3
8
|
### v0.107.0 (2025-01-05)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20241231
|
@@ -6461,6 +6461,21 @@ module Google
|
|
6461
6461
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction]
|
6462
6462
|
attr_accessor :oneway_synonyms_action
|
6463
6463
|
|
6464
|
+
# Pins one or more specified products to a specific position in the results. *
|
6465
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
6466
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
6467
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
6468
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
6469
|
+
# position specified in the final result order. Example: Suppose the query is `
|
6470
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
6471
|
+
# then product with `pid1` will be pinned to the top position in the final
|
6472
|
+
# results. If multiple PinActions are matched to a single request the actions
|
6473
|
+
# will be processed from most to least recently updated. Pins to positions
|
6474
|
+
# larger than the max allowed page size of 120 are not allowed.
|
6475
|
+
# Corresponds to the JSON property `pinAction`
|
6476
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction]
|
6477
|
+
attr_accessor :pin_action
|
6478
|
+
|
6464
6479
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
6465
6480
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
6466
6481
|
# Redirects shopper to provided uri.
|
@@ -6506,6 +6521,7 @@ module Google
|
|
6506
6521
|
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
|
6507
6522
|
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
|
6508
6523
|
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
|
6524
|
+
@pin_action = args[:pin_action] if args.key?(:pin_action)
|
6509
6525
|
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
|
6510
6526
|
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
|
6511
6527
|
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
|
@@ -6731,6 +6747,43 @@ module Google
|
|
6731
6747
|
end
|
6732
6748
|
end
|
6733
6749
|
|
6750
|
+
# Pins one or more specified products to a specific position in the results. *
|
6751
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
6752
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
6753
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
6754
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
6755
|
+
# position specified in the final result order. Example: Suppose the query is `
|
6756
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
6757
|
+
# then product with `pid1` will be pinned to the top position in the final
|
6758
|
+
# results. If multiple PinActions are matched to a single request the actions
|
6759
|
+
# will be processed from most to least recently updated. Pins to positions
|
6760
|
+
# larger than the max allowed page size of 120 are not allowed.
|
6761
|
+
class GoogleCloudRetailV2alphaRulePinAction
|
6762
|
+
include Google::Apis::Core::Hashable
|
6763
|
+
|
6764
|
+
# Required. A map of positions to product_ids. Partial matches per action are
|
6765
|
+
# allowed, if a certain position in the map is already filled that `[position,
|
6766
|
+
# product_id]` pair will be ignored but the rest may still be applied. This case
|
6767
|
+
# will only occur if multiple pin actions are matched to a single request, as
|
6768
|
+
# the map guarantees that pin positions are unique within the same action.
|
6769
|
+
# Duplicate product_ids are not permitted within a single pin map. The max size
|
6770
|
+
# of this map is 120, equivalent to the max [request page size](https://cloud.
|
6771
|
+
# google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
|
6772
|
+
# placements/search#request-body).
|
6773
|
+
# Corresponds to the JSON property `pinMap`
|
6774
|
+
# @return [Hash<String,String>]
|
6775
|
+
attr_accessor :pin_map
|
6776
|
+
|
6777
|
+
def initialize(**args)
|
6778
|
+
update!(**args)
|
6779
|
+
end
|
6780
|
+
|
6781
|
+
# Update properties of this object
|
6782
|
+
def update!(**args)
|
6783
|
+
@pin_map = args[:pin_map] if args.key?(:pin_map)
|
6784
|
+
end
|
6785
|
+
end
|
6786
|
+
|
6734
6787
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
6735
6788
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
6736
6789
|
# Redirects shopper to provided uri.
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.108.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
|
@@ -1174,6 +1174,12 @@ module Google
|
|
1174
1174
|
include Google::Apis::Core::JsonObjectSupport
|
1175
1175
|
end
|
1176
1176
|
|
1177
|
+
class GoogleCloudRetailV2alphaRulePinAction
|
1178
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1179
|
+
|
1180
|
+
include Google::Apis::Core::JsonObjectSupport
|
1181
|
+
end
|
1182
|
+
|
1177
1183
|
class GoogleCloudRetailV2alphaRuleRedirectAction
|
1178
1184
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1179
1185
|
|
@@ -3391,6 +3397,8 @@ module Google
|
|
3391
3397
|
|
3392
3398
|
property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction::Representation
|
3393
3399
|
|
3400
|
+
property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction::Representation
|
3401
|
+
|
3394
3402
|
property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction::Representation
|
3395
3403
|
|
3396
3404
|
property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction::Representation
|
@@ -3458,6 +3466,13 @@ module Google
|
|
3458
3466
|
end
|
3459
3467
|
end
|
3460
3468
|
|
3469
|
+
class GoogleCloudRetailV2alphaRulePinAction
|
3470
|
+
# @private
|
3471
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3472
|
+
hash :pin_map, as: 'pinMap'
|
3473
|
+
end
|
3474
|
+
end
|
3475
|
+
|
3461
3476
|
class GoogleCloudRetailV2alphaRuleRedirectAction
|
3462
3477
|
# @private
|
3463
3478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.108.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_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.108.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
|
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 V2alpha
|
82
79
|
test_files: []
|