google-apis-retail_v2beta 0.42.0 → 0.43.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: 2f919f603d43ceba126323d4a9e7d43ce80466efc533892c4d330e5f26b6179d
4
- data.tar.gz: eb325c5661f1903ba772de0457063c8000a9fd3ac6c4e17b6e297dadf9a48f1b
3
+ metadata.gz: 4772daf547d9c19f6e206d0630c33483a1dbdc699d4bb0222b751f4a169d77fb
4
+ data.tar.gz: ffc09315f4a1f414e12aa7dd0c408d05d0b69ebb50de4dd51f4147035203b75f
5
5
  SHA512:
6
- metadata.gz: 0a90b6993ba6132e9fc3fd4e73540aff764d15aeba3e85e1c1f375a7aeaff8854bae3a7f77533814c00d8449e0e19779e8407be6f8d5c274b5833a8e1780caeb
7
- data.tar.gz: 07a95cb8b509ba2baad13f301c6a2d9a2bb18436e712f1fd19fa65f6901b8eb10b5d38ca5938f777315dff72946d9ddfb93297117182a206de8da6ab780976c0
6
+ metadata.gz: 9dfa0275a061173f33fc24c6945e75cb2c9af61cc924c4addf82b45157e13363fd2d3056adba7a9fbdd59c17194edb6ca935e7062ef33960a14def7ed189ea7c
7
+ data.tar.gz: a4ee485579ef926fce144ee120a90fe2f282e2715cfbfaec7a96193392e20234d688e2ceba02be0300935dafe3c0c0b400c2a8965bc17f09aa3403131d02f2ea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.43.0 (2022-06-18)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+ * Regenerated from discovery document revision 20220609
7
+
3
8
  ### v0.42.0 (2022-06-07)
4
9
 
5
10
  * Regenerated from discovery document revision 20220602
@@ -4910,8 +4910,8 @@ module Google
4910
4910
  class GoogleCloudRetailV2betaSearchRequestFacetSpecFacetKey
4911
4911
  include Google::Apis::Core::Hashable
4912
4912
 
4913
- # Whether to make facet keys case insensitive when getting faceting values with
4914
- # prefixes or contains.
4913
+ # True to make facet keys case insensitive when getting faceting values with
4914
+ # prefixes or contains; false otherwise.
4915
4915
  # Corresponds to the JSON property `caseInsensitive`
4916
4916
  # @return [Boolean]
4917
4917
  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.42.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220602"
25
+ REVISION = "20220609"
26
26
  end
27
27
  end
28
28
  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: ``name=projects/*/locations/global/
1377
- # catalogs/default_catalog/placements/*`` The ID of the Recommendations AI
1378
- # placement. Before you can request predictions from your model, you must create
1379
- # at least one placement for it. For more information, see [Managing placements](
1380
- # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
1381
- # The full list of available placements can be seen at https://console.cloud.
1382
- # google.com/recommendation/catalogs/default_catalog/placements
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 search engine placement, such as `projects/*
1418
- # /locations/global/catalogs/default_catalog/placements/default_search`. This
1419
- # field is used to identify the serving configuration name and the set of models
1420
- # that will be used to make the search.
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.42.0
4
+ version: 0.43.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-13 00:00:00.000000000 Z
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.5'
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.5'
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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.43.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: []