google-apis-retail_v2alpha 0.42.0 → 0.45.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: f422425497e654cb3ecc0fdcba5eab497498948d6be0b26770c95c9d337dfd35
|
4
|
+
data.tar.gz: d9f6a20337dc857c3dbb75ce98db986ec3c8191f070052d825d3674fc800e4f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1143e904c0468f38564e8f34bfe7f41ef985012d059be6dbef6441dbc91e5d4e03d8d4b7dec6ec58a3890a0c2fafc8bd005553cbbb21a2070b2e0c9ad61f3fb5
|
7
|
+
data.tar.gz: fdb438745b12d9918c08a9262c1288ffc47e037f43b0a6cdcb35332fdf9e3b6e73c72ea4ae1bfc4b33677aa05beca7ab7503e05097e19edf1f2bb0666397b5cd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.45.0 (2022-06-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220617
|
6
|
+
* Regenerated using generator version 0.7.0
|
7
|
+
|
8
|
+
### v0.44.0 (2022-06-14)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220609
|
11
|
+
* Regenerated using generator version 0.6.0
|
12
|
+
|
13
|
+
### v0.43.0 (2022-06-07)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20220602
|
16
|
+
* Regenerated using generator version 0.5.0
|
17
|
+
|
3
18
|
### v0.42.0 (2022-05-26)
|
4
19
|
|
5
20
|
* Regenerated from discovery document revision 20220519
|
@@ -1113,6 +1113,14 @@ module Google
|
|
1113
1113
|
# @return [String]
|
1114
1114
|
attr_accessor :key
|
1115
1115
|
|
1116
|
+
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1117
|
+
# if RECOMMENDATIONS_FILTERING_ENABLED, attribute values are filterable for
|
1118
|
+
# recommendations. This option works for categorical features only, does not
|
1119
|
+
# work for numerical features, inventory filtering.
|
1120
|
+
# Corresponds to the JSON property `recommendationsFilteringOption`
|
1121
|
+
# @return [String]
|
1122
|
+
attr_accessor :recommendations_filtering_option
|
1123
|
+
|
1116
1124
|
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1117
1125
|
# if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
|
1118
1126
|
# SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
|
@@ -1138,6 +1146,7 @@ module Google
|
|
1138
1146
|
@in_use = args[:in_use] if args.key?(:in_use)
|
1139
1147
|
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
1140
1148
|
@key = args[:key] if args.key?(:key)
|
1149
|
+
@recommendations_filtering_option = args[:recommendations_filtering_option] if args.key?(:recommendations_filtering_option)
|
1141
1150
|
@searchable_option = args[:searchable_option] if args.key?(:searchable_option)
|
1142
1151
|
@type = args[:type] if args.key?(:type)
|
1143
1152
|
end
|
@@ -1297,14 +1306,16 @@ module Google
|
|
1297
1306
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompletionDataInputConfig]
|
1298
1307
|
attr_accessor :denylist_input_config
|
1299
1308
|
|
1300
|
-
# Output only. LRO corresponding to the latest allowlist import. Can
|
1301
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1309
|
+
# Output only. Name of the LRO corresponding to the latest allowlist import. Can
|
1310
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1311
|
+
# Operation.
|
1302
1312
|
# Corresponds to the JSON property `lastAllowlistImportOperation`
|
1303
1313
|
# @return [String]
|
1304
1314
|
attr_accessor :last_allowlist_import_operation
|
1305
1315
|
|
1306
|
-
# Output only. LRO corresponding to the latest denylist import. Can
|
1307
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1316
|
+
# Output only. Name of the LRO corresponding to the latest denylist import. Can
|
1317
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1318
|
+
# Operation.
|
1308
1319
|
# Corresponds to the JSON property `lastDenylistImportOperation`
|
1309
1320
|
# @return [String]
|
1310
1321
|
attr_accessor :last_denylist_import_operation
|
@@ -1534,8 +1545,8 @@ module Google
|
|
1534
1545
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec]
|
1535
1546
|
attr_accessor :facet_spec
|
1536
1547
|
|
1537
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1538
|
-
# controls
|
1548
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1549
|
+
# controls/*`
|
1539
1550
|
# Corresponds to the JSON property `name`
|
1540
1551
|
# @return [String]
|
1541
1552
|
attr_accessor :name
|
@@ -2459,7 +2470,11 @@ module Google
|
|
2459
2470
|
# only want results strictly matching the filters, set `strictFiltering` to True
|
2460
2471
|
# in `PredictRequest.params` to receive empty results instead. Note that the API
|
2461
2472
|
# will never return items with storageStatus of "EXPIRED" or "DELETED"
|
2462
|
-
# regardless of filter choices.
|
2473
|
+
# regardless of filter choices. If `filterSyntaxV2` is set to true under the `
|
2474
|
+
# params` field, then attribute based expressions are expected instead of the
|
2475
|
+
# above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
|
2476
|
+
# NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
|
2477
|
+
# ANY("Red") OR categories: ANY("Phones"))
|
2463
2478
|
# Corresponds to the JSON property `filter`
|
2464
2479
|
# @return [String]
|
2465
2480
|
attr_accessor :filter
|
@@ -2508,7 +2523,9 @@ module Google
|
|
2508
2523
|
# price. * `diversityLevel`: String. Default empty. If set to be non-empty, then
|
2509
2524
|
# it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
|
2510
2525
|
# high-diversity', 'auto-diversity'`. This gives request-level control and
|
2511
|
-
# adjusts prediction results based on product category.
|
2526
|
+
# adjusts prediction results based on product category. * `filterSyntaxV2`:
|
2527
|
+
# Boolean. False by default. If set to true, the `filter` field will be
|
2528
|
+
# interpreteted according to the new, attribute-based syntax.
|
2512
2529
|
# Corresponds to the JSON property `params`
|
2513
2530
|
# @return [Hash<String,Object>]
|
2514
2531
|
attr_accessor :params
|
@@ -3207,15 +3224,17 @@ module Google
|
|
3207
3224
|
end
|
3208
3225
|
end
|
3209
3226
|
|
3210
|
-
# Promotion
|
3227
|
+
# Promotion specification.
|
3211
3228
|
class GoogleCloudRetailV2alphaPromotion
|
3212
3229
|
include Google::Apis::Core::Hashable
|
3213
3230
|
|
3214
|
-
#
|
3215
|
-
#
|
3216
|
-
#
|
3217
|
-
#
|
3218
|
-
#
|
3231
|
+
# Promotion identifier, which is the final component of name. For example, this
|
3232
|
+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
|
3233
|
+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
|
3234
|
+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
|
3235
|
+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
|
3236
|
+
# error is returned. Corresponds to Google Merchant Center property [
|
3237
|
+
# promotion_id](https://support.google.com/merchants/answer/7050148).
|
3219
3238
|
# Corresponds to the JSON property `promotionId`
|
3220
3239
|
# @return [String]
|
3221
3240
|
attr_accessor :promotion_id
|
@@ -4477,6 +4496,13 @@ module Google
|
|
4477
4496
|
class GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey
|
4478
4497
|
include Google::Apis::Core::Hashable
|
4479
4498
|
|
4499
|
+
# True to make facet keys case insensitive when getting faceting values with
|
4500
|
+
# prefixes or contains; false otherwise.
|
4501
|
+
# Corresponds to the JSON property `caseInsensitive`
|
4502
|
+
# @return [Boolean]
|
4503
|
+
attr_accessor :case_insensitive
|
4504
|
+
alias_method :case_insensitive?, :case_insensitive
|
4505
|
+
|
4480
4506
|
# Only get facet values that contains the given strings. For example, suppose "
|
4481
4507
|
# categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
|
4482
4508
|
# If set "contains" to "Shoe", the "categories" facet will give only "Women >
|
@@ -4559,6 +4585,7 @@ module Google
|
|
4559
4585
|
|
4560
4586
|
# Update properties of this object
|
4561
4587
|
def update!(**args)
|
4588
|
+
@case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
|
4562
4589
|
@contains = args[:contains] if args.key?(:contains)
|
4563
4590
|
@intervals = args[:intervals] if args.key?(:intervals)
|
4564
4591
|
@key = args[:key] if args.key?(:key)
|
@@ -4968,8 +4995,8 @@ module Google
|
|
4968
4995
|
# @return [String]
|
4969
4996
|
attr_accessor :model_id
|
4970
4997
|
|
4971
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
4972
|
-
# servingConfig
|
4998
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
4999
|
+
# servingConfig/*`
|
4973
5000
|
# Corresponds to the JSON property `name`
|
4974
5001
|
# @return [String]
|
4975
5002
|
attr_accessor :name
|
@@ -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.45.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.7.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220617"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1358,6 +1358,7 @@ module Google
|
|
1358
1358
|
property :in_use, as: 'inUse'
|
1359
1359
|
property :indexable_option, as: 'indexableOption'
|
1360
1360
|
property :key, as: 'key'
|
1361
|
+
property :recommendations_filtering_option, as: 'recommendationsFilteringOption'
|
1361
1362
|
property :searchable_option, as: 'searchableOption'
|
1362
1363
|
property :type, as: 'type'
|
1363
1364
|
end
|
@@ -2176,6 +2177,7 @@ module Google
|
|
2176
2177
|
class GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey
|
2177
2178
|
# @private
|
2178
2179
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2180
|
+
property :case_insensitive, as: 'caseInsensitive'
|
2179
2181
|
collection :contains, as: 'contains'
|
2180
2182
|
collection :intervals, as: 'intervals', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval::Representation
|
2181
2183
|
|
@@ -127,8 +127,8 @@ module Google
|
|
127
127
|
|
128
128
|
# Gets an AttributesConfig.
|
129
129
|
# @param [String] name
|
130
|
-
# Required. Full AttributesConfig resource name. Format: projects/`
|
131
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
130
|
+
# Required. Full AttributesConfig resource name. Format: `projects/`
|
131
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
|
132
132
|
# @param [String] fields
|
133
133
|
# Selector specifying which fields to include in a partial response.
|
134
134
|
# @param [String] quota_user
|
@@ -439,8 +439,8 @@ module Google
|
|
439
439
|
# Adds the specified CatalogAttribute to the AttributesConfig. If the
|
440
440
|
# CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
|
441
441
|
# @param [String] attributes_config
|
442
|
-
# Required. Full AttributesConfig resource name. Format: projects/`
|
443
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
442
|
+
# Required. Full AttributesConfig resource name. Format: `projects/`
|
443
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
|
444
444
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest] google_cloud_retail_v2alpha_add_catalog_attribute_request_object
|
445
445
|
# @param [String] fields
|
446
446
|
# Selector specifying which fields to include in a partial response.
|
@@ -474,8 +474,8 @@ module Google
|
|
474
474
|
# Removes the specified CatalogAttribute from the AttributesConfig. If the
|
475
475
|
# CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
|
476
476
|
# @param [String] attributes_config
|
477
|
-
# Required. Full AttributesConfig resource name. Format: projects/`
|
478
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
477
|
+
# Required. Full AttributesConfig resource name. Format: `projects/`
|
478
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
|
479
479
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest] google_cloud_retail_v2alpha_remove_catalog_attribute_request_object
|
480
480
|
# @param [String] fields
|
481
481
|
# Selector specifying which fields to include in a partial response.
|
@@ -510,8 +510,8 @@ module Google
|
|
510
510
|
# the catalog attribute with the same CatalogAttribute.key. If the
|
511
511
|
# CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.
|
512
512
|
# @param [String] attributes_config
|
513
|
-
# Required. Full AttributesConfig resource name. Format: projects/`
|
514
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
513
|
+
# Required. Full AttributesConfig resource name. Format: `projects/`
|
514
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
|
515
515
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest] google_cloud_retail_v2alpha_replace_catalog_attribute_request_object
|
516
516
|
# @param [String] fields
|
517
517
|
# Selector specifying which fields to include in a partial response.
|
@@ -1152,8 +1152,8 @@ module Google
|
|
1152
1152
|
# Creates a Control. If the Control to create already exists, an ALREADY_EXISTS
|
1153
1153
|
# error is returned.
|
1154
1154
|
# @param [String] parent
|
1155
|
-
# Required. Full resource name of parent catalog. Format: projects/`
|
1156
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id
|
1155
|
+
# Required. Full resource name of parent catalog. Format: `projects/`
|
1156
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id``
|
1157
1157
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl] google_cloud_retail_v2alpha_control_object
|
1158
1158
|
# @param [String] control_id
|
1159
1159
|
# Required. The ID to use for the Control, which will become the final component
|
@@ -1192,9 +1192,9 @@ module Google
|
|
1192
1192
|
# Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
|
1193
1193
|
# is returned.
|
1194
1194
|
# @param [String] name
|
1195
|
-
# Required. The resource name of the Control to delete. Format: projects/`
|
1195
|
+
# Required. The resource name of the Control to delete. Format: `projects/`
|
1196
1196
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
|
1197
|
-
# control_id
|
1197
|
+
# control_id``
|
1198
1198
|
# @param [String] fields
|
1199
1199
|
# Selector specifying which fields to include in a partial response.
|
1200
1200
|
# @param [String] quota_user
|
@@ -1224,9 +1224,9 @@ module Google
|
|
1224
1224
|
|
1225
1225
|
# Gets a Control.
|
1226
1226
|
# @param [String] name
|
1227
|
-
# Required. The resource name of the Control to delete. Format: projects/`
|
1227
|
+
# Required. The resource name of the Control to delete. Format: `projects/`
|
1228
1228
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
|
1229
|
-
# control_id
|
1229
|
+
# control_id``
|
1230
1230
|
# @param [String] fields
|
1231
1231
|
# Selector specifying which fields to include in a partial response.
|
1232
1232
|
# @param [String] quota_user
|
@@ -1256,8 +1256,8 @@ module Google
|
|
1256
1256
|
|
1257
1257
|
# Lists all Controls linked to this catalog.
|
1258
1258
|
# @param [String] parent
|
1259
|
-
# Required. The catalog resource name. Format: projects/`project_number`/
|
1260
|
-
# locations/`location_id`/catalogs/`catalog_id
|
1259
|
+
# Required. The catalog resource name. Format: `projects/`project_number`/
|
1260
|
+
# locations/`location_id`/catalogs/`catalog_id``
|
1261
1261
|
# @param [String] filter
|
1262
1262
|
# Optional. A filter to apply on the list results. Supported features: * List
|
1263
1263
|
# all the products under the parent branch if filter is unset. * List controls
|
@@ -1303,8 +1303,8 @@ module Google
|
|
1303
1303
|
# INVALID_ARGUMENT is returned. If the Control to delete does not exist, a
|
1304
1304
|
# NOT_FOUND error is returned.
|
1305
1305
|
# @param [String] name
|
1306
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1307
|
-
# controls
|
1306
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1307
|
+
# controls/*`
|
1308
1308
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl] google_cloud_retail_v2alpha_control_object
|
1309
1309
|
# @param [String] update_mask
|
1310
1310
|
# Indicates which fields in the provided Control to update. The following are
|
@@ -1419,13 +1419,16 @@ module Google
|
|
1419
1419
|
|
1420
1420
|
# Makes a recommendation prediction.
|
1421
1421
|
# @param [String] placement
|
1422
|
-
# Required. Full resource name of the format: `
|
1423
|
-
# catalogs/default_catalog/
|
1424
|
-
#
|
1425
|
-
#
|
1426
|
-
#
|
1427
|
-
#
|
1428
|
-
#
|
1422
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1423
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1424
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1425
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1426
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1427
|
+
# predictions from your model, you must create at least one serving config or
|
1428
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1429
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1430
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1431
|
+
# retail/catalogs/default_catalog/configs
|
1429
1432
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
|
1430
1433
|
# @param [String] fields
|
1431
1434
|
# Selector specifying which fields to include in a partial response.
|
@@ -1460,10 +1463,12 @@ module Google
|
|
1460
1463
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1461
1464
|
# feature.
|
1462
1465
|
# @param [String] placement
|
1463
|
-
# Required. The resource name of the
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1466
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1467
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1468
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1469
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1470
|
+
# . This field is used to identify the serving configuration name and the set of
|
1471
|
+
# models that will be used to make the search.
|
1467
1472
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
1468
1473
|
# @param [String] fields
|
1469
1474
|
# Selector specifying which fields to include in a partial response.
|
@@ -1537,8 +1542,8 @@ module Google
|
|
1537
1542
|
# Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a
|
1538
1543
|
# Catalog, otherwise a FAILED_PRECONDITION error is returned.
|
1539
1544
|
# @param [String] parent
|
1540
|
-
# Required. Full resource name of parent. Format: projects/`project_number`/
|
1541
|
-
# locations/`location_id`/catalogs/`catalog_id
|
1545
|
+
# Required. Full resource name of parent. Format: `projects/`project_number`/
|
1546
|
+
# locations/`location_id`/catalogs/`catalog_id``
|
1542
1547
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaServingConfig] google_cloud_retail_v2alpha_serving_config_object
|
1543
1548
|
# @param [String] serving_config_id
|
1544
1549
|
# Required. The ID to use for the ServingConfig, which will become the final
|
@@ -1681,8 +1686,8 @@ module Google
|
|
1681
1686
|
|
1682
1687
|
# Updates a ServingConfig.
|
1683
1688
|
# @param [String] name
|
1684
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1685
|
-
# servingConfig
|
1689
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1690
|
+
# servingConfig/*`
|
1686
1691
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaServingConfig] google_cloud_retail_v2alpha_serving_config_object
|
1687
1692
|
# @param [String] update_mask
|
1688
1693
|
# Indicates which fields in the provided ServingConfig to update. The following
|
@@ -1718,6 +1723,48 @@ module Google
|
|
1718
1723
|
execute_or_queue_command(command, &block)
|
1719
1724
|
end
|
1720
1725
|
|
1726
|
+
# Makes a recommendation prediction.
|
1727
|
+
# @param [String] placement
|
1728
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1729
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1730
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1731
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1732
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1733
|
+
# predictions from your model, you must create at least one serving config or
|
1734
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1735
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1736
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1737
|
+
# retail/catalogs/default_catalog/configs
|
1738
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
|
1739
|
+
# @param [String] fields
|
1740
|
+
# Selector specifying which fields to include in a partial response.
|
1741
|
+
# @param [String] quota_user
|
1742
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1743
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1744
|
+
# @param [Google::Apis::RequestOptions] options
|
1745
|
+
# Request-specific options
|
1746
|
+
#
|
1747
|
+
# @yield [result, err] Result & error if block supplied
|
1748
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse] parsed result object
|
1749
|
+
# @yieldparam err [StandardError] error object if request failed
|
1750
|
+
#
|
1751
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse]
|
1752
|
+
#
|
1753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1756
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2alpha_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1757
|
+
command = make_simple_command(:post, 'v2alpha/{+placement}:predict', options)
|
1758
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest::Representation
|
1759
|
+
command.request_object = google_cloud_retail_v2alpha_predict_request_object
|
1760
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse::Representation
|
1761
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse
|
1762
|
+
command.params['placement'] = placement unless placement.nil?
|
1763
|
+
command.query['fields'] = fields unless fields.nil?
|
1764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1765
|
+
execute_or_queue_command(command, &block)
|
1766
|
+
end
|
1767
|
+
|
1721
1768
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1722
1769
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1723
1770
|
# the ServingConfig.
|
@@ -1755,6 +1802,46 @@ module Google
|
|
1755
1802
|
execute_or_queue_command(command, &block)
|
1756
1803
|
end
|
1757
1804
|
|
1805
|
+
# Performs a search. This feature is only available for users who have Retail
|
1806
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1807
|
+
# feature.
|
1808
|
+
# @param [String] placement
|
1809
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1810
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1811
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1812
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1813
|
+
# . This field is used to identify the serving configuration name and the set of
|
1814
|
+
# models that will be used to make the search.
|
1815
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
1816
|
+
# @param [String] fields
|
1817
|
+
# Selector specifying which fields to include in a partial response.
|
1818
|
+
# @param [String] quota_user
|
1819
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1820
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1821
|
+
# @param [Google::Apis::RequestOptions] options
|
1822
|
+
# Request-specific options
|
1823
|
+
#
|
1824
|
+
# @yield [result, err] Result & error if block supplied
|
1825
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse] parsed result object
|
1826
|
+
# @yieldparam err [StandardError] error object if request failed
|
1827
|
+
#
|
1828
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse]
|
1829
|
+
#
|
1830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1833
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2alpha_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1834
|
+
command = make_simple_command(:post, 'v2alpha/{+placement}:search', options)
|
1835
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest::Representation
|
1836
|
+
command.request_object = google_cloud_retail_v2alpha_search_request_object
|
1837
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse::Representation
|
1838
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse
|
1839
|
+
command.params['placement'] = placement unless placement.nil?
|
1840
|
+
command.query['fields'] = fields unless fields.nil?
|
1841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1842
|
+
execute_or_queue_command(command, &block)
|
1843
|
+
end
|
1844
|
+
|
1758
1845
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1759
1846
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1760
1847
|
# only by the Retail API JavaScript pixel and Google Tag Manager. Users should
|
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.45.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-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.6'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.45.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: []
|