google-apis-retail_v2beta 0.101.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: 9db3f430aadc662d12b1d0b87207cc4ae401b3d4079f51555b8cfc178c6e8b77
4
- data.tar.gz: b0b8d623335f4b6d05bf7f5dd416f8fef23951831619302eb12b616fb86fe901
3
+ metadata.gz: 0a783b3fbb3f22357c570a3d26baa34a157cde1b7eb06ee51a8c963f4fc9c9fc
4
+ data.tar.gz: 3e7840994e851bdfdb8a3d4c057f1106d09cde76975cb868c03c789c3164ed4e
5
5
  SHA512:
6
- metadata.gz: 6e0a19041dd59068d2bd856f19414bc275c676a9abc6695d37a6ac2f131419dc121b440455c257228a77d4964e375495de1f48141b742b09b506904de5d8978d
7
- data.tar.gz: 117f38cbfd94ecffe4dfcefd750aa723474391feab18b39a5307c95b263b6d84d42efcd49e577c24d703b4e1320cb049392fd26cc80f545720d25c96a8132134
6
+ metadata.gz: dcad1557d18afc701777b3932d9b8b765a1d11d9c34386dbac38f6ba9e6c01947a3b7df54aae20cd74c42a13bd8f498bcdd0a03fa373a09a6d5d995c9e9c05ee
7
+ data.tar.gz: 807376acdc92a9df8c2b3de9454afbd3948820ec6bafc4d2c19222f26e4101e5e5926bd8fad9bfbed4d4fdd81514c9f05f16729e097e2307c74153bd5c702110
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.102.0 (2025-01-05)
9
+
10
+ * Regenerated from discovery document revision 20241231
11
+
3
12
  ### v0.101.0 (2024-12-15)
4
13
 
5
14
  * Regenerated from discovery document revision 20241205
@@ -3325,6 +3325,58 @@ module Google
3325
3325
  end
3326
3326
  end
3327
3327
 
3328
+ # Request message for CollectUserEvent method.
3329
+ class GoogleCloudRetailV2betaCollectUserEventRequest
3330
+ include Google::Apis::Core::Hashable
3331
+
3332
+ # The event timestamp in milliseconds. This prevents browser caching of
3333
+ # otherwise identical get requests. The name is abbreviated to reduce the
3334
+ # payload bytes.
3335
+ # Corresponds to the JSON property `ets`
3336
+ # @return [Fixnum]
3337
+ attr_accessor :ets
3338
+
3339
+ # The prebuilt rule name that can convert a specific type of raw_json. For
3340
+ # example: "ga4_bq" rule for the GA4 user event schema.
3341
+ # Corresponds to the JSON property `prebuiltRule`
3342
+ # @return [String]
3343
+ attr_accessor :prebuilt_rule
3344
+
3345
+ # An arbitrary serialized JSON string that contains necessary information that
3346
+ # can comprise a user event. When this field is specified, the user_event field
3347
+ # will be ignored. Note: line-delimited JSON is not supported, a single JSON
3348
+ # only.
3349
+ # Corresponds to the JSON property `rawJson`
3350
+ # @return [String]
3351
+ attr_accessor :raw_json
3352
+
3353
+ # The URL including cgi-parameters but excluding the hash fragment with a length
3354
+ # limit of 5,000 characters. This is often more useful than the referer URL,
3355
+ # because many browsers only send the domain for 3rd party requests.
3356
+ # Corresponds to the JSON property `uri`
3357
+ # @return [String]
3358
+ attr_accessor :uri
3359
+
3360
+ # Required. URL encoded UserEvent proto with a length limit of 2,000,000
3361
+ # characters.
3362
+ # Corresponds to the JSON property `userEvent`
3363
+ # @return [String]
3364
+ attr_accessor :user_event
3365
+
3366
+ def initialize(**args)
3367
+ update!(**args)
3368
+ end
3369
+
3370
+ # Update properties of this object
3371
+ def update!(**args)
3372
+ @ets = args[:ets] if args.key?(:ets)
3373
+ @prebuilt_rule = args[:prebuilt_rule] if args.key?(:prebuilt_rule)
3374
+ @raw_json = args[:raw_json] if args.key?(:raw_json)
3375
+ @uri = args[:uri] if args.key?(:uri)
3376
+ @user_event = args[:user_event] if args.key?(:user_event)
3377
+ end
3378
+ end
3379
+
3328
3380
  # The color information of a Product.
