google-apis-retail_v2alpha 0.46.0 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,12 +72,13 @@ module Google
72
72
  # `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
73
73
  # `OTHER_`, e.g. `OTHER_IPHONE`.
74
74
  # @param [Array<String>, String] language_codes
75
- # The language filters applied to the output suggestions. If set, it should
76
- # contain the language of the query. If not set, suggestions are returned
77
- # without considering language restrictions. This is the BCP-47 language code,
78
- # such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying
79
- # Languages](https://tools.ietf.org/html/bcp47). The maximum number of language
80
- # codes is 3.
75
+ # Note that this field applies for `user-data` dataset only. For requests with `
76
+ # cloud-retail` dataset, setting this field has no effect. The language filters
77
+ # applied to the output suggestions. If set, it should contain the language of
78
+ # the query. If not set, suggestions are returned without considering language
79
+ # restrictions. This is the BCP-47 language code, such as "en-US" or "sr-Latn".
80
+ # For more information, see [Tags for Identifying Languages](https://tools.ietf.
81
+ # org/html/bcp47). The maximum number of language codes is 3.
81
82
  # @param [Fixnum] max_suggestions
82
83
  # Completion max suggestions. If left unset or set to 0, then will fallback to
83
84
  # the configured value CompletionConfig.max_suggestions. The maximum allowed max
@@ -578,9 +579,9 @@ module Google
578
579
  # updating fulfillment information. If the request is valid, the update will be
579
580
  # enqueued and processed downstream. As a consequence, when a response is
580
581
  # returned, the added place IDs are not immediately manifested in the Product
581
- # queried by GetProduct or ListProducts. This feature is only available for
582
- # users who have Retail Search enabled. Please enable Retail Search on Cloud
583
- # Console before using this feature.
582
+ # queried by ProductService.GetProduct or ProductService.ListProducts. This
583
+ # feature is only available for users who have Retail Search enabled. Please
584
+ # enable Retail Search on Cloud Console before using this feature.
584
585
  # @param [String] product
585
586
  # Required. Full resource name of Product, such as `projects/*/locations/global/
586
587
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -621,11 +622,13 @@ module Google
621
622
  # asynchronous and does not require the Product to exist before updating
622
623
  # inventory information. If the request is valid, the update will be enqueued
623
624
  # and processed downstream. As a consequence, when a response is returned,
624
- # updates are not immediately manifested in the Product queried by GetProduct or
625
- # ListProducts. Local inventory information can only be modified using this
626
- # method. CreateProduct and UpdateProduct has no effect on local inventories.
627
- # This feature is only available for users who have Retail Search enabled.
628
- # Please enable Retail Search on Cloud Console before using this feature.
625
+ # updates are not immediately manifested in the Product queried by
626
+ # ProductService.GetProduct or ProductService.ListProducts. Local inventory
627
+ # information can only be modified using this method. ProductService.
628
+ # CreateProduct and ProductService.UpdateProduct has no effect on local
629
+ # inventories. This feature is only available for users who have Retail Search
630
+ # enabled. Please enable Retail Search on Cloud Console before using this
631
+ # feature.
629
632
  # @param [String] product
630
633
  # Required. Full resource name of Product, such as `projects/*/locations/global/
631
634
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -935,9 +938,10 @@ module Google
935
938
  # asynchronous. If the request is valid, the removal will be enqueued and
936
939
  # processed offline. Depending on the number of Products, this operation could
937
940
  # take hours to complete. Before the operation completes, some Products may
938
- # still be returned by GetProduct or ListProducts. Depending on the number of
939
- # Products, this operation could take hours to complete. To get a sample of
940
- # Products that would be deleted, set PurgeProductsRequest.force to false.
941
+ # still be returned by ProductService.GetProduct or ProductService.ListProducts.
942
+ # Depending on the number of Products, this operation could take hours to
943
+ # complete. To get a sample of Products that would be deleted, set
944
+ # PurgeProductsRequest.force to false.
941
945
  # @param [String] parent
942
946
  # Required. The resource name of the branch under which the products are created.
943
947
  # The format is `projects/$`projectId`/locations/global/catalogs/$`catalogId`/
@@ -977,9 +981,9 @@ module Google
977
981
  # updating fulfillment information. If the request is valid, the update will be
978
982
  # enqueued and processed downstream. As a consequence, when a response is
979
983
  # returned, the removed place IDs are not immediately manifested in the Product
980
- # queried by GetProduct or ListProducts. This feature is only available for
981
- # users who have Retail Search enabled. Please enable Retail Search on Cloud
982
- # Console before using this feature.
984
+ # queried by ProductService.GetProduct or ProductService.ListProducts. This
985
+ # feature is only available for users who have Retail Search enabled. Please
986
+ # enable Retail Search on Cloud Console before using this feature.
983
987
  # @param [String] product
