google-apis-retail_v2beta 0.36.0 → 0.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/retail_v2beta/classes.rb +20 -15
- data/lib/google/apis/retail_v2beta/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2beta/service.rb +10 -97
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c8872e66072015b11b4854acf22e54e1b125ad2326b60212ce0165cfca56c6d
|
4
|
+
data.tar.gz: ac888547e2334f0e518a0df0fda257ab1a4b4acb0779b950e64e5d759bd151e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85eb21cb8589e762e47d5c3c1dc8bb8458734844b815240d25b10f4cdfa7d03dccbff90174c1c588cff13c920560e287882fe351c6b04aa325b6a73b6c38bb8c
|
7
|
+
data.tar.gz: 2b74eb8ed82ee65563f01ec19ac8d123422f2099bc85c4e57df01df9c1788b92604cdab9bc7eb72c01697b75b3dee61853f819d6d0ba859985a5312e0c0a99a5
|
data/CHANGELOG.md
CHANGED
@@ -2133,12 +2133,13 @@ module Google
|
|
2133
2133
|
class GoogleCloudRetailV2betaCustomAttribute
|
2134
2134
|
include Google::Apis::Core::Hashable
|
2135
2135
|
|
2136
|
-
# This field
|
2137
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
2138
|
-
#
|
2139
|
-
#
|
2140
|
-
#
|
2141
|
-
#
|
2136
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
2137
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
2138
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
2139
|
+
# docs/attribute-config#config-modes). if true, custom attribute values are
|
2140
|
+
# indexed, so that it can be filtered, faceted or boosted in SearchService.
|
2141
|
+
# Search. This field is ignored in a UserEvent. See SearchRequest.filter,
|
2142
|
+
# SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
|
2142
2143
|
# Corresponds to the JSON property `indexable`
|
2143
2144
|
# @return [Boolean]
|
2144
2145
|
attr_accessor :indexable
|
@@ -2151,11 +2152,13 @@ module Google
|
|
2151
2152
|
# @return [Array<Float>]
|
2152
2153
|
attr_accessor :numbers
|
2153
2154
|
|
2154
|
-
# This field
|
2155
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
2156
|
-
#
|
2157
|
-
#
|
2158
|
-
#
|
2155
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
2156
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
2157
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
2158
|
+
# docs/attribute-config#config-modes). If true, custom attribute values are
|
2159
|
+
# searchable by text queries in SearchService.Search. This field is ignored in a
|
2160
|
+
# UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
|
2161
|
+
# is returned.
|
2159
2162
|
# Corresponds to the JSON property `searchable`
|
2160
2163
|
# @return [Boolean]
|
2161
2164
|
attr_accessor :searchable
|
@@ -5038,7 +5041,9 @@ module Google
|
|
5038
5041
|
# @return [String]
|
5039
5042
|
attr_accessor :attribution_token
|
5040
5043
|
|
5041
|
-
#
|
5044
|
+
# Contains the spell corrected query, if found. If the spell correction type is
|
5045
|
+
# AUTOMATIC, then the search results will be based on corrected_query, otherwise
|
5046
|
+
# the original query will be used for search.
|
5042
5047
|
# Corresponds to the JSON property `correctedQuery`
|
5043
5048
|
# @return [String]
|
5044
5049
|
attr_accessor :corrected_query
|
@@ -5676,9 +5681,9 @@ module Google
|
|
5676
5681
|
# @return [String]
|
5677
5682
|
attr_accessor :page_view_id
|
5678
5683
|
|
5679
|
-
# The main product details related to the event. This field is
|
5680
|
-
# following event types: * `add-to-cart` * `detail-page-view` * `
|
5681
|
-
# complete`
|
5684
|
+
# The main product details related to the event. This field is optional except
|
5685
|
+
# for the following event types: * `add-to-cart` * `detail-page-view` * `
|
5686
|
+
# purchase-complete` In a `search` event, this field represents the products
|
5682
5687
|
# returned to the end user on the current page (the end user may have not
|
5683
5688
|
# finished browsing the whole page yet). When a new page is returned to the end
|
5684
5689
|
# user, after pagination/filtering/ordering even for the same query, a new `
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2beta
|
18
18
|
# Version of the google-apis-retail_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.37.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220421"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1373,15 +1373,12 @@ module Google
|
|
1373
1373
|
# Makes a recommendation prediction.
|
1374
1374
|
# @param [String] placement
|
1375
1375
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1376
|
-
# catalogs/default_catalog/
|
1377
|
-
#
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1383
|
-
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1384
|
-
# retail/catalogs/default_catalog/configs
|
1376
|
+
# catalogs/default_catalog/placements/*` The ID of the Recommendations AI
|
1377
|
+
# placement. Before you can request predictions from your model, you must create
|
1378
|
+
# at least one placement for it. For more information, see [Managing placements](
|
1379
|
+
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
1380
|
+
# The full list of available placements can be seen at https://console.cloud.
|
1381
|
+
# google.com/recommendation/catalogs/default_catalog/placements
|
1385
1382
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1386
1383
|
# @param [String] fields
|
1387
1384
|
# Selector specifying which fields to include in a partial response.
|
@@ -1416,12 +1413,10 @@ module Google
|
|
1416
1413
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1417
1414
|
# feature.
|
1418
1415
|
# @param [String] placement
|
1419
|
-
# Required. The resource name of the
|
1420
|
-
#
|
1421
|
-
#
|
1422
|
-
#
|
1423
|
-
# . This field is used to identify the serving configuration name and the set of
|
1424
|
-
# models that will be used to make the search.
|
1416
|
+
# Required. The resource name of the search engine placement, such as `projects/*
|
1417
|
+
# /locations/global/catalogs/default_catalog/placements/default_search`. This
|
1418
|
+
# field is used to identify the serving configuration name and the set of models
|
1419
|
+
# that will be used to make the search.
|
1425
1420
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1426
1421
|
# @param [String] fields
|
1427
1422
|
# Selector specifying which fields to include in a partial response.
|
@@ -1676,48 +1671,6 @@ module Google
|
|
1676
1671
|
execute_or_queue_command(command, &block)
|
1677
1672
|
end
|
1678
1673
|
|
1679
|
-
# Makes a recommendation prediction.
|
1680
|
-
# @param [String] placement
|
1681
|
-
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1682
|
-
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1683
|
-
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1684
|
-
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1685
|
-
# Recommendations AI serving config or placement. Before you can request
|
1686
|
-
# predictions from your model, you must create at least one serving config or
|
1687
|
-
# placement for it. For more information, see [Managing serving configurations] (
|
1688
|
-
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1689
|
-
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1690
|
-
# retail/catalogs/default_catalog/configs
|
1691
|
-
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1692
|
-
# @param [String] fields
|
1693
|
-
# Selector specifying which fields to include in a partial response.
|
1694
|
-
# @param [String] quota_user
|
1695
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1696
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1697
|
-
# @param [Google::Apis::RequestOptions] options
|
1698
|
-
# Request-specific options
|
1699
|
-
#
|
1700
|
-
# @yield [result, err] Result & error if block supplied
|
1701
|
-
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
|
1702
|
-
# @yieldparam err [StandardError] error object if request failed
|
1703
|
-
#
|
1704
|
-
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
|
1705
|
-
#
|
1706
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1707
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1708
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1709
|
-
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1710
|
-
command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
|
1711
|
-
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
|
1712
|
-
command.request_object = google_cloud_retail_v2beta_predict_request_object
|
1713
|
-
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
|
1714
|
-
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
|
1715
|
-
command.params['placement'] = placement unless placement.nil?
|
1716
|
-
command.query['fields'] = fields unless fields.nil?
|
1717
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1718
|
-
execute_or_queue_command(command, &block)
|
1719
|
-
end
|
1720
|
-
|
1721
1674
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1722
1675
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1723
1676
|
# the ServingConfig.
|
@@ -1755,46 +1708,6 @@ module Google
|
|
1755
1708
|
execute_or_queue_command(command, &block)
|
1756
1709
|
end
|
1757
1710
|
|
1758
|
-
# Performs a search. This feature is only available for users who have Retail
|
1759
|
-
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1760
|
-
# feature.
|
1761
|
-
# @param [String] placement
|
1762
|
-
# Required. The resource name of the Retail Search serving config, such as `
|
1763
|
-
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1764
|
-
# default_serving_config` or the name of the legacy placement resource, such as `
|
1765
|
-
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1766
|
-
# . This field is used to identify the serving configuration name and the set of
|
1767
|
-
# models that will be used to make the search.
|
1768
|
-
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1769
|
-
# @param [String] fields
|
1770
|
-
# Selector specifying which fields to include in a partial response.
|
1771
|
-
# @param [String] quota_user
|
1772
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1773
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1774
|
-
# @param [Google::Apis::RequestOptions] options
|
1775
|
-
# Request-specific options
|
1776
|
-
#
|
1777
|
-
# @yield [result, err] Result & error if block supplied
|
1778
|
-
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
|
1779
|
-
# @yieldparam err [StandardError] error object if request failed
|
1780
|
-
#
|
1781
|
-
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
|
1782
|
-
#
|
1783
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1784
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1785
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1786
|
-
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1787
|
-
command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
|
1788
|
-
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
|
1789
|
-
command.request_object = google_cloud_retail_v2beta_search_request_object
|
1790
|
-
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
|
1791
|
-
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
|
1792
|
-
command.params['placement'] = placement unless placement.nil?
|
1793
|
-
command.query['fields'] = fields unless fields.nil?
|
1794
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1795
|
-
execute_or_queue_command(command, &block)
|
1796
|
-
end
|
1797
|
-
|
1798
1711
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1799
1712
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1800
1713
|
# 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_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.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-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.37.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|