3329
3381
  class GoogleCloudRetailV2betaColorInfo
3330
3382
  include Google::Apis::Core::Hashable
@@ -3337,7 +3389,10 @@ module Google
3337
3389
  # be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
3338
3390
  # INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
3339
3391
  # https://support.google.com/merchants/answer/6324487). Schema.org property [
3340
- # Product.color](https://schema.org/color).
3392
+ # Product.color](https://schema.org/color). The colorFamilies field as a system
3393
+ # attribute is not a required field but strongly recommended to be specified.
3394
+ # Google Search models treat this field as more important than a custom product
3395
+ # attribute when specified.
3341
3396
  # Corresponds to the JSON property `colorFamilies`
3342
3397
  # @return [Array<String>]
3343
3398
  attr_accessor :color_families
@@ -6975,6 +7030,21 @@ module Google
6975
7030
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction]
6976
7031
  attr_accessor :oneway_synonyms_action
6977
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
+
6978
7048
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
6979
7049
  # Condition.query_terms. * Action Input: Request Query * Action Result:
6980
7050
  # Redirects shopper to provided uri.
@@ -7020,6 +7090,7 @@ module Google
7020
7090
  @force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
7021
7091
  @ignore_action = args[:ignore_action] if args.key?(:ignore_action)
7022
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)
7023
7094
  @redirect_action = args[:redirect_action] if args.key?(:redirect_action)
7024
7095
  @remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
7025
7096
  @replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -7245,6 +7316,43 @@ module Google
7245
7316
  end
7246
7317
  end
7247
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
+
7248
7356
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
7249
7357
  # Condition.query_terms. * Action Input: Request Query * Action Result:
7250
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.101.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 = "20241205"
25
+ REVISION = "20250107"
26
26
  end
27
27
  end
28
28
  end
@@ -706,6 +706,12 @@ module Google
706
706
  include Google::Apis::Core::JsonObjectSupport
707
707
  end
708
708
 
709
+ class GoogleCloudRetailV2betaCollectUserEventRequest
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
709
715
  class GoogleCloudRetailV2betaColorInfo
710
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
711
717
 
@@ -1324,6 +1330,12 @@ module Google
1324
1330
  include Google::Apis::Core::JsonObjectSupport
1325
1331
  end
1326
1332
 
1333
+ class GoogleCloudRetailV2betaRulePinAction
1334
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1335
+
1336
+ include Google::Apis::Core::JsonObjectSupport
1337
+ end
1338
+
1327
1339
  class GoogleCloudRetailV2betaRuleRedirectAction
1328
1340
  class Representation < Google::Apis::Core::JsonRepresentation; end
1329
1341
 
@@ -2568,6 +2580,17 @@ module Google
2568
2580
  end
2569
2581
  end
2570
2582
 
2583
+ class GoogleCloudRetailV2betaCollectUserEventRequest
2584
+ # @private
2585
+ class Representation < Google::Apis::Core::JsonRepresentation
2586
+ property :ets, :numeric_string => true, as: 'ets'
2587
+ property :prebuilt_rule, as: 'prebuiltRule'
2588
+ property :raw_json, as: 'rawJson'
2589
+ property :uri, as: 'uri'
2590
+ property :user_event, as: 'userEvent'
2591
+ end
2592
+ end
2593
+
2571
2594
  class GoogleCloudRetailV2betaColorInfo
2572
2595
  # @private
2573
2596
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3501,6 +3524,8 @@ module Google
3501
3524
 
3502
3525
  property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleOnewaySynonymsAction::Representation
3503
3526
 
3527
+ property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRulePinAction::Representation
3528
+
3504
3529
  property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRedirectAction::Representation
3505
3530
 
3506
3531
  property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleRemoveFacetAction::Representation
@@ -3568,6 +3593,13 @@ module Google
3568
3593
  end