984
988
  # Required. Full resource name of Product, such as `projects/*/locations/global/
985
989
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -1019,10 +1023,11 @@ module Google
1019
1023
  # removal timestamp. This process is asynchronous. If the request is valid, the
1020
1024
  # removal will be enqueued and processed downstream. As a consequence, when a
1021
1025
  # response is returned, removals are not immediately manifested in the Product
1022
- # queried by GetProduct or ListProducts. Local inventory information can only be
1023
- # removed using this method. CreateProduct and UpdateProduct has no effect on
1024
- # local inventories. This feature is only available for users who have Retail
1025
- # Search enabled. Please enable Retail Search on Cloud Console before using this
1026
+ # queried by ProductService.GetProduct or ProductService.ListProducts. Local
1027
+ # inventory information can only be removed using this method. ProductService.
1028
+ # CreateProduct and ProductService.UpdateProduct has no effect on local
1029
+ # inventories. This feature is only available for users who have Retail Search
1030
+ # enabled. Please enable Retail Search on Cloud Console before using this
1026
1031
  # feature.
1027
1032
  # @param [String] product
1028
1033
  # Required. Full resource name of Product, such as `projects/*/locations/global/
@@ -1064,19 +1069,21 @@ module Google
1064
1069
  # require the Product to exist before updating fulfillment information. If the
1065
1070
  # request is valid, the update will be enqueued and processed downstream. As a
1066
1071
  # consequence, when a response is returned, updates are not immediately
1067
- # manifested in the Product queried by GetProduct or ListProducts. When
1068
- # inventory is updated with CreateProduct and UpdateProduct, the specified
1069
- # inventory field value(s) will overwrite any existing value(s) while ignoring
1070
- # the last update time for this field. Furthermore, the last update time for the
1071
- # specified inventory fields will be overwritten to the time of the
1072
- # CreateProduct or UpdateProduct request. If no inventory fields are set in
1073
- # CreateProductRequest.product, then any pre-existing inventory information for
1074
- # this product will be used. If no inventory fields are set in
1072
+ # manifested in the Product queried by ProductService.GetProduct or
1073
+ # ProductService.ListProducts. When inventory is updated with ProductService.
1074
+ # CreateProduct and ProductService.UpdateProduct, the specified inventory field
1075
+ # value(s) will overwrite any existing value(s) while ignoring the last update
1076
+ # time for this field. Furthermore, the last update time for the specified
1077
+ # inventory fields will be overwritten to the time of the ProductService.
1078
+ # CreateProduct or ProductService.UpdateProduct request. If no inventory fields
1079
+ # are set in CreateProductRequest.product, then any pre-existing inventory
1080
+ # information for this product will be used. If no inventory fields are set in
1075
1081
  # SetInventoryRequest.set_mask, then any existing inventory information will be
1076
1082
  # preserved. Pre-existing inventory information can only be updated with
1077
- # SetInventory, ProductService.AddFulfillmentPlaces, and RemoveFulfillmentPlaces.
1078
- # This feature is only available for users who have Retail Search enabled.
1079
- # Please enable Retail Search on Cloud Console before using this feature.
1083
+ # ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and
1084
+ # ProductService.RemoveFulfillmentPlaces. This feature is only available for
1085
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
1086
+ # Console before using this feature.
1080
1087
  # @param [String] name
1081
1088
  # Immutable. Full resource name of the product, such as `projects/*/locations/
1082
1089
  # global/catalogs/default_catalog/branches/default_branch/products/product_id`.
@@ -1340,6 +1347,257 @@ module Google
1340
1347
  execute_or_queue_command(command, &block)
1341
1348
  end
1342
1349
 
