google-apis-retail_v2beta 0.102.0 → 0.103.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: f9a93314ac1819322ba4e424d74aa7bc13a377ece1abc9439fa10cd1a997973d
4
- data.tar.gz: 64102c49e10e9b4c0b5801b4e0d33522bb992bfedda9e790525bf3bba2a591c5
3
+ metadata.gz: 0a783b3fbb3f22357c570a3d26baa34a157cde1b7eb06ee51a8c963f4fc9c9fc
4
+ data.tar.gz: 3e7840994e851bdfdb8a3d4c057f1106d09cde76975cb868c03c789c3164ed4e
5
5
  SHA512:
6
- metadata.gz: abd16936a73a7f471f5fad5ce92a3c9a248114f797ac9e1b5bb2729db2289154a33ab3728d3c65212c410b40ba3fec15ca488da9d37c6f3eb52ece176a66f95a
7
- data.tar.gz: ecb8a251ce6464e61ba5992fe898f9056ee6be8d0c34328ff0037f2d1a3b070fac3dd7682910da646ffaf8637f76472349368f718567761af06de275ee2240ef
6
+ metadata.gz: dcad1557d18afc701777b3932d9b8b765a1d11d9c34386dbac38f6ba9e6c01947a3b7df54aae20cd74c42a13bd8f498bcdd0a03fa373a09a6d5d995c9e9c05ee
7
+ data.tar.gz: 807376acdc92a9df8c2b3de9454afbd3948820ec6bafc4d2c19222f26e4101e5e5926bd8fad9bfbed4d4fdd81514c9f05f16729e097e2307c74153bd5c702110
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.103.0 (2025-01-12)
4
+
5
+ * Regenerated from discovery document revision 20250107
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.102.0 (2025-01-05)
4
9
 
5
10
  * Regenerated from discovery document revision 20241231
@@ -7030,6 +7030,21 @@ module Google
7030
7030
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction]
7031
7031
  attr_accessor :oneway_synonyms_action
7032
7032
 
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
+
7033
7048
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
7034
7049
  # Condition.query_terms. * Action Input: Request Query * Action Result:
7035
7050
  # Redirects shopper to provided uri.
@@ -7075,6 +7090,7 @@ module Google
7075
7090
  @force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
7076
7091
  @ignore_action = args[:ignore_action] if args.key?(:ignore_action)
7077
7092
  @oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
7093
+ @pin_action = args[:pin_action] if args.key?(:pin_action)
7078
7094
  @redirect_action = args[:redirect_action] if args.key?(:redirect_action)
7079
7095
  @remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
7080
7096
  @replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -7300,6 +7316,43 @@ module Google
7300
7316
  end
7301
7317
  end
7302
7318
 
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
+
7303
7356
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
7304
7357
  # Condition.query_terms. * Action Input: Request Query * Action Result:
7305
7358
  # Redirects shopper to provided uri.
@@ -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.103.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 = "20250107"
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
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.103.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-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_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.103.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.2
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Vertex AI Search for Retail API V2beta
82
79
  test_files: []