google-apis-retail_v2 0.41.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: 83d2c045ab19d04df43a0ee265228dd33d2d4ca7dfc6cbb4ab109e71742015fe
4
- data.tar.gz: 31d8ba46b3a1300393c57fc8026686f0c25c2e79c386a670fdc65578583f9cd7
3
+ metadata.gz: cbec6c9ad7ae1560e07e63125b22fb120bf246de90b53eaf9f7ddcf284b60dd9
4
+ data.tar.gz: 1f471ea6ab71b3840d300366f2b19e5b7824c49dd005477cb7e83356a9753f9e
5
5
  SHA512:
6
- metadata.gz: b368fa9f287a5611ce171ffe07ea6a81af8cf961af793bdbcae7aced693fdff59289cb64a572b45f0b3e4447cb1556218ee317600bcd148ce2dcadf1dcdadeca
7
- data.tar.gz: 87cbc040524e40b349981f88d6bb36c6c9445b576d41c8c12a5be1e66e6104f8ae102d05311ffeb27c6f45d30a867eda2d67c9bce520d6fe6302a65ae0b8fbde
6
+ metadata.gz: c5f57d622e2bfec5b535e4aa8faf00e7dec1d63e52ae07e487f9b9a47609583a598d9ea8b4dcff6d7dbc275b17c4b3f3006a7b95a6e2bb92b1325eaf13cdf385
7
+ data.tar.gz: e21231609c70e95ac5b7fa7ae1ec4bfa199b3b76fa1f15064ecea7a4c233910a2bcc011a11d93d6cba9c078fc4f1e9885bba0d437ea9fb3fd866267eb20c28b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ### v0.41.0 (2022-06-07)
4
9
 
5
10
  * Regenerated from discovery document revision 20220602
@@ -2918,8 +2918,8 @@ module Google
2918
2918
  class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
2919
2919
  include Google::Apis::Core::Hashable
2920
2920
 
2921
- # Whether to make facet keys case insensitive when getting faceting values with
2922
- # prefixes or contains.
2921
+ # True to make facet keys case insensitive when getting faceting values with
2922
+ # prefixes or contains; false otherwise.
2923
2923
  # Corresponds to the JSON property `caseInsensitive`
2924
2924
  # @return [Boolean]
2925
2925
  attr_accessor :case_insensitive
@@ -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.41.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.5.0"
22
+ GENERATOR_VERSION = "0.6.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
@@ -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: ``name=projects/*/locations/global/
933
- # catalogs/default_catalog/placements/*`` The ID of the Recommendations AI
934
- # placement. Before you can request predictions from your model, you must create
935
- # at least one placement for it. For more information, see [Managing placements](
936
- # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
937
- # The full list of available placements can be seen at https://console.cloud.
938
- # google.com/recommendation/catalogs/default_catalog/placements
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 search engine placement, such as `projects/*
974
- # /locations/global/catalogs/default_catalog/placements/default_search`. This
975
- # field is used to identify the serving configuration name and the set of models
976
- # that will be used to make the search.
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.41.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-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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.41.0
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: []