Skip to content

Commit 319d48b

Browse files
feat: Automated regeneration of retail v2 client (#17481)
Auto-created at 2024-01-23 01:34:37 +0000 using the toys pull request generator.
1 parent 08fc130 commit 319d48b

7 files changed

Lines changed: 138 additions & 5 deletions

File tree

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271032,6 +271032,7 @@
271032271032
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfig/ignoredFacetValues/ignored_facet_value": ignored_facet_value
271033271033
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfig/mergedFacetValues": merged_facet_values
271034271034
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfig/mergedFacetValues/merged_facet_value": merged_facet_value
271035+
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfig/rerankConfig": rerank_config
271035271036
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues": google_cloud_retail_v2_catalog_attribute_facet_config_ignored_facet_values
271036271037
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues/endTime": end_time
271037271038
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues/startTime": start_time
@@ -271041,6 +271042,10 @@
271041271042
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue/mergedValue": merged_value
271042271043
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue/values": values
271043271044
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue/values/value": value
271045+
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig": google_cloud_retail_v2_catalog_attribute_facet_config_rerank_config
271046+
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig/facetValues": facet_values
271047+
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig/facetValues/facet_value": facet_value
271048+
"/retail:v2/GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig/rerankFacet": rerank_facet
271044271049
"/retail:v2/GoogleCloudRetailV2ColorInfo": google_cloud_retail_v2_color_info
271045271050
"/retail:v2/GoogleCloudRetailV2ColorInfo/colorFamilies": color_families
271046271051
"/retail:v2/GoogleCloudRetailV2ColorInfo/colorFamilies/color_family": color_family
@@ -271781,6 +271786,11 @@
271781271786
"/retail:v2/GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata/updateTime": update_time
271782271787
"/retail:v2/GoogleCloudRetailV2betaCreateModelMetadata": google_cloud_retail_v2beta_create_model_metadata
271783271788
"/retail:v2/GoogleCloudRetailV2betaCreateModelMetadata/model": model
271789+
"/retail:v2/GoogleCloudRetailV2betaExportAnalyticsMetricsResponse": google_cloud_retail_v2beta_export_analytics_metrics_response
271790+
"/retail:v2/GoogleCloudRetailV2betaExportAnalyticsMetricsResponse/errorSamples": error_samples
271791+
"/retail:v2/GoogleCloudRetailV2betaExportAnalyticsMetricsResponse/errorSamples/error_sample": error_sample
271792+
"/retail:v2/GoogleCloudRetailV2betaExportAnalyticsMetricsResponse/errorsConfig": errors_config
271793+
"/retail:v2/GoogleCloudRetailV2betaExportAnalyticsMetricsResponse/outputResult": output_result
271784271794
"/retail:v2/GoogleCloudRetailV2betaExportErrorsConfig": google_cloud_retail_v2beta_export_errors_config
271785271795
"/retail:v2/GoogleCloudRetailV2betaExportErrorsConfig/gcsPrefix": gcs_prefix
271786271796
"/retail:v2/GoogleCloudRetailV2betaExportMetadata": google_cloud_retail_v2beta_export_metadata

generated/google-apis-retail_v2/CHANGELOG.md

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

3+
### v0.87.0 (2024-01-23)
4+
5+
* Regenerated from discovery document revision 20240118
6+
* Regenerated using generator version 0.13.0
7+
38
### v0.86.0 (2023-12-10)
49

510
* Regenerated from discovery document revision 20231130

generated/google-apis-retail_v2/google-apis-retail_v2.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.11.0", "< 2.a"
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.12.0", "< 2.a"
3333
end

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

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,18 @@ class GoogleCloudRetailV2CatalogAttributeFacetConfig
806806
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
807807
attr_accessor :merged_facet_values
808808

809+
# Options to rerank based on facet values engaged by the user for the current
810+
# key. That key needs to be a custom textual key and facetable. To use this
811+
# control, you also need to pass all the facet keys engaged by the user in the
812+
# request using the field [SearchRequest.FacetSpec]. In particular, if you don't
813+
# pass the facet keys engaged that you want to rerank on, this control won't be
814+
# effective. Moreover, to obtain better results, the facet values that you want
815+
# to rerank on should be close to English (ideally made of words, underscores,
816+
# and spaces).
817+
# Corresponds to the JSON property `rerankConfig`
818+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig]
819+
attr_accessor :rerank_config
820+
809821
def initialize(**args)
810822
update!(**args)
811823
end
@@ -815,6 +827,7 @@ def update!(**args)
815827
@facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
816828
@ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
817829
@merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
830+
@rerank_config = args[:rerank_config] if args.key?(:rerank_config)
818831
end
819832
end
820833

@@ -887,6 +900,41 @@ def update!(**args)
887900
end
888901
end
889902

