google-apis-retail_v2 0.86.0 → 0.88.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: 54582d1dd8e8e04af512667e123c5a7df6631974c494529d5542f36cfab3045d
|
4
|
+
data.tar.gz: be0c929e09d1ea3dfd09e732325b0425944fe263fff97833e9a24071c39663bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f128948a79c7b84aaa1c4bd46c23e7da46a53c2873aedbb47ecf3de12d1760a42349b6eea77a979f9e23ec5942428067a66a0d711406ab63626a401c1514f8
|
7
|
+
data.tar.gz: df5a674f409a6708444a8f2a01dc5c274545c7d7110a39f3ec2ef84cd6612968d463d4fdca76646941db32a2e7756ba1a264c3608c4365ad1f9b7ce2f2db2163
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.88.0 (2024-02-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240129
|
6
|
+
* Regenerated using generator version 0.13.1
|
7
|
+
|
8
|
+
### v0.87.0 (2024-01-23)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240118
|
11
|
+
* Regenerated using generator version 0.13.0
|
12
|
+
|
3
13
|
### v0.86.0 (2023-12-10)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20231130
|
@@ -795,6 +795,14 @@ module Google
|
|
795
795
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues>]
|
796
796
|
attr_accessor :ignored_facet_values
|
797
797
|
|
798
|
+
# The current facet key (i.e. attribute config) maps into the merged_facet_key.
|
799
|
+
# A facet key can have at most one child. The current facet key and the merged
|
800
|
+
# facet key need both to be textual custom attributes or both numerical custom
|
801
|
+
# attributes (same type).
|
802
|
+
# Corresponds to the JSON property `mergedFacet`
|
803
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet]
|
804
|
+
attr_accessor :merged_facet
|
805
|
+
|
798
806
|
# Each instance replaces a list of facet values by a merged facet value. If a
|
799
807
|
# facet value is not in any list, then it will stay the same. To avoid conflicts,
|
800
808
|
# only paths of length 1 are accepted. In other words, if "dark_blue" merged
|
@@ -806,6 +814,18 @@ module Google
|
|
806
814
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
|
807
815
|
attr_accessor :merged_facet_values
|
808
816
|
|
817
|
+
# Options to rerank based on facet values engaged by the user for the current
|
818
|
+
# key. That key needs to be a custom textual key and facetable. To use this
|
819
|
+
# control, you also need to pass all the facet keys engaged by the user in the
|
820
|
+
# request using the field [SearchRequest.FacetSpec]. In particular, if you don't
|
821
|
+
# pass the facet keys engaged that you want to rerank on, this control won't be
|
822
|
+
# effective. Moreover, to obtain better results, the facet values that you want
|
823
|
+
# to rerank on should be close to English (ideally made of words, underscores,
|
824
|
+
# and spaces).
|
825
|
+
# Corresponds to the JSON property `rerankConfig`
|
826
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig]
|
827
|
+
attr_accessor :rerank_config
|
828
|
+
|
809
829
|
def initialize(**args)
|
810
830
|
update!(**args)
|
811
831
|
end
|
@@ -814,7 +834,9 @@ module Google
|
|
814
834
|
def update!(**args)
|
815
835
|
@facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
|
816
836
|
@ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
|
837
|
+
@merged_facet = args[:merged_facet] if args.key?(:merged_facet)
|
817
838
|
@merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
|
839
|
+
@rerank_config = args[:rerank_config] if args.key?(:rerank_config)
|
818
840
|
end
|
819
841
|
end
|
820
842
|
|
@@ -857,6 +879,41 @@ module Google
|
|
857
879
|
end
|
858
880
|
end
|
859
881
|
|
882
|
+
# The current facet key (i.e. attribute config) maps into the merged_facet_key.
|
883
|
+
# A facet key can have at most one child. The current facet key and the merged
|
884
|
+
# facet key need both to be textual custom attributes or both numerical custom
|
885
|
+
# attributes (same type).
|
886
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
|
887
|
+
include Google::Apis::Core::Hashable
|
888
|
+
|
889
|
+
# The merged facet key should be a valid facet key that is different than the
|
890
|
+
# facet key of the current catalog attribute. We refer this is merged facet key
|
891
|
+
# as the child of the current catalog attribute. This merged facet key can't be
|
892
|
+
# a parent of another facet key (i.e. no directed path of length 2). This merged
|
893
|
+
# facet key needs to be either a textual custom attribute or a numerical custom
|
894
|
+
# attribute.
|
895
|
+
# Corresponds to the JSON property `mergedFacetKey`
|
896
|
+
# @return [String]
|
897
|
+
attr_accessor :merged_facet_key
|
898
|
+
|
899
|
+
# Each instance is a list of facet values that map into the same (possibly
|
900
|
+
# different) merged facet value. For the current attribute config, each facet
|
901
|
+
# value should map to at most one merged facet value.
|
902
|
+
# Corresponds to the JSON property `mergedFacetValues`
|
903
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
|
904
|
+
attr_accessor :merged_facet_values
|
905
|
+
|
906
|
+
def initialize(**args)
|
907
|
+
update!(**args)
|
908
|
+
end
|
909
|
+
|
910
|
+
# Update properties of this object
|
911
|
+
def update!(**args)
|
912
|
+
@merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key)
|
913
|
+
@merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
860
917
|
# Replaces a set of textual facet values by the same (possibly different) merged
|
861
918
|
# facet value. Each facet value should appear at most once as a value per
|
862
919
|
# CatalogAttribute. This feature is available only for textual custom attributes.
|
@@ -887,6 +944,41 @@ module Google
|
|
887
944
|
end
|
888
945
|
end
|
889
946
|
|
947
|
+
# Options to rerank based on facet values engaged by the user for the current
|
948
|
+
# key. That key needs to be a custom textual key and facetable. To use this
|
949
|
+
# control, you also need to pass all the facet keys engaged by the user in the
|
950
|
+
# request using the field [SearchRequest.FacetSpec]. In particular, if you don't
|
951
|
+
# pass the facet keys engaged that you want to rerank on, this control won't be
|
952
|
+
# effective. Moreover, to obtain better results, the facet values that you want
|
953
|
+
# to rerank on should be close to English (ideally made of words, underscores,
|
954
|
+
# and spaces).
|
955
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
|
956
|
+
include Google::Apis::Core::Hashable
|
957
|
+
|
958
|
+
# If empty, rerank on all facet values for the current key. Otherwise, will
|
959
|
+
# rerank on the facet values from this list only.
|
960
|
+
# Corresponds to the JSON property `facetValues`
|
961
|
+
# @return [Array<String>]
|
962
|
+
attr_accessor :facet_values
|
963
|
+
|
964
|
+
# If set to true, then we also rerank the dynamic facets based on the facet
|
965
|
+
# values engaged by the user for the current attribute key during serving.
|
966
|
+
# Corresponds to the JSON property `rerankFacet`
|
967
|
+
# @return [Boolean]
|
968
|
+
attr_accessor :rerank_facet
|
969
|
+
alias_method :rerank_facet?, :rerank_facet
|
970
|
+
|
971
|
+
def initialize(**args)
|
972
|
+
update!(**args)
|
973
|
+
end
|
974
|
+
|
975
|
+
# Update properties of this object
|
976
|
+
def update!(**args)
|
977
|
+
@facet_values = args[:facet_values] if args.key?(:facet_values)
|
978
|
+
@rerank_facet = args[:rerank_facet] if args.key?(:rerank_facet)
|
979
|
+
end
|
980
|
+
end
|
981
|
+
|
890
982
|
# The color information of a Product.
|
891
983
|
class GoogleCloudRetailV2ColorInfo
|
892
984
|
include Google::Apis::Core::Hashable
|
@@ -1770,7 +1862,8 @@ module Google
|
|
1770
1862
|
attr_accessor :request_id
|
1771
1863
|
|
1772
1864
|
# Indicates which fields in the provided imported `products` to update. If not
|
1773
|
-
# set, all fields are updated.
|
1865
|
+
# set, all fields are updated. If provided, only the existing product fields are
|
1866
|
+
# updated. Missing products will not be created.
|
1774
1867
|
# Corresponds to the JSON property `updateMask`
|
1775
1868
|
# @return [String]
|
1776
1869
|
attr_accessor :update_mask
|
@@ -7080,6 +7173,40 @@ module Google
|
|
7080
7173
|
end
|
7081
7174
|
end
|
7082
7175
|
|
7176
|
+
# Response of the ExportAnalyticsMetricsRequest. If the long running operation
|
7177
|
+
# was successful, then this message is returned by the google.longrunning.
|
7178
|
+
# Operations.response field if the operation was successful.
|
7179
|
+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
|
7180
|
+
include Google::Apis::Core::Hashable
|
7181
|
+
|
7182
|
+
# A sample of errors encountered while processing the request.
|
7183
|
+
# Corresponds to the JSON property `errorSamples`
|
7184
|
+
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
7185
|
+
attr_accessor :error_samples
|
7186
|
+
|
7187
|
+
# Configuration of destination for Export related errors.
|
7188
|
+
# Corresponds to the JSON property `errorsConfig`
|
7189
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig]
|
7190
|
+
attr_accessor :errors_config
|
7191
|
+
|
7192
|
+
# Output result that stores the information about where the exported data is
|
7193
|
+
# stored.
|
7194
|
+
# Corresponds to the JSON property `outputResult`
|
7195
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult]
|
7196
|
+
attr_accessor :output_result
|
7197
|
+
|
7198
|
+
def initialize(**args)
|
7199
|
+
update!(**args)
|
7200
|
+
end
|
7201
|
+
|
7202
|
+
# Update properties of this object
|
7203
|
+
def update!(**args)
|
7204
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
7205
|
+
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
7206
|
+
@output_result = args[:output_result] if args.key?(:output_result)
|
7207
|
+
end
|
7208
|
+
end
|
7209
|
+
|
7083
7210
|
# Configuration of destination for Export related errors.
|
7084
7211
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
7085
7212
|
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.88.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240129"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -154,12 +154,24 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
157
163
|
class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
161
167
|
end
|
162
168
|
|
169
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
163
175
|
class GoogleCloudRetailV2ColorInfo
|
164
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
177
|
|
@@ -1138,6 +1150,12 @@ module Google
|
|
1138
1150
|
include Google::Apis::Core::JsonObjectSupport
|
1139
1151
|
end
|
1140
1152
|
|
1153
|
+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
|
1154
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1155
|
+
|
1156
|
+
include Google::Apis::Core::JsonObjectSupport
|
1157
|
+
end
|
1158
|
+
|
1141
1159
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
1142
1160
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1143
1161
|
|
@@ -1553,8 +1571,12 @@ module Google
|
|
1553
1571
|
|
1554
1572
|
collection :ignored_facet_values, as: 'ignoredFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues::Representation
|
1555
1573
|
|
1574
|
+
property :merged_facet, as: 'mergedFacet', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet::Representation
|
1575
|
+
|
1556
1576
|
collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
|
1557
1577
|
|
1578
|
+
property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig::Representation
|
1579
|
+
|
1558
1580
|
end
|
1559
1581
|
end
|
1560
1582
|
|
@@ -1567,6 +1589,15 @@ module Google
|
|
1567
1589
|
end
|
1568
1590
|
end
|
1569
1591
|
|
1592
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
|
1593
|
+
# @private
|
1594
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1595
|
+
property :merged_facet_key, as: 'mergedFacetKey'
|
1596
|
+
collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
|
1597
|
+
|
1598
|
+
end
|
1599
|
+
end
|
1600
|
+
|
1570
1601
|
class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
|
1571
1602
|
# @private
|
1572
1603
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1575,6 +1606,14 @@ module Google
|
|
1575
1606
|
end
|
1576
1607
|
end
|
1577
1608
|
|
1609
|
+
class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
|
1610
|
+
# @private
|
1611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1612
|
+
collection :facet_values, as: 'facetValues'
|
1613
|
+
property :rerank_facet, as: 'rerankFacet'
|
1614
|
+
end
|
1615
|
+
end
|
1616
|
+
|
1578
1617
|
class GoogleCloudRetailV2ColorInfo
|
1579
1618
|
# @private
|
1580
1619
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3134,6 +3173,18 @@ module Google
|
|
3134
3173
|
end
|
3135
3174
|
end
|
3136
3175
|
|
3176
|
+
class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
|
3177
|
+
# @private
|
3178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3179
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
3180
|
+
|
3181
|
+
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig::Representation
|
3182
|
+
|
3183
|
+
property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult::Representation
|
3184
|
+
|
3185
|
+
end
|
3186
|
+
end
|
3187
|
+
|
3137
3188
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
3138
3189
|
# @private
|
3139
3190
|
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.88.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-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.
|
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.88.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
|