google-apis-retail_v2alpha 0.41.0 → 0.44.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: d0501411f8392c47a42cde2e731fe7ed38f1ecadb5932140e73faf75cdeaf9b6
|
4
|
+
data.tar.gz: 55736739a79b6da3399587347b790893f467d1f1fda00baa7669e06574161d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5f8596cbd6a51d121cec9041473fdf45d9bbcabe20832b486e0354ca72d3f39173ee2100d48cb2a8c53da2c2d53cf2c425d38ca852680baf011b9166e1780a
|
7
|
+
data.tar.gz: f0158d3ab733de0c6df0df577dfa81ae45ff42013fef3563ed39e77612ec3dc08cd4bff869e5aec0f6b463939127f6c13121db7849bded9fcc2ff150046d76fe
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.44.0 (2022-06-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220609
|
6
|
+
* Regenerated using generator version 0.6.0
|
7
|
+
|
8
|
+
### v0.43.0 (2022-06-07)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220602
|
11
|
+
* Regenerated using generator version 0.5.0
|
12
|
+
|
13
|
+
### v0.42.0 (2022-05-26)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20220519
|
16
|
+
|
3
17
|
### v0.41.0 (2022-05-19)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220512
|
@@ -903,7 +903,7 @@ module Google
|
|
903
903
|
attr_accessor :catalog_attributes
|
904
904
|
|
905
905
|
# Required. Immutable. The fully qualified resource name of the attribute config.
|
906
|
-
# Format:
|
906
|
+
# Format: `projects/*/locations/*/catalogs/*/attributesConfig`
|
907
907
|
# Corresponds to the JSON property `name`
|
908
908
|
# @return [String]
|
909
909
|
attr_accessor :name
|
@@ -1339,8 +1339,8 @@ module Google
|
|
1339
1339
|
# @return [Fixnum]
|
1340
1340
|
attr_accessor :min_prefix_length
|
1341
1341
|
|
1342
|
-
# Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
|
1343
|
-
# completionConfig
|
1342
|
+
# Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
|
1343
|
+
# completionConfig`
|
1344
1344
|
# Corresponds to the JSON property `name`
|
1345
1345
|
# @return [String]
|
1346
1346
|
attr_accessor :name
|
@@ -1534,8 +1534,8 @@ module Google
|
|
1534
1534
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec]
|
1535
1535
|
attr_accessor :facet_spec
|
1536
1536
|
|
1537
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1538
|
-
# controls
|
1537
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1538
|
+
# controls/*`
|
1539
1539
|
# Corresponds to the JSON property `name`
|
1540
1540
|
# @return [String]
|
1541
1541
|
attr_accessor :name
|
@@ -3207,15 +3207,17 @@ module Google
|
|
3207
3207
|
end
|
3208
3208
|
end
|
3209
3209
|
|
3210
|
-
# Promotion
|
3210
|
+
# Promotion specification.
|
3211
3211
|
class GoogleCloudRetailV2alphaPromotion
|
3212
3212
|
include Google::Apis::Core::Hashable
|
3213
3213
|
|
3214
|
-
#
|
3215
|
-
#
|
3216
|
-
#
|
3217
|
-
#
|
3218
|
-
#
|
3214
|
+
# Promotion identifier, which is the final component of name. For example, this
|
3215
|
+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
|
3216
|
+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
|
3217
|
+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
|
3218
|
+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
|
3219
|
+
# error is returned. Corresponds to Google Merchant Center property [
|
3220
|
+
# promotion_id](https://support.google.com/merchants/answer/7050148).
|
3219
3221
|
# Corresponds to the JSON property `promotionId`
|
3220
3222
|
# @return [String]
|
3221
3223
|
attr_accessor :promotion_id
|
@@ -4477,6 +4479,13 @@ module Google
|
|
4477
4479
|
class GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey
|
4478
4480
|
include Google::Apis::Core::Hashable
|
4479
4481
|
|
4482
|
+
# True to make facet keys case insensitive when getting faceting values with
|
4483
|
+
# prefixes or contains; false otherwise.
|
4484
|
+
# Corresponds to the JSON property `caseInsensitive`
|
4485
|
+
# @return [Boolean]
|
4486
|
+
attr_accessor :case_insensitive
|
4487
|
+
alias_method :case_insensitive?, :case_insensitive
|
4488
|
+
|
4480
4489
|
# Only get facet values that contains the given strings. For example, suppose "
|
4481
4490
|
# categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
|
4482
4491
|
# If set "contains" to "Shoe", the "categories" facet will give only "Women >
|
@@ -4544,10 +4553,11 @@ module Google
|
|
4544
4553
|
# Only get facet for the given restricted values. For example, when using "
|
4545
4554
|
# pickupInStore" as key and set restricted values to ["store123", "store456"],
|
4546
4555
|
# only facets for "store123" and "store456" are returned. Only supported on
|
4547
|
-
# textual fields and fulfillments. Maximum
|
4548
|
-
# fulfillment facet keys: * pickupInStore *
|
4549
|
-
#
|
4550
|
-
# * customFulfillment4 *
|
4556
|
+
# predefined textual fields, custom textual attributes and fulfillments. Maximum
|
4557
|
+
# is 20. Must be set for the fulfillment facet keys: * pickupInStore *
|
4558
|
+
# shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
|
4559
|
+
# customFulfillment2 * customFulfillment3 * customFulfillment4 *
|
4560
|
+
# customFulfillment5
|
4551
4561
|
# Corresponds to the JSON property `restrictedValues`
|
4552
4562
|
# @return [Array<String>]
|
4553
4563
|
attr_accessor :restricted_values
|
@@ -4558,6 +4568,7 @@ module Google
|
|
4558
4568
|
|
4559
4569
|
# Update properties of this object
|
4560
4570
|
def update!(**args)
|
4571
|
+
@case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
|
4561
4572
|
@contains = args[:contains] if args.key?(:contains)
|
4562
4573
|
@intervals = args[:intervals] if args.key?(:intervals)
|
4563
4574
|
@key = args[:key] if args.key?(:key)
|
@@ -4967,8 +4978,8 @@ module Google
|
|
4967
4978
|
# @return [String]
|
4968
4979
|
attr_accessor :model_id
|
4969
4980
|
|
4970
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
4971
|
-
# servingConfig
|
4981
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
4982
|
+
# servingConfig/*`
|
4972
4983
|
# Corresponds to the JSON property `name`
|
4973
4984
|
# @return [String]
|
4974
4985
|
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.44.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.6.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220609"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2176,6 +2176,7 @@ module Google
|
|
2176
2176
|
class GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey
|
2177
2177
|
# @private
|
2178
2178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2179
|
+
property :case_insensitive, as: 'caseInsensitive'
|
2179
2180
|
collection :contains, as: 'contains'
|
2180
2181
|
collection :intervals, as: 'intervals', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval::Representation
|
2181
2182
|
|
@@ -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
|
@@ -360,7 +360,7 @@ module Google
|
|
360
360
|
# options.
|
361
361
|
# @param [String] name
|
362
362
|
# Required. Immutable. The fully qualified resource name of the attribute config.
|
363
|
-
# Format:
|
363
|
+
# Format: `projects/*/locations/*/catalogs/*/attributesConfig`
|
364
364
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] google_cloud_retail_v2alpha_attributes_config_object
|
365
365
|
# @param [String] update_mask
|
366
366
|
# Indicates which fields in the provided AttributesConfig to update. The
|
@@ -398,8 +398,8 @@ module Google
|
|
398
398
|
|
399
399
|
# Updates the CompletionConfigs.
|
400
400
|
# @param [String] name
|
401
|
-
# Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
|
402
|
-
# completionConfig
|
401
|
+
# Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
|
402
|
+
# completionConfig`
|
403
403
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompletionConfig] google_cloud_retail_v2alpha_completion_config_object
|
404
404
|
# @param [String] update_mask
|
405
405
|
# Indicates which fields in the provided CompletionConfig to update. The
|
@@ -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.44.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-20 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.5'
|
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.5'
|
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.44.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Retail API V2alpha
|