Skip to content

Commit d648481

Browse files
feat: Automated regeneration of retail v2alpha client (#9643)
Auto-created at 2022-06-02 11:28:57 +0000 using the toys pull request generator.
1 parent a285a1e commit d648481

File tree

5 files changed

+43
-37
lines changed

5 files changed

+43
-37
lines changed

generated/google-apis-retail_v2alpha/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-retail_v2alpha
22

3+
### v0.43.0 (2022-06-02)
4+
5+
* Regenerated from discovery document revision 20220530
6+
37
### v0.42.0 (2022-05-26)
48

59
* Regenerated from discovery document revision 20220519

generated/google-apis-retail_v2alpha/google-apis-retail_v2alpha.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
2929
gem.require_paths = ["lib"]
3030

3131
gem.required_ruby_version = '>= 2.5'
32-
gem.add_runtime_dependency "google-apis-core", ">= 0.4", "< 2.a"
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.5", "< 2.a"
3333
end

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/classes.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,8 +1534,8 @@ class GoogleCloudRetailV2alphaControl
15341534
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec]
15351535
attr_accessor :facet_spec
15361536

1537-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
1538-
# controls/*
1537+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
1538+
# controls/*`
15391539
# Corresponds to the JSON property `name`
15401540
# @return [String]
15411541
attr_accessor :name
@@ -3207,15 +3207,17 @@ def update!(**args)
32073207
end
32083208
end
32093209

3210-
# Promotion information.
3210+
# Promotion specification.
32113211
class GoogleCloudRetailV2alphaPromotion
32123212
include Google::Apis::Core::Hashable
32133213

3214-
# ID of the promotion. For example, "free gift". The value must be a UTF-8
3215-
# encoded string with a length limit of 128 characters, and match the pattern: `
3216-
# a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
3217-
# INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
3218-
# (https://support.google.com/merchants/answer/7050148).
3214+
# Promotion identifier, which is the final component of name. For example, this
3215+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
3216+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
3217+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
3218+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
3219+
# error is returned. Corresponds to Google Merchant Center property [
3220+
# promotion_id](https://support.google.com/merchants/answer/7050148).
32193221
# Corresponds to the JSON property `promotionId`
32203222
# @return [String]
32213223
attr_accessor :promotion_id
@@ -4968,8 +4970,8 @@ class GoogleCloudRetailV2alphaServingConfig
49684970
# @return [String]
49694971
attr_accessor :model_id
49704972