3569
3594
  end
3570
3595
 
3596
+ class GoogleCloudRetailV2betaRulePinAction
3597
+ # @private
3598
+ class Representation < Google::Apis::Core::JsonRepresentation
3599
+ hash :pin_map, as: 'pinMap'
3600
+ end
3601
+ end
3602
+
3571
3603
  class GoogleCloudRetailV2betaRuleRedirectAction
3572
3604
  # @private
3573
3605
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2501,32 +2501,15 @@ module Google
2501
2501
  execute_or_queue_command(command, &block)
2502
2502
  end
2503
2503
 
2504
- # Writes a single user event from the browser. This uses a GET request to due to
2505
- # browser restriction of POST-ing to a 3rd party domain. This method is used
2506
- # only by the Retail API JavaScript pixel and Google Tag Manager. Users should
2507
- # not call this method directly.
2504
+ # Writes a single user event from the browser. For larger user event payload
2505
+ # over 16 KB, the POST method should be used instead, otherwise a 400 Bad
2506
+ # Request error is returned. This method is used only by the Retail API
2507
+ # JavaScript pixel and Google Tag Manager. Users should not call this method
2508
+ # directly.
2508
2509
  # @param [String] parent
2509
2510
  # Required. The parent catalog name, such as `projects/1234/locations/global/
2510
2511
  # catalogs/default_catalog`.
2511
- # @param [Fixnum] ets
2512
- # The event timestamp in milliseconds. This prevents browser caching of
2513
- # otherwise identical get requests. The name is abbreviated to reduce the
2514
- # payload bytes.
2515
- # @param [String] prebuilt_rule
2516
- # The prebuilt rule name that can convert a specific type of raw_json. For
2517
- # example: "ga4_bq" rule for the GA4 user event schema.
2518
- # @param [String] raw_json
2519
- # An arbitrary serialized JSON string that contains necessary information that
2520
- # can comprise a user event. When this field is specified, the user_event field
2521
- # will be ignored. Note: line-delimited JSON is not supported, a single JSON
2522
- # only.
2523
- # @param [String] uri
2524
- # The URL including cgi-parameters but excluding the hash fragment with a length
2525
- # limit of 5,000 characters. This is often more useful than the referer URL,
2526
- # because many browsers only send the domain for 3rd party requests.
2527
- # @param [String] user_event
2528
- # Required. URL encoded UserEvent proto with a length limit of 2,000,000
2529
- # characters.
2512
+ # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCollectUserEventRequest] google_cloud_retail_v2beta_collect_user_event_request_object
2530
2513
  # @param [String] fields
2531
2514
  # Selector specifying which fields to include in a partial response.
2532
2515
  # @param [String] quota_user
@@ -2544,16 +2527,13 @@ module Google
2544
2527
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2545
2528
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2546
2529
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2547
- def collect_project_location_catalog_user_event(parent, ets: nil, prebuilt_rule: nil, raw_json: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil, &block)
2548
- command = make_simple_command(:get, 'v2beta/{+parent}/userEvents:collect', options)
2530
+ def collect_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_collect_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2531
+ command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:collect', options)
2532
+ command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCollectUserEventRequest::Representation
2533
+ command.request_object = google_cloud_retail_v2beta_collect_user_event_request_object
2549
2534
  command.response_representation = Google::Apis::RetailV2beta::GoogleApiHttpBody::Representation
2550
2535
  command.response_class = Google::Apis::RetailV2beta::GoogleApiHttpBody
2551
2536
  command.params['parent'] = parent unless parent.nil?
2552
- command.query['ets'] = ets unless ets.nil?
2553
- command.query['prebuiltRule'] = prebuilt_rule unless prebuilt_rule.nil?
2554
- command.query['rawJson'] = raw_json unless raw_json.nil?
2555
- command.query['uri'] = uri unless uri.nil?
2556
- command.query['userEvent'] = user_event unless user_event.nil?
2557
2537
  command.query['fields'] = fields unless fields.nil?
2558
2538
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2559
2539
  execute_or_queue_command(command, &block)
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.101.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: 2024-12-15 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.101.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: []