google-apis-retail_v2alpha 0.91.0 → 0.93.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 626effe9f2ebae76599f28005ba979a3a6f31c00c46de63f8c0d46764bd69899
4
- data.tar.gz: dedaaad92fdfb6a41e04118f8e7fde0836e06838e93dcde0f813777d66d327a1
3
+ metadata.gz: f72c46d59fc5a2b4da11c33098fe456bd7f5214e0315f2ef29105ddc31c8449e
4
+ data.tar.gz: 18137f2cf36548d29ae2c71ec651e584667f02b1cf3ecc0d3c961bd6241a10fb
5
5
  SHA512:
6
- metadata.gz: 3095cb59479d4f5ed8db8ed6dfa60d2c96d12e384659ae8c3e52bc4d3e42cd465703a28ede9b8ab050f299737a2586e183ed9373a287abe35f1c78b3e7163718
7
- data.tar.gz: 1e6d42802b636bb7d81af2db008a00b54eb78ba08bcd4c2d3ba68519216ba235325e785528b49b68e0d9ffc36fdc3faecf475eeecff45a8495e299c29abb9956
6
+ metadata.gz: a8856b56ce308c11d4221d832ee67a1840407b22693644264f87f3819acee37fa0c4c66793b2e174c30b9b85e4b006ae28f43c2c510b1fbd52ffa4ecc8ce4cef
7
+ data.tar.gz: c12299eca858a1f485f96fe88289e75a362a66008d30def649a542f48e9b5c2c03931fe6a8826d77ff0ec34db48bb8f9030421e817ead84128281ef6182473e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.93.0 (2024-02-04)
4
+
5
+ * Regenerated from discovery document revision 20240129
6
+ * Regenerated using generator version 0.13.1
7
+
8
+ ### v0.92.0 (2024-01-22)
9
+
10
+ * Regenerated from discovery document revision 20240118
11
+ * Regenerated using generator version 0.13.0
12
+
3
13
  ### v0.91.0 (2023-12-17)
4
14
 
5
15
  * Regenerated from discovery document revision 20231207
@@ -1626,6 +1626,14 @@ module Google
1626
1626
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigIgnoredFacetValues>]
1627
1627
  attr_accessor :ignored_facet_values
1628
1628
 
1629
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
1630
+ # A facet key can have at most one child. The current facet key and the merged
1631
+ # facet key need both to be textual custom attributes or both numerical custom
1632
+ # attributes (same type).
1633
+ # Corresponds to the JSON property `mergedFacet`
1634
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet]
1635
+ attr_accessor :merged_facet
1636
+
1629
1637
  # Each instance replaces a list of facet values by a merged facet value. If a
1630
1638
  # facet value is not in any list, then it will stay the same. To avoid conflicts,
1631
1639
  # only paths of length 1 are accepted. In other words, if "dark_blue" merged
@@ -1637,6 +1645,18 @@ module Google
1637
1645
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue>]
1638
1646
  attr_accessor :merged_facet_values
1639
1647
 
1648
+ # Options to rerank based on facet values engaged by the user for the current
1649
+ # key. That key needs to be a custom textual key and facetable. To use this
1650
+ # control, you also need to pass all the facet keys engaged by the user in the
1651
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
1652
+ # pass the facet keys engaged that you want to rerank on, this control won't be
1653
+ # effective. Moreover, to obtain better results, the facet values that you want
1654
+ # to rerank on should be close to English (ideally made of words, underscores,
1655
+ # and spaces).
1656
+ # Corresponds to the JSON property `rerankConfig`
1657
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig]
1658
+ attr_accessor :rerank_config
1659
+
1640
1660
  def initialize(**args)
1641
1661
  update!(**args)
1642
1662
  end
@@ -1645,7 +1665,9 @@ module Google
1645
1665
  def update!(**args)
1646
1666
  @facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
1647
1667
  @ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
1668
+ @merged_facet = args[:merged_facet] if args.key?(:merged_facet)
1648
1669
  @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
1670
+ @rerank_config = args[:rerank_config] if args.key?(:rerank_config)
1649
1671
  end
1650
1672
  end
1651
1673
 
@@ -1688,6 +1710,41 @@ module Google
1688
1710
  end
1689
1711
  end
