Skip to content

Commit 00240fd

Browse files
feat: Automated regeneration of retail v2beta client (googleapis#21377)
Auto-created at 2025-01-12 10:34:29 +0000 using the toys pull request generator.
1 parent 7653455 commit 00240fd

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
@@ -300246,6 +300246,7 @@
300246300246
"/retail:v2beta/GoogleCloudRetailV2betaRule/forceReturnFacetAction": force_return_facet_action
300247300247
"/retail:v2beta/GoogleCloudRetailV2betaRule/ignoreAction": ignore_action
300248300248
"/retail:v2beta/GoogleCloudRetailV2betaRule/onewaySynonymsAction": oneway_synonyms_action
300249+
"/retail:v2beta/GoogleCloudRetailV2betaRule/pinAction": pin_action
300249300250
"/retail:v2beta/GoogleCloudRetailV2betaRule/redirectAction": redirect_action
300250300251
"/retail:v2beta/GoogleCloudRetailV2betaRule/removeFacetAction": remove_facet_action
300251300252
"/retail:v2beta/GoogleCloudRetailV2betaRule/replacementAction": replacement_action
@@ -300278,6 +300279,9 @@
300278300279
"/retail:v2beta/GoogleCloudRetailV2betaRuleOnewaySynonymsAction/queryTerms/query_term": query_term
300279300280
"/retail:v2beta/GoogleCloudRetailV2betaRuleOnewaySynonymsAction/synonyms": synonyms
300280300281
"/retail:v2beta/GoogleCloudRetailV2betaRuleOnewaySynonymsAction/synonyms/synonym": synonym
300282+
"/retail:v2beta/GoogleCloudRetailV2betaRulePinAction": google_cloud_retail_v2beta_rule_pin_action
300283+
"/retail:v2beta/GoogleCloudRetailV2betaRulePinAction/pinMap": pin_map
300284+
"/retail:v2beta/GoogleCloudRetailV2betaRulePinAction/pinMap/pin_map": pin_map
300281300285
"/retail:v2beta/GoogleCloudRetailV2betaRuleRedirectAction": google_cloud_retail_v2beta_rule_redirect_action
300282300286
"/retail:v2beta/GoogleCloudRetailV2betaRuleRedirectAction/redirectUri": redirect_uri
300283300287
"/retail:v2beta/GoogleCloudRetailV2betaRuleRemoveFacetAction": google_cloud_retail_v2beta_rule_remove_facet_action

generated/google-apis-retail_v2beta/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_v2beta
22

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

510
* Regenerated from discovery document revision 20241231

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7030,6 +7030,21 @@ class GoogleCloudRetailV2betaRule
70307030
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction]
70317031
attr_accessor :oneway_synonyms_action
70327032

7033+
# Pins one or more specified products to a specific position in the results. *
7034+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
7035+
# or Condition.page_categories (for browse only), but can't specify both. *
7036+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
7037+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
7038+
# position specified in the final result order. Example: Suppose the query is `
7039+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
7040+
# then product with `pid1` will be pinned to the top position in the final
7041+
# results. If multiple PinActions are matched to a single request the actions
7042+
# will be processed from most to least recently updated. Pins to positions
7043+
# larger than the max allowed page size of 120 are not allowed.
7044+
# Corresponds to the JSON property `pinAction`
7045+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction]
7046+
attr_accessor :pin_action
7047+
70337048
# Redirects a shopper to a specific page. * Rule Condition: Must specify
70347049
# Condition.query_terms. * Action Input: Request Query * Action Result:
70357050
# Redirects shopper to provided uri.
@@ -7075,6 +7090,7 @@ def update!(**args)
70757090
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
70767091
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
70777092
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
7093+
@pin_action = args[:pin_action] if args.key?(:pin_action)
70787094
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
70797095
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
70807096
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -7300,6 +7316,43 @@ def update!(**args)
73007316
end
73017317
end
73027318

7319+
# Pins one or more specified products to a specific position in the results. *
7320+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
7321+
# or Condition.page_categories (for browse only), but can't specify both. *
7322+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
7323+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
7324+
# position specified in the final result order. Example: Suppose the query is `
7325+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
7326+
# then product with `pid1` will be pinned to the top position in the final
7327+
# results. If multiple PinActions are matched to a single request the actions
7328+
# will be processed from most to least recently updated. Pins to positions
7329+
# larger than the max allowed page size of 120 are not allowed.
7330+
class GoogleCloudRetailV2betaRulePinAction
7331+
include Google::Apis::Core::Hashable
7332+
7333+
# Required. A map of positions to product_ids. Partial matches per action are
7334+
# allowed, if a certain position in the map is already filled that `[position,
7335+
# product_id]` pair will be ignored but the rest may still be applied. This case
7336+
# will only occur if multiple pin actions are matched to a single request, as
7337+
# the map guarantees that pin positions are unique within the same action.
7338+
# Duplicate product_ids are not permitted within a single pin map. The max size
7339+
# of this map is 120, equivalent to the max [request page size](https://cloud.
7340+
# google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
7341+
# placements/search#request-body).
7342+
# Corresponds to the JSON property `pinMap`
7343+
# @return [Hash<String,String>]
7344+
attr_accessor :pin_map
7345+
7346+
def initialize(**args)
7347+
update!(**args)
7348+
end
7349+
7350+
# Update properties of this object
7351+
def update!(**args)
7352+
@pin_map = args[:pin_map] if args.key?(:pin_map)
7353+
end
7354+
end
7355+
73037356
# Redirects a shopper to a specific page. * Rule Condition: Must specify
73047357
# Condition.query_terms. * Action Input: Request Query * Action Result:
73057358
# Redirects shopper to provided uri.

generated/google-apis-retail_v2beta/lib/google/apis/retail_v2beta/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 RetailV2beta
1818
# Version of the google-apis-retail_v2beta gem
19-
GEM_VERSION = "0.102.0"
19+
GEM_VERSION = "0.103.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_v2beta/lib/google/apis/retail_v2beta/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
13301330
include Google::Apis::Core::JsonObjectSupport
13311331
end
13321332

1333+
class GoogleCloudRetailV2betaRulePinAction
1334+
class Representation < Google::Apis::Core::JsonRepresentation; end
1335+
1336+
include Google::Apis::Core::JsonObjectSupport
1337+
end
1338+
13331339
class GoogleCloudRetailV2betaRuleRedirectAction
13341340
class Representation < Google::Apis::Core::JsonRepresentation; end
13351341

@@ -3518,6 +3524,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
35183524

35193525
property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction::Representation
35203526

3527+
property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction::Representation
3528+
35213529
property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction::Representation
35223530

35233531
property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction::Representation
@@ -3585,6 +3593,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
35853593
end
35863594
end
35873595

3596+
class GoogleCloudRetailV2betaRulePinAction
3597+
# @private
3598+
class Representation < Google::Apis::Core::JsonRepresentation
3599+
hash :pin_map, as: 'pinMap'
3600+
end
3601+
end
3602+
35883603
class GoogleCloudRetailV2betaRuleRedirectAction
35893604
# @private
35903605
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)