google-apis-retail_v2alpha 0.106.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cd1a34e2d99550069ac0acdccff035eb50acc77910e60039a22ffe9364f5253
|
4
|
+
data.tar.gz: 05f1b5f1e765ee107985582dbae0250631ea195231f9796be8cfb5d6aaaa7507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b0c2945c976bf7273edb4fd3c54964caa8e9e459e119049c9ba35ae86769663bb66b9ed5966fdfb76edbb776fa26f800f027184fd0e163eda6146cdef971c6
|
7
|
+
data.tar.gz: 0f2142c017142504646a5d027dbf30ee013caa70a088127a4766f4c4b34f553d46ba6c71913be2f072944dabf535f36a520c7c8f73522fbf88cb5ad3447cdb7d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.108.0 (2025-01-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250107
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
8
|
+
### v0.107.0 (2025-01-05)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20241231
|
11
|
+
|
3
12
|
### v0.106.0 (2024-12-15)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241205
|
@@ -2232,6 +2232,58 @@ module Google
|
|
2232
2232
|
end
|
2233
2233
|
end
|
2234
2234
|
|
2235
|
+
# Request message for CollectUserEvent method.
|
2236
|
+
class GoogleCloudRetailV2alphaCollectUserEventRequest
|
2237
|
+
include Google::Apis::Core::Hashable
|
2238
|
+
|
2239
|
+
# The event timestamp in milliseconds. This prevents browser caching of
|
2240
|
+
# otherwise identical get requests. The name is abbreviated to reduce the
|
2241
|
+
# payload bytes.
|
2242
|
+
# Corresponds to the JSON property `ets`
|
2243
|
+
# @return [Fixnum]
|
2244
|
+
attr_accessor :ets
|
2245
|
+
|
2246
|
+
# The prebuilt rule name that can convert a specific type of raw_json. For
|
2247
|
+
# example: "ga4_bq" rule for the GA4 user event schema.
|
2248
|
+
# Corresponds to the JSON property `prebuiltRule`
|
2249
|
+
# @return [String]
|
2250
|
+
attr_accessor :prebuilt_rule
|
2251
|
+
|
2252
|
+
# An arbitrary serialized JSON string that contains necessary information that
|
2253
|
+
# can comprise a user event. When this field is specified, the user_event field
|
2254
|
+
# will be ignored. Note: line-delimited JSON is not supported, a single JSON
|
2255
|
+
# only.
|
2256
|
+
# Corresponds to the JSON property `rawJson`
|
2257
|
+
# @return [String]
|
2258
|
+
attr_accessor :raw_json
|
2259
|
+
|
2260
|
+
# The URL including cgi-parameters but excluding the hash fragment with a length
|
2261
|
+
# limit of 5,000 characters. This is often more useful than the referer URL,
|
2262
|
+
# because many browsers only send the domain for 3rd party requests.
|
2263
|
+
# Corresponds to the JSON property `uri`
|
2264
|
+
# @return [String]
|
2265
|
+
attr_accessor :uri
|
2266
|
+
|
2267
|
+
# Required. URL encoded UserEvent proto with a length limit of 2,000,000
|
2268
|
+
# characters.
|
2269
|
+
# Corresponds to the JSON property `userEvent`
|
2270
|
+
# @return [String]
|
2271
|
+
attr_accessor :user_event
|
2272
|
+
|
2273
|
+
def initialize(**args)
|
2274
|
+
update!(**args)
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
# Update properties of this object
|
2278
|
+
def update!(**args)
|
2279
|
+
@ets = args[:ets] if args.key?(:ets)
|
2280
|
+
@prebuilt_rule = args[:prebuilt_rule] if args.key?(:prebuilt_rule)
|
2281
|
+
@raw_json = args[:raw_json] if args.key?(:raw_json)
|
2282
|
+
@uri = args[:uri] if args.key?(:uri)
|
2283
|
+
@user_event = args[:user_event] if args.key?(:user_event)
|
2284
|
+
end
|
2285
|
+
end
|
2286
|
+
|
2235
2287
|
# The color information of a Product.
|
2236
2288
|
class GoogleCloudRetailV2alphaColorInfo
|
2237
2289
|
include Google::Apis::Core::Hashable
|
@@ -2244,7 +2296,10 @@ module Google
|
|
2244
2296
|
# be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
2245
2297
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
|
2246
2298
|
# https://support.google.com/merchants/answer/6324487). Schema.org property [
|
2247
|
-
# Product.color](https://schema.org/color).
|
2299
|
+
# Product.color](https://schema.org/color). The colorFamilies field as a system
|
2300
|
+
# attribute is not a required field but strongly recommended to be specified.
|
2301
|
+
# Google Search models treat this field as more important than a custom product
|
2302
|
+
# attribute when specified.
|
2248
2303
|
# Corresponds to the JSON property `colorFamilies`
|
2249
2304
|
# @return [Array<String>]
|
2250
2305
|
attr_accessor :color_families
|
@@ -6406,6 +6461,21 @@ module Google
|
|
6406
6461
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction]
|
6407
6462
|
attr_accessor :oneway_synonyms_action
|
6408
6463
|
|
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
|
+
|
6409
6479
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
6410
6480
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
6411
6481
|
# Redirects shopper to provided uri.
|
@@ -6451,6 +6521,7 @@ module Google
|
|
6451
6521
|
@force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
|
6452
6522
|
@ignore_action = args[:ignore_action] if args.key?(:ignore_action)
|
6453
6523
|
@oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
|
6524
|
+
@pin_action = args[:pin_action] if args.key?(:pin_action)
|
6454
6525
|
@redirect_action = args[:redirect_action] if args.key?(:redirect_action)
|
6455
6526
|
@remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
|
6456
6527
|
@replacement_action = args[:replacement_action] if args.key?(:replacement_action)
|
@@ -6676,6 +6747,43 @@ module Google
|
|
6676
6747
|
end
|
6677
6748
|
end
|
6678
6749
|
|
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
|
+
|
6679
6787
|
# Redirects a shopper to a specific page. * Rule Condition: Must specify
|
6680
6788
|
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
6681
6789
|
# Redirects shopper to provided uri.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2alpha
|
18
18
|
# Version of the google-apis-retail_v2alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.108.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
|
@@ -454,6 +454,12 @@ module Google
|
|
454
454
|
include Google::Apis::Core::JsonObjectSupport
|
455
455
|
end
|
456
456
|
|
457
|
+
class GoogleCloudRetailV2alphaCollectUserEventRequest
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
457
463
|
class GoogleCloudRetailV2alphaColorInfo
|
458
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
465
|
|
@@ -1168,6 +1174,12 @@ module Google
|
|
1168
1174
|
include Google::Apis::Core::JsonObjectSupport
|
1169
1175
|
end
|
1170
1176
|
|
1177
|
+
class GoogleCloudRetailV2alphaRulePinAction
|
1178
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1179
|
+
|
1180
|
+
include Google::Apis::Core::JsonObjectSupport
|
1181
|
+
end
|
1182
|
+
|
1171
1183
|
class GoogleCloudRetailV2alphaRuleRedirectAction
|
1172
1184
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1173
1185
|
|
@@ -2292,6 +2304,17 @@ module Google
|
|
2292
2304
|
end
|
2293
2305
|
end
|
2294
2306
|
|
2307
|
+
class GoogleCloudRetailV2alphaCollectUserEventRequest
|
2308
|
+
# @private
|
2309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2310
|
+
property :ets, :numeric_string => true, as: 'ets'
|
2311
|
+
property :prebuilt_rule, as: 'prebuiltRule'
|
2312
|
+
property :raw_json, as: 'rawJson'
|
2313
|
+
property :uri, as: 'uri'
|
2314
|
+
property :user_event, as: 'userEvent'
|
2315
|
+
end
|
2316
|
+
end
|
2317
|
+
|
2295
2318
|
class GoogleCloudRetailV2alphaColorInfo
|
2296
2319
|
# @private
|
2297
2320
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3374,6 +3397,8 @@ module Google
|
|
3374
3397
|
|
3375
3398
|
property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction::Representation
|
3376
3399
|
|
3400
|
+
property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction::Representation
|
3401
|
+
|
3377
3402
|
property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction::Representation
|
3378
3403
|
|
3379
3404
|
property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction::Representation
|
@@ -3441,6 +3466,13 @@ module Google
|
|
3441
3466
|
end
|
3442
3467
|
end
|
3443
3468
|
|
3469
|
+
class GoogleCloudRetailV2alphaRulePinAction
|
3470
|
+
# @private
|
3471
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3472
|
+
hash :pin_map, as: 'pinMap'
|
3473
|
+
end
|
3474
|
+
end
|
3475
|
+
|
3444
3476
|
class GoogleCloudRetailV2alphaRuleRedirectAction
|
3445
3477
|
# @private
|
3446
3478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2887,32 +2887,15 @@ module Google
|
|
2887
2887
|
execute_or_queue_command(command, &block)
|
2888
2888
|
end
|
2889
2889
|
|
2890
|
-
# Writes a single user event from the browser.
|
2891
|
-
#
|
2892
|
-
#
|
2893
|
-
# not call this method
|
2890
|
+
# Writes a single user event from the browser. For larger user event payload
|
2891
|
+
# over 16 KB, the POST method should be used instead, otherwise a 400 Bad
|
2892
|
+
# Request error is returned. This method is used only by the Retail API
|
2893
|
+
# JavaScript pixel and Google Tag Manager. Users should not call this method
|
2894
|
+
# directly.
|
2894
2895
|
# @param [String] parent
|
2895
2896
|
# Required. The parent catalog name, such as `projects/1234/locations/global/
|
2896
2897
|
# catalogs/default_catalog`.
|
2897
|
-
# @param [
|
2898
|
-
# The event timestamp in milliseconds. This prevents browser caching of
|
2899
|
-
# otherwise identical get requests. The name is abbreviated to reduce the
|
2900
|
-
# payload bytes.
|
2901
|
-
# @param [String] prebuilt_rule
|
2902
|
-
# The prebuilt rule name that can convert a specific type of raw_json. For
|
2903
|
-
# example: "ga4_bq" rule for the GA4 user event schema.
|
2904
|
-
# @param [String] raw_json
|
2905
|
-
# An arbitrary serialized JSON string that contains necessary information that
|
2906
|
-
# can comprise a user event. When this field is specified, the user_event field
|
2907
|
-
# will be ignored. Note: line-delimited JSON is not supported, a single JSON
|
2908
|
-
# only.
|
2909
|
-
# @param [String] uri
|
2910
|
-
# The URL including cgi-parameters but excluding the hash fragment with a length
|
2911
|
-
# limit of 5,000 characters. This is often more useful than the referer URL,
|
2912
|
-
# because many browsers only send the domain for 3rd party requests.
|
2913
|
-
# @param [String] user_event
|
2914
|
-
# Required. URL encoded UserEvent proto with a length limit of 2,000,000
|
2915
|
-
# characters.
|
2898
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCollectUserEventRequest] google_cloud_retail_v2alpha_collect_user_event_request_object
|
2916
2899
|
# @param [String] fields
|
2917
2900
|
# Selector specifying which fields to include in a partial response.
|
2918
2901
|
# @param [String] quota_user
|
@@ -2930,16 +2913,13 @@ module Google
|
|
2930
2913
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2931
2914
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2932
2915
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2933
|
-
def collect_project_location_catalog_user_event(parent,
|
2934
|
-
command = make_simple_command(:
|
2916
|
+
def collect_project_location_catalog_user_event(parent, google_cloud_retail_v2alpha_collect_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2917
|
+
command = make_simple_command(:post, 'v2alpha/{+parent}/userEvents:collect', options)
|
2918
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCollectUserEventRequest::Representation
|
2919
|
+
command.request_object = google_cloud_retail_v2alpha_collect_user_event_request_object
|
2935
2920
|
command.response_representation = Google::Apis::RetailV2alpha::GoogleApiHttpBody::Representation
|
2936
2921
|
command.response_class = Google::Apis::RetailV2alpha::GoogleApiHttpBody
|
2937
2922
|
command.params['parent'] = parent unless parent.nil?
|
2938
|
-
command.query['ets'] = ets unless ets.nil?
|
2939
|
-
command.query['prebuiltRule'] = prebuilt_rule unless prebuilt_rule.nil?
|
2940
|
-
command.query['rawJson'] = raw_json unless raw_json.nil?
|
2941
|
-
command.query['uri'] = uri unless uri.nil?
|
2942
|
-
command.query['userEvent'] = user_event unless user_event.nil?
|
2943
2923
|
command.query['fields'] = fields unless fields.nil?
|
2944
2924
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2945
2925
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.108.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_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.108.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
|
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 V2alpha
|
82
79
|
test_files: []
|