google-apis-retail_v2 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/retail_v2/classes.rb +22 -17
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/service.rb +31 -23
- 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: a813962e4570bfe41ed865ea4b7ad39a2947507cee3a4810020185ff1b71ba51
|
4
|
+
data.tar.gz: '078ff530d7ab11b7cd3121ae3a6a880047fb98af9c53ecc8e1641d1214ae4f8b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15cfe72834120580d3152e2d4fa47340b7dbe30b3a41f7c4f179dd1345934e5bf38250600cceaeeb3623d4861c6c6b9ae29b7b11247f2380414b198ee14843df
|
7
|
+
data.tar.gz: 228d224d330e862b8bf89f448a61b7be1cb782bbe683a8e35d95a44c8088cd1daa95a9f6fa4fccc826b421e4f26a782ea33a760d8fc50f08cef098395642bf27
|
data/CHANGELOG.md
CHANGED
@@ -2109,13 +2109,13 @@ module Google
|
|
2109
2109
|
# The type of Products allowed to be ingested into the catalog. Acceptable
|
2110
2110
|
# values are: * `primary` (default): You can ingest Products of all types. When
|
2111
2111
|
# ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
|
2112
|
-
# `variant
|
2113
|
-
# Product.primary_product_id cannot be empty. If
|
2114
|
-
# value other than these, an INVALID_ARGUMENT
|
2115
|
-
# is
|
2116
|
-
#
|
2117
|
-
# google.com/retail/
|
2118
|
-
# details.
|
2112
|
+
# `variant` (incompatible with Retail Search): You can only ingest Product.Type.
|
2113
|
+
# VARIANT Products. This means Product.primary_product_id cannot be empty. If
|
2114
|
+
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
2115
|
+
# error is returned. If this field is `variant` and
|
2116
|
+
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
2117
|
+
# is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
|
2118
|
+
# product-levels) for more details.
|
2119
2119
|
# Corresponds to the JSON property `ingestionProductType`
|
2120
2120
|
# @return [String]
|
2121
2121
|
attr_accessor :ingestion_product_type
|
@@ -2128,8 +2128,8 @@ module Google
|
|
2128
2128
|
# the item group. If this field is set to an invalid value other than these, an
|
2129
2129
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
2130
2130
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
2131
|
-
# See [
|
2132
|
-
#
|
2131
|
+
# See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
|
2132
|
+
# levels) for more details.
|
2133
2133
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
2134
2134
|
# @return [String]
|
2135
2135
|
attr_accessor :merchant_center_product_id_field
|
@@ -2627,7 +2627,8 @@ module Google
|
|
2627
2627
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec]
|
2628
2628
|
attr_accessor :personalization_spec
|
2629
2629
|
|
2630
|
-
# Raw search query.
|
2630
|
+
# Raw search query. If this field is empty, the request is considered a category
|
2631
|
+
# browsing request and returned results are based on filter and page_categories.
|
2631
2632
|
# Corresponds to the JSON property `query`
|
2632
2633
|
# @return [String]
|
2633
2634
|
attr_accessor :query
|
@@ -3547,10 +3548,12 @@ module Google
|
|
3547
3548
|
# Required. A unique identifier for tracking visitors. For example, this could
|
3548
3549
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
3549
3550
|
# a visitor on a single device. This unique identifier should not change if the
|
3550
|
-
# visitor log in/out of the website.
|
3551
|
-
#
|
3552
|
-
#
|
3553
|
-
#
|
3551
|
+
# visitor log in/out of the website. Don't set the field to the same fixed ID
|
3552
|
+
# for different users. This mixes the event history of those users together,
|
3553
|
+
# which results in degraded model quality. The field must be a UTF-8 encoded
|
3554
|
+
# string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
|
3555
|
+
# error is returned. The field should not contain PII or user-data. We recommend
|
3556
|
+
# to use Google Analystics [Client ID](https://developers.google.com/analytics/
|
3554
3557
|
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
3555
3558
|
# Corresponds to the JSON property `visitorId`
|
3556
3559
|
# @return [String]
|
@@ -3698,9 +3701,11 @@ module Google
|
|
3698
3701
|
attr_accessor :user_agent
|
3699
3702
|
|
3700
3703
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
3701
|
-
# such as a user name.
|
3702
|
-
#
|
3703
|
-
#
|
3704
|
+
# such as a user name. Don't set for anonymous users. Always use a hashed value
|
3705
|
+
# for this ID. Don't set the field to the same fixed ID for different users.
|
3706
|
+
# This mixes the event history of those users together, which results in
|
3707
|
+
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
3708
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
3704
3709
|
# Corresponds to the JSON property `userId`
|
3705
3710
|
# @return [String]
|
3706
3711
|
attr_accessor :user_id
|
@@ -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.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220408"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -638,7 +638,9 @@ module Google
|
|
638
638
|
# output only fields are NOT supported. If not set, all supported fields (the
|
639
639
|
# fields that are neither immutable nor output only) are updated. If an
|
640
640
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
641
|
-
# returned.
|
641
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
642
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
643
|
+
# patching product from the request, this key will be deleted after the update.
|
642
644
|
# @param [String] fields
|
643
645
|
# Selector specifying which fields to include in a partial response.
|
644
646
|
# @param [String] quota_user
|
@@ -927,13 +929,15 @@ module Google
|
|
927
929
|
# Makes a recommendation prediction.
|
928
930
|
# @param [String] placement
|
929
931
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
930
|
-
# catalogs/default_catalog/
|
931
|
-
# catalogs/default_catalog/
|
932
|
-
#
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
936
|
-
# google.com/
|
932
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
933
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
934
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
935
|
+
# Recommendations AI serving config or placement. Before you can request
|
936
|
+
# predictions from your model, you must create at least one serving config or
|
937
|
+
# placement for it. For more information, see [Managing serving configurations].
|
938
|
+
# (https://cloud.google.com/retail/docs/manage-configs). The full list of
|
939
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
940
|
+
# retail/catalogs/default_catalog/configs
|
937
941
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
938
942
|
# @param [String] fields
|
939
943
|
# Selector specifying which fields to include in a partial response.
|
@@ -968,11 +972,12 @@ module Google
|
|
968
972
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
969
973
|
# feature.
|
970
974
|
# @param [String] placement
|
971
|
-
# Required. The resource name of the
|
972
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
975
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
973
976
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
974
|
-
# default_serving_config`
|
975
|
-
#
|
977
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
978
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
979
|
+
# . This field is used to identify the serving configuration name and the set of
|
980
|
+
# models that will be used to make the search.
|
976
981
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
977
982
|
# @param [String] fields
|
978
983
|
# Selector specifying which fields to include in a partial response.
|
@@ -1006,13 +1011,15 @@ module Google
|
|
1006
1011
|
# Makes a recommendation prediction.
|
1007
1012
|
# @param [String] placement
|
1008
1013
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1009
|
-
# catalogs/default_catalog/
|
1010
|
-
# catalogs/default_catalog/
|
1011
|
-
#
|
1012
|
-
#
|
1013
|
-
#
|
1014
|
-
#
|
1015
|
-
# google.com/
|
1014
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1015
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1016
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1017
|
+
# Recommendations AI serving config or placement. Before you can request
|
1018
|
+
# predictions from your model, you must create at least one serving config or
|
1019
|
+
# placement for it. For more information, see [Managing serving configurations].
|
1020
|
+
# (https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1021
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1022
|
+
# retail/catalogs/default_catalog/configs
|
1016
1023
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
1017
1024
|
# @param [String] fields
|
1018
1025
|
# Selector specifying which fields to include in a partial response.
|
@@ -1047,11 +1054,12 @@ module Google
|
|
1047
1054
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1048
1055
|
# feature.
|
1049
1056
|
# @param [String] placement
|
1050
|
-
# Required. The resource name of the
|
1051
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1057
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1052
1058
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1053
|
-
# default_serving_config`
|
1054
|
-
#
|
1059
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1060
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1061
|
+
# . This field is used to identify the serving configuration name and the set of
|
1062
|
+
# models that will be used to make the search.
|
1055
1063
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
1056
1064
|
# @param [String] fields
|
1057
1065
|
# Selector specifying which fields to include in a partial response.
|
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.34.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: 2022-04-
|
11
|
+
date: 2022-04-18 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.34.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: []
|