google-apis-retail_v2 0.58.0 → 0.60.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: 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
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.60.0 (2023-01-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230102
|
6
|
+
|
7
|
+
### v0.59.0 (2022-12-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221130
|
10
|
+
|
3
11
|
### v0.58.0 (2022-11-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20221107
|
@@ -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,11 +716,19 @@ 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
|
|
726
|
+
# If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.
|
727
|
+
# If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
|
728
|
+
# Corresponds to the JSON property `retrievableOption`
|
729
|
+
# @return [String]
|
730
|
+
attr_accessor :retrievable_option
|
731
|
+
|
723
732
|
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
724
733
|
# if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
|
725
734
|
# SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
|
@@ -747,6 +756,7 @@ module Google
|
|
747
756
|
@in_use = args[:in_use] if args.key?(:in_use)
|
748
757
|
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
749
758
|
@key = args[:key] if args.key?(:key)
|
759
|
+
@retrievable_option = args[:retrievable_option] if args.key?(:retrievable_option)
|
750
760
|
@searchable_option = args[:searchable_option] if args.key?(:searchable_option)
|
751
761
|
@type = args[:type] if args.key?(:type)
|
752
762
|
end
|
@@ -1125,9 +1135,9 @@ module Google
|
|
1125
1135
|
class GoogleCloudRetailV2Control
|
1126
1136
|
include Google::Apis::Core::Hashable
|
1127
1137
|
|
1128
|
-
# Output only. List of serving
|
1129
|
-
#
|
1130
|
-
#
|
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.
|
1131
1141
|
# Corresponds to the JSON property `associatedServingConfigIds`
|
1132
1142
|
# @return [Array<String>]
|
1133
1143
|
attr_accessor :associated_serving_config_ids
|
@@ -2389,7 +2399,8 @@ module Google
|
|
2389
2399
|
# For Type.VARIANT, the following fields are always returned in by default: *
|
2390
2400
|
# name * color_info The maximum number of paths is 30. Otherwise, an
|
2391
2401
|
# INVALID_ARGUMENT error is returned. Note: Returning more fields in
|
2392
|
-
# SearchResponse can increase response payload size and serving latency.
|
2402
|
+
# SearchResponse can increase response payload size and serving latency. This
|
2403
|
+
# field is deprecated. Use the retrievable site-wide control instead.
|
2393
2404
|
# Corresponds to the JSON property `retrievableFields`
|
2394
2405
|
# @return [String]
|
2395
2406
|
attr_accessor :retrievable_fields
|
@@ -4266,7 +4277,8 @@ module Google
|
|
4266
4277
|
# @return [String]
|
4267
4278
|
attr_accessor :diversity_level
|
4268
4279
|
|
4269
|
-
# 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.
|
4270
4282
|
# Corresponds to the JSON property `diversityType`
|
4271
4283
|
# @return [String]
|
4272
4284
|
attr_accessor :diversity_type
|
@@ -4354,7 +4366,7 @@ module Google
|
|
4354
4366
|
# product items with a similar recommendation probability to be ordered by price,
|
4355
4367
|
# with the highest-priced items first. This setting could result in a decrease
|
4356
4368
|
# in click-through and conversion rates. Allowed values are: * `no-price-
|
4357
|
-
# reranking` * `low-price-
|
4369
|
+
# reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-
|
4358
4370
|
# reranking` If not specified, we choose default based on model type. Default
|
4359
4371
|
# value: `no-price-reranking`. Can only be set if solution_types is
|
4360
4372
|
# SOLUTION_TYPE_RECOMMENDATION.
|
@@ -5361,8 +5373,8 @@ module Google
|
|
5361
5373
|
attr_accessor :optimization_objective
|
5362
5374
|
|
5363
5375
|
# The PageOptimizationConfig for model training. This determines how many panels
|
5364
|
-
# to optimize for, and which serving
|
5365
|
-
#
|
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
|
5366
5378
|
# panels in way that optimizes the visitors shopping journey.
|
5367
5379
|
# Corresponds to the JSON property `pageOptimizationConfig`
|
5368
5380
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
|
@@ -5404,14 +5416,14 @@ module Google
|
|
5404
5416
|
|
5405
5417
|
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
5406
5418
|
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
5407
|
-
# page-optimization`, `similar-items`, `buy-it-again`, and `
|
5408
|
-
# readonly value). This field together with
|
5409
|
-
# model metadata to use to control model
|
5410
|
-
# google.com/retail/docs/models for more
|
5411
|
-
# control and which combination of parameters
|
5412
|
-
# combinations of parameters (e.g. type = `frequently-
|
5413
|
-
# optimization_objective = `ctr`), you receive an error 400
|
5414
|
-
# update a recommendation with this set of knobs.
|
5419
|
+
# page-optimization`, `similar-items`, `buy-it-again`, `on-sale-items`, and `
|
5420
|
+
# recently-viewed`(readonly value). This field together with
|
5421
|
+
# optimization_objective describe model metadata to use to control model
|
5422
|
+
# training and serving. See https://cloud.google.com/retail/docs/models for more
|
5423
|
+
# details on what the model metadata control and which combination of parameters
|
5424
|
+
# are valid. For invalid combinations of parameters (e.g. type = `frequently-
|
5425
|
+
# bought-together` and optimization_objective = `ctr`), you receive an error 400
|
5426
|
+
# if you try to create/update a recommendation with this set of knobs.
|
5415
5427
|
# Corresponds to the JSON property `type`
|
5416
5428
|
# @return [String]
|
5417
5429
|
attr_accessor :type
|
@@ -5448,8 +5460,8 @@ module Google
|
|
5448
5460
|
end
|
5449
5461
|
|
5450
5462
|
# The PageOptimizationConfig for model training. This determines how many panels
|
5451
|
-
# to optimize for, and which serving
|
5452
|
-
#
|
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
|
5453
5465
|
# panels in way that optimizes the visitors shopping journey.
|
5454
5466
|
class GoogleCloudRetailV2alphaModelPageOptimizationConfig
|
5455
5467
|
include Google::Apis::Core::Hashable
|
@@ -6398,14 +6410,14 @@ module Google
|
|
6398
6410
|
|
6399
6411
|
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
6400
6412
|
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
6401
|
-
# page-optimization`, `similar-items`, `buy-it-again`, and `
|
6402
|
-
# readonly value). This field together with
|
6403
|
-
# model metadata to use to control model
|
6404
|
-
# google.com/retail/docs/models for more
|
6405
|
-
# control and which combination of parameters
|
6406
|
-
# combinations of parameters (e.g. type = `frequently-
|
6407
|
-
# optimization_objective = `ctr`), you receive an error 400
|
6408
|
-
# update a recommendation with this set of knobs.
|
6413
|
+
# page-optimization`, `similar-items`, `buy-it-again`, `on-sale-items`, and `
|
6414
|
+
# recently-viewed`(readonly value). This field together with
|
6415
|
+
# optimization_objective describe model metadata to use to control model
|
6416
|
+
# training and serving. See https://cloud.google.com/retail/docs/models for more
|
6417
|
+
# details on what the model metadata control and which combination of parameters
|
6418
|
+
# are valid. For invalid combinations of parameters (e.g. type = `frequently-
|
6419
|
+
# bought-together` and optimization_objective = `ctr`), you receive an error 400
|
6420
|
+
# if you try to create/update a recommendation with this set of knobs.
|
6409
6421
|
# Corresponds to the JSON property `type`
|
6410
6422
|
# @return [String]
|
6411
6423
|
attr_accessor :type
|
@@ -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
|
@@ -1316,6 +1316,7 @@ module Google
|
|
1316
1316
|
property :in_use, as: 'inUse'
|
1317
1317
|
property :indexable_option, as: 'indexableOption'
|
1318
1318
|
property :key, as: 'key'
|
1319
|
+
property :retrievable_option, as: 'retrievableOption'
|
1319
1320
|
property :searchable_option, as: 'searchableOption'
|
1320
1321
|
property :type, as: 'type'
|
1321
1322
|
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: []
|