google-apis-retail_v2beta 0.42.0 → 0.45.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: f05a11bd21474caa0b330347bbf902a828e44fd6baa1178894a4725add222bbf
|
4
|
+
data.tar.gz: 75d0bb9f99b205498f908d76afb91feedfc6f5fbc9f3410e96400c9cadfba175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 224f9910897cb1ff2ba3100dd2970691240338280df5474c19d45288c692328b395b8d3ea11bbf8651bd54bfcf1fd880e280cdf2d8a9222bd0f8194ed3d3bcc0
|
7
|
+
data.tar.gz: e0ade45afb115fd2e1d2794a547f116a59a02c91aedaeb23739fca29dfe6ee21089479a3a1031b4046d3647d8ff0fd5ed8f401dc33ba81d9d996b087f5eed261
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.45.0 (2022-06-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220623
|
6
|
+
* Regenerated using generator version 0.8.0
|
7
|
+
|
8
|
+
### v0.44.0 (2022-06-23)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220617
|
11
|
+
|
12
|
+
### v0.43.0 (2022-06-18)
|
13
|
+
|
14
|
+
* Regenerated using generator version 0.7.0
|
15
|
+
* Regenerated from discovery document revision 20220609
|
16
|
+
|
3
17
|
### v0.42.0 (2022-06-07)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220602
|
@@ -1676,11 +1676,22 @@ module Google
|
|
1676
1676
|
attr_accessor :indexable_option
|
1677
1677
|
|
1678
1678
|
# Required. Attribute name. For example: `color`, `brands`, `attributes.
|
1679
|
-
# custom_attribute`, such as `attributes.xyz`.
|
1679
|
+
# custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute
|
1680
|
+
# name can contain only alpha-numeric characters and underscores. For example,
|
1681
|
+
# an attribute named `attributes.abc_xyz` can be indexed, but an attribute named
|
1682
|
+
# `attributes.abc-xyz` cannot be indexed.
|
1680
1683
|
# Corresponds to the JSON property `key`
|
1681
1684
|
# @return [String]
|
1682
1685
|
attr_accessor :key
|
1683
1686
|
|
1687
|
+
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1688
|
+
# if RECOMMENDATIONS_FILTERING_ENABLED, attribute values are filterable for
|
1689
|
+
# recommendations. This option works for categorical features only, does not
|
1690
|
+
# work for numerical features, inventory filtering.
|
1691
|
+
# Corresponds to the JSON property `recommendationsFilteringOption`
|
1692
|
+
# @return [String]
|
1693
|
+
attr_accessor :recommendations_filtering_option
|
1694
|
+
|
1684
1695
|
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1685
1696
|
# if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
|
1686
1697
|
# SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
|
@@ -1706,6 +1717,7 @@ module Google
|
|
1706
1717
|
@in_use = args[:in_use] if args.key?(:in_use)
|
1707
1718
|
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
1708
1719
|
@key = args[:key] if args.key?(:key)
|
1720
|
+
@recommendations_filtering_option = args[:recommendations_filtering_option] if args.key?(:recommendations_filtering_option)
|
1709
1721
|
@searchable_option = args[:searchable_option] if args.key?(:searchable_option)
|
1710
1722
|
@type = args[:type] if args.key?(:type)
|
1711
1723
|
end
|
@@ -1865,14 +1877,16 @@ module Google
|
|
1865
1877
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDataInputConfig]
|
1866
1878
|
attr_accessor :denylist_input_config
|
1867
1879
|
|
1868
|
-
# Output only. LRO corresponding to the latest allowlist import. Can
|
1869
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1880
|
+
# Output only. Name of the LRO corresponding to the latest allowlist import. Can
|
1881
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1882
|
+
# Operation.
|
1870
1883
|
# Corresponds to the JSON property `lastAllowlistImportOperation`
|
1871
1884
|
# @return [String]
|
1872
1885
|
attr_accessor :last_allowlist_import_operation
|
1873
1886
|
|
1874
|
-
# Output only. LRO corresponding to the latest denylist import. Can
|
1875
|
-
# GetOperation API to retrieve the latest state of the Long Running
|
1887
|
+
# Output only. Name of the LRO corresponding to the latest denylist import. Can
|
1888
|
+
# use GetOperation API to retrieve the latest state of the Long Running
|
1889
|
+
# Operation.
|
1876
1890
|
# Corresponds to the JSON property `lastDenylistImportOperation`
|
1877
1891
|
# @return [String]
|
1878
1892
|
attr_accessor :last_denylist_import_operation
|
@@ -3008,7 +3022,11 @@ module Google
|
|
3008
3022
|
# only want results strictly matching the filters, set `strictFiltering` to True
|
3009
3023
|
# in `PredictRequest.params` to receive empty results instead. Note that the API
|
3010
3024
|
# will never return items with storageStatus of "EXPIRED" or "DELETED"
|
3011
|
-
# regardless of filter choices.
|
3025
|
+
# regardless of filter choices. If `filterSyntaxV2` is set to true under the `
|
3026
|
+
# params` field, then attribute based expressions are expected instead of the
|
3027
|
+
# above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
|
3028
|
+
# NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
|
3029
|
+
# ANY("Red") OR categories: ANY("Phones"))
|
3012
3030
|
# Corresponds to the JSON property `filter`
|
3013
3031
|
# @return [String]
|
3014
3032
|
attr_accessor :filter
|
@@ -3057,7 +3075,9 @@ module Google
|
|
3057
3075
|
# price. * `diversityLevel`: String. Default empty. If set to be non-empty, then
|
3058
3076
|
# it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
|
3059
3077
|
# high-diversity', 'auto-diversity'`. This gives request-level control and
|
3060
|
-
# adjusts prediction results based on product category.
|
3078
|
+
# adjusts prediction results based on product category. * `filterSyntaxV2`:
|
3079
|
+
# Boolean. False by default. If set to true, the `filter` field will be
|
3080
|
+
# interpreteted according to the new, attribute-based syntax.
|
3061
3081
|
# Corresponds to the JSON property `params`
|
3062
3082
|
# @return [Hash<String,Object>]
|
3063
3083
|
attr_accessor :params
|
@@ -4910,8 +4930,8 @@ module Google
|
|
4910
4930
|
class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
|
4911
4931
|
include Google::Apis::Core::Hashable
|
4912
4932
|
|
4913
|
-
#
|
4914
|
-
# prefixes or contains.
|
4933
|
+
# True to make facet keys case insensitive when getting faceting values with
|
4934
|
+
# prefixes or contains; false otherwise.
|
4915
4935
|
# Corresponds to the JSON property `caseInsensitive`
|
4916
4936
|
# @return [Boolean]
|
4917
4937
|
attr_accessor :case_insensitive
|
@@ -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.45.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.8.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220623"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1548,6 +1548,7 @@ module Google
|
|
1548
1548
|
property :in_use, as: 'inUse'
|
1549
1549
|
property :indexable_option, as: 'indexableOption'
|
1550
1550
|
property :key, as: 'key'
|
1551
|
+
property :recommendations_filtering_option, as: 'recommendationsFilteringOption'
|
1551
1552
|
property :searchable_option, as: 'searchableOption'
|
1552
1553
|
property :type, as: 'type'
|
1553
1554
|
end
|
@@ -1373,13 +1373,16 @@ module Google
|
|
1373
1373
|
|
1374
1374
|
# Makes a recommendation prediction.
|
1375
1375
|
# @param [String] placement
|
1376
|
-
# Required. Full resource name of the format:
|
1377
|
-
# catalogs/default_catalog/
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
#
|
1376
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1377
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1378
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1379
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1380
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1381
|
+
# predictions from your model, you must create at least one serving config or
|
1382
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1383
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1384
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1385
|
+
# retail/catalogs/default_catalog/configs
|
1383
1386
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1384
1387
|
# @param [String] fields
|
1385
1388
|
# Selector specifying which fields to include in a partial response.
|
@@ -1414,10 +1417,12 @@ module Google
|
|
1414
1417
|
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1415
1418
|
# feature.
|
1416
1419
|
# @param [String] placement
|
1417
|
-
# Required. The resource name of the
|
1418
|
-
#
|
1419
|
-
#
|
1420
|
-
#
|
1420
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1421
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1422
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1423
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1424
|
+
# . This field is used to identify the serving configuration name and the set of
|
1425
|
+
# models that will be used to make the search.
|
1421
1426
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1422
1427
|
# @param [String] fields
|
1423
1428
|
# Selector specifying which fields to include in a partial response.
|
@@ -1672,6 +1677,48 @@ module Google
|
|
1672
1677
|
execute_or_queue_command(command, &block)
|
1673
1678
|
end
|
1674
1679
|
|
1680
|
+
# Makes a recommendation prediction.
|
1681
|
+
# @param [String] placement
|
1682
|
+
# Required. Full resource name of the format: `placement=projects/*/locations/
|
1683
|
+
# global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
|
1684
|
+
# locations/global/catalogs/default_catalog/placements/*`. We recommend using
|
1685
|
+
# the `servingConfigs` resource. `placements` is a legacy resource. The ID of
|
1686
|
+
# the Recommendations AI serving config or placement. Before you can request
|
1687
|
+
# predictions from your model, you must create at least one serving config or
|
1688
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1689
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1690
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1691
|
+
# retail/catalogs/default_catalog/configs
|
1692
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1693
|
+
# @param [String] fields
|
1694
|
+
# Selector specifying which fields to include in a partial response.
|
1695
|
+
# @param [String] quota_user
|
1696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1698
|
+
# @param [Google::Apis::RequestOptions] options
|
1699
|
+
# Request-specific options
|
1700
|
+
#
|
1701
|
+
# @yield [result, err] Result & error if block supplied
|
1702
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
|
1703
|
+
# @yieldparam err [StandardError] error object if request failed
|
1704
|
+
#
|
1705
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
|
1706
|
+
#
|
1707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1710
|
+
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1711
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
|
1712
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
|
1713
|
+
command.request_object = google_cloud_retail_v2beta_predict_request_object
|
1714
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
|
1715
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
|
1716
|
+
command.params['placement'] = placement unless placement.nil?
|
1717
|
+
command.query['fields'] = fields unless fields.nil?
|
1718
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1719
|
+
execute_or_queue_command(command, &block)
|
1720
|
+
end
|
1721
|
+
|
1675
1722
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1676
1723
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1677
1724
|
# the ServingConfig.
|
@@ -1709,6 +1756,46 @@ module Google
|
|
1709
1756
|
execute_or_queue_command(command, &block)
|
1710
1757
|
end
|
1711
1758
|
|
1759
|
+
# Performs a search. This feature is only available for users who have Retail
|
1760
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1761
|
+
# feature.
|
1762
|
+
# @param [String] placement
|
1763
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1764
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1765
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1766
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1767
|
+
# . This field is used to identify the serving configuration name and the set of
|
1768
|
+
# models that will be used to make the search.
|
1769
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1770
|
+
# @param [String] fields
|
1771
|
+
# Selector specifying which fields to include in a partial response.
|
1772
|
+
# @param [String] quota_user
|
1773
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1774
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1775
|
+
# @param [Google::Apis::RequestOptions] options
|
1776
|
+
# Request-specific options
|
1777
|
+
#
|
1778
|
+
# @yield [result, err] Result & error if block supplied
|
1779
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
|
1780
|
+
# @yieldparam err [StandardError] error object if request failed
|
1781
|
+
#
|
1782
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
|
1783
|
+
#
|
1784
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1785
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1786
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1787
|
+
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1788
|
+
command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
|
1789
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
|
1790
|
+
command.request_object = google_cloud_retail_v2beta_search_request_object
|
1791
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
|
1792
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
|
1793
|
+
command.params['placement'] = placement unless placement.nil?
|
1794
|
+
command.query['fields'] = fields unless fields.nil?
|
1795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1796
|
+
execute_or_queue_command(command, &block)
|
1797
|
+
end
|
1798
|
+
|
1712
1799
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1713
1800
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1714
1801
|
# 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.45.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-07-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.7'
|
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.7'
|
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_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.45.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: []
|