google-apis-retail_v2alpha 0.90.0 → 0.92.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: f3ce5c6a458912f0770cc1395e341b3002f4a02f9dc7df93d738a1d5503a34ed
4
- data.tar.gz: be3b2e82bda2d111c288c10ee82829140062af8f953eefaa79e7eb46b2da5f07
3
+ metadata.gz: 46555d9c3925ce385c8c0e219f0e9d6d95d4c9d414041b46b8932c832cfbd892
4
+ data.tar.gz: 870edb9419f1d567857fbd4fd91b31d10ca1a6d4acc650f5b9f3005ab48eaf36
5
5
  SHA512:
6
- metadata.gz: 32134ef63eaa1f5b1287e5e02f2d38ebc51522901dfb7147ce9c7252c8603ae8bdeb27038728eded04b515fff7714573b46b0738923715f94ce8ffc7d82ed0b3
7
- data.tar.gz: 2c8c1b477f2a31e13d4b4f8ba24d60ff7ebfd43215452513a6088fcb021acf3a08f7af9eae4fc964a8e156d23d41fcc4e46ca73e46beaffa3d47a3f768c631b6
6
+ metadata.gz: 71e65b2227e5e3d0500d69393ae70560577410ceea4de7897a4f96ac6757adc1623d101eeb113c9c965f82a11e61e5a55beef376c1117f524ec0bc3126dc6759
7
+ data.tar.gz: 662974493814bf52ba311d64e250d4976966385fbfedb97357e2600a33235023e7c4d48166e5aa7218b9b98d67f194ae9d86583713f10733d38ded7d5aa12bbc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.91.0 (2023-12-17)
9
+
10
+ * Regenerated from discovery document revision 20231207
11
+
3
12
  ### v0.90.0 (2023-12-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20231130
@@ -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
@@ -3993,6 +4041,18 @@ module Google
3993
4041
  # @return [String]
3994
4042
  attr_accessor :dataset_id
3995
4043
 
4044
+ # Required. The prefix of exported BigQuery tables.
4045
+ # Corresponds to the JSON property `tableIdPrefix`
4046
+ # @return [String]
4047
+ attr_accessor :table_id_prefix
4048
+
4049
+ # Required. Describes the table type. The following values are supported: * `
4050
+ # table`: A BigQuery native table. * `view`: A virtual table defined by a SQL
4051
+ # query.
4052
+ # Corresponds to the JSON property `tableType`
4053
+ # @return [String]
4054
+ attr_accessor :table_type
4055
+
3996
4056
  def initialize(**args)
3997
4057
  update!(**args)
3998
4058
  end
@@ -4000,6 +4060,8 @@ module Google
4000
4060
  # Update properties of this object
4001
4061
  def update!(**args)
4002
4062
  @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
4063
+ @table_id_prefix = args[:table_id_prefix] if args.key?(:table_id_prefix)
4064
+ @table_type = args[:table_type] if args.key?(:table_type)
4003
4065
  end
4004
4066
  end
4005
4067
 
@@ -7626,6 +7688,40 @@ module Google
7626
7688
  end
7627
7689
  end
7628
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
+
7629
7725
  # Configuration of destination for Export related errors.
7630
7726
  class GoogleCloudRetailV2betaExportErrorsConfig
7631
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.90.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 = "20231130"
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
@@ -2569,6 +2591,8 @@ module Google
2569
2591
  # @private
2570
2592
  class Representation < Google::Apis::Core::JsonRepresentation
2571
2593
  property :dataset_id, as: 'datasetId'
2594
+ property :table_id_prefix, as: 'tableIdPrefix'
2595
+ property :table_type, as: 'tableType'
2572
2596
  end
2573
2597
  end
2574
2598
 
@@ -3403,6 +3427,18 @@ module Google
3403
3427
  end
3404
3428
  end
3405
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
+
3406
3442
  class GoogleCloudRetailV2betaExportErrorsConfig
3407
3443
  # @private
3408
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.90.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-10 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.90.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