google-apis-retail_v2beta 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: 77df9ebeb2d71c5159d0db231ad33e230d9a05185919106d0163acaf1b028093
|
4
|
+
data.tar.gz: a820e0f376c1c755a052137ecff565157a1f28f4b2e04169750f341b58357c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6859fa9f6de27b51646ba296d8db43ed1ebba1ade3c8e562e4ad8b4fb8b078d871da8afc062074a63f3ace9a142510251dcc4ff02c9f449e82825f6215d5cd
|
7
|
+
data.tar.gz: d603bfa3f6193da96ed5bd5e982945d29223d490e044b86c8b88241929af19e22135a86e0ee9b2fdcaa50eb0707c2caae49d9e4f82b6b1377ea1682a51a036c2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.44.0 (2022-06-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220617
|
6
|
+
|
7
|
+
### v0.43.0 (2022-06-18)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.7.0
|
10
|
+
* Regenerated from discovery document revision 20220609
|
11
|
+
|
12
|
+
### v0.42.0 (2022-06-07)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20220602
|
15
|
+
* Regenerated using generator version 0.5.0
|
16
|
+
|
3
17
|
### v0.41.0 (2022-05-26)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220519
|
@@ -1681,6 +1681,14 @@ module Google
|
|
1681
1681
|
# @return [String]
|
1682
1682
|
attr_accessor :key
|
1683
1683
|
|
1684
|
+
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1685
|
+
# if RECOMMENDATIONS_FILTERING_ENABLED, attribute values are filterable for
|
1686
|
+
# recommendations. This option works for categorical features only, does not
|
1687
|
+
# work for numerical features, inventory filtering.
|
1688
|
+
# Corresponds to the JSON property `recommendationsFilteringOption`
|
1689
|
+
# @return [String]
|
1690
|
+
attr_accessor :recommendations_filtering_option
|
1691
|
+
|
1684
1692
|
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1685
1693
|
# if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
|
1686
1694
|
# SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
|
@@ -1706,6 +1714,7 @@ module Google
|
|
1706
1714
|
@in_use = args[:in_use] if args.key?(:in_use)
|
1707
1715
|
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
1708
1716
|
@key = args[:key] if args.key?(:key)
|
1717
|
+
@recommendations_filtering_option = args[:recommendations_filtering_option] if args.key?(:recommendations_filtering_option)
|
1709
1718
|
@searchable_option = args[:searchable_option] if args.key?(:searchable_option)
|
1710
1719
|
@type = args[:type] if args.key?(:type)
|
1711
1720
|
end
|
@@ -1865,14 +1874,16 @@ module Google
|
|
1865
1874
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDataInputConfig]
|
1866
1875
|
attr_accessor :denylist_input_config
|
1867
1876
|
|
1868
|
-
# Output only. LRO corresponding to the latest allowlist import. Can
|
1869
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1877
|
+
# Output only. Name of the LRO corresponding to the latest allowlist import. Can
|
1878
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1879
|
+
# Operation.
|
1870
1880
|
# Corresponds to the JSON property `lastAllowlistImportOperation`
|
1871
1881
|
# @return [String]
|
1872
1882
|
attr_accessor :last_allowlist_import_operation
|
1873
1883
|
|
1874
|
-
# Output only. LRO corresponding to the latest denylist import. Can
|
1875
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1884
|
+
# Output only. Name of the LRO corresponding to the latest denylist import. Can
|
1885
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1886
|
+
# Operation.
|
1876
1887
|
# Corresponds to the JSON property `lastDenylistImportOperation`
|
1877
1888
|
# @return [String]
|
1878
1889
|
attr_accessor :last_denylist_import_operation
|
@@ -2102,8 +2113,8 @@ module Google
|
|
2102
2113
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec]
|
2103
2114
|
attr_accessor :facet_spec
|
2104
2115
|
|
2105
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
2106
|
-
# controls
|
2116
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
2117
|
+
# controls/*`
|
2107
2118
|
# Corresponds to the JSON property `name`
|
2108
2119
|
# @return [String]
|
2109
2120
|
attr_accessor :name
|
@@ -3008,7 +3019,11 @@ module Google
|
|
3008
3019
|
# only want results strictly matching the filters, set `strictFiltering` to True
|
3009
3020
|
# in `PredictRequest.params` to receive empty results instead. Note that the API
|
3010
3021
|
# will never return items with storageStatus of "EXPIRED" or "DELETED"
|
3011
|
-
# regardless of filter choices.
|
3022
|
+
# regardless of filter choices. If `filterSyntaxV2` is set to true under the `
|
3023
|
+
# params` field, then attribute based expressions are expected instead of the
|
3024
|
+
# above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
|
3025
|
+
# NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
|
3026
|
+
# ANY("Red") OR categories: ANY("Phones"))
|
3012
3027
|
# Corresponds to the JSON property `filter`
|
3013
3028
|
# @return [String]
|
3014
3029
|
attr_accessor :filter
|
@@ -3057,7 +3072,9 @@ module Google
|
|
3057
3072
|
# price. * `diversityLevel`: String. Default empty. If set to be non-empty, then
|
3058
3073
|
# it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
|
3059
3074
|
# high-diversity', 'auto-diversity'`. This gives request-level control and
|
3060
|
-
# adjusts prediction results based on product category.
|
3075
|
+
# adjusts prediction results based on product category. * `filterSyntaxV2`:
|
3076
|
+
# Boolean. False by default. If set to true, the `filter` field will be
|
3077
|
+
# interpreteted according to the new, attribute-based syntax.
|
3061
3078
|
# Corresponds to the JSON property `params`
|
3062
3079
|
# @return [Hash<String,Object>]
|
3063
3080
|
attr_accessor :params
|
@@ -3756,15 +3773,17 @@ module Google
|
|
3756
3773
|
end
|
3757
3774
|
end
|
3758
3775
|
|
3759
|
-
# Promotion
|
3776
|
+
# Promotion specification.
|
3760
3777
|
class GoogleCloudRetailV2betaPromotion
|
3761
3778
|
include Google::Apis::Core::Hashable
|
3762
3779
|
|
3763
|
-
#
|
3764
|
-
#
|
3765
|
-
#
|
3766
|
-
#
|
3767
|
-
#
|
3780
|
+
# Promotion identifier, which is the final component of name. For example, this
|
3781
|
+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
|
3782
|
+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
|
3783
|
+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
|
3784
|
+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
|
3785
|
+
# error is returned. Corresponds to Google Merchant Center property [
|
3786
|
+
# promotion_id](https://support.google.com/merchants/answer/7050148).
|
3768
3787
|
# Corresponds to the JSON property `promotionId`
|
3769
3788
|
# @return [String]
|
3770
3789
|
attr_accessor :promotion_id
|
@@ -4908,6 +4927,13 @@ module Google
|
|
4908
4927
|
class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
|
4909
4928
|
include Google::Apis::Core::Hashable
|
4910
4929
|
|
4930
|
+
# True to make facet keys case insensitive when getting faceting values with
|
4931
|
+
# prefixes or contains; false otherwise.
|
4932
|
+
# Corresponds to the JSON property `caseInsensitive`
|
4933
|
+
# @return [Boolean]
|
4934
|
+
attr_accessor :case_insensitive
|
4935
|
+
alias_method :case_insensitive?, :case_insensitive
|
4936
|
+
|
4911
4937
|
# Only get facet values that contains the given strings. For example, suppose "
|
4912
4938
|
# categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
|
4913
4939
|
# If set "contains" to "Shoe", the "categories" facet will give only "Women >
|
@@ -4990,6 +5016,7 @@ module Google
|
|
4990
5016
|
|
4991
5017
|
# Update properties of this object
|
4992
5018
|
def update!(**args)
|
5019
|
+
@case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
|
4993
5020
|
@contains = args[:contains] if args.key?(:contains)
|
4994
5021
|
@intervals = args[:intervals] if args.key?(:intervals)
|
4995
5022
|
@key = args[:key] if args.key?(:key)
|
@@ -5399,8 +5426,8 @@ module Google
|
|
5399
5426
|
# @return [String]
|
5400
5427
|
attr_accessor :model_id
|
5401
5428
|
|
5402
|
-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
|
5403
|
-
# servingConfig
|
5429
|
+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
|
5430
|
+
# servingConfig/*`
|
5404
5431
|
# Corresponds to the JSON property `name`
|
5405
5432
|
# @return [String]
|
5406
5433
|
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.44.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
|
@@ -1548,6 +1548,7 @@ module Google
|
|
1548
1548
|
property :in_use, as: 'inUse'
|
1549
1549
|
property :indexable_option, as: 'indexableOption'
|
1550
1550
|
property :key, as: 'key'
|
1551
|
+
property :recommendations_filtering_option, as: 'recommendationsFilteringOption'
|
1551
1552
|
property :searchable_option, as: 'searchableOption'
|
1552
1553
|
property :type, as: 'type'
|
1553
1554
|
end
|
@@ -2337,6 +2338,7 @@ module Google
|
|
2337
2338
|
class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
|
2338
2339
|
# @private
|
2339
2340
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2341
|
+
property :case_insensitive, as: 'caseInsensitive'
|
2340
2342
|
collection :contains, as: 'contains'
|
2341
2343
|
collection :intervals, as: 'intervals', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval::Representation
|
2342
2344
|
|
@@ -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::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.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-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_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.44.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: []
|