google-apis-retail_v2 0.85.0 → 0.87.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f955a2116199d0020d8d7fa1a31d9f3a9530a3345077b13a1a14512d564d8ef2
|
4
|
+
data.tar.gz: 0b47e9ce274392ad9339ef2ed95b69f1508bd756a1bdfae2f9f85ae821771f0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47cf0ae95d3738f20a7050d5bef1598aec06e598de1d30d03363bfb0077ba2dffb40a3086b8609accedb3fadecc9f5f147410e9da3751a1884ebf9bd6a506cb4
|
7
|
+
data.tar.gz: e61cee1be25b125ee7060b440555490bddf9cd03bbc22197c0bda4dfc74ec0cdb2dc34ecaded290d8fd5102477f3cc43dce1067b8b63b44dd6a4a98ae32c0fd1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.87.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240118
|
6
|
+
* Regenerated using generator version 0.13.0
|
7
|
+
|
8
|
+
### v0.86.0 (2023-12-10)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20231130
|
11
|
+
|
3
12
|
### v0.85.0 (2023-11-19)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20231109
|
@@ -806,6 +806,18 @@ module Google
|
|
806
806
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
|
807
807
|
attr_accessor :merged_facet_values
|
808
808
|
|
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
|
+
|
809
821
|
def initialize(**args)
|
810
822
|
update!(**args)
|
811
823
|
end
|
@@ -815,6 +827,7 @@ module Google
|
|
815
827
|
@facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
|
816
828
|
@ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
|
817
829
|
@merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
|
830
|
+
@rerank_config = args[:rerank_config] if args.key?(:rerank_config)
|
818
831
|
end
|
819
832
|
end
|
820
833
|
|
@@ -887,6 +900,41 @@ module Google
|
|
887
900
|
end
|
888
901
|
end
|
889
902
|
|
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
|
+
|
890
938
|
# The color information of a Product.
|
891
939
|
class GoogleCloudRetailV2ColorInfo
|
892
940
|
include Google::Apis::Core::Hashable
|
@@ -2662,13 +2710,13 @@ module Google
|
|
2662
2710
|
# Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "
|
2663
2711
|
# categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic
|
2664
2712
|
# Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an
|
2665
|
-
# INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product
|
2666
|
-
# Empty values are not allowed. Each value
|
2667
|
-
# a length limit of 5,000 characters.
|
2668
|
-
# returned. Corresponding properties:
|
2669
|
-
# google_product_category. Schema.org property [
|
2670
|
-
# schema.org/category). [mc_google_product_category]:
|
2671
|
-
# merchants/answer/6324436
|
2713
|
+
# INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product
|
2714
|
+
# unless overridden via pantheon UI. Empty values are not allowed. Each value
|
2715
|
+
# must be a UTF-8 encoded string with a length limit of 5,000 characters.
|
2716
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
2717
|
+
# Google Merchant Center property google_product_category. Schema.org property [
|
2718
|
+
# Product.category] (https://schema.org/category). [mc_google_product_category]:
|
2719
|
+
# https://support.google.com/merchants/answer/6324436
|
2672
2720
|
# Corresponds to the JSON property `categories`
|
2673
2721
|
# @return [Array<String>]
|
2674
2722
|
attr_accessor :categories
|
@@ -2707,16 +2755,16 @@ module Google
|
|
2707
2755
|
# @return [String]
|
2708
2756
|
attr_accessor :description
|
2709
2757
|
|
2710
|
-
#
|
2711
|
-
#
|
2712
|
-
#
|
2713
|
-
#
|
2714
|
-
#
|
2715
|
-
#
|
2716
|
-
#
|
2717
|
-
#
|
2718
|
-
#
|
2719
|
-
#
|
2758
|
+
# Note that this field is applied in the following ways: * If the Product is
|
2759
|
+
# already expired when it is uploaded, this product is not indexed for search. *
|
2760
|
+
# If the Product is not expired when it is uploaded, only the Type.PRIMARY's and
|
2761
|
+
# Type.COLLECTION's expireTime is respected, and Type.VARIANT's expireTime is
|
2762
|
+
# not used. In general, we suggest the users to delete the stale products
|
2763
|
+
# explicitly, instead of using this field to determine staleness. expire_time
|
2764
|
+
# must be later than available_time and publish_time, otherwise an
|
2765
|
+
# INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant
|
2766
|
+
# Center property [expiration_date](https://support.google.com/merchants/answer/
|
2767
|
+
# 6324499).
|
2720
2768
|
# Corresponds to the JSON property `expireTime`
|
2721
2769
|
# @return [String]
|
2722
2770
|
attr_accessor :expire_time
|
@@ -5845,6 +5893,40 @@ module Google
|
|
5845
5893
|
end
|
5846
5894
|
end
|
5847
5895
|
|
5896
|
+
# Response of the ExportAnalyticsMetricsRequest. If the long running operation
|
5897
|
+
# was successful, then this message is returned by the google.longrunning.
|
5898
|
+
# Operations.response field if the operation was successful.
|
5899
|
+
class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
|
5900
|
+
include Google::Apis::Core::Hashable
|
5901
|
+
|
5902
|
+
# A sample of errors encountered while processing the request.
|
5903
|
+
# Corresponds to the JSON property `errorSamples`
|
5904
|
+
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
5905
|
+
attr_accessor :error_samples
|
5906
|
+
|
5907
|
+
# Configuration of destination for Export related errors.
|
5908
|
+
# Corresponds to the JSON property `errorsConfig`
|
5909
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig]
|
5910
|
+
attr_accessor :errors_config
|
5911
|
+
|
5912
|
+
# Output result that stores the information about where the exported data is
|
5913
|
+
# stored.
|
5914
|
+
# Corresponds to the JSON property `outputResult`
|
5915
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult]
|
5916
|
+
attr_accessor :output_result
|
5917
|
+
|
5918
|
+
def initialize(**args)
|
5919
|
+
update!(**args)
|
5920
|
+
end
|
5921
|
+
|
5922
|
+
# Update properties of this object
|
5923
|
+
def update!(**args)
|
5924
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
5925
|
+
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
5926
|
+
@output_result = args[:output_result] if args.key?(:output_result)
|
5927
|
+
end
|
5928
|
+
end
|
5929
|
+
|
5848
5930
|
# Configuration of destination for Export related errors.
|
5849
5931
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
5850
5932
|
include Google::Apis::Core::Hashable
|
@@ -7046,6 +7128,40 @@ module Google
|
|
7046
7128
|
end
|
7047
7129
|
end
|
7048
7130
|
|
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
|
+
|
7049
7165
|
# Configuration of destination for Export related errors.
|
7050
7166
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
7051
7167
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.87.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240118"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -160,6 +160,12 @@ module Google
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
161
161
|
end
|
162
162
|
|
163
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
163
169
|
class GoogleCloudRetailV2ColorInfo
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
171
|
|
@@ -874,6 +880,12 @@ module Google
|
|
874
880
|
include Google::Apis::Core::JsonObjectSupport
|
875
881
|
end
|
876
882
|
|
883
|
+
class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
885
|
+
|
886
|
+
include Google::Apis::Core::JsonObjectSupport
|
887
|
+
end
|
888
|
+
|
877
889
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
878
890
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
891
|
|
@@ -1132,6 +1144,12 @@ module Google
|
|
1132
1144
|
include Google::Apis::Core::JsonObjectSupport
|
1133
1145
|
end
|
1134
1146
|
|
1147
|
+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
|
1148
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1149
|
+
|
1150
|
+
include Google::Apis::Core::JsonObjectSupport
|
1151
|
+
end
|
1152
|
+
|
1135
1153
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
1136
1154
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1137
1155
|
|
@@ -1549,6 +1567,8 @@ module Google
|
|
1549
1567
|
|
1550
1568
|
collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
|
1551
1569
|
|
1570
|
+
property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig::Representation
|
1571
|
+
|
1552
1572
|
end
|
1553
1573
|
end
|
1554
1574
|
|
@@ -1569,6 +1589,14 @@ module Google
|
|
1569
1589
|
end
|
1570
1590
|
end
|
1571
1591
|
|
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
|
+
|
1572
1600
|
class GoogleCloudRetailV2ColorInfo
|
1573
1601
|
# @private
|
1574
1602
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2753,6 +2781,18 @@ module Google
|
|
2753
2781
|
end
|
2754
2782
|
end
|
2755
2783
|
|
2784
|
+
class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
|
2785
|
+
# @private
|
2786
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2787
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
2788
|
+
|
2789
|
+
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig::Representation
|
2790
|
+
|
2791
|
+
property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult::Representation
|
2792
|
+
|
2793
|
+
end
|
2794
|
+
end
|
2795
|
+
|
2756
2796
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
2757
2797
|
# @private
|
2758
2798
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3116,6 +3156,18 @@ module Google
|
|
3116
3156
|
end
|
3117
3157
|
end
|
3118
3158
|
|
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
|
+
|
3119
3171
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
3120
3172
|
# @private
|
3121
3173
|
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(
|
50
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
49
51
|
client_name: 'google-apis-retail_v2',
|
50
52
|
client_version: Google::Apis::RetailV2::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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.87.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:
|
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.
|
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.
|
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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.87.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
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.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Retail API V2
|