google-apis-retail_v2 0.39.0 → 0.42.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: cbec6c9ad7ae1560e07e63125b22fb120bf246de90b53eaf9f7ddcf284b60dd9
|
4
|
+
data.tar.gz: 1f471ea6ab71b3840d300366f2b19e5b7824c49dd005477cb7e83356a9753f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f57d622e2bfec5b535e4aa8faf00e7dec1d63e52ae07e487f9b9a47609583a598d9ea8b4dcff6d7dbc275b17c4b3f3006a7b95a6e2bb92b1325eaf13cdf385
|
7
|
+
data.tar.gz: e21231609c70e95ac5b7fa7ae1ec4bfa199b3b76fa1f15064ecea7a4c233910a2bcc011a11d93d6cba9c078fc4f1e9885bba0d437ea9fb3fd866267eb20c28b1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.42.0 (2022-06-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220609
|
6
|
+
* Regenerated using generator version 0.6.0
|
7
|
+
|
8
|
+
### v0.41.0 (2022-06-07)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220602
|
11
|
+
* Regenerated using generator version 0.5.0
|
12
|
+
|
13
|
+
### v0.40.0 (2022-05-26)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20220519
|
16
|
+
|
3
17
|
### v0.39.0 (2022-05-19)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220512
|
@@ -2158,15 +2158,17 @@ module Google
|
|
2158
2158
|
end
|
2159
2159
|
end
|
2160
2160
|
|
2161
|
-
# Promotion
|
2161
|
+
# Promotion specification.
|
2162
2162
|
class GoogleCloudRetailV2Promotion
|
2163
2163
|
include Google::Apis::Core::Hashable
|
2164
2164
|
|
2165
|
-
#
|
2166
|
-
#
|
2167
|
-
#
|
2168
|
-
#
|
2169
|
-
#
|
2165
|
+
# Promotion identifier, which is the final component of name. For example, this
|
2166
|
+
# field is "free_gift", if name is `projects/*/locations/global/catalogs/
|
2167
|
+
# default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
|
2168
|
+
# string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
|
2169
|
+
# For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
|
2170
|
+
# error is returned. Corresponds to Google Merchant Center property [
|
2171
|
+
# promotion_id](https://support.google.com/merchants/answer/7050148).
|
2170
2172
|
# Corresponds to the JSON property `promotionId`
|
2171
2173
|
# @return [String]
|
2172
2174
|
attr_accessor :promotion_id
|
@@ -2916,6 +2918,13 @@ module Google
|
|
2916
2918
|
class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
|
2917
2919
|
include Google::Apis::Core::Hashable
|
2918
2920
|
|
2921
|
+
# True to make facet keys case insensitive when getting faceting values with
|
2922
|
+
# prefixes or contains; false otherwise.
|
2923
|
+
# Corresponds to the JSON property `caseInsensitive`
|
2924
|
+
# @return [Boolean]
|
2925
|
+
attr_accessor :case_insensitive
|
2926
|
+
alias_method :case_insensitive?, :case_insensitive
|
2927
|
+
|
2919
2928
|
# Only get facet values that contains the given strings. For example, suppose "
|
2920
2929
|
# categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
|
2921
2930
|
# If set "contains" to "Shoe", the "categories" facet will give only "Women >
|
@@ -2983,10 +2992,11 @@ module Google
|
|
2983
2992
|
# Only get facet for the given restricted values. For example, when using "
|
2984
2993
|
# pickupInStore" as key and set restricted values to ["store123", "store456"],
|
2985
2994
|
# only facets for "store123" and "store456" are returned. Only supported on
|
2986
|
-
# textual fields and fulfillments. Maximum
|
2987
|
-
# fulfillment facet keys: * pickupInStore *
|
2988
|
-
#
|
2989
|
-
# * customFulfillment4 *
|
2995
|
+
# predefined textual fields, custom textual attributes and fulfillments. Maximum
|
2996
|
+
# is 20. Must be set for the fulfillment facet keys: * pickupInStore *
|
2997
|
+
# shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
|
2998
|
+
# customFulfillment2 * customFulfillment3 * customFulfillment4 *
|
2999
|
+
# customFulfillment5
|
2990
3000
|
# Corresponds to the JSON property `restrictedValues`
|
2991
3001
|
# @return [Array<String>]
|
2992
3002
|
attr_accessor :restricted_values
|
@@ -2997,6 +3007,7 @@ module Google
|
|
2997
3007
|
|
2998
3008
|
# Update properties of this object
|
2999
3009
|
def update!(**args)
|
3010
|
+
@case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
|
3000
3011
|
@contains = args[:contains] if args.key?(:contains)
|
3001
3012
|
@intervals = args[:intervals] if args.key?(:intervals)
|
3002
3013
|
@key = args[:key] if args.key?(:key)
|
@@ -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.42.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.6.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220609"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1561,6 +1561,7 @@ module Google
|
|
1561
1561
|
class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
|
1562
1562
|
# @private
|
1563
1563
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1564
|
+
property :case_insensitive, as: 'caseInsensitive'
|
1564
1565
|
collection :contains, as: 'contains'
|
1565
1566
|
collection :intervals, as: 'intervals', class: Google::Apis::RetailV2::GoogleCloudRetailV2Interval, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Interval::Representation
|
1566
1567
|
|
@@ -929,13 +929,16 @@ module Google
|
|
929
929
|
|
930
930
|
# Makes a recommendation prediction.
|
931
931
|
# @param [String] placement
|
932
|
-
# Required. Full resource name of the format: `
|
933
|
-
# catalogs/default_catalog/
|
934
|
-
#
|
935
|
-
#
|
936
|
-
#
|
937
|
-
#
|
938
|
-
#
|
932
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
933
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
934
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
935
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
936
|
+
# the Recommendations AI serving config or placement. Before you can request
|
937
|
+
# predictions from your model, you must create at least one serving config or
|
938
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
939
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
940
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
941
|
+
# retail/catalogs/default_catalog/configs
|
939
942
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
940
943
|
# @param [String] fields
|
941
944
|
# Selector specifying which fields to include in a partial response.
|
@@ -970,10 +973,12 @@ module Google
|
|
970
973
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
971
974
|
# feature.
|
972
975
|
# @param [String] placement
|
973
|
-
# Required. The resource name of the
|
974
|
-
#
|
975
|
-
#
|
976
|
-
#
|
976
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
977
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
978
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
979
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
980
|
+
# . This field is used to identify the serving configuration name and the set of
|
981
|
+
# models that will be used to make the search.
|
977
982
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
978
983
|
# @param [String] fields
|
979
984
|
# Selector specifying which fields to include in a partial response.
|
@@ -1004,6 +1009,88 @@ module Google
|
|
1004
1009
|
execute_or_queue_command(command, &block)
|
1005
1010
|
end
|
1006
1011
|
|
1012
|
+
# Makes a recommendation prediction.
|
1013
|
+
# @param [String] placement
|
1014
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1015
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1016
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1017
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1018
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1019
|
+
# predictions from your model, you must create at least one serving config or
|
1020
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1021
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1022
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1023
|
+
# retail/catalogs/default_catalog/configs
|
1024
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
1025
|
+
# @param [String] fields
|
1026
|
+
# Selector specifying which fields to include in a partial response.
|
1027
|
+
# @param [String] quota_user
|
1028
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1029
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1030
|
+
# @param [Google::Apis::RequestOptions] options
|
1031
|
+
# Request-specific options
|
1032
|
+
#
|
1033
|
+
# @yield [result, err] Result & error if block supplied
|
1034
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse] parsed result object
|
1035
|
+
# @yieldparam err [StandardError] error object if request failed
|
1036
|
+
#
|
1037
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse]
|
1038
|
+
#
|
1039
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1040
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1041
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1042
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1043
|
+
command = make_simple_command(:post, 'v2/{+placement}:predict', options)
|
1044
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest::Representation
|
1045
|
+
command.request_object = google_cloud_retail_v2_predict_request_object
|
1046
|
+
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse::Representation
|
1047
|
+
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse
|
1048
|
+
command.params['placement'] = placement unless placement.nil?
|
1049
|
+
command.query['fields'] = fields unless fields.nil?
|
1050
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1051
|
+
execute_or_queue_command(command, &block)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Performs a search. This feature is only available for users who have Retail
|
1055
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1056
|
+
# feature.
|
1057
|
+
# @param [String] placement
|
1058
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1059
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1060
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1061
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1062
|
+
# . This field is used to identify the serving configuration name and the set of
|
1063
|
+
# models that will be used to make the search.
|
1064
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
1065
|
+
# @param [String] fields
|
1066
|
+
# Selector specifying which fields to include in a partial response.
|
1067
|
+
# @param [String] quota_user
|
1068
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1069
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1070
|
+
# @param [Google::Apis::RequestOptions] options
|
1071
|
+
# Request-specific options
|
1072
|
+
#
|
1073
|
+
# @yield [result, err] Result & error if block supplied
|
1074
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse] parsed result object
|
1075
|
+
# @yieldparam err [StandardError] error object if request failed
|
1076
|
+
#
|
1077
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse]
|
1078
|
+
#
|
1079
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1080
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1081
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1082
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1083
|
+
command = make_simple_command(:post, 'v2/{+placement}:search', options)
|
1084
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest::Representation
|
1085
|
+
command.request_object = google_cloud_retail_v2_search_request_object
|
1086
|
+
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse::Representation
|
1087
|
+
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse
|
1088
|
+
command.params['placement'] = placement unless placement.nil?
|
1089
|
+
command.query['fields'] = fields unless fields.nil?
|
1090
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1091
|
+
execute_or_queue_command(command, &block)
|
1092
|
+
end
|
1093
|
+
|
1007
1094
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1008
1095
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1009
1096
|
# only by the Retail API JavaScript pixel and Google Tag Manager. Users should
|
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.42.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: 2022-
|
11
|
+
date: 2022-06-20 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.6'
|
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.6'
|
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.42.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.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Retail API V2
|