google-apis-retail_v2 0.107.0 → 0.109.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: 53a99bcd01f678ae1f49d39948927b996c557dd67f3bee6366d240d66875ddd5
|
4
|
+
data.tar.gz: d7a47a6cfae677c27d9f29fb2e5da5ebfe17b42fac9407562eea1a43894999fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b66bf58cd1d27490496728182dbbe16bb5727cab791442de01df7f3179a9a28cd55632a11a08c1a2882e3321b05bf66e2de51181f1e4482d49ee1c8a94b2f49
|
7
|
+
data.tar.gz: a34e77109a19db75bf431c7b6224c50d9e3f437b151e2781f8e4a0ad590382655309cba5333ca6181f3965d375ef14c06f7b7c7435065a6d9b82c95772f614ff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.109.0 (2025-01-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250107
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
8
|
+
### v0.108.0 (2025-01-05)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20241231
|
11
|
+
|
3
12
|
### v0.107.0 (2024-12-15)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241205
|
@@ -1033,6 +1033,58 @@ module Google
|
|
1033
1033
|
end
|
1034
1034
|
end
|
1035
1035
|
|
1036
|
+
# Request message for CollectUserEvent method.
|
1037
|
+
class GoogleCloudRetailV2CollectUserEventRequest
|
1038
|
+
include Google::Apis::Core::Hashable
|
1039
|
+
|
1040
|
+
# The event timestamp in milliseconds. This prevents browser caching of
|
1041
|
+
# otherwise identical get requests. The name is abbreviated to reduce the
|
1042
|
+
# payload bytes.
|
1043
|
+
# Corresponds to the JSON property `ets`
|
1044
|
+
# @return [Fixnum]
|
1045
|
+
attr_accessor :ets
|
1046
|
+
|
1047
|
+
# The prebuilt rule name that can convert a specific type of raw_json. For
|
1048
|
+
# example: "ga4_bq" rule for the GA4 user event schema.
|
1049
|
+
# Corresponds to the JSON property `prebuiltRule`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :prebuilt_rule
|
1052
|
+
|
1053
|
+
# An arbitrary serialized JSON string that contains necessary information that
|
1054
|
+
# can comprise a user event. When this field is specified, the user_event field
|
1055
|
+
# will be ignored. Note: line-delimited JSON is not supported, a single JSON
|
1056
|
+
# only.
|
1057
|
+
# Corresponds to the JSON property `rawJson`
|
1058
|
+
# @return [String]
|
1059
|
+
attr_accessor :raw_json
|
1060
|
+
|
1061
|
+
# The URL including cgi-parameters but excluding the hash fragment with a length
|
1062
|
+
# limit of 5,000 characters. This is often more useful than the referer URL,
|
1063
|
+
# because many browsers only send the domain for 3rd party requests.
|
1064
|
+
# Corresponds to the JSON property `uri`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :uri
|
1067
|
+
|
1068
|
+
# Required. URL encoded UserEvent proto with a length limit of 2,000,000
|
1069
|
+
# characters.
|
1070
|
+
# Corresponds to the JSON property `userEvent`
|
1071
|
+
# @return [String]
|
1072
|
+
attr_accessor :user_event
|
1073
|
+
|
1074
|
+
def initialize(**args)
|
1075
|
+
update!(**args)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Update properties of this object
|
1079
|
+
def update!(**args)
|
1080
|
+
@ets = args[:ets] if args.key?(:ets)
|
1081
|
+
@prebuilt_rule = args[:prebuilt_rule] if args.key?(:prebuilt_rule)
|
1082
|
+
@raw_json = args[:raw_json] if args.key?(:raw_json)
|
1083
|
+
@uri = args[:uri] if args.key?(:uri)
|
1084
|
+
@user_event = args[:user_event] if args.key?(:user_event)
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1036
1088
|
# The color information of a Product.
|
1037
1089
|
class GoogleCloudRetailV2ColorInfo
|
1038
1090
|
include Google::Apis::Core::Hashable
|
@@ -1045,7 +1097,10 @@ module Google
|
|
1045
1097
|
# be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
1046
1098
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
|
1047
1099
|
# https://support.google.com/merchants/answer/6324487). Schema.org property [
|
1048
|
-
# Product.color](https://schema.org/color).
|
1100
|
+
# Product.color](https://schema.org/color). The colorFamilies field as a system
|
1101
|
+
# attribute is not a required field but strongly recommended to be specified.
|
1102
|
+
# Google Search models treat this field as more important than a custom product
|
1103
|
+
# attribute when specified.
|
1049
1104
|
# Corresponds to the JSON property `colorFamilies`
|
1050
1105
|
# @return [Array<String>]
|
1051
1106
|
attr_accessor :color_families
|
@@ -4396,6 +4451,21 @@ module Google
|
|
4396
4451
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction]
|
4397
4452
|
attr_accessor :oneway_synonyms_action
|
4398
4453
|
|
4454
|
+
# Pins one or more specified products to a specific position in the results. *
|
4455
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
4456
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
4457
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
4458
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
4459
|
+
# position specified in the final result order. Example: Suppose the query is `
|
4460
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
4461
|
+
# then product with `pid1` will be pinned to the top position in the final
|
4462
|
+
# results. If multiple PinActions are matched to a single request the actions
|
4463
|
+
# will be processed from most to least recently updated. Pins to positions
|
4464
|
+
# larger than the max allowed page size of 120 are not allowed.
|
4465
|
+
# Corresponds to the JSON property `pinAction`
|
4466
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction]
|
4467
|
+
attr_accessor :pin_action
|
4468
|
+
|
4399
4469
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
4400
4470
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4401
4471
|
# Redirects shopper to provided uri.
|
@@ -4441,6 +4511,7 @@ module Google
|
|
4441
4511
|
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
|
4442
4512
|
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
|
4443
4513
|
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
|
4514
|
+
@pin_action = args[:pin_action] if args.key?(:pin_action)
|
4444
4515
|
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
|
4445
4516
|
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
|
4446
4517
|
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
|
@@ -4666,6 +4737,43 @@ module Google
|
|
4666
4737
|
end
|
4667
4738
|
end
|
4668
4739
|
|
4740
|
+
# Pins one or more specified products to a specific position in the results. *
|
4741
|
+
# Rule Condition: Must specify non-empty Condition.query_terms (for search only)
|
4742
|
+
# or Condition.page_categories (for browse only), but can't specify both. *
|
4743
|
+
# Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
|
4744
|
+
# 1-based indexing). * Action Result: Will pin products with matching ids to the
|
4745
|
+
# position specified in the final result order. Example: Suppose the query is `
|
4746
|
+
# shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
|
4747
|
+
# then product with `pid1` will be pinned to the top position in the final
|
4748
|
+
# results. If multiple PinActions are matched to a single request the actions
|
4749
|
+
# will be processed from most to least recently updated. Pins to positions
|
4750
|
+
# larger than the max allowed page size of 120 are not allowed.
|
4751
|
+
class GoogleCloudRetailV2RulePinAction
|
4752
|
+
include Google::Apis::Core::Hashable
|
4753
|
+
|
4754
|
+
# Required. A map of positions to product_ids. Partial matches per action are
|
4755
|
+
# allowed, if a certain position in the map is already filled that `[position,
|
4756
|
+
# product_id]` pair will be ignored but the rest may still be applied. This case
|
4757
|
+
# will only occur if multiple pin actions are matched to a single request, as
|
4758
|
+
# the map guarantees that pin positions are unique within the same action.
|
4759
|
+
# Duplicate product_ids are not permitted within a single pin map. The max size
|
4760
|
+
# of this map is 120, equivalent to the max [request page size](https://cloud.
|
4761
|
+
# google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
|
4762
|
+
# placements/search#request-body).
|
4763
|
+
# Corresponds to the JSON property `pinMap`
|
4764
|
+
# @return [Hash<String,String>]
|
4765
|
+
attr_accessor :pin_map
|
4766
|
+
|
4767
|
+
def initialize(**args)
|
4768
|
+
update!(**args)
|
4769
|
+
end
|
4770
|
+
|
4771
|
+
# Update properties of this object
|
4772
|
+
def update!(**args)
|
4773
|
+
@pin_map = args[:pin_map] if args.key?(:pin_map)
|
4774
|
+
end
|
4775
|
+
end
|
4776
|
+
|
4669
4777
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
4670
4778
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4671
4779
|
# Redirects shopper to provided uri.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.109.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
|
@@ -190,6 +190,12 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class GoogleCloudRetailV2CollectUserEventRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
193
199
|
class GoogleCloudRetailV2ColorInfo
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
201
|
|
@@ -766,6 +772,12 @@ module Google
|
|
766
772
|
include Google::Apis::Core::JsonObjectSupport
|
767
773
|
end
|
768
774
|
|
775
|
+
class GoogleCloudRetailV2RulePinAction
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
769
781
|
class GoogleCloudRetailV2RuleRedirectAction
|
770
782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
783
|
|
@@ -1798,6 +1810,17 @@ module Google
|
|
1798
1810
|
end
|
1799
1811
|
end
|
1800
1812
|
|
1813
|
+
class GoogleCloudRetailV2CollectUserEventRequest
|
1814
|
+
# @private
|
1815
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1816
|
+
property :ets, :numeric_string => true, as: 'ets'
|
1817
|
+
property :prebuilt_rule, as: 'prebuiltRule'
|
1818
|
+
property :raw_json, as: 'rawJson'
|
1819
|
+
property :uri, as: 'uri'
|
1820
|
+
property :user_event, as: 'userEvent'
|
1821
|
+
end
|
1822
|
+
end
|
1823
|
+
|
1801
1824
|
class GoogleCloudRetailV2ColorInfo
|
1802
1825
|
# @private
|
1803
1826
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2658,6 +2681,8 @@ module Google
|
|
2658
2681
|
|
2659
2682
|
property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleOnewaySynonymsAction::Representation
|
2660
2683
|
|
2684
|
+
property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RulePinAction::Representation
|
2685
|
+
|
2661
2686
|
property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRedirectAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRedirectAction::Representation
|
2662
2687
|
|
2663
2688
|
property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRemoveFacetAction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRemoveFacetAction::Representation
|
@@ -2725,6 +2750,13 @@ module Google
|
|
2725
2750
|
end
|
2726
2751
|
end
|
2727
2752
|
|
2753
|
+
class GoogleCloudRetailV2RulePinAction
|
2754
|
+
# @private
|
2755
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2756
|
+
hash :pin_map, as: 'pinMap'
|
2757
|
+
end
|
2758
|
+
end
|
2759
|
+
|
2728
2760
|
class GoogleCloudRetailV2RuleRedirectAction
|
2729
2761
|
# @private
|
2730
2762
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2362,32 +2362,15 @@ module Google
|
|
2362
2362
|
execute_or_queue_command(command, &block)
|
2363
2363
|
end
|
2364
2364
|
|
2365
|
-
# Writes a single user event from the browser.
|
2366
|
-
#
|
2367
|
-
#
|
2368
|
-
# not call this method
|
2365
|
+
# Writes a single user event from the browser. For larger user event payload
|
2366
|
+
# over 16 KB, the POST method should be used instead, otherwise a 400 Bad
|
2367
|
+
# Request error is returned. This method is used only by the Retail API
|
2368
|
+
# JavaScript pixel and Google Tag Manager. Users should not call this method
|
2369
|
+
# directly.
|
2369
2370
|
# @param [String] parent
|
2370
2371
|
# Required. The parent catalog name, such as `projects/1234/locations/global/
|
2371
2372
|
# catalogs/default_catalog`.
|
2372
|
-
# @param [
|
2373
|
-
# The event timestamp in milliseconds. This prevents browser caching of
|
2374
|
-
# otherwise identical get requests. The name is abbreviated to reduce the
|
2375
|
-
# payload bytes.
|
2376
|
-
# @param [String] prebuilt_rule
|
2377
|
-
# The prebuilt rule name that can convert a specific type of raw_json. For
|
2378
|
-
# example: "ga4_bq" rule for the GA4 user event schema.
|
2379
|
-
# @param [String] raw_json
|
2380
|
-
# An arbitrary serialized JSON string that contains necessary information that
|
2381
|
-
# can comprise a user event. When this field is specified, the user_event field
|
2382
|
-
# will be ignored. Note: line-delimited JSON is not supported, a single JSON
|
2383
|
-
# only.
|
2384
|
-
# @param [String] uri
|
2385
|
-
# The URL including cgi-parameters but excluding the hash fragment with a length
|
2386
|
-
# limit of 5,000 characters. This is often more useful than the referer URL,
|
2387
|
-
# because many browsers only send the domain for 3rd party requests.
|
2388
|
-
# @param [String] user_event
|
2389
|
-
# Required. URL encoded UserEvent proto with a length limit of 2,000,000
|
2390
|
-
# characters.
|
2373
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2CollectUserEventRequest] google_cloud_retail_v2_collect_user_event_request_object
|
2391
2374
|
# @param [String] fields
|
2392
2375
|
# Selector specifying which fields to include in a partial response.
|
2393
2376
|
# @param [String] quota_user
|
@@ -2405,16 +2388,13 @@ module Google
|
|
2405
2388
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2406
2389
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2407
2390
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2408
|
-
def collect_project_location_catalog_user_event(parent,
|
2409
|
-
command = make_simple_command(:
|
2391
|
+
def collect_project_location_catalog_user_event(parent, google_cloud_retail_v2_collect_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2392
|
+
command = make_simple_command(:post, 'v2/{+parent}/userEvents:collect', options)
|
2393
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CollectUserEventRequest::Representation
|
2394
|
+
command.request_object = google_cloud_retail_v2_collect_user_event_request_object
|
2410
2395
|
command.response_representation = Google::Apis::RetailV2::GoogleApiHttpBody::Representation
|
2411
2396
|
command.response_class = Google::Apis::RetailV2::GoogleApiHttpBody
|
2412
2397
|
command.params['parent'] = parent unless parent.nil?
|
2413
|
-
command.query['ets'] = ets unless ets.nil?
|
2414
|
-
command.query['prebuiltRule'] = prebuilt_rule unless prebuilt_rule.nil?
|
2415
|
-
command.query['rawJson'] = raw_json unless raw_json.nil?
|
2416
|
-
command.query['uri'] = uri unless uri.nil?
|
2417
|
-
command.query['userEvent'] = user_event unless user_event.nil?
|
2418
2398
|
command.query['fields'] = fields unless fields.nil?
|
2419
2399
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2420
2400
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.109.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.109.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
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 V2
|
82
79
|
test_files: []
|