google-apis-retail_v2 0.59.0 → 0.60.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/retail_v2/classes.rb +16 -11
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/service.rb +20 -14
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b89fbca0d57e2002aedc2a0a77c13dcd9b974a02e43635d0ec3a65065ba012d3
|
|
4
|
+
data.tar.gz: 5c2a5c87f0674b38c87e1c84aab45870c9c5a4d909e2f98a76c5d219a386d0b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3e4dfd3c4ef5e9aee00c378548af9c8083fc33f175b67dea547c5657c763409c77825e0b8a798f286c2a6e0c613c04ae351b7a18b4a4eba3fbd199c9605ad92
|
|
7
|
+
data.tar.gz: d14aef9c2446a6e5cf4304d7a81600ed35380721566a0e1057479865be39dd9b011474461e73f9eb35ff33d69a4d89a133ea325c5e37e72617ffef5f85ec749a
|
data/CHANGELOG.md
CHANGED
|
@@ -682,7 +682,8 @@ module Google
|
|
|
682
682
|
|
|
683
683
|
# If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This
|
|
684
684
|
# property only applies to textual custom attributes and requires indexable set
|
|
685
|
-
# to enabled to enable exact-searchable.
|
|
685
|
+
# to enabled to enable exact-searchable. If unset, the server behavior defaults
|
|
686
|
+
# to EXACT_SEARCHABLE_DISABLED.
|
|
686
687
|
# Corresponds to the JSON property `exactSearchableOption`
|
|
687
688
|
# @return [String]
|
|
688
689
|
attr_accessor :exact_searchable_option
|
|
@@ -715,12 +716,15 @@ module Google
|
|
|
715
716
|
# custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute
|
|
716
717
|
# name can contain only alpha-numeric characters and underscores. For example,
|
|
717
718
|
# an attribute named `attributes.abc_xyz` can be indexed, but an attribute named
|
|
718
|
-
# `attributes.abc-xyz` cannot be indexed.
|
|
719
|
+
# `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `
|
|
720
|
+
# attributes.`, we refer them as custom attributes. Otherwise they are built-in
|
|
721
|
+
# attributes such as `color` and `brands`.
|
|
719
722
|
# Corresponds to the JSON property `key`
|
|
720
723
|
# @return [String]
|
|
721
724
|
attr_accessor :key
|
|
722
725
|
|
|
723
726
|
# If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.
|
|
727
|
+
# If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
|
|
724
728
|
# Corresponds to the JSON property `retrievableOption`
|
|
725
729
|
# @return [String]
|
|
726
730
|
attr_accessor :retrievable_option
|
|
@@ -1131,9 +1135,9 @@ module Google
|
|
|
1131
1135
|
class GoogleCloudRetailV2Control
|
|
1132
1136
|
include Google::Apis::Core::Hashable
|
|
1133
1137
|
|
|
1134
|
-
# Output only. List of serving
|
|
1135
|
-
#
|
|
1136
|
-
#
|
|
1138
|
+
# Output only. List of serving config ids that are associated with this control
|
|
1139
|
+
# in the same Catalog. Note the association is managed via the ServingConfig,
|
|
1140
|
+
# this is an output only denormalized view.
|
|
1137
1141
|
# Corresponds to the JSON property `associatedServingConfigIds`
|
|
1138
1142
|
# @return [Array<String>]
|
|
1139
1143
|
attr_accessor :associated_serving_config_ids
|
|
@@ -4273,7 +4277,8 @@ module Google
|
|
|
4273
4277
|
# @return [String]
|
|
4274
4278
|
attr_accessor :diversity_level
|
|
4275
4279
|
|
|
4276
|
-
# What kind of diversity to use - data driven or rule based.
|
|
4280
|
+
# What kind of diversity to use - data driven or rule based. If unset, the
|
|
4281
|
+
# server behavior defaults to RULE_BASED_DIVERSITY.
|
|
4277
4282
|
# Corresponds to the JSON property `diversityType`
|
|
4278
4283
|
# @return [String]
|
|
4279
4284
|
attr_accessor :diversity_type
|
|
@@ -4361,7 +4366,7 @@ module Google
|
|
|
4361
4366
|
# product items with a similar recommendation probability to be ordered by price,
|
|
4362
4367
|
# with the highest-priced items first. This setting could result in a decrease
|
|
4363
4368
|
# in click-through and conversion rates. Allowed values are: * `no-price-
|
|
4364
|
-
# reranking` * `low-price-
|
|
4369
|
+
# reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-
|
|
4365
4370
|
# reranking` If not specified, we choose default based on model type. Default
|
|
4366
4371
|
# value: `no-price-reranking`. Can only be set if solution_types is
|
|
4367
4372
|
# SOLUTION_TYPE_RECOMMENDATION.
|
|
@@ -5368,8 +5373,8 @@ module Google
|
|
|
5368
5373
|
attr_accessor :optimization_objective
|
|
5369
5374
|
|
|
5370
5375
|
# The PageOptimizationConfig for model training. This determines how many panels
|
|
5371
|
-
# to optimize for, and which serving
|
|
5372
|
-
#
|
|
5376
|
+
# to optimize for, and which serving configs to consider for each panel. The
|
|
5377
|
+
# purpose of this model is to optimize which ServingConfig to show on which
|
|
5373
5378
|
# panels in way that optimizes the visitors shopping journey.
|
|
5374
5379
|
# Corresponds to the JSON property `pageOptimizationConfig`
|
|
5375
5380
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
|
|
@@ -5455,8 +5460,8 @@ module Google
|
|
|
5455
5460
|
end
|
|
5456
5461
|
|
|
5457
5462
|
# The PageOptimizationConfig for model training. This determines how many panels
|
|
5458
|
-
# to optimize for, and which serving
|
|
5459
|
-
#
|
|
5463
|
+
# to optimize for, and which serving configs to consider for each panel. The
|
|
5464
|
+
# purpose of this model is to optimize which ServingConfig to show on which
|
|
5460
5465
|
# panels in way that optimizes the visitors shopping journey.
|
|
5461
5466
|
class GoogleCloudRetailV2alphaModelPageOptimizationConfig
|
|
5462
5467
|
include Google::Apis::Core::Hashable
|
|
@@ -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.60.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20230102"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -1400,10 +1400,10 @@ module Google
|
|
|
1400
1400
|
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
|
1401
1401
|
# the Recommendations AI serving config or placement. Before you can request
|
|
1402
1402
|
# predictions from your model, you must create at least one serving config or
|
|
1403
|
-
# placement for it. For more information, see [
|
|
1404
|
-
#
|
|
1405
|
-
#
|
|
1406
|
-
#
|
|
1403
|
+
# placement for it. For more information, see [Manage serving configs] (https://
|
|
1404
|
+
# cloud.google.com/retail/docs/manage-configs). The full list of available
|
|
1405
|
+
# serving configs can be seen at https://console.cloud.google.com/ai/retail/
|
|
1406
|
+
# catalogs/default_catalog/configs
|
|
1407
1407
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
|
1408
1408
|
# @param [String] fields
|
|
1409
1409
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1442,8 +1442,8 @@ module Google
|
|
|
1442
1442
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
|
1443
1443
|
# default_serving_config` or the name of the legacy placement resource, such as `
|
|
1444
1444
|
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
|
1445
|
-
# . This field is used to identify the serving
|
|
1446
|
-
#
|
|
1445
|
+
# . This field is used to identify the serving config name and the set of models
|
|
1446
|
+
# that will be used to make the search.
|
|
1447
1447
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
|
1448
1448
|
# @param [String] fields
|
|
1449
1449
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1706,10 +1706,10 @@ module Google
|
|
|
1706
1706
|
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
|
1707
1707
|
# the Recommendations AI serving config or placement. Before you can request
|
|
1708
1708
|
# predictions from your model, you must create at least one serving config or
|
|
1709
|
-
# placement for it. For more information, see [
|
|
1710
|
-
#
|
|
1711
|
-
#
|
|
1712
|
-
#
|
|
1709
|
+
# placement for it. For more information, see [Manage serving configs] (https://
|
|
1710
|
+
# cloud.google.com/retail/docs/manage-configs). The full list of available
|
|
1711
|
+
# serving configs can be seen at https://console.cloud.google.com/ai/retail/
|
|
1712
|
+
# catalogs/default_catalog/configs
|
|
1713
1713
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
|
1714
1714
|
# @param [String] fields
|
|
1715
1715
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1785,8 +1785,8 @@ module Google
|
|
|
1785
1785
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
|
1786
1786
|
# default_serving_config` or the name of the legacy placement resource, such as `
|
|
1787
1787
|
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
|
1788
|
-
# . This field is used to identify the serving
|
|
1789
|
-
#
|
|
1788
|
+
# . This field is used to identify the serving config name and the set of models
|
|
1789
|
+
# that will be used to make the search.
|
|
1790
1790
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
|
1791
1791
|
# @param [String] fields
|
|
1792
1792
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1830,7 +1830,7 @@ module Google
|
|
|
1830
1830
|
# payload bytes.
|
|
1831
1831
|
# @param [String] prebuilt_rule
|
|
1832
1832
|
# The prebuilt rule name that can convert a specific type of raw_json. For
|
|
1833
|
-
# example: "
|
|
1833
|
+
# example: "ga4_bq" rule for the GA4 user event schema.
|
|
1834
1834
|
# @param [String] raw_json
|
|
1835
1835
|
# An arbitrary serialized JSON string that contains necessary information that
|
|
1836
1836
|
# can comprise a user event. When this field is specified, the user_event field
|
|
@@ -1995,6 +1995,11 @@ module Google
|
|
|
1995
1995
|
# Required. The parent catalog resource name, such as `projects/1234/locations/
|
|
1996
1996
|
# global/catalogs/default_catalog`.
|
|
1997
1997
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent] google_cloud_retail_v2_user_event_object
|
|
1998
|
+
# @param [Boolean] write_async
|
|
1999
|
+
# If set to true, the user event will be written asynchronously after validation,
|
|
2000
|
+
# and the API will respond without waiting for the write. Therefore, silent
|
|
2001
|
+
# failures can occur even if the API returns success. In case of silent failures,
|
|
2002
|
+
# error messages can be found in Stackdriver logs.
|
|
1998
2003
|
# @param [String] fields
|
|
1999
2004
|
# Selector specifying which fields to include in a partial response.
|
|
2000
2005
|
# @param [String] quota_user
|
|
@@ -2012,13 +2017,14 @@ module Google
|
|
|
2012
2017
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2013
2018
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2014
2019
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2015
|
-
def write_project_location_catalog_user_event(parent, google_cloud_retail_v2_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2020
|
+
def write_project_location_catalog_user_event(parent, google_cloud_retail_v2_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2016
2021
|
command = make_simple_command(:post, 'v2/{+parent}/userEvents:write', options)
|
|
2017
2022
|
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
|
|
2018
2023
|
command.request_object = google_cloud_retail_v2_user_event_object
|
|
2019
2024
|
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
|
|
2020
2025
|
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent
|
|
2021
2026
|
command.params['parent'] = parent unless parent.nil?
|
|
2027
|
+
command.query['writeAsync'] = write_async unless write_async.nil?
|
|
2022
2028
|
command.query['fields'] = fields unless fields.nil?
|
|
2023
2029
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2024
2030
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.60.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: 2023-01-04 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_v2/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.60.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|