google-apis-retail_v2alpha 0.91.0 → 0.92.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 626effe9f2ebae76599f28005ba979a3a6f31c00c46de63f8c0d46764bd69899
4
- data.tar.gz: dedaaad92fdfb6a41e04118f8e7fde0836e06838e93dcde0f813777d66d327a1
3
+ metadata.gz: 46555d9c3925ce385c8c0e219f0e9d6d95d4c9d414041b46b8932c832cfbd892
4
+ data.tar.gz: 870edb9419f1d567857fbd4fd91b31d10ca1a6d4acc650f5b9f3005ab48eaf36
5
5
  SHA512:
6
- metadata.gz: 3095cb59479d4f5ed8db8ed6dfa60d2c96d12e384659ae8c3e52bc4d3e42cd465703a28ede9b8ab050f299737a2586e183ed9373a287abe35f1c78b3e7163718
7
- data.tar.gz: 1e6d42802b636bb7d81af2db008a00b54eb78ba08bcd4c2d3ba68519216ba235325e785528b49b68e0d9ffc36fdc3faecf475eeecff45a8495e299c29abb9956
6
+ metadata.gz: 71e65b2227e5e3d0500d69393ae70560577410ceea4de7897a4f96ac6757adc1623d101eeb113c9c965f82a11e61e5a55beef376c1117f524ec0bc3126dc6759
7
+ data.tar.gz: 662974493814bf52ba311d64e250d4976966385fbfedb97357e2600a33235023e7c4d48166e5aa7218b9b98d67f194ae9d86583713f10733d38ded7d5aa12bbc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.92.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20240118
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.91.0 (2023-12-17)
4
9
 
5
10
  * Regenerated from discovery document revision 20231207
@@ -1637,6 +1637,18 @@ module Google
1637
1637
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue>]
1638
1638
  attr_accessor :merged_facet_values
1639
1639
 
1640
+ # Options to rerank based on facet values engaged by the user for the current
1641
+ # key. That key needs to be a custom textual key and facetable. To use this
1642
+ # control, you also need to pass all the facet keys engaged by the user in the
1643
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
1644
+ # pass the facet keys engaged that you want to rerank on, this control won't be
1645
+ # effective. Moreover, to obtain better results, the facet values that you want
1646
+ # to rerank on should be close to English (ideally made of words, underscores,
1647
+ # and spaces).
1648
+ # Corresponds to the JSON property `rerankConfig`
1649
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig]
1650
+ attr_accessor :rerank_config
1651
+
1640
1652
  def initialize(**args)
1641
1653
  update!(**args)
1642
1654
  end
@@ -1646,6 +1658,7 @@ module Google
1646
1658
  @facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
1647
1659
  @ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
1648
1660
  @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
1661
+ @rerank_config = args[:rerank_config] if args.key?(:rerank_config)
1649
1662
  end
1650
1663
  end
1651
1664
 
@@ -1718,6 +1731,41 @@ module Google
1718
1731
  end
1719
1732
  end
1720
1733
 
1734
+ # Options to rerank based on facet values engaged by the user for the current
1735
+ # key. That key needs to be a custom textual key and facetable. To use this
1736
+ # control, you also need to pass all the facet keys engaged by the user in the
1737
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
1738
+ # pass the facet keys engaged that you want to rerank on, this control won't be
1739
+ # effective. Moreover, to obtain better results, the facet values that you want
1740
+ # to rerank on should be close to English (ideally made of words, underscores,
1741
+ # and spaces).
1742
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
1743
+ include Google::Apis::Core::Hashable
1744
+
1745
+ # If empty, rerank on all facet values for the current key. Otherwise, will
1746
+ # rerank on the facet values from this list only.
1747
+ # Corresponds to the JSON property `facetValues`
1748
+ # @return [Array<String>]
1749
+ attr_accessor :facet_values
1750
+
1751
+ # If set to true, then we also rerank the dynamic facets based on the facet
1752
+ # values engaged by the user for the current attribute key during serving.
1753
+ # Corresponds to the JSON property `rerankFacet`
1754
+ # @return [Boolean]
1755
+ attr_accessor :rerank_facet
1756
+ alias_method :rerank_facet?, :rerank_facet
1757
+
1758
+ def initialize(**args)
1759
+ update!(**args)
1760
+ end
1761
+
1762
+ # Update properties of this object
1763
+ def update!(**args)
1764
+ @facet_values = args[:facet_values] if args.key?(:facet_values)
1765
+ @rerank_facet = args[:rerank_facet] if args.key?(:rerank_facet)
1766
+ end
1767
+ end
1768
+
1721
1769
  # The color information of a Product.