903+
# Options to rerank based on facet values engaged by the user for the current
904+
# key. That key needs to be a custom textual key and facetable. To use this
905+
# control, you also need to pass all the facet keys engaged by the user in the
906+
# request using the field [SearchRequest.FacetSpec]. In particular, if you don't
907+
# pass the facet keys engaged that you want to rerank on, this control won't be
908+
# effective. Moreover, to obtain better results, the facet values that you want
909+
# to rerank on should be close to English (ideally made of words, underscores,
910+
# and spaces).
911+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
912+
include Google::Apis::Core::Hashable
913+
914+
# If empty, rerank on all facet values for the current key. Otherwise, will
915+
# rerank on the facet values from this list only.
916+
# Corresponds to the JSON property `facetValues`
917+
# @return [Array<String>]
918+
attr_accessor :facet_values
919+
920+
# If set to true, then we also rerank the dynamic facets based on the facet
921+
# values engaged by the user for the current attribute key during serving.
922+
# Corresponds to the JSON property `rerankFacet`
923+
# @return [Boolean]
924+
attr_accessor :rerank_facet
925+
alias_method :rerank_facet?, :rerank_facet
926+
927+
def initialize(**args)
928+
update!(**args)
929+
end
930+
931+
# Update properties of this object
932+
def update!(**args)
933+
@facet_values = args[:facet_values] if args.key?(:facet_values)
934+
@rerank_facet = args[:rerank_facet] if args.key?(:rerank_facet)
935+
end
936+
end
937+
890938
# The color information of a Product.
891939
class GoogleCloudRetailV2ColorInfo
892940
include Google::Apis::Core::Hashable
@@ -7080,6 +7128,40 @@ def update!(**args)
70807128
end
70817129
end
70827130

7131+
# Response of the ExportAnalyticsMetricsRequest. If the long running operation
7132+
# was successful, then this message is returned by the google.longrunning.
7133+
# Operations.response field if the operation was successful.
7134+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
7135+
include Google::Apis::Core::Hashable
7136+
7137+
# A sample of errors encountered while processing the request.
7138+
# Corresponds to the JSON property `errorSamples`
7139+
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
7140+
attr_accessor :error_samples
7141+
7142+
# Configuration of destination for Export related errors.
7143+
# Corresponds to the JSON property `errorsConfig`
7144+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig]
7145+
attr_accessor :errors_config
7146+
7147+
# Output result that stores the information about where the exported data is
7148+
# stored.
7149+
# Corresponds to the JSON property `outputResult`
7150+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult]
7151+
attr_accessor :output_result
7152+
7153+
def initialize(**args)
7154+
update!(**args)
7155+
end
7156+
7157+
# Update properties of this object
7158+
def update!(**args)
7159+
@error_samples = args[:error_samples] if args.key?(:error_samples)
7160+
@errors_config = args[:errors_config] if args.key?(:errors_config)
7161+
@output_result = args[:output_result] if args.key?(:output_result)
7162+
end
7163+
end
7164+
70837165
# Configuration of destination for Export related errors.
70847166
class GoogleCloudRetailV2betaExportErrorsConfig
70857167
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2
1818
# Version of the google-apis-retail_v2 gem
19-
GEM_VERSION = "0.86.0"
19+
GEM_VERSION = "0.87.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.12.0"
22+
GENERATOR_VERSION = "0.13.0"
2323

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

generated/google-apis-retail_v2/lib/google/apis/retail_v2/representations.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
160160
include Google::Apis::Core::JsonObjectSupport
161161
end
162162

163+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
163169
class GoogleCloudRetailV2ColorInfo
164170
class Representation < Google::Apis::Core::JsonRepresentation; end
165171

@@ -1138,6 +1144,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11381144
include Google::Apis::Core::JsonObjectSupport
11391145
end
11401146

1147+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
1148+
class Representation < Google::Apis::Core::JsonRepresentation; end
1149+
1150+
include Google::Apis::Core::JsonObjectSupport
1151+
end
1152+
11411153
class GoogleCloudRetailV2betaExportErrorsConfig
11421154
class Representation < Google::Apis::Core::JsonRepresentation; end
11431155

@@ -1555,6 +1567,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
15551567

15561568
collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
15571569

1570+
property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig::Representation
1571+
15581572
end
15591573
end
15601574

@@ -1575,6 +1589,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
15751589
end
15761590
end
15771591

1592+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
1593+
# @private
1594+
class Representation < Google::Apis::Core::JsonRepresentation
1595+
collection :facet_values, as: 'facetValues'
1596+
property :rerank_facet, as: 'rerankFacet'
1597+
end
1598+
end
1599+
15781600
class GoogleCloudRetailV2ColorInfo
15791601
# @private
15801602
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3134,6 +3156,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
31343156
end
31353157
end
31363158

3159+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
3160+
# @private
3161+
class Representation < Google::Apis::Core::JsonRepresentation
3162+
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
3163+
3164+
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig::Representation
3165+
3166+
property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult::Representation
3167+
3168+
end
3169+
end
3170+
31373171
class GoogleCloudRetailV2betaExportErrorsConfig
31383172
# @private
31393173
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ module RetailV2
3434
#
3535
# @see https://cloud.google.com/recommendations
3636
class CloudRetailService < Google::Apis::Core::BaseService
37+
DEFAULT_ENDPOINT_TEMPLATE = "https://retail.$UNIVERSE_DOMAIN$/"
38+
3739
# @return [String]
3840
# API key. Your API key identifies your project and provides you with API access,
3941
# quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +47,7 @@ class CloudRetailService < Google::Apis::Core::BaseService
4547
attr_accessor :quota_user
4648

4749
def initialize
48-
super('https://retail.googleapis.com/', '',
50+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
4951
client_name: 'google-apis-retail_v2',
5052
client_version: Google::Apis::RetailV2::GEM_VERSION)
5153
@batch_path = 'batch'

0 commit comments

Comments
 (0)