google-apis-retail_v2 0.41.0 → 0.44.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: 40c595a903184358447bd18333a927509eda97807e8aca38da03dbb199fadf83
4
+ data.tar.gz: '0079da13b0d5abcb882624214653ad500d6c051bb0c5c3c5b1fc80e17ce38a89'
5
5
  SHA512:
6
- metadata.gz: b368fa9f287a5611ce171ffe07ea6a81af8cf961af793bdbcae7aced693fdff59289cb64a572b45f0b3e4447cb1556218ee317600bcd148ce2dcadf1dcdadeca
7
- data.tar.gz: 87cbc040524e40b349981f88d6bb36c6c9445b576d41c8c12a5be1e66e6104f8ae102d05311ffeb27c6f45d30a867eda2d67c9bce520d6fe6302a65ae0b8fbde
6
+ metadata.gz: d103b204abbeb3fa2c8b83d460640e8eef92c9e58a33e871c0afd2f5d332a6318cc66b71b0b6d6633f7cc9933564a3d9737d7d49798c70b26240497326f36c95
7
+ data.tar.gz: 20a46356ae6939c333d3d3318dc575c421e77029df6dc04127988eb289fd4d8ea15c3d04134e3d217631f5d8bdadce1b6eadfdca0f72c740fb5f1fe915c2a70c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.44.0 (2022-06-30)
4
+
5
+ * Regenerated using generator version 0.8.0
6
+
7
+ ### v0.43.0 (2022-06-23)
8
+
9
+ * Regenerated from discovery document revision 20220617
10
+ * Regenerated using generator version 0.7.0
11
+
12
+ ### v0.42.0 (2022-06-17)
13
+
14
+ * Regenerated from discovery document revision 20220609
15
+ * Regenerated using generator version 0.6.0
16
+
3
17
  ### v0.41.0 (2022-06-07)
4
18
 
5
19
  * Regenerated from discovery document revision 20220602
@@ -1410,7 +1410,11 @@ module Google
1410
1410
  # only want results strictly matching the filters, set `strictFiltering` to True
1411
1411
  # in `PredictRequest.params` to receive empty results instead. Note that the API
1412
1412
  # will never return items with storageStatus of "EXPIRED" or "DELETED"
1413
- # regardless of filter choices.
1413
+ # regardless of filter choices. If `filterSyntaxV2` is set to true under the `
1414
+ # params` field, then attribute based expressions are expected instead of the
1415
+ # above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
1416
+ # NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
1417
+ # ANY("Red") OR categories: ANY("Phones"))
1414
1418
  # Corresponds to the JSON property `filter`
1415
1419
  # @return [String]
1416
1420
  attr_accessor :filter
@@ -1459,7 +1463,9 @@ module Google
1459
1463
  # price. * `diversityLevel`: String. Default empty. If set to be non-empty, then
1460
1464
  # it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
1461
1465
  # high-diversity', 'auto-diversity'`. This gives request-level control and
1462
- # adjusts prediction results based on product category.
1466
+ # adjusts prediction results based on product category. * `filterSyntaxV2`:
1467
+ # Boolean. False by default. If set to true, the `filter` field will be
1468
+ # interpreteted according to the new, attribute-based syntax.
1463
1469
  # Corresponds to the JSON property `params`
1464
1470
  # @return [Hash<String,Object>]
1465
1471
  attr_accessor :params
@@ -2918,8 +2924,8 @@ module Google
2918
2924
  class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
2919
2925
  include Google::Apis::Core::Hashable
2920
2926
 
2921
- # Whether to make facet keys case insensitive when getting faceting values with
2922
- # prefixes or contains.
2927
+ # True to make facet keys case insensitive when getting faceting values with
2928
+ # prefixes or contains; false otherwise.
2923
2929
  # Corresponds to the JSON property `caseInsensitive`
2924
2930
  # @return [Boolean]
2925
2931
  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.44.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.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220602"
25
+ REVISION = "20220617"
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.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-13 00:00:00.000000000 Z
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.5'
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.5'
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_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.44.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: []