google-apis-retail_v2beta 0.32.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,9 +52,8 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# Completes the specified prefix with keyword suggestions. This feature is only
|
55
|
-
# available for users who have Retail Search enabled. Please
|
56
|
-
#
|
57
|
-
# interested in using Retail Search.
|
55
|
+
# available for users who have Retail Search enabled. Please enable Retail
|
56
|
+
# Search on Cloud Console before using this feature.
|
58
57
|
# @param [String] catalog
|
59
58
|
# Required. Catalog for which the completion is performed. Full resource name of
|
60
59
|
# catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
|
@@ -156,6 +155,37 @@ module Google
|
|
156
155
|
execute_or_queue_command(command, &block)
|
157
156
|
end
|
158
157
|
|
158
|
+
# Gets a CompletionConfig.
|
159
|
+
# @param [String] name
|
160
|
+
# Required. Full CompletionConfig resource name. Format: projects/`
|
161
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/completionConfig
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def get_project_location_catalog_completion_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:get, 'v2beta/{+name}', options)
|
181
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation
|
182
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
|
183
|
+
command.params['name'] = name unless name.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
159
189
|
# Get which branch is currently default branch set by CatalogService.
|
160
190
|
# SetDefaultBranch method under a specified parent catalog.
|
161
191
|
# @param [String] catalog
|
@@ -365,6 +395,46 @@ module Google
|
|
365
395
|
execute_or_queue_command(command, &block)
|
366
396
|
end
|
367
397
|
|
398
|
+
# Updates the CompletionConfigs.
|
399
|
+
# @param [String] name
|
400
|
+
# Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
|
401
|
+
# completionConfig
|
402
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig] google_cloud_retail_v2beta_completion_config_object
|
403
|
+
# @param [String] update_mask
|
404
|
+
# Indicates which fields in the provided CompletionConfig to update. The
|
405
|
+
# following are the only supported fields: * CompletionConfig.matching_order *
|
406
|
+
# CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length *
|
407
|
+
# CompletionConfig.auto_learning If not set, all supported fields are updated.
|
408
|
+
# @param [String] fields
|
409
|
+
# Selector specifying which fields to include in a partial response.
|
410
|
+
# @param [String] quota_user
|
411
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
412
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
413
|
+
# @param [Google::Apis::RequestOptions] options
|
414
|
+
# Request-specific options
|
415
|
+
#
|
416
|
+
# @yield [result, err] Result & error if block supplied
|
417
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig] parsed result object
|
418
|
+
# @yieldparam err [StandardError] error object if request failed
|
419
|
+
#
|
420
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig]
|
421
|
+
#
|
422
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
423
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
424
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
425
|
+
def update_project_location_catalog_completion_config(name, google_cloud_retail_v2beta_completion_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
426
|
+
command = make_simple_command(:patch, 'v2beta/{+name}', options)
|
427
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation
|
428
|
+
command.request_object = google_cloud_retail_v2beta_completion_config_object
|
429
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation
|
430
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
|
431
|
+
command.params['name'] = name unless name.nil?
|
432
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
433
|
+
command.query['fields'] = fields unless fields.nil?
|
434
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
435
|
+
execute_or_queue_command(command, &block)
|
436
|
+
end
|
437
|
+
|
368
438
|
# Adds the specified CatalogAttribute to the AttributesConfig. If the
|
369
439
|
# CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
|
370
440
|
# @param [String] attributes_config
|
@@ -508,9 +578,8 @@ module Google
|
|
508
578
|
# enqueued and processed downstream. As a consequence, when a response is
|
509
579
|
# returned, the added place IDs are not immediately manifested in the Product
|
510
580
|
# queried by GetProduct or ListProducts. This feature is only available for
|
511
|
-
# users who have Retail Search enabled. Please
|
512
|
-
#
|
513
|
-
# using Retail Search.
|
581
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
582
|
+
# Console before using this feature.
|
514
583
|
# @param [String] product
|
515
584
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
516
585
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -546,6 +615,51 @@ module Google
|
|
546
615
|
execute_or_queue_command(command, &block)
|
547
616
|
end
|
548
617
|
|
618
|
+
# Updates local inventory information for a Product at a list of places, while
|
619
|
+
# respecting the last update timestamps of each inventory field. This process is
|
620
|
+
# asynchronous and does not require the Product to exist before updating
|
621
|
+
# inventory information. If the request is valid, the update will be enqueued
|
622
|
+
# and processed downstream. As a consequence, when a response is returned,
|
623
|
+
# updates are not immediately manifested in the Product queried by GetProduct or
|
624
|
+
# ListProducts. Local inventory information can only be modified using this
|
625
|
+
# method. CreateProduct and UpdateProduct has no effect on local inventories.
|
626
|
+
# This feature is only available for users who have Retail Search enabled.
|
627
|
+
# Please enable Retail Search on Cloud Console before using this feature.
|
628
|
+
# @param [String] product
|
629
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
630
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
631
|
+
# the caller does not have permission to access the Product, regardless of
|
632
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
633
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddLocalInventoriesRequest] google_cloud_retail_v2beta_add_local_inventories_request_object
|
634
|
+
# @param [String] fields
|
635
|
+
# Selector specifying which fields to include in a partial response.
|
636
|
+
# @param [String] quota_user
|
637
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
638
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
639
|
+
# @param [Google::Apis::RequestOptions] options
|
640
|
+
# Request-specific options
|
641
|
+
#
|
642
|
+
# @yield [result, err] Result & error if block supplied
|
643
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
644
|
+
# @yieldparam err [StandardError] error object if request failed
|
645
|
+
#
|
646
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
647
|
+
#
|
648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
651
|
+
def add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
652
|
+
command = make_simple_command(:post, 'v2beta/{+product}:addLocalInventories', options)
|
653
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddLocalInventoriesRequest::Representation
|
654
|
+
command.request_object = google_cloud_retail_v2beta_add_local_inventories_request_object
|
655
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
656
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
657
|
+
command.params['product'] = product unless product.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
execute_or_queue_command(command, &block)
|
661
|
+
end
|
662
|
+
|
549
663
|
# Creates a Product.
|
550
664
|
# @param [String] parent
|
551
665
|
# Required. The parent catalog resource name, such as `projects/*/locations/
|
@@ -777,7 +891,9 @@ module Google
|
|
777
891
|
# output only fields are NOT supported. If not set, all supported fields (the
|
778
892
|
# fields that are neither immutable nor output only) are updated. If an
|
779
893
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
780
|
-
# returned.
|
894
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
895
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
896
|
+
# patching product from the request, this key will be deleted after the update.
|
781
897
|
# @param [String] fields
|
782
898
|
# Selector specifying which fields to include in a partial response.
|
783
899
|
# @param [String] quota_user
|
@@ -815,9 +931,8 @@ module Google
|
|
815
931
|
# enqueued and processed downstream. As a consequence, when a response is
|
816
932
|
# returned, the removed place IDs are not immediately manifested in the Product
|
817
933
|
# queried by GetProduct or ListProducts. This feature is only available for
|
818
|
-
# users who have Retail Search enabled. Please
|
819
|
-
#
|
820
|
-
# using Retail Search.
|
934
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
935
|
+
# Console before using this feature.
|
821
936
|
# @param [String] product
|
822
937
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
823
938
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -853,6 +968,50 @@ module Google
|
|
853
968
|
execute_or_queue_command(command, &block)
|
854
969
|
end
|
855
970
|
|
971
|
+
# Remove local inventory information for a Product at a list of places at a
|
972
|
+
# removal timestamp. This process is asynchronous. If the request is valid, the
|
973
|
+
# removal will be enqueued and processed downstream. As a consequence, when a
|
974
|
+
# response is returned, removals are not immediately manifested in the Product
|
975
|
+
# queried by GetProduct or ListProducts. Local inventory information can only be
|
976
|
+
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
977
|
+
# local inventories. This feature is only available for users who have Retail
|
978
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
979
|
+
# feature.
|
980
|
+
# @param [String] product
|
981
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
982
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
983
|
+
# the caller does not have permission to access the Product, regardless of
|
984
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
985
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest] google_cloud_retail_v2beta_remove_local_inventories_request_object
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
988
|
+
# @param [String] quota_user
|
989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
991
|
+
# @param [Google::Apis::RequestOptions] options
|
992
|
+
# Request-specific options
|
993
|
+
#
|
994
|
+
# @yield [result, err] Result & error if block supplied
|
995
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
996
|
+
# @yieldparam err [StandardError] error object if request failed
|
997
|
+
#
|
998
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
999
|
+
#
|
1000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1003
|
+
def remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1004
|
+
command = make_simple_command(:post, 'v2beta/{+product}:removeLocalInventories', options)
|
1005
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest::Representation
|
1006
|
+
command.request_object = google_cloud_retail_v2beta_remove_local_inventories_request_object
|
1007
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
1008
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
1009
|
+
command.params['product'] = product unless product.nil?
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1012
|
+
execute_or_queue_command(command, &block)
|
1013
|
+
end
|
1014
|
+
|
856
1015
|
# Updates inventory information for a Product while respecting the last update
|
857
1016
|
# timestamps of each inventory field. This process is asynchronous and does not
|
858
1017
|
# require the Product to exist before updating fulfillment information. If the
|
@@ -869,9 +1028,8 @@ module Google
|
|
869
1028
|
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
870
1029
|
# preserved. Pre-existing inventory information can only be updated with
|
871
1030
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
872
|
-
# is only available for users who have Retail Search enabled. Please
|
873
|
-
#
|
874
|
-
# are interested in using Retail Search.
|
1031
|
+
# is only available for users who have Retail Search enabled. Please enable
|
1032
|
+
# Retail Search on Cloud Console before using this feature.
|
875
1033
|
# @param [String] name
|
876
1034
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
877
1035
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
@@ -905,11 +1063,12 @@ module Google
|
|
905
1063
|
execute_or_queue_command(command, &block)
|
906
1064
|
end
|
907
1065
|
|
908
|
-
# Bulk import of processed completion dataset. Request processing
|
909
|
-
#
|
910
|
-
#
|
911
|
-
#
|
912
|
-
#
|
1066
|
+
# Bulk import of processed completion dataset. Request processing is
|
1067
|
+
# asynchronous. Partial updating is not supported. The operation is successfully
|
1068
|
+
# finished only after the imported suggestions are indexed successfully and
|
1069
|
+
# ready for serving. The process takes hours. This feature is only available for
|
1070
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
1071
|
+
# Console before using this feature.
|
913
1072
|
# @param [String] parent
|
914
1073
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
915
1074
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -1214,12 +1373,15 @@ module Google
|
|
1214
1373
|
# Makes a recommendation prediction.
|
1215
1374
|
# @param [String] placement
|
1216
1375
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1217
|
-
# catalogs/default_catalog/
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1222
|
-
#
|
1376
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1377
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1378
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1379
|
+
# Recommendations AI serving config or placement. Before you can request
|
1380
|
+
# predictions from your model, you must create at least one serving config or
|
1381
|
+
# placement for it. For more information, see [Managing serving configurations].
|
1382
|
+
# (https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1383
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1384
|
+
# retail/catalogs/default_catalog/configs
|
1223
1385
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1224
1386
|
# @param [String] fields
|
1225
1387
|
# Selector specifying which fields to include in a partial response.
|
@@ -1251,13 +1413,15 @@ module Google
|
|
1251
1413
|
end
|
1252
1414
|
|
1253
1415
|
# Performs a search. This feature is only available for users who have Retail
|
1254
|
-
# Search enabled. Please
|
1255
|
-
#
|
1416
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1417
|
+
# feature.
|
1256
1418
|
# @param [String] placement
|
1257
|
-
# Required. The resource name of the
|
1258
|
-
#
|
1259
|
-
#
|
1260
|
-
#
|
1419
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1420
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1421
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1422
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1423
|
+
# . This field is used to identify the serving configuration name and the set of
|
1424
|
+
# models that will be used to make the search.
|
1261
1425
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1262
1426
|
# @param [String] fields
|
1263
1427
|
# Selector specifying which fields to include in a partial response.
|
@@ -1512,6 +1676,48 @@ module Google
|
|
1512
1676
|
execute_or_queue_command(command, &block)
|
1513
1677
|
end
|
1514
1678
|
|
1679
|
+
# Makes a recommendation prediction.
|
1680
|
+
# @param [String] placement
|
1681
|
+
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1682
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1683
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1684
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1685
|
+
# Recommendations AI serving config or placement. Before you can request
|
1686
|
+
# predictions from your model, you must create at least one serving config or
|
1687
|
+
# placement for it. For more information, see [Managing serving configurations].
|
1688
|
+
# (https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1689
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1690
|
+
# retail/catalogs/default_catalog/configs
|
1691
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1692
|
+
# @param [String] fields
|
1693
|
+
# Selector specifying which fields to include in a partial response.
|
1694
|
+
# @param [String] quota_user
|
1695
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1696
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1697
|
+
# @param [Google::Apis::RequestOptions] options
|
1698
|
+
# Request-specific options
|
1699
|
+
#
|
1700
|
+
# @yield [result, err] Result & error if block supplied
|
1701
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
|
1702
|
+
# @yieldparam err [StandardError] error object if request failed
|
1703
|
+
#
|
1704
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
|
1705
|
+
#
|
1706
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1707
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1708
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1709
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1710
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
|
1711
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
|
1712
|
+
command.request_object = google_cloud_retail_v2beta_predict_request_object
|
1713
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
|
1714
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
|
1715
|
+
command.params['placement'] = placement unless placement.nil?
|
1716
|
+
command.query['fields'] = fields unless fields.nil?
|
1717
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1718
|
+
execute_or_queue_command(command, &block)
|
1719
|
+
end
|
1720
|
+
|
1515
1721
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1516
1722
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1517
1723
|
# the ServingConfig.
|
@@ -1549,6 +1755,46 @@ module Google
|
|
1549
1755
|
execute_or_queue_command(command, &block)
|
1550
1756
|
end
|
1551
1757
|
|
1758
|
+
# Performs a search. This feature is only available for users who have Retail
|
1759
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1760
|
+
# feature.
|
1761
|
+
# @param [String] placement
|
1762
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1763
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1764
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1765
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1766
|
+
# . This field is used to identify the serving configuration name and the set of
|
1767
|
+
# models that will be used to make the search.
|
1768
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1769
|
+
# @param [String] fields
|
1770
|
+
# Selector specifying which fields to include in a partial response.
|
1771
|
+
# @param [String] quota_user
|
1772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1774
|
+
# @param [Google::Apis::RequestOptions] options
|
1775
|
+
# Request-specific options
|
1776
|
+
#
|
1777
|
+
# @yield [result, err] Result & error if block supplied
|
1778
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
|
1779
|
+
# @yieldparam err [StandardError] error object if request failed
|
1780
|
+
#
|
1781
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
|
1782
|
+
#
|
1783
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1784
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1785
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1786
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1787
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
|
1788
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
|
1789
|
+
command.request_object = google_cloud_retail_v2beta_search_request_object
|
1790
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
|
1791
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
|
1792
|
+
command.params['placement'] = placement unless placement.nil?
|
1793
|
+
command.query['fields'] = fields unless fields.nil?
|
1794
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1795
|
+
execute_or_queue_command(command, &block)
|
1796
|
+
end
|
1797
|
+
|
1552
1798
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1553
1799
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1554
1800
|
# 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.35.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-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_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.35.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: []
|