google-apis-retail_v2alpha 0.48.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -472,6 +472,41 @@ module Google
472
472
  execute_or_queue_command(command, &block)
473
473
  end
474
474
 
475
+ # Removes all specified CatalogAttributes from the AttributesConfig.
476
+ # @param [String] attributes_config
477
+ # Required. The attributes config resource shared by all catalog attributes
478
+ # being deleted. Format: `projects/`project_number`/locations/`location_id`/
479
+ # catalogs/`catalog_id`/attributesConfig`
480
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest] google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def batch_project_location_catalog_attributes_config_remove_catalog_attributes(attributes_config, google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:post, 'v2alpha/{+attributesConfig}:batchRemoveCatalogAttributes', options)
500
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest::Representation
501
+ command.request_object = google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object
502
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse::Representation
503
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse
504
+ command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
505
+ command.query['fields'] = fields unless fields.nil?
506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
507
+ execute_or_queue_command(command, &block)
508
+ end
509
+
475
510
  # Removes the specified CatalogAttribute from the AttributesConfig. If the
476
511
  # CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
477
512
  # @param [String] attributes_config
@@ -1347,6 +1382,257 @@ module Google
1347
1382
  execute_or_queue_command(command, &block)
1348
1383
  end
1349
1384
 
1385
+ # Creates a new model.
1386
+ # @param [String] parent
1387
+ # Required. The parent resource under which to create the model. Format:
1388
+ # projects/`project_number`/locations/`location_id`/catalogs/`catalog_id`
1389
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
1390
+ # @param [Boolean] dry_run
1391
+ # Optional. Whether to run a dry_run to validate the request (without actually
1392
+ # creating the model).
1393
+ # @param [String] fields
1394
+ # Selector specifying which fields to include in a partial response.
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ 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)
1411
+ command = make_simple_command(:post, 'v2alpha/{+parent}/models', options)
1412
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1413
+ command.request_object = google_cloud_retail_v2alpha_model_object
1414
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1415
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1416
+ command.params['parent'] = parent unless parent.nil?
1417
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1418
+ command.query['fields'] = fields unless fields.nil?
1419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1420
+ execute_or_queue_command(command, &block)
1421
+ end
1422
+
1423
+ # Deletes an existing model.
1424
+ # @param [String] name
1425
+ # Required. The resource name of the [Model] to delete. Format: projects/`
1426
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1427
+ # @param [String] fields
1428
+ # Selector specifying which fields to include in a partial response.
1429
+ # @param [String] quota_user
1430
+ # Available to use for quota purposes for server-side applications. Can be any
1431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1432
+ # @param [Google::Apis::RequestOptions] options
1433
+ # Request-specific options
1434
+ #
1435
+ # @yield [result, err] Result & error if block supplied
1436
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleProtobufEmpty] parsed result object
1437
+ # @yieldparam err [StandardError] error object if request failed
1438
+ #
1439
+ # @return [Google::Apis::RetailV2alpha::GoogleProtobufEmpty]
1440
+ #
1441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1444
+ def delete_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block)
1445
+ command = make_simple_command(:delete, 'v2alpha/{+name}', options)
1446
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleProtobufEmpty::Representation
1447
+ command.response_class = Google::Apis::RetailV2alpha::GoogleProtobufEmpty
1448
+ command.params['name'] = name unless name.nil?
1449
+ command.query['fields'] = fields unless fields.nil?
1450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1451
+ execute_or_queue_command(command, &block)
1452
+ end
1453
+
1454
+ # Lists all the models linked to this event store.
1455
+ # @param [String] parent
1456
+ # Required. The parent for which to list models. Format: projects/`
1457
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`
1458
+ # @param [Fixnum] page_size
1459
+ # Optional. Maximum number of results to return. If unspecified, defaults to 50.
1460
+ # Max allowed value is 1000.
1461
+ # @param [String] page_token
1462
+ # Optional. A page token, received from a previous `ListModels` call. Provide
1463
+ # this to retrieve the subsequent page.
1464
+ # @param [String] fields
1465
+ # Selector specifying which fields to include in a partial response.
1466
+ # @param [String] quota_user
1467
+ # Available to use for quota purposes for server-side applications. Can be any
1468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1469
+ # @param [Google::Apis::RequestOptions] options
1470
+ # Request-specific options
1471
+ #
1472
+ # @yield [result, err] Result & error if block supplied
1473
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse] parsed result object
1474
+ # @yieldparam err [StandardError] error object if request failed
1475
+ #
1476
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse]
1477
+ #
1478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
+ def list_project_location_catalog_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1482
+ command = make_simple_command(:get, 'v2alpha/{+parent}/models', options)
1483
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse::Representation
1484
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListModelsResponse
1485
+ command.params['parent'] = parent unless parent.nil?
1486
+ command.query['pageSize'] = page_size unless page_size.nil?
1487
+ command.query['pageToken'] = page_token unless page_token.nil?
1488
+ command.query['fields'] = fields unless fields.nil?
1489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1490
+ execute_or_queue_command(command, &block)
1491
+ end
1492
+
1493
+ # Update of model metadata. Only fields that currently can be updated are:
1494
+ # filtering_option, periodic_tuning_state. If other values are provided, this
1495
+ # API method will ignore them.
1496
+ # @param [String] name
1497
+ # Required. The fully qualified resource name of the model. Format: projects/`
1498
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1499
+ # catalog_id has char limit of 50. recommendation_model_id has char limit of 40.
1500
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
1501
+ # @param [String] update_mask
1502
+ # Optional. Indicates which fields in the provided 'model' to update. If not set,
1503
+ # will by default update all fields.
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 patch_project_location_catalog_model(name, google_cloud_retail_v2alpha_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1522
+ command = make_simple_command(:patch, 'v2alpha/{+name}', options)
1523
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1524
+ command.request_object = google_cloud_retail_v2alpha_model_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['updateMask'] = update_mask unless update_mask.nil?
1529
+ command.query['fields'] = fields unless fields.nil?
1530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1531
+ execute_or_queue_command(command, &block)
1532
+ end
1533
+
1534
+ # Pauses the training of an existing model.
1535
+ # @param [String] name
1536
+ # Required. The name of the model to pause. Format: projects/`project_number`/
1537
+ # locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1538
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPauseModelRequest] google_cloud_retail_v2alpha_pause_model_request_object
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def pause_project_location_catalog_model(name, google_cloud_retail_v2alpha_pause_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1557
+ command = make_simple_command(:post, 'v2alpha/{+name}:pause', options)
1558
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPauseModelRequest::Representation
1559
+ command.request_object = google_cloud_retail_v2alpha_pause_model_request_object
1560
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1561
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel
1562
+ command.params['name'] = name unless name.nil?
1563
+ command.query['fields'] = fields unless fields.nil?
1564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1565
+ execute_or_queue_command(command, &block)
1566
+ end
1567
+
1568
+ # Resumes the training of an existing model.
1569
+ # @param [String] name
1570
+ # Required. The name of the model to resume. Format: projects/`project_number`/
1571
+ # locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1572
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaResumeModelRequest] google_cloud_retail_v2alpha_resume_model_request_object
1573
+ # @param [String] fields
1574
+ # Selector specifying which fields to include in a partial response.
1575
+ # @param [String] quota_user
1576
+ # Available to use for quota purposes for server-side applications. Can be any
1577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1578
+ # @param [Google::Apis::RequestOptions] options
1579
+ # Request-specific options
1580
+ #
1581
+ # @yield [result, err] Result & error if block supplied
1582
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] parsed result object
1583
+ # @yieldparam err [StandardError] error object if request failed
1584
+ #
1585
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel]
1586
+ #
1587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1590
+ def resume_project_location_catalog_model(name, google_cloud_retail_v2alpha_resume_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1591
+ command = make_simple_command(:post, 'v2alpha/{+name}:resume', options)
1592
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaResumeModelRequest::Representation
1593
+ command.request_object = google_cloud_retail_v2alpha_resume_model_request_object
1594
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel::Representation
1595
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel
1596
+ command.params['name'] = name unless name.nil?
1597
+ command.query['fields'] = fields unless fields.nil?
1598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1599
+ execute_or_queue_command(command, &block)
1600
+ end
1601
+
1602
+ # Tunes an existing model.
1603
+ # @param [String] name
1604
+ # Required. The resource name of the model to tune. Format: projects/`
1605
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
1606
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTuneModelRequest] google_cloud_retail_v2alpha_tune_model_request_object
1607
+ # @param [String] fields
1608
+ # Selector specifying which fields to include in a partial response.
1609
+ # @param [String] quota_user
1610
+ # Available to use for quota purposes for server-side applications. Can be any
1611
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1612
+ # @param [Google::Apis::RequestOptions] options
1613
+ # Request-specific options
1614
+ #
1615
+ # @yield [result, err] Result & error if block supplied
1616
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1617
+ # @yieldparam err [StandardError] error object if request failed
1618
+ #
1619
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1620
+ #
1621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1624
+ def tune_project_location_catalog_model(name, google_cloud_retail_v2alpha_tune_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1625
+ command = make_simple_command(:post, 'v2alpha/{+name}:tune', options)
1626
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTuneModelRequest::Representation
1627
+ command.request_object = google_cloud_retail_v2alpha_tune_model_request_object
1628
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1629
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1630
+ command.params['name'] = name unless name.nil?
1631
+ command.query['fields'] = fields unless fields.nil?
1632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1633
+ execute_or_queue_command(command, &block)
1634
+ end
1635
+
1350
1636
  # Gets the latest state of a long-running operation. Clients can use this method
1351
1637
  # to poll the operation result at intervals as recommended by the API service.
1352
1638
  # @param [String] name
@@ -1426,9 +1712,9 @@ module Google
1426
1712
 
1427
1713
  # Makes a recommendation prediction.
1428
1714
  # @param [String] placement
1429
- # Required. Full resource name of the format: `placement=projects/*/locations/
1430
- # global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
1431
- # locations/global/catalogs/default_catalog/placements/*`. We recommend using
1715
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
1716
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
1717
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
1432
1718
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1433
1719
  # the Recommendations AI serving config or placement. Before you can request
1434
1720
  # predictions from your model, you must create at least one serving config or
@@ -1732,9 +2018,9 @@ module Google
1732
2018
 
1733
2019
  # Makes a recommendation prediction.
1734
2020
  # @param [String] placement
1735
- # Required. Full resource name of the format: `placement=projects/*/locations/
1736
- # global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
1737
- # locations/global/catalogs/default_catalog/placements/*`. We recommend using
2021
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
2022
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
2023
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
1738
2024
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1739
2025
  # the Recommendations AI serving config or placement. Before you can request
1740
2026
  # 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.48.0
4
+ version: 0.51.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-18 00:00:00.000000000 Z
11
+ date: 2022-08-08 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.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.51.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: []