google-apis-retail_v2alpha 0.43.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0501411f8392c47a42cde2e731fe7ed38f1ecadb5932140e73faf75cdeaf9b6
|
|
4
|
+
data.tar.gz: 55736739a79b6da3399587347b790893f467d1f1fda00baa7669e06574161d29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f5f8596cbd6a51d121cec9041473fdf45d9bbcabe20832b486e0354ca72d3f39173ee2100d48cb2a8c53da2c2d53cf2c425d38ca852680baf011b9166e1780a
|
|
7
|
+
data.tar.gz: f0158d3ab733de0c6df0df577dfa81ae45ff42013fef3563ed39e77612ec3dc08cd4bff869e5aec0f6b463939127f6c13121db7849bded9fcc2ff150046d76fe
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
|
2
2
|
|
|
3
|
+
### v0.44.0 (2022-06-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20220609
|
|
6
|
+
* Regenerated using generator version 0.6.0
|
|
7
|
+
|
|
3
8
|
### v0.43.0 (2022-06-07)
|
|
4
9
|
|
|
5
10
|
* Regenerated from discovery document revision 20220602
|
|
@@ -4479,8 +4479,8 @@ module Google
|
|
|
4479
4479
|
class GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey
|
|
4480
4480
|
include Google::Apis::Core::Hashable
|
|
4481
4481
|
|
|
4482
|
-
#
|
|
4483
|
-
# prefixes or contains.
|
|
4482
|
+
# True to make facet keys case insensitive when getting faceting values with
|
|
4483
|
+
# prefixes or contains; false otherwise.
|
|
4484
4484
|
# Corresponds to the JSON property `caseInsensitive`
|
|
4485
4485
|
# @return [Boolean]
|
|
4486
4486
|
attr_accessor :case_insensitive
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.44.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
|
|
@@ -1419,13 +1419,16 @@ module Google
|
|
|
1419
1419
|
|
|
1420
1420
|
# Makes a recommendation prediction.
|
|
1421
1421
|
# @param [String] placement
|
|
1422
|
-
# Required. Full resource name of the format:
|
|
1423
|
-
# catalogs/default_catalog/
|
|
1424
|
-
#
|
|
1425
|
-
#
|
|
1426
|
-
#
|
|
1427
|
-
#
|
|
1428
|
-
#
|
|
1422
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
|
1423
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
|
1424
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
|
1425
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
|
1426
|
+
# the Recommendations AI serving config or placement. Before you can request
|
|
1427
|
+
# predictions from your model, you must create at least one serving config or
|
|
1428
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
|
1429
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
|
1430
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
|
1431
|
+
# retail/catalogs/default_catalog/configs
|
|
1429
1432
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
|
|
1430
1433
|
# @param [String] fields
|
|
1431
1434
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1460,10 +1463,12 @@ module Google
|
|
|
1460
1463
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
|
1461
1464
|
# feature.
|
|
1462
1465
|
# @param [String] placement
|
|
1463
|
-
# Required. The resource name of the
|
|
1464
|
-
#
|
|
1465
|
-
#
|
|
1466
|
-
#
|
|
1466
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
|
1467
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
|
1468
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
|
1469
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
|
1470
|
+
# . This field is used to identify the serving configuration name and the set of
|
|
1471
|
+
# models that will be used to make the search.
|
|
1467
1472
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
|
1468
1473
|
# @param [String] fields
|
|
1469
1474
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1718,6 +1723,48 @@ module Google
|
|
|
1718
1723
|
execute_or_queue_command(command, &block)
|
|
1719
1724
|
end
|
|
1720
1725
|
|
|
1726
|
+
# Makes a recommendation prediction.
|
|
1727
|
+
# @param [String] placement
|
|
1728
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
|
1729
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
|
1730
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
|
1731
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
|
1732
|
+
# the Recommendations AI serving config or placement. Before you can request
|
|
1733
|
+
# predictions from your model, you must create at least one serving config or
|
|
1734
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
|
1735
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
|
1736
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
|
1737
|
+
# retail/catalogs/default_catalog/configs
|
|
1738
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
|
|
1739
|
+
# @param [String] fields
|
|
1740
|
+
# Selector specifying which fields to include in a partial response.
|
|
1741
|
+
# @param [String] quota_user
|
|
1742
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1743
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1744
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1745
|
+
# Request-specific options
|
|
1746
|
+
#
|
|
1747
|
+
# @yield [result, err] Result & error if block supplied
|
|
1748
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse] parsed result object
|
|
1749
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1750
|
+
#
|
|
1751
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse]
|
|
1752
|
+
#
|
|
1753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1756
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2alpha_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1757
|
+
command = make_simple_command(:post, 'v2alpha/{+placement}:predict', options)
|
|
1758
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest::Representation
|
|
1759
|
+
command.request_object = google_cloud_retail_v2alpha_predict_request_object
|
|
1760
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse::Representation
|
|
1761
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse
|
|
1762
|
+
command.params['placement'] = placement unless placement.nil?
|
|
1763
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1765
|
+
execute_or_queue_command(command, &block)
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1721
1768
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
|
1722
1769
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
|
1723
1770
|
# the ServingConfig.
|
|
@@ -1755,6 +1802,46 @@ module Google
|
|
|
1755
1802
|
execute_or_queue_command(command, &block)
|
|
1756
1803
|
end
|
|
1757
1804
|
|
|
1805
|
+
# Performs a search. This feature is only available for users who have Retail
|
|
1806
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
|
1807
|
+
# feature.
|
|
1808
|
+
# @param [String] placement
|
|
1809
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
|
1810
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
|
1811
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
|
1812
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
|
1813
|
+
# . This field is used to identify the serving configuration name and the set of
|
|
1814
|
+
# models that will be used to make the search.
|
|
1815
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
|
1816
|
+
# @param [String] fields
|
|
1817
|
+
# Selector specifying which fields to include in a partial response.
|
|
1818
|
+
# @param [String] quota_user
|
|
1819
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1820
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1821
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1822
|
+
# Request-specific options
|
|
1823
|
+
#
|
|
1824
|
+
# @yield [result, err] Result & error if block supplied
|
|
1825
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse] parsed result object
|
|
1826
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1827
|
+
#
|
|
1828
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse]
|
|
1829
|
+
#
|
|
1830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1833
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2alpha_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1834
|
+
command = make_simple_command(:post, 'v2alpha/{+placement}:search', options)
|
|
1835
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest::Representation
|
|
1836
|
+
command.request_object = google_cloud_retail_v2alpha_search_request_object
|
|
1837
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse::Representation
|
|
1838
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse
|
|
1839
|
+
command.params['placement'] = placement unless placement.nil?
|
|
1840
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1842
|
+
execute_or_queue_command(command, &block)
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1758
1845
|
# Writes a single user event from the browser. This uses a GET request to due to
|
|
1759
1846
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
|
1760
1847
|
# 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_v2alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.44.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-06-
|
|
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
|
|
@@ -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.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.44.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: []
|