Skip to content

Commit e265905

Browse files
feat: Automated regeneration of retail v2alpha client (googleapis#21371)
Auto-created at 2025-01-12 10:27:48 +0000 using the toys pull request generator.
1 parent 4220da2 commit e265905

File tree

5 files changed

+80
-3
lines changed

5 files changed

+80
-3
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298664,6 +298664,7 @@
298664298664
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/forceReturnFacetAction": force_return_facet_action
298665298665
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/ignoreAction": ignore_action
298666298666
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/onewaySynonymsAction": oneway_synonyms_action
298667+
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/pinAction": pin_action
298667298668
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/redirectAction": redirect_action
298668298669
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/removeFacetAction": remove_facet_action
298669298670
"/retail:v2alpha/GoogleCloudRetailV2alphaRule/replacementAction": replacement_action
@@ -298696,6 +298697,9 @@
298696298697
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleOnewaySynonymsAction/queryTerms/query_term": query_term
298697298698
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleOnewaySynonymsAction/synonyms": synonyms
298698298699
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleOnewaySynonymsAction/synonyms/synonym": synonym
298700+
"/retail:v2alpha/GoogleCloudRetailV2alphaRulePinAction": google_cloud_retail_v2alpha_rule_pin_action
298701+
"/retail:v2alpha/GoogleCloudRetailV2alphaRulePinAction/pinMap": pin_map
298702+
"/retail:v2alpha/GoogleCloudRetailV2alphaRulePinAction/pinMap/pin_map": pin_map
298699298703
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleRedirectAction": google_cloud_retail_v2alpha_rule_redirect_action
298700298704
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleRedirectAction/redirectUri": redirect_uri
298701298705
"/retail:v2alpha/GoogleCloudRetailV2alphaRuleRemoveFacetAction": google_cloud_retail_v2alpha_rule_remove_facet_action

generated/google-apis-retail_v2alpha/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-retail_v2alpha
22

3+
### v0.108.0 (2025-01-12)
4+
5+
* Regenerated from discovery document revision 20250107
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.107.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20241231

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/classes.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6461,6 +6461,21 @@ class GoogleCloudRetailV2alphaRule
64616461
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction]
64626462
attr_accessor :oneway_synonyms_action
64636463

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+
64646479
# Redirects a shopper to a specific page. * Rule Condition: Must specify
64656480
# Condition.query_terms. * Action Input: Request Query * Action Result:
64666481
# Redirects shopper to provided uri.
@@ -6506,6 +6521,7 @@ def update!(**args)
65066521
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
65076522
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
65086523
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
6524+
@pin_action = args[:pin_action] if args.key?(:pin_action)
65096525
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
65106526
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
65116527
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -6731,6 +6747,43 @@ def update!(**args)
67316747
end
67326748
end
67336749

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+
67346787
# Redirects a shopper to a specific page. * Rule Condition: Must specify
67356788
# Condition.query_terms. * Action Input: Request Query * Action Result:
67366789
# Redirects shopper to provided uri.

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2alpha
1818
# Version of the google-apis-retail_v2alpha gem
19-
GEM_VERSION = "0.107.0"
19+
GEM_VERSION = "0.108.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241231"
25+
REVISION = "20250107"
2626
end
2727
end
2828
end

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11741174
include Google::Apis::Core::JsonObjectSupport
11751175
end
11761176

1177+
class GoogleCloudRetailV2alphaRulePinAction
1178+
class Representation < Google::Apis::Core::JsonRepresentation; end
1179+
1180+
include Google::Apis::Core::JsonObjectSupport
1181+
end
1182+
11771183
class GoogleCloudRetailV2alphaRuleRedirectAction
11781184
class Representation < Google::Apis::Core::JsonRepresentation; end
11791185

@@ -3391,6 +3397,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
33913397

33923398
property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction::Representation
33933399

3400+
property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction::Representation
3401+
33943402
property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction::Representation
33953403

33963404
property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction::Representation
@@ -3458,6 +3466,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
34583466
end
34593467
end
34603468

3469+
class GoogleCloudRetailV2alphaRulePinAction
3470+
# @private
3471+
class Representation < Google::Apis::Core::JsonRepresentation
3472+
hash :pin_map, as: 'pinMap'
3473+
end
3474+
end
3475+
34613476
class GoogleCloudRetailV2alphaRuleRedirectAction
34623477
# @private
34633478
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)