google-apis-retail_v2alpha 0.106.0 → 0.107.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: 11482a9ec2b7cb4edd6a49f9ae06a70c127cc74fa1ed84101c3ac0f639a0469e
|
4
|
+
data.tar.gz: 649c03ea1873891b701fe37d5b6d983a766a9fc33f4a350517969056e9f74279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21dc4de817cd26c8275deea96166864cf6e3c72348e21513c83f2b1ddc2a483511328c987cf9c59c6b25e9876a73c18f90e12da427f44e3dc2ca1e80348a9c0d
|
7
|
+
data.tar.gz: 055a8dcdf7e2997e32a454c9a7258292c58b36c5a710fe2fb4ba3fa1b6c2b836355f621ab6009b7f6f3d79afa145eba3cd9a61da34df565720a344dc4ec1844a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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.107.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241231"
|
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
|
|
@@ -2292,6 +2298,17 @@ module Google
|
|
2292
2298
|
end
|
2293
2299
|
end
|
2294
2300
|
|
2301
|
+
class GoogleCloudRetailV2alphaCollectUserEventRequest
|
2302
|
+
# @private
|
2303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2304
|
+
property :ets, :numeric_string => true, as: 'ets'
|
2305
|
+
property :prebuilt_rule, as: 'prebuiltRule'
|
2306
|
+
property :raw_json, as: 'rawJson'
|
2307
|
+
property :uri, as: 'uri'
|
2308
|
+
property :user_event, as: 'userEvent'
|
2309
|
+
end
|
2310
|
+
end
|
2311
|
+
|
2295
2312
|
class GoogleCloudRetailV2alphaColorInfo
|
2296
2313
|
# @private
|
2297
2314
|
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,14 @@
|
|
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.107.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.107.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|