google-apis-retail_v2alpha 0.103.0 → 0.104.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: 6c2b55b91e7ac4829dd744c044b856175b6529ddf778b28045cdd28bc628bcd5
|
4
|
+
data.tar.gz: 4b8b52532534acda6934fedbca7e69215ae8f55f76d3479638a69263b7f92816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f621ff56ae0b66798e80db679a2c6e14acc9e564dc3b8ba41e2bcd5484fe56da645229d715de4153731dfb098cc7a5e3b23fbf65aa1e445211cf6ab1995d59
|
7
|
+
data.tar.gz: b511ceb932b3a39a3b1373e37e7e70124f9e552b862ae4edc2994da3bf2620bae73ec41a7fa8a78be6d2b0ccbc4298061704a10cd22d6fd99b0cd2e8e430559d
|
data/CHANGELOG.md
CHANGED
@@ -1712,28 +1712,6 @@ module Google
|
|
1712
1712
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic>]
|
1713
1713
|
attr_accessor :product_count_stats
|
1714
1714
|
|
1715
|
-
# Output only. The number of products in different groups that this branch has.
|
1716
|
-
# The key is a group representing a set of products, and the value is the number
|
1717
|
-
# of products in that group. Note: keys in this map may change over time.
|
1718
|
-
# Possible keys: * "primary-in-stock", products have Product.Type.PRIMARY type
|
1719
|
-
# and Product.Availability.IN_STOCK availability. * "primary-out-of-stock",
|
1720
|
-
# products have Product.Type.PRIMARY type and Product.Availability.OUT_OF_STOCK
|
1721
|
-
# availability. * "primary-preorder", products have Product.Type.PRIMARY type
|
1722
|
-
# and Product.Availability.PREORDER availability. * "primary-backorder",
|
1723
|
-
# products have Product.Type.PRIMARY type and Product.Availability.BACKORDER
|
1724
|
-
# availability. * "variant-in-stock", products have Product.Type.VARIANT type
|
1725
|
-
# and Product.Availability.IN_STOCK availability. * "variant-out-of-stock",
|
1726
|
-
# products have Product.Type.VARIANT type and Product.Availability.OUT_OF_STOCK
|
1727
|
-
# availability. * "variant-preorder", products have Product.Type.VARIANT type
|
1728
|
-
# and Product.Availability.PREORDER availability. * "variant-backorder",
|
1729
|
-
# products have Product.Type.VARIANT type and Product.Availability.BACKORDER
|
1730
|
-
# availability. * "price-discounted", products have [Product.price_info.price] <
|
1731
|
-
# [Product.price_info.original_price]. This field is not populated in BranchView.
|
1732
|
-
# BASIC view.
|
1733
|
-
# Corresponds to the JSON property `productCounts`
|
1734
|
-
# @return [Hash<String,Fixnum>]
|
1735
|
-
attr_accessor :product_counts
|
1736
|
-
|
1737
1715
|
# Output only. The quality metrics measured among products of this branch. See
|
1738
1716
|
# QualityMetric.requirement_key for supported metrics. Metrics could be missing
|
1739
1717
|
# if failed to retrieve. This field is not populated in BranchView.BASIC view.
|
@@ -1752,7 +1730,6 @@ module Google
|
|
1752
1730
|
@last_product_import_time = args[:last_product_import_time] if args.key?(:last_product_import_time)
|
1753
1731
|
@name = args[:name] if args.key?(:name)
|
1754
1732
|
@product_count_stats = args[:product_count_stats] if args.key?(:product_count_stats)
|
1755
|
-
@product_counts = args[:product_counts] if args.key?(:product_counts)
|
1756
1733
|
@quality_metrics = args[:quality_metrics] if args.key?(:quality_metrics)
|
1757
1734
|
end
|
1758
1735
|
end
|
@@ -2142,13 +2119,6 @@ module Google
|
|
2142
2119
|
# @return [String]
|
2143
2120
|
attr_accessor :merged_facet_key
|
2144
2121
|
|
2145
|
-
# Each instance is a list of facet values that map into the same (possibly
|
2146
|
-
# different) merged facet value. For the current attribute config, each facet
|
2147
|
-
# value should map to at most one merged facet value.
|
2148
|
-
# Corresponds to the JSON property `mergedFacetValues`
|
2149
|
-
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue>]
|
2150
|
-
attr_accessor :merged_facet_values
|
2151
|
-
|
2152
2122
|
def initialize(**args)
|
2153
2123
|
update!(**args)
|
2154
2124
|
end
|
@@ -2156,7 +2126,6 @@ module Google
|
|
2156
2126
|
# Update properties of this object
|
2157
2127
|
def update!(**args)
|
2158
2128
|
@merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key)
|
2159
|
-
@merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
|
2160
2129
|
end
|
2161
2130
|
end
|
2162
2131
|
|
@@ -2378,7 +2347,7 @@ module Google
|
|
2378
2347
|
end
|
2379
2348
|
end
|
2380
2349
|
|
2381
|
-
# Recent search of this user.
|
2350
|
+
# Deprecated: Recent search of this user.
|
2382
2351
|
class GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult
|
2383
2352
|
include Google::Apis::Core::Hashable
|
2384
2353
|
|
@@ -3073,6 +3042,51 @@ module Google
|
|
3073
3042
|
end
|
3074
3043
|
end
|
3075
3044
|
|
3045
|
+
# Request message for the `ExportUserEvents` method.
|
3046
|
+
class GoogleCloudRetailV2alphaExportUserEventsRequest
|
3047
|
+
include Google::Apis::Core::Hashable
|
3048
|
+
|
3049
|
+
# A filtering expression to specify restrictions on returned events. The
|
3050
|
+
# expression is a sequence of terms. Each term applies a restriction to the
|
3051
|
+
# returned user events. Use this expression to restrict results to a specific
|
3052
|
+
# time range or to filter events by eventType. For example, `eventTime > "2012-
|
3053
|
+
# 04-23T18:25:43.511Z" eventsMissingCatalogItems eventTime<"2012-04-23T18:25:43.
|
3054
|
+
# 511Z" eventType=search` We expect only three types of fields: * `eventTime`:
|
3055
|
+
# This can be specified twice, once with a less than operator and once with a
|
3056
|
+
# greater than operator. The `eventTime` restriction should result in one,
|
3057
|
+
# contiguous, valid, `eventTime` range. * `eventType`: Boolean operators `OR`
|
3058
|
+
# and `NOT` are supported if the expression is enclosed in parentheses and the
|
3059
|
+
# operators are separated from the tag values by a space. * `
|
3060
|
+
# eventsMissingCatalogItems`: This restricts results to events for which catalog
|
3061
|
+
# items were not found in the catalog. The default behavior is to return only
|
3062
|
+
# those events for which catalog items were found. Some examples of valid
|
3063
|
+
# filters expressions: * Example 1: `eventTime > "2012-04-23T18:25:43.511Z"
|
3064
|
+
# eventTime < "2012-04-23T18:30:43.511Z"` * Example 2: `eventTime > "2012-04-
|
3065
|
+
# 23T18:25:43.511Z" eventType = detail-page-view` * Example 3: `
|
3066
|
+
# eventsMissingCatalogItems eventType = (NOT search) eventTime < "2018-04-23T18:
|
3067
|
+
# 30:43.511Z"` * Example 4: `eventTime > "2012-04-23T18:25:43.511Z"` * Example 5:
|
3068
|
+
# `eventType = (detail-page-view OR search)` * Example 6: `
|
3069
|
+
# eventsMissingCatalogItems`
|
3070
|
+
# Corresponds to the JSON property `filter`
|
3071
|
+
# @return [String]
|
3072
|
+
attr_accessor :filter
|
3073
|
+
|
3074
|
+
# The output configuration setting.
|
3075
|
+
# Corresponds to the JSON property `outputConfig`
|
3076
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig]
|
3077
|
+
attr_accessor :output_config
|
3078
|
+
|
3079
|
+
def initialize(**args)
|
3080
|
+
update!(**args)
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
# Update properties of this object
|
3084
|
+
def update!(**args)
|
3085
|
+
@filter = args[:filter] if args.key?(:filter)
|
3086
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
3087
|
+
end
|
3088
|
+
end
|
3089
|
+
|
3076
3090
|
# Response of the ExportUserEventsRequest. If the long running operation was
|
3077
3091
|
# successful, then this message is returned by the google.longrunning.Operations.
|
3078
3092
|
# response field if the operation was successful.
|
@@ -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.104.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240711"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -592,6 +592,12 @@ module Google
|
|
592
592
|
include Google::Apis::Core::JsonObjectSupport
|
593
593
|
end
|
594
594
|
|
595
|
+
class GoogleCloudRetailV2alphaExportUserEventsRequest
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
|
+
|
598
|
+
include Google::Apis::Core::JsonObjectSupport
|
599
|
+
end
|
600
|
+
|
595
601
|
class GoogleCloudRetailV2alphaExportUserEventsResponse
|
596
602
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
603
|
|
@@ -2048,7 +2054,6 @@ module Google
|
|
2048
2054
|
property :name, as: 'name'
|
2049
2055
|
collection :product_count_stats, as: 'productCountStats', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic::Representation
|
2050
2056
|
|
2051
|
-
hash :product_counts, as: 'productCounts'
|
2052
2057
|
collection :quality_metrics, as: 'qualityMetrics', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchQualityMetric, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchQualityMetric::Representation
|
2053
2058
|
|
2054
2059
|
end
|
@@ -2132,8 +2137,6 @@ module Google
|
|
2132
2137
|
# @private
|
2133
2138
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2134
2139
|
property :merged_facet_key, as: 'mergedFacetKey'
|
2135
|
-
collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue::Representation
|
2136
|
-
|
2137
2140
|
end
|
2138
2141
|
end
|
2139
2142
|
|
@@ -2389,6 +2392,15 @@ module Google
|
|
2389
2392
|
end
|
2390
2393
|
end
|
2391
2394
|
|
2395
|
+
class GoogleCloudRetailV2alphaExportUserEventsRequest
|
2396
|
+
# @private
|
2397
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2398
|
+
property :filter, as: 'filter'
|
2399
|
+
property :output_config, as: 'outputConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig::Representation
|
2400
|
+
|
2401
|
+
end
|
2402
|
+
end
|
2403
|
+
|
2392
2404
|
class GoogleCloudRetailV2alphaExportUserEventsResponse
|
2393
2405
|
# @private
|
2394
2406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2734,6 +2734,41 @@ module Google
|
|
2734
2734
|
execute_or_queue_command(command, &block)
|
2735
2735
|
end
|
2736
2736
|
|
2737
|
+
# Exports user events. `Operation.response` is of type `ExportResponse`. `
|
2738
|
+
# Operation.metadata` is of type `ExportMetadata`.
|
2739
|
+
# @param [String] parent
|
2740
|
+
# Required. Resource name of a Catalog. For example `projects/1234/locations/
|
2741
|
+
# global/catalogs/default_catalog`
|
2742
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportUserEventsRequest] google_cloud_retail_v2alpha_export_user_events_request_object
|
2743
|
+
# @param [String] fields
|
2744
|
+
# Selector specifying which fields to include in a partial response.
|
2745
|
+
# @param [String] quota_user
|
2746
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2747
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2748
|
+
# @param [Google::Apis::RequestOptions] options
|
2749
|
+
# Request-specific options
|
2750
|
+
#
|
2751
|
+
# @yield [result, err] Result & error if block supplied
|
2752
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
2753
|
+
# @yieldparam err [StandardError] error object if request failed
|
2754
|
+
#
|
2755
|
+
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
2756
|
+
#
|
2757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2760
|
+
def export_project_location_catalog_user_event(parent, google_cloud_retail_v2alpha_export_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2761
|
+
command = make_simple_command(:post, 'v2alpha/{+parent}/userEvents:export', options)
|
2762
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportUserEventsRequest::Representation
|
2763
|
+
command.request_object = google_cloud_retail_v2alpha_export_user_events_request_object
|
2764
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
2765
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
2766
|
+
command.params['parent'] = parent unless parent.nil?
|
2767
|
+
command.query['fields'] = fields unless fields.nil?
|
2768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2769
|
+
execute_or_queue_command(command, &block)
|
2770
|
+
end
|
2771
|
+
|
2737
2772
|
# Bulk import of User events. Request processing might be synchronous. Events
|
2738
2773
|
# that already exist are skipped. Use this method for backfilling historical
|
2739
2774
|
# user events. `Operation.response` is of type `ImportResponse`. Note that it is
|
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.104.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: 2024-
|
11
|
+
date: 2024-07-25 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.104.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: []
|