1690
1712
 
1713
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
1714
+ # A facet key can have at most one child. The current facet key and the merged
1715
+ # facet key need both to be textual custom attributes or both numerical custom
1716
+ # attributes (same type).
1717
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet
1718
+ include Google::Apis::Core::Hashable
1719
+
1720
+ # The merged facet key should be a valid facet key that is different than the
1721
+ # facet key of the current catalog attribute. We refer this is merged facet key
1722
+ # as the child of the current catalog attribute. This merged facet key can't be
1723
+ # a parent of another facet key (i.e. no directed path of length 2). This merged
1724
+ # facet key needs to be either a textual custom attribute or a numerical custom
1725
+ # attribute.
1726
+ # Corresponds to the JSON property `mergedFacetKey`
1727
+ # @return [String]
1728
+ attr_accessor :merged_facet_key
1729
+
1730
+ # Each instance is a list of facet values that map into the same (possibly
1731
+ # different) merged facet value. For the current attribute config, each facet
1732
+ # value should map to at most one merged facet value.
1733
+ # Corresponds to the JSON property `mergedFacetValues`
1734
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue>]
1735
+ attr_accessor :merged_facet_values
1736
+
1737
+ def initialize(**args)
1738
+ update!(**args)
1739
+ end
1740
+
1741
+ # Update properties of this object
1742
+ def update!(**args)
1743
+ @merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key)
1744
+ @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
1745
+ end
1746
+ end
1747
+
1691
1748
  # Replaces a set of textual facet values by the same (possibly different) merged
1692
1749
  # facet value. Each facet value should appear at most once as a value per
1693
1750
  # CatalogAttribute. This feature is available only for textual custom attributes.
@@ -1718,6 +1775,41 @@ module Google
1718
1775
  end
1719
1776
  end
1720
1777
 
1778
+ # Options to rerank based on facet values engaged by the user for the current
1779
+ # key. That key needs to be a custom textual key and facetable. To use this
1780
+ # control, you also need to pass all the facet keys engaged by the user in the
1781
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
1782
+ # pass the facet keys engaged that you want to rerank on, this control won't be
1783
+ # effective. Moreover, to obtain better results, the facet values that you want
1784
+ # to rerank on should be close to English (ideally made of words, underscores,
1785
+ # and spaces).
1786
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
1787
+ include Google::Apis::Core::Hashable
1788
+
1789
+ # If empty, rerank on all facet values for the current key. Otherwise, will
1790
+ # rerank on the facet values from this list only.
1791
+ # Corresponds to the JSON property `facetValues`
1792
+ # @return [Array<String>]
1793
+ attr_accessor :facet_values
1794
+
1795
+ # If set to true, then we also rerank the dynamic facets based on the facet
1796
+ # values engaged by the user for the current attribute key during serving.
1797
+ # Corresponds to the JSON property `rerankFacet`
1798
+ # @return [Boolean]
1799
+ attr_accessor :rerank_facet
1800
+ alias_method :rerank_facet?, :rerank_facet
1801
+
1802
+ def initialize(**args)
1803
+ update!(**args)
1804
+ end
1805
+
1806
+ # Update properties of this object
1807
+ def update!(**args)
1808
+ @facet_values = args[:facet_values] if args.key?(:facet_values)
1809
+ @rerank_facet = args[:rerank_facet] if args.key?(:rerank_facet)
1810
+ end
1811
+ end
1812
+
1721
1813
  # The color information of a Product.
1722
1814
  class GoogleCloudRetailV2alphaColorInfo
1723
1815
  include Google::Apis::Core::Hashable
@@ -2945,7 +3037,8 @@ module Google
2945
3037
  alias_method :skip_default_branch_protection?, :skip_default_branch_protection
2946
3038
 
2947
3039
  # Indicates which fields in the provided imported `products` to update. If not
2948
- # set, all fields are updated.
3040
+ # set, all fields are updated. If provided, only the existing product fields are
3041
+ # updated. Missing products will not be created.
2949
3042
  # Corresponds to the JSON property `updateMask`
2950
3043
  # @return [String]
2951
3044
  attr_accessor :update_mask
@@ -7640,6 +7733,40 @@ module Google
7640
7733
  end
7641
7734
  end
7642
7735
 