4971-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
4972-
# servingConfig/*
4973+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
4974+
# servingConfig/*`
49734975
# Corresponds to the JSON property `name`
49744976
# @return [String]
49754977
attr_accessor :name

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2alpha
1818
# Version of the google-apis-retail_v2alpha gem
19-
GEM_VERSION = "0.42.0"
19+
GEM_VERSION = "0.43.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.4.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20220519"
25+
REVISION = "20220530"
2626
end
2727
end
2828
end

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/service.rb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def complete_project_location_catalog_query(catalog, dataset: nil, device_type:
127127

128128
# Gets an AttributesConfig.
129129
# @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`
132132
# @param [String] fields
133133
# Selector specifying which fields to include in a partial response.
134134
# @param [String] quota_user
@@ -439,8 +439,8 @@ def update_project_location_catalog_completion_config(name, google_cloud_retail_
439439
# Adds the specified CatalogAttribute to the AttributesConfig. If the
440440
# CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
441441
# @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`
444444
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest] google_cloud_retail_v2alpha_add_catalog_attribute_request_object
445445
# @param [String] fields
446446
# Selector specifying which fields to include in a partial response.
@@ -474,8 +474,8 @@ def add_project_location_catalog_attributes_config_catalog_attribute(attributes_
474474
# Removes the specified CatalogAttribute from the AttributesConfig. If the
475475
# CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
476476
# @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`
479479
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest] google_cloud_retail_v2alpha_remove_catalog_attribute_request_object
480480
# @param [String] fields
481481
# Selector specifying which fields to include in a partial response.
@@ -510,8 +510,8 @@ def remove_project_location_catalog_attributes_config_catalog_attribute(attribut
510510
# the catalog attribute with the same CatalogAttribute.key. If the
511511
# CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.
512512
# @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`
515515
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest] google_cloud_retail_v2alpha_replace_catalog_attribute_request_object
516516
# @param [String] fields
517517
# Selector specifying which fields to include in a partial response.
@@ -1152,8 +1152,8 @@ def import_project_location_catalog_completion_datum(parent, google_cloud_retail
11521152
# Creates a Control. If the Control to create already exists, an ALREADY_EXISTS
11531153
# error is returned.
11541154
# @param [String] parent
1155-
# Required. Full resource name of parent catalog. Format: projects/`
1156-
# project_number`/locations/`location_id`/catalogs/`catalog_id`
1155+
# Required. Full resource name of parent catalog. Format: `projects/`
1156+
# project_number`/locations/`location_id`/catalogs/`catalog_id``
11571157
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl] google_cloud_retail_v2alpha_control_object
11581158
# @param [String] control_id
11591159
# Required. The ID to use for the Control, which will become the final component
@@ -1192,9 +1192,9 @@ def create_project_location_catalog_control(parent, google_cloud_retail_v2alpha_
11921192
# Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error
11931193
# is returned.
11941194
# @param [String] name
1195-
# Required. The resource name of the Control to delete. Format: projects/`
1195+
# Required. The resource name of the Control to delete. Format: `projects/`
11961196
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
1197-
# control_id`
1197+
# control_id``
11981198
# @param [String] fields
11991199
# Selector specifying which fields to include in a partial response.
12001200
# @param [String] quota_user
@@ -1224,9 +1224,9 @@ def delete_project_location_catalog_control(name, fields: nil, quota_user: nil,
12241224

12251225
# Gets a Control.
12261226
# @param [String] name
1227-
# Required. The resource name of the Control to delete. Format: projects/`
1227+
# Required. The resource name of the Control to delete. Format: `projects/`
12281228
# project_number`/locations/`location_id`/catalogs/`catalog_id`/controls/`
1229-
# control_id`
1229+
# control_id``
12301230
# @param [String] fields
12311231
# Selector specifying which fields to include in a partial response.
12321232
# @param [String] quota_user
@@ -1256,8 +1256,8 @@ def get_project_location_catalog_control(name, fields: nil, quota_user: nil, opt
12561256

12571257
# Lists all Controls linked to this catalog.
12581258
# @param [String] parent
1259-
# Required. The catalog resource name. Format: projects/`project_number`/
1260-
# locations/`location_id`/catalogs/`catalog_id`
1259+
# Required. The catalog resource name. Format: `projects/`project_number`/
1260+
# locations/`location_id`/catalogs/`catalog_id``
12611261
# @param [String] filter
12621262
# Optional. A filter to apply on the list results. Supported features: * List
12631263
# all the products under the parent branch if filter is unset. * List controls
@@ -1303,8 +1303,8 @@ def list_project_location_catalog_controls(parent, filter: nil, page_size: nil,
13031303
# INVALID_ARGUMENT is returned. If the Control to delete does not exist, a
13041304
# NOT_FOUND error is returned.
13051305
# @param [String] name
1306-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
1307-
# controls/*
1306+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
1307+
# controls/*`
13081308
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl] google_cloud_retail_v2alpha_control_object
13091309
# @param [String] update_mask
13101310
# Indicates which fields in the provided Control to update. The following are
@@ -1419,8 +1419,8 @@ def list_project_location_catalog_operations(name, filter: nil, page_size: nil,
14191419

14201420
# Makes a recommendation prediction.
14211421
# @param [String] placement
1422-
# Required. Full resource name of the format: `name=projects/*/locations/global/
1423-
# catalogs/default_catalog/placements/*` The ID of the Recommendations AI
1422+
# Required. Full resource name of the format: ``name=projects/*/locations/global/
1423+
# catalogs/default_catalog/placements/*`` The ID of the Recommendations AI
14241424
# placement. Before you can request predictions from your model, you must create
14251425
# at least one placement for it. For more information, see [Managing placements](
14261426
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
@@ -1537,8 +1537,8 @@ def add_project_location_catalog_serving_config_control(serving_config, google_c
15371537
# Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a
15381538
# Catalog, otherwise a FAILED_PRECONDITION error is returned.
15391539
# @param [String] parent
1540-
# Required. Full resource name of parent. Format: projects/`project_number`/
1541-
# locations/`location_id`/catalogs/`catalog_id`
1540+
# Required. Full resource name of parent. Format: `projects/`project_number`/
1541+
# locations/`location_id`/catalogs/`catalog_id``
15421542
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaServingConfig] google_cloud_retail_v2alpha_serving_config_object
15431543
# @param [String] serving_config_id
15441544
# Required. The ID to use for the ServingConfig, which will become the final
@@ -1681,8 +1681,8 @@ def list_project_location_catalog_serving_configs(parent, page_size: nil, page_t
16811681

16821682
# Updates a ServingConfig.
16831683
# @param [String] name
1684-
# Immutable. Fully qualified name projects/*/locations/global/catalogs/*/
1685-
# servingConfig/*
1684+
# Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/
1685+
# servingConfig/*`
16861686
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaServingConfig] google_cloud_retail_v2alpha_serving_config_object
16871687
# @param [String] update_mask
16881688
# Indicates which fields in the provided ServingConfig to update. The following

0 commit comments

Comments
 (0)