1722
1770
  class GoogleCloudRetailV2alphaColorInfo
1723
1771
  include Google::Apis::Core::Hashable
@@ -7640,6 +7688,40 @@ module Google
7640
7688
  end
7641
7689
  end
7642
7690
 
7691
+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
7692
+ # was successful, then this message is returned by the google.longrunning.
7693
+ # Operations.response field if the operation was successful.
7694
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
7695
+ include Google::Apis::Core::Hashable
7696
+
7697
+ # A sample of errors encountered while processing the request.
7698
+ # Corresponds to the JSON property `errorSamples`
7699
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
7700
+ attr_accessor :error_samples
7701
+
7702
+ # Configuration of destination for Export related errors.
7703
+ # Corresponds to the JSON property `errorsConfig`
7704
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig]
7705
+ attr_accessor :errors_config
7706
+
7707
+ # Output result that stores the information about where the exported data is
7708
+ # stored.
7709
+ # Corresponds to the JSON property `outputResult`
7710
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult]
7711
+ attr_accessor :output_result
7712
+
7713
+ def initialize(**args)
7714
+ update!(**args)
7715
+ end
7716
+
7717
+ # Update properties of this object
7718
+ def update!(**args)
7719
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
7720
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
7721
+ @output_result = args[:output_result] if args.key?(:output_result)
7722
+ end
7723
+ end
7724
+
7643
7725
  # Configuration of destination for Export related errors.
7644
7726
  class GoogleCloudRetailV2betaExportErrorsConfig
7645
7727
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.91.0"
19
+ GEM_VERSION = "0.92.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231207"
25
+ REVISION = "20240118"
26
26
  end
27
27
  end
28
28
  end
@@ -358,6 +358,12 @@ module Google
358
358
  include Google::Apis::Core::JsonObjectSupport
359
359
  end
360
360
 
361
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
361
367
  class GoogleCloudRetailV2alphaColorInfo
362
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
369
 
@@ -1246,6 +1252,12 @@ module Google
1246
1252
  include Google::Apis::Core::JsonObjectSupport
1247
1253
  end
1248
1254
 
1255
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1249
1261
  class GoogleCloudRetailV2betaExportErrorsConfig
1250
1262
  class Representation < Google::Apis::Core::JsonRepresentation; end
1251
1263
 
@@ -1921,6 +1933,8 @@ module Google
1921
1933
 
1922
1934
  collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue::Representation
1923
1935
 
1936
+ property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig::Representation
1937
+
1924
1938
  end
1925
1939
  end
1926
1940
 
@@ -1941,6 +1955,14 @@ module Google
1941
1955
  end
1942
1956
  end
1943
1957
 
1958
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
1959
+ # @private
1960
+ class Representation < Google::Apis::Core::JsonRepresentation
1961
+ collection :facet_values, as: 'facetValues'
1962
+ property :rerank_facet, as: 'rerankFacet'
1963
+ end
1964
+ end
1965
+
1944
1966
  class GoogleCloudRetailV2alphaColorInfo
1945
1967
  # @private
1946
1968
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3405,6 +3427,18 @@ module Google
3405
3427
  end
3406
3428
  end
3407
3429
 
3430
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
3431
+ # @private
3432
+ class Representation < Google::Apis::Core::JsonRepresentation
3433
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
3434
+
3435
+ property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig::Representation
3436
+
3437
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult::Representation
3438
+
3439
+ end
3440
+ end
3441
+
3408
3442
  class GoogleCloudRetailV2betaExportErrorsConfig
3409
3443
  # @private
3410
3444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -34,6 +34,8 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/recommendations
36
36
  class CloudRetailService < Google::Apis::Core::BaseService
37
+ DEFAULT_ENDPOINT_TEMPLATE = "https://retail.$UNIVERSE_DOMAIN$/"
38
+
37
39
  # @return [String]
38
40
  # API key. Your API key identifies your project and provides you with API access,
39
41
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +47,7 @@ module Google
45
47
  attr_accessor :quota_user
46
48
 
47
49
  def initialize
48
- super('https://retail.googleapis.com/', '',
50
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
51
  client_name: 'google-apis-retail_v2alpha',
50
52
  client_version: Google::Apis::RetailV2alpha::GEM_VERSION)
51
53
  @batch_path = 'batch'
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.91.0
4
+ version: 0.92.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: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.91.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.92.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2alpha