7736
+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
7737
+ # was successful, then this message is returned by the google.longrunning.
7738
+ # Operations.response field if the operation was successful.
7739
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
7740
+ include Google::Apis::Core::Hashable
7741
+
7742
+ # A sample of errors encountered while processing the request.
7743
+ # Corresponds to the JSON property `errorSamples`
7744
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
7745
+ attr_accessor :error_samples
7746
+
7747
+ # Configuration of destination for Export related errors.
7748
+ # Corresponds to the JSON property `errorsConfig`
7749
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig]
7750
+ attr_accessor :errors_config
7751
+
7752
+ # Output result that stores the information about where the exported data is
7753
+ # stored.
7754
+ # Corresponds to the JSON property `outputResult`
7755
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult]
7756
+ attr_accessor :output_result
7757
+
7758
+ def initialize(**args)
7759
+ update!(**args)
7760
+ end
7761
+
7762
+ # Update properties of this object
7763
+ def update!(**args)
7764
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
7765
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
7766
+ @output_result = args[:output_result] if args.key?(:output_result)
7767
+ end
7768
+ end
7769
+
7643
7770
  # Configuration of destination for Export related errors.
7644
7771
  class GoogleCloudRetailV2betaExportErrorsConfig
7645
7772
  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.93.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.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231207"
25
+ REVISION = "20240129"
26
26
  end
27
27
  end
28
28
  end
@@ -352,12 +352,24 @@ module Google
352
352
  include Google::Apis::Core::JsonObjectSupport
353
353
  end
354
354
 
355
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
355
361
  class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue
356
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
363
 
358
364
  include Google::Apis::Core::JsonObjectSupport
359
365
  end
360
366
 
367
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
361
373
  class GoogleCloudRetailV2alphaColorInfo
362
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
375
 
@@ -1246,6 +1258,12 @@ module Google
1246
1258
  include Google::Apis::Core::JsonObjectSupport
1247
1259
  end
1248
1260
 
1261
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1249
1267
  class GoogleCloudRetailV2betaExportErrorsConfig
1250
1268
  class Representation < Google::Apis::Core::JsonRepresentation; end
1251
1269
 
@@ -1919,8 +1937,12 @@ module Google
1919
1937
 
1920
1938
  collection :ignored_facet_values, as: 'ignoredFacetValues', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigIgnoredFacetValues, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigIgnoredFacetValues::Representation
1921
1939
 
1940
+ property :merged_facet, as: 'mergedFacet', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet::Representation
1941
+
1922
1942
  collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue::Representation
1923
1943
 
1944
+ property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig::Representation
1945
+
1924
1946
  end
1925
1947
  end
1926
1948
 
@@ -1933,6 +1955,15 @@ module Google
1933
1955
  end
1934
1956
  end
1935
1957
 
1958
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet
1959
+ # @private
1960
+ class Representation < Google::Apis::Core::JsonRepresentation
1961
+ property :merged_facet_key, as: 'mergedFacetKey'
1962
+ collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue::Representation
1963
+
1964
+ end
1965
+ end
1966
+
1936
1967
  class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue
1937
1968
  # @private
1938
1969
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1941,6 +1972,14 @@ module Google
1941
1972
  end
1942
1973
  end
1943
1974
 
1975
+ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig
1976
+ # @private
1977
+ class Representation < Google::Apis::Core::JsonRepresentation
1978
+ collection :facet_values, as: 'facetValues'
1979
+ property :rerank_facet, as: 'rerankFacet'
1980
+ end
1981
+ end
1982
+
1944
1983
  class GoogleCloudRetailV2alphaColorInfo
1945
1984
  # @private
1946
1985
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3405,6 +3444,18 @@ module Google
3405
3444
  end
3406
3445
  end
3407
3446
 
3447
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
3448
+ # @private
3449
+ class Representation < Google::Apis::Core::JsonRepresentation
3450
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
3451
+
3452
+ property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaExportErrorsConfig::Representation
3453
+
3454
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaOutputResult::Representation
3455
+
3456
+ end
3457
+ end
3458
+
3408
3459
  class GoogleCloudRetailV2betaExportErrorsConfig
3409
3460
  # @private
3410
3461
  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.93.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-02-04 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.93.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