1350
+ # Creates a new model.
1351
+ # @param [String] parent
1352
+ # Required. The parent resource under which to create the model. Format:
1353
+ # projects/`project_number`/locations/`location_id`/catalogs/`catalog_id`
1354
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
1355
+ # @param [Boolean] dry_run
1356
+ # Optional. Whether to run a dry_run to validate the request (without actually
1357
+ # creating the model).
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [Google::Apis::RequestOptions] options
1364
+ # Request-specific options
1365
+ #
1366
+ # @yield [result, err] Result & error if block supplied
1367
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1368
+ # @yieldparam err [StandardError] error object if request failed
1369
+ #
1370
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1371
+ #
1372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
+ def create_project_location_catalog_model(parent, google_cloud_retail_v2alpha_model_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
1376
+ command = make_simple_command(:post, 'v2alpha/{+parent}/models', options)
1377
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1378
+ command.request_object = google_cloud_retail_v2alpha_model_object
1379
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1380
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1381
+ command.params['parent'] = parent unless parent.nil?
1382
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1383
+ command.query['fields'] = fields unless fields.nil?
1384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
+ execute_or_queue_command(command, &block)
1386
+ end
1387
+
1388
+ # Deletes an existing model.
1389
+ # @param [String] name
1390
+ # Required. The resource name of the [Model] to delete. Format: projects/`
1391
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1392
+ # @param [String] fields
1393
+ # Selector specifying which fields to include in a partial response.
1394
+ # @param [String] quota_user
1395
+ # Available to use for quota purposes for server-side applications. Can be any
1396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1397
+ # @param [Google::Apis::RequestOptions] options
1398
+ # Request-specific options
1399
+ #
1400
+ # @yield [result, err] Result & error if block supplied
1401
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleProtobufEmpty] parsed result object
1402
+ # @yieldparam err [StandardError] error object if request failed
1403
+ #
1404
+ # @return [Google::Apis::RetailV2alpha::GoogleProtobufEmpty]
1405
+ #
1406
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1407
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1408
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1409
+ def delete_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block)
1410
+ command = make_simple_command(:delete, 'v2alpha/{+name}', options)
1411
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleProtobufEmpty::Representation
1412
+ command.response_class = Google::Apis::RetailV2alpha::GoogleProtobufEmpty
1413
+ command.params['name'] = name unless name.nil?
1414
+ command.query['fields'] = fields unless fields.nil?
1415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1416
+ execute_or_queue_command(command, &block)
1417
+ end
1418
+
1419
+ # Lists all the models linked to this event store.
1420
+ # @param [String] parent
1421
+ # Required. The parent for which to list models. Format: projects/`
1422
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`
1423
+ # @param [Fixnum] page_size
1424
+ # Optional. Maximum number of results to return. If unspecified, defaults to 50.
1425
+ # Max allowed value is 1000.
1426
+ # @param [String] page_token
1427
+ # Optional. A page token, received from a previous `ListModels` call. Provide
1428
+ # this to retrieve the subsequent page.
1429
+ # @param [String] fields
1430
+ # Selector specifying which fields to include in a partial response.
1431
+ # @param [String] quota_user
1432
+ # Available to use for quota purposes for server-side applications. Can be any
1433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1434
+ # @param [Google::Apis::RequestOptions] options
1435
+ # Request-specific options
1436
+ #
1437
+ # @yield [result, err] Result & error if block supplied
1438
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse] parsed result object
1439
+ # @yieldparam err [StandardError] error object if request failed
1440
+ #
1441
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse]
1442
+ #
1443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1446
+ def list_project_location_catalog_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1447
+ command = make_simple_command(:get, 'v2alpha/{+parent}/models', options)
1448
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse::Representation
1449
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse
1450
+ command.params['parent'] = parent unless parent.nil?
1451
+ command.query['pageSize'] = page_size unless page_size.nil?
1452
+ command.query['pageToken'] = page_token unless page_token.nil?
1453
+ command.query['fields'] = fields unless fields.nil?
1454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1455
+ execute_or_queue_command(command, &block)
1456
+ end
1457
+
1458
+ # Update of model metadata. Only fields that currently can be updated are:
1459
+ # filtering_option, periodic_tuning_state. If other values are provided, this
1460
+ # API method will ignore them.
1461
+ # @param [String] name
1462
+ # Required. The fully qualified resource name of the model. Format: projects/`
1463
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1464
+ # catalog_id has char limit of 50. recommendation_model_id has char limit of 40.
1465
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
1466
+ # @param [String] update_mask
1467
+ # Optional. Indicates which fields in the provided 'model' to update. If not set,
1468
+ # will by default update all fields.
1469
+ # @param [String] fields
1470
+ # Selector specifying which fields to include in a partial response.
1471
+ # @param [String] quota_user
1472
+ # Available to use for quota purposes for server-side applications. Can be any
1473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1474
+ # @param [Google::Apis::RequestOptions] options
1475
+ # Request-specific options
1476
+ #
1477
+ # @yield [result, err] Result & error if block supplied
1478
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] parsed result object
1479
+ # @yieldparam err [StandardError] error object if request failed
1480
+ #
1481
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel]
1482
+ #
1483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1486
+ def patch_project_location_catalog_model(name, google_cloud_retail_v2alpha_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1487
+ command = make_simple_command(:patch, 'v2alpha/{+name}', options)
1488
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1489
+ command.request_object = google_cloud_retail_v2alpha_model_object
1490
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1491
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel
1492
+ command.params['name'] = name unless name.nil?
1493
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1494
+ command.query['fields'] = fields unless fields.nil?
1495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1496
+ execute_or_queue_command(command, &block)
1497
+ end
1498
+
1499
+ # Pauses the training of an existing model.
1500
+ # @param [String] name
1501
+ # Required. The name of the model to pause. Format: projects/`project_number`/
1502
+ # locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1503
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPauseModelRequest] google_cloud_retail_v2alpha_pause_model_request_object
1504
+ # @param [String] fields
1505
+ # Selector specifying which fields to include in a partial response.
1506
+ # @param [String] quota_user
1507
+ # Available to use for quota purposes for server-side applications. Can be any
1508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1509
+ # @param [Google::Apis::RequestOptions] options
1510
+ # Request-specific options
1511
+ #
1512
+ # @yield [result, err] Result & error if block supplied
1513
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] parsed result object
1514
+ # @yieldparam err [StandardError] error object if request failed
1515
+ #
1516
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel]
1517
+ #
1518
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1519
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1520
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1521
+ def pause_project_location_catalog_model(name, google_cloud_retail_v2alpha_pause_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1522
+ command = make_simple_command(:post, 'v2alpha/{+name}:pause', options)
1523
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPauseModelRequest::Representation
1524
+ command.request_object = google_cloud_retail_v2alpha_pause_model_request_object
1525
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1526
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel
1527
+ command.params['name'] = name unless name.nil?
1528
+ command.query['fields'] = fields unless fields.nil?
1529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1530
+ execute_or_queue_command(command, &block)
1531
+ end
1532
+
1533
+ # Resumes the training of an existing model.
1534
+ # @param [String] name
1535
+ # Required. The name of the model to resume. Format: projects/`project_number`/
1536
+ # locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1537
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaResumeModelRequest] google_cloud_retail_v2alpha_resume_model_request_object
1538
+ # @param [String] fields
1539
+ # Selector specifying which fields to include in a partial response.
1540
+ # @param [String] quota_user
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1543
+ # @param [Google::Apis::RequestOptions] options
1544
+ # Request-specific options
1545
+ #
1546
+ # @yield [result, err] Result & error if block supplied
1547
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] parsed result object
1548
+ # @yieldparam err [StandardError] error object if request failed
1549
+ #
1550
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel]
1551
+ #
1552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1555
+ def resume_project_location_catalog_model(name, google_cloud_retail_v2alpha_resume_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1556
+ command = make_simple_command(:post, 'v2alpha/{+name}:resume', options)
1557
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaResumeModelRequest::Representation
1558
+ command.request_object = google_cloud_retail_v2alpha_resume_model_request_object
1559
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1560
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel
1561
+ command.params['name'] = name unless name.nil?
1562
+ command.query['fields'] = fields unless fields.nil?
1563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1564
+ execute_or_queue_command(command, &block)
1565
+ end
1566
+
1567
+ # Tunes an existing model.
1568
+ # @param [String] name
1569
+ # Required. The resource name of the model to tune. Format: projects/`
1570
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1571
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTuneModelRequest] google_cloud_retail_v2alpha_tune_model_request_object
1572
+ # @param [String] fields
1573
+ # Selector specifying which fields to include in a partial response.
1574
+ # @param [String] quota_user
1575
+ # Available to use for quota purposes for server-side applications. Can be any
1576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1577
+ # @param [Google::Apis::RequestOptions] options
1578
+ # Request-specific options
1579
+ #
1580
+ # @yield [result, err] Result & error if block supplied
1581
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1582
+ # @yieldparam err [StandardError] error object if request failed
1583
+ #
1584
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1585
+ #
1586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1589
+ def tune_project_location_catalog_model(name, google_cloud_retail_v2alpha_tune_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1590
+ command = make_simple_command(:post, 'v2alpha/{+name}:tune', options)
1591
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTuneModelRequest::Representation
1592
+ command.request_object = google_cloud_retail_v2alpha_tune_model_request_object
1593
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1594
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1595
+ command.params['name'] = name unless name.nil?
1596
+ command.query['fields'] = fields unless fields.nil?
1597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1598
+ execute_or_queue_command(command, &block)
1599
+ end
1600
+
1343
1601
  # Gets the latest state of a long-running operation. Clients can use this method
1344
1602
  # to poll the operation result at intervals as recommended by the API service.
1345
1603
  # @param [String] name
@@ -1419,9 +1677,9 @@ module Google
1419
1677
 
1420
1678
  # Makes a recommendation prediction.
1421
1679
  # @param [String] placement
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
1680
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
1681
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
1682
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
1425
1683
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1426
1684
  # the Recommendations AI serving config or placement. Before you can request
1427
1685
  # predictions from your model, you must create at least one serving config or
@@ -1725,9 +1983,9 @@ module Google
1725
1983
 
1726
1984
  # Makes a recommendation prediction.
1727
1985
  # @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
1986
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
1987
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
1988
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
1731
1989
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1732
1990
  # the Recommendations AI serving config or placement. Before you can request
1733
1991
  # predictions from your model, you must create at least one serving config or
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.46.0
4
+ version: 0.49.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-25 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.49.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: []