google-apis-retail_v2beta 0.40.0 → 0.43.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: 4772daf547d9c19f6e206d0630c33483a1dbdc699d4bb0222b751f4a169d77fb
|
4
|
+
data.tar.gz: ffc09315f4a1f414e12aa7dd0c408d05d0b69ebb50de4dd51f4147035203b75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dfa0275a061173f33fc24c6945e75cb2c9af61cc924c4addf82b45157e13363fd2d3056adba7a9fbdd59c17194edb6ca935e7062ef33960a14def7ed189ea7c
|
7
|
+
data.tar.gz: a4ee485579ef926fce144ee120a90fe2f282e2715cfbfaec7a96193392e20234d688e2ceba02be0300935dafe3c0c0b400c2a8965bc17f09aa3403131d02f2ea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.43.0 (2022-06-18)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.7.0
|
6
|
+
* Regenerated from discovery document revision 20220609
|
7
|
+
|
8
|
+
### v0.42.0 (2022-06-07)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220602
|
11
|
+
* Regenerated using generator version 0.5.0
|
12
|
+
|
13
|
+
### v0.41.0 (2022-05-26)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20220519
|
16
|
+
|
3
17
|
### v0.40.0 (2022-05-19)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220512
|
@@ -1471,7 +1471,7 @@ module Google
|
|
1471
1471
|
attr_accessor :catalog_attributes
|
1472
1472
|
|
1473
1473
|
# Required. Immutable. The fully qualified resource name of the attribute config.
|
1474
|
-
# Format:
|
1474
|
+
# Format: `projects/*/locations/*/catalogs/*/attributesConfig`
|
1475
1475
|
# Corresponds to the JSON property `name`
|
1476
1476
|
# @return [String]
|
1477
1477
|
attr_accessor :name
|
@@ -1907,8 +1907,8 @@ module Google
|
|
1907
1907
|
# @return [Fixnum]
|
1908
1908
|
attr_accessor :min_prefix_length
|
1909
1909
|
|
1910
|
-
# Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
|
1911
|
-
# completionConfig
|
1910
|
+
# Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
|
1911
|
+
# completionConfig`
|
1912
1912
|
# Corresponds to the JSON property `name`
|
1913
1913
|
# @return [String]
|
1914
1914
|
attr_accessor :name
|
@@ -2102,8 +2102,8 @@ module Google
|
|
2102
2102
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec]
|
2103
2103
|
attr_accessor :facet_spec
|
2104
2104
|
|
2105
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
2106
|
-
# controls
|
2105
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
2106
|
+
# controls/*`
|
2107
2107
|
# Corresponds to the JSON property `name`
|
2108
2108
|
# @return [String]
|
2109
2109
|
attr_accessor :name
|
@@ -3756,15 +3756,17 @@ module Google
|
|
3756
3756
|
end
|
3757
3757
|
end
|
3758
3758
|
|
3759
|
-
# Promotion
|
3759
|
+
# Promotion specification.
|
3760
3760
|
class GoogleCloudRetailV2betaPromotion
|
3761
3761
|
include Google::Apis::Core::Hashable
|
3762
3762
|
|
3763
|
-
#
|
3764
|
-
#
|
3765
|
-
#
|
3766
|
-
#
|
3767
|
-
#
|
3763
|
+
# Promotion identifier, which is the final component of name. For example, this
|
3764
|
+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
|
3765
|
+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
|
3766
|
+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
|
3767
|
+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
|
3768
|
+
# error is returned. Corresponds to Google Merchant Center property [
|
3769
|
+
# promotion_id](https://support.google.com/merchants/answer/7050148).
|
3768
3770
|
# Corresponds to the JSON property `promotionId`
|
3769
3771
|
# @return [String]
|
3770
3772
|
attr_accessor :promotion_id
|
@@ -4908,6 +4910,13 @@ module Google
|
|
4908
4910
|
class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
|
4909
4911
|
include Google::Apis::Core::Hashable
|
4910
4912
|
|
4913
|
+
# True to make facet keys case insensitive when getting faceting values with
|
4914
|
+
# prefixes or contains; false otherwise.
|
4915
|
+
# Corresponds to the JSON property `caseInsensitive`
|
4916
|
+
# @return [Boolean]
|
4917
|
+
attr_accessor :case_insensitive
|
4918
|
+
alias_method :case_insensitive?, :case_insensitive
|
4919
|
+
|
4911
4920
|
# Only get facet values that contains the given strings. For example, suppose "
|
4912
4921
|
# categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
|
4913
4922
|
# If set "contains" to "Shoe", the "categories" facet will give only "Women >
|
@@ -4975,10 +4984,11 @@ module Google
|
|
4975
4984
|
# Only get facet for the given restricted values. For example, when using "
|
4976
4985
|
# pickupInStore" as key and set restricted values to ["store123", "store456"],
|
4977
4986
|
# only facets for "store123" and "store456" are returned. Only supported on
|
4978
|
-
# textual fields and fulfillments. Maximum
|
4979
|
-
# fulfillment facet keys: * pickupInStore *
|
4980
|
-
#
|
4981
|
-
# * customFulfillment4 *
|
4987
|
+
# predefined textual fields, custom textual attributes and fulfillments. Maximum
|
4988
|
+
# is 20. Must be set for the fulfillment facet keys: * pickupInStore *
|
4989
|
+
# shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
|
4990
|
+
# customFulfillment2 * customFulfillment3 * customFulfillment4 *
|
4991
|
+
# customFulfillment5
|
4982
4992
|
# Corresponds to the JSON property `restrictedValues`
|
4983
4993
|
# @return [Array<String>]
|
4984
4994
|
attr_accessor :restricted_values
|
@@ -4989,6 +4999,7 @@ module Google
|
|
4989
4999
|
|
4990
5000
|
# Update properties of this object
|
4991
5001
|
def update!(**args)
|
5002
|
+
@case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
|
4992
5003
|
@contains = args[:contains] if args.key?(:contains)
|
4993
5004
|
@intervals = args[:intervals] if args.key?(:intervals)
|
4994
5005
|
@key = args[:key] if args.key?(:key)
|
@@ -5398,8 +5409,8 @@ module Google
|
|
5398
5409
|
# @return [String]
|
5399
5410
|
attr_accessor :model_id
|
5400
5411
|
|
5401
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
5402
|
-
# servingConfig
|
5412
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
5413
|
+
# servingConfig/*`
|
5403
5414
|
# Corresponds to the JSON property `name`
|
5404
5415
|
# @return [String]
|
5405
5416
|
attr_accessor :name
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2beta
|
18
18
|
# Version of the google-apis-retail_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.43.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 = "20220609"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2337,6 +2337,7 @@ module Google
|
|
2337
2337
|
class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
|
2338
2338
|
# @private
|
2339
2339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2340
|
+
property :case_insensitive, as: 'caseInsensitive'
|
2340
2341
|
collection :contains, as: 'contains'
|
2341
2342
|
collection :intervals, as: 'intervals', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval::Representation
|
2342
2343
|
|
@@ -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::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] google_cloud_retail_v2beta_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::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig] google_cloud_retail_v2beta_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::RetailV2beta::GoogleCloudRetailV2betaAddCatalogAttributeRequest] google_cloud_retail_v2beta_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::RetailV2beta::GoogleCloudRetailV2betaRemoveCatalogAttributeRequest] google_cloud_retail_v2beta_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::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest] google_cloud_retail_v2beta_replace_catalog_attribute_request_object
|
516
516
|
# @param [String] fields
|
517
517
|
# Selector specifying which fields to include in a partial response.
|
@@ -1106,8 +1106,8 @@ module Google
|
|
1106
1106
|
# Creates a Control. If the Control to create already exists, an ALREADY_EXISTS
|
1107
1107
|
# error is returned.
|
1108
1108
|
# @param [String] parent
|
1109
|
-
# Required. Full resource name of parent catalog. Format: projects/`
|
1110
|
-
# project_number`/locations/`location_id`/catalogs/`catalog_id
|
1109
|
+
# Required. Full resource name of parent catalog. Format: `projects/`
|
1110
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id``
|
1111
1111
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl] google_cloud_retail_v2beta_control_object
|
1112
1112
|
# @param [String] control_id
|
1113
1113
|
# Required. The ID to use for the Control, which will become the final component
|
@@ -1146,9 +1146,9 @@ module Google
|
|
1146
1146
|
# Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
|
1147
1147
|
# is returned.
|
1148
1148
|
# @param [String] name
|
1149
|
-
# Required. The resource name of the Control to delete. Format: projects/`
|
1149
|
+
# Required. The resource name of the Control to delete. Format: `projects/`
|
1150
1150
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
|
1151
|
-
# control_id
|
1151
|
+
# control_id``
|
1152
1152
|
# @param [String] fields
|
1153
1153
|
# Selector specifying which fields to include in a partial response.
|
1154
1154
|
# @param [String] quota_user
|
@@ -1178,9 +1178,9 @@ module Google
|
|
1178
1178
|
|
1179
1179
|
# Gets a Control.
|
1180
1180
|
# @param [String] name
|
1181
|
-
# Required. The resource name of the Control to delete. Format: projects/`
|
1181
|
+
# Required. The resource name of the Control to delete. Format: `projects/`
|
1182
1182
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
|
1183
|
-
# control_id
|
1183
|
+
# control_id``
|
1184
1184
|
# @param [String] fields
|
1185
1185
|
# Selector specifying which fields to include in a partial response.
|
1186
1186
|
# @param [String] quota_user
|
@@ -1210,8 +1210,8 @@ module Google
|
|
1210
1210
|
|
1211
1211
|
# Lists all Controls linked to this catalog.
|
1212
1212
|
# @param [String] parent
|
1213
|
-
# Required. The catalog resource name. Format: projects/`project_number`/
|
1214
|
-
# locations/`location_id`/catalogs/`catalog_id
|
1213
|
+
# Required. The catalog resource name. Format: `projects/`project_number`/
|
1214
|
+
# locations/`location_id`/catalogs/`catalog_id``
|
1215
1215
|
# @param [String] filter
|
1216
1216
|
# Optional. A filter to apply on the list results. Supported features: * List
|
1217
1217
|
# all the products under the parent branch if filter is unset. * List controls
|
@@ -1257,8 +1257,8 @@ module Google
|
|
1257
1257
|
# INVALID_ARGUMENT is returned. If the Control to delete does not exist, a
|
1258
1258
|
# NOT_FOUND error is returned.
|
1259
1259
|
# @param [String] name
|
1260
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1261
|
-
# controls
|
1260
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1261
|
+
# controls/*`
|
1262
1262
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl] google_cloud_retail_v2beta_control_object
|
1263
1263
|
# @param [String] update_mask
|
1264
1264
|
# Indicates which fields in the provided Control to update. The following are
|
@@ -1373,13 +1373,16 @@ module Google
|
|
1373
1373
|
|
1374
1374
|
# Makes a recommendation prediction.
|
1375
1375
|
# @param [String] placement
|
1376
|
-
# Required. Full resource name of the format: `
|
1377
|
-
# catalogs/default_catalog/
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
#
|
1376
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1377
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1378
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1379
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1380
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1381
|
+
# predictions from your model, you must create at least one serving config or
|
1382
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1383
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1384
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1385
|
+
# retail/catalogs/default_catalog/configs
|
1383
1386
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1384
1387
|
# @param [String] fields
|
1385
1388
|
# Selector specifying which fields to include in a partial response.
|
@@ -1414,10 +1417,12 @@ module Google
|
|
1414
1417
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1415
1418
|
# feature.
|
1416
1419
|
# @param [String] placement
|
1417
|
-
# Required. The resource name of the
|
1418
|
-
#
|
1419
|
-
#
|
1420
|
-
#
|
1420
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1421
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1422
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1423
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1424
|
+
# . This field is used to identify the serving configuration name and the set of
|
1425
|
+
# models that will be used to make the search.
|
1421
1426
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1422
1427
|
# @param [String] fields
|
1423
1428
|
# Selector specifying which fields to include in a partial response.
|
@@ -1491,8 +1496,8 @@ module Google
|
|
1491
1496
|
# Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a
|
1492
1497
|
# Catalog, otherwise a FAILED_PRECONDITION error is returned.
|
1493
1498
|
# @param [String] parent
|
1494
|
-
# Required. Full resource name of parent. Format: projects/`project_number`/
|
1495
|
-
# locations/`location_id`/catalogs/`catalog_id
|
1499
|
+
# Required. Full resource name of parent. Format: `projects/`project_number`/
|
1500
|
+
# locations/`location_id`/catalogs/`catalog_id``
|
1496
1501
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig] google_cloud_retail_v2beta_serving_config_object
|
1497
1502
|
# @param [String] serving_config_id
|
1498
1503
|
# Required. The ID to use for the ServingConfig, which will become the final
|
@@ -1635,8 +1640,8 @@ module Google
|
|
1635
1640
|
|
1636
1641
|
# Updates a ServingConfig.
|
1637
1642
|
# @param [String] name
|
1638
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
1639
|
-
# servingConfig
|
1643
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
1644
|
+
# servingConfig/*`
|
1640
1645
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig] google_cloud_retail_v2beta_serving_config_object
|
1641
1646
|
# @param [String] update_mask
|
1642
1647
|
# Indicates which fields in the provided ServingConfig to update. The following
|
@@ -1672,6 +1677,48 @@ module Google
|
|
1672
1677
|
execute_or_queue_command(command, &block)
|
1673
1678
|
end
|
1674
1679
|
|
1680
|
+
# Makes a recommendation prediction.
|
1681
|
+
# @param [String] placement
|
1682
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1683
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1684
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1685
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1686
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1687
|
+
# predictions from your model, you must create at least one serving config or
|
1688
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1689
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1690
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1691
|
+
# retail/catalogs/default_catalog/configs
|
1692
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1693
|
+
# @param [String] fields
|
1694
|
+
# Selector specifying which fields to include in a partial response.
|
1695
|
+
# @param [String] quota_user
|
1696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1698
|
+
# @param [Google::Apis::RequestOptions] options
|
1699
|
+
# Request-specific options
|
1700
|
+
#
|
1701
|
+
# @yield [result, err] Result & error if block supplied
|
1702
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
|
1703
|
+
# @yieldparam err [StandardError] error object if request failed
|
1704
|
+
#
|
1705
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
|
1706
|
+
#
|
1707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1710
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1711
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
|
1712
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
|
1713
|
+
command.request_object = google_cloud_retail_v2beta_predict_request_object
|
1714
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
|
1715
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
|
1716
|
+
command.params['placement'] = placement unless placement.nil?
|
1717
|
+
command.query['fields'] = fields unless fields.nil?
|
1718
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1719
|
+
execute_or_queue_command(command, &block)
|
1720
|
+
end
|
1721
|
+
|
1675
1722
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1676
1723
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1677
1724
|
# the ServingConfig.
|
@@ -1709,6 +1756,46 @@ module Google
|
|
1709
1756
|
execute_or_queue_command(command, &block)
|
1710
1757
|
end
|
1711
1758
|
|
1759
|
+
# Performs a search. This feature is only available for users who have Retail
|
1760
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1761
|
+
# feature.
|
1762
|
+
# @param [String] placement
|
1763
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1764
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1765
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1766
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1767
|
+
# . This field is used to identify the serving configuration name and the set of
|
1768
|
+
# models that will be used to make the search.
|
1769
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1770
|
+
# @param [String] fields
|
1771
|
+
# Selector specifying which fields to include in a partial response.
|
1772
|
+
# @param [String] quota_user
|
1773
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1774
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1775
|
+
# @param [Google::Apis::RequestOptions] options
|
1776
|
+
# Request-specific options
|
1777
|
+
#
|
1778
|
+
# @yield [result, err] Result & error if block supplied
|
1779
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
|
1780
|
+
# @yieldparam err [StandardError] error object if request failed
|
1781
|
+
#
|
1782
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
|
1783
|
+
#
|
1784
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1785
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1786
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1787
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1788
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
|
1789
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
|
1790
|
+
command.request_object = google_cloud_retail_v2beta_search_request_object
|
1791
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
|
1792
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
|
1793
|
+
command.params['placement'] = placement unless placement.nil?
|
1794
|
+
command.query['fields'] = fields unless fields.nil?
|
1795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1796
|
+
execute_or_queue_command(command, &block)
|
1797
|
+
end
|
1798
|
+
|
1712
1799
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1713
1800
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1714
1801
|
# 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_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.43.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.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_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.43.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
|
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 V2beta
|