google-apis-retail_v2 0.31.0 → 0.32.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: e7026215dee691483ee2220eea2f1b0925c01316973a526ee493dddc65252ccc
4
- data.tar.gz: 2a09466d24ed7c69217c82db15ec62af850dadc841e47b0257fd3a2441da5b66
3
+ metadata.gz: 233478bb57c972e6f2f535ddfbcee72ebfc4052f5de8d79afc73db1f26b3cb15
4
+ data.tar.gz: 63088218281dafba204bea53192f5b6d10982c22b2a07c0f84c405dc9a12bc60
5
5
  SHA512:
6
- metadata.gz: a648d9b561aa369bb0c0fdc189a64a95df5c205f35d3904e7e3b7c2391782d0b2bf8fdb653eb035b8ea4e066eefa00ab68b97de5f727106b01461275e8066ad8
7
- data.tar.gz: 38c5765a7e13b5ce937559f351409a4e170bd4ed1f47ce29fdedfb25a26b92a5dd3b9a933ab9cb78afff6bd8891e9e6c1eabf60f0051b0ce77a0dc2c69bd2c9e
6
+ metadata.gz: 035f15cd06ef6bacb052c352f15e427d4372dbe9d6f8e90c2276062716a6827418932d86839d47359eeeb09b7dc165da57b49e806ca72ba18687e7557acbe0c1
7
+ data.tar.gz: 1269c8a22f73067dc09a72cbc04b3af2432874caa37c9471c97f2cc7ecfe869e620cb1db15ea0e08f2e94f6df34965b8112969e23bcda0d6f6ce6e1863c960ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.32.0 (2022-03-24)
4
+
5
+ * Regenerated from discovery document revision 20220319
6
+
3
7
  ### v0.31.0 (2022-03-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20220310
@@ -416,7 +416,9 @@ module Google
416
416
  # analytics/answer/3437719. * `user_event_ga4`: This feature is in private
417
417
  # preview. Please contact the support team for importing Google Analytics 4
418
418
  # events. The schema is available here: https://support.google.com/analytics/
419
- # answer/7029846.
419
+ # answer/7029846. Supported values for auto-completion imports: * `suggestions` (
420
+ # default): One JSON completion suggestion per line. * `denylist`: One JSON deny
421
+ # suggestion per line. * `allowlist`: One JSON allow suggestion per line.
420
422
  # Corresponds to the JSON property `dataSchema`
421
423
  # @return [String]
422
424
  attr_accessor :data_schema
@@ -552,9 +554,9 @@ module Google
552
554
  class GoogleCloudRetailV2CompleteQueryResponse
553
555
  include Google::Apis::Core::Hashable
554
556
 
555
- # A unique complete token. This should be included in the SearchRequest
556
- # resulting from this completion, which enables accurate attribution of complete
557
- # model performance.
557
+ # A unique complete token. This should be included in the UserEvent.
558
+ # completion_detail for search events resulting from this completion, which
559
+ # enables accurate attribution of complete model performance.
558
560
  # Corresponds to the JSON property `attributionToken`
559
561
  # @return [String]
560
562
  attr_accessor :attribution_token
@@ -594,7 +596,9 @@ module Google
594
596
  class GoogleCloudRetailV2CompleteQueryResponseCompletionResult
595
597
  include Google::Apis::Core::Hashable
596
598
 
597
- # Additional custom attributes ingested through BigQuery.
599
+ # Custom attributes for the suggestion term. * For "user-data", the attributes
600
+ # are additional custom attributes ingested through BigQuery. * For "cloud-
601
+ # retail", the attributes are product attributes generated by Cloud Retail.
598
602
  # Corresponds to the JSON property `attributes`
599
603
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
600
604
  attr_accessor :attributes
@@ -980,8 +984,7 @@ module Google
980
984
  # @return [String]
981
985
  attr_accessor :notification_pubsub_topic
982
986
 
983
- # Id of the request / operation. This is parroting back the requestId that was
984
- # passed in the request.
987
+ # Deprecated. This field is never set.
985
988
  # Corresponds to the JSON property `requestId`
986
989
  # @return [String]
987
990
  attr_accessor :request_id
@@ -1041,11 +1044,7 @@ module Google
1041
1044
  # @return [String]
1042
1045
  attr_accessor :reconciliation_mode
1043
1046
 
1044
- # Unique identifier provided by client, within the ancestor dataset scope.
1045
- # Ensures idempotency and used for request deduplication. Server-generated if
1046
- # unspecified. Up to 128 characters long and must match the pattern: `[a-zA-Z0-
1047
- # 9_]+`. This is returned as Operation.name in ImportMetadata. Only supported
1048
- # when ImportProductsRequest.reconciliation_mode is set to `FULL`.
1047
+ # Deprecated. This field has no effect.
1049
1048
  # Corresponds to the JSON property `requestId`
1050
1049
  # @return [String]
1051
1050
  attr_accessor :request_id
@@ -3744,8 +3743,7 @@ module Google
3744
3743
  # @return [String]
3745
3744
  attr_accessor :notification_pubsub_topic
3746
3745
 
3747
- # Id of the request / operation. This is parroting back the requestId that was
3748
- # passed in the request.
3746
+ # Deprecated. This field is never set.
3749
3747
  # Corresponds to the JSON property `requestId`
3750
3748
  # @return [String]
3751
3749
  attr_accessor :request_id
@@ -4282,8 +4280,7 @@ module Google
4282
4280
  # @return [String]
4283
4281
  attr_accessor :notification_pubsub_topic
4284
4282
 
4285
- # Id of the request / operation. This is parroting back the requestId that was
4286
- # passed in the request.
4283
+ # Deprecated. This field is never set.
4287
4284
  # Corresponds to the JSON property `requestId`
4288
4285
  # @return [String]
4289
4286
  attr_accessor :request_id
@@ -4617,8 +4614,7 @@ module Google
4617
4614
  # A generic empty message that you can re-use to avoid defining duplicated empty
4618
4615
  # messages in your APIs. A typical example is to use it as the request or the
4619
4616
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
4620
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
4621
- # `Empty` is empty JSON object ````.
4617
+ # protobuf.Empty) returns (google.protobuf.Empty); `
4622
4618
  class GoogleProtobufEmpty
4623
4619
  include Google::Apis::Core::Hashable
4624
4620
 
@@ -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.31.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220310"
25
+ REVISION = "20220319"
26
26
  end
27
27
  end
28
28
  end
@@ -723,9 +723,11 @@ module Google
723
723
  execute_or_queue_command(command, &block)
724
724
  end
725
725
 
726
- # Bulk import of processed completion dataset. Request processing may be
727
- # synchronous. Partial updating is not supported. This feature is only available
728
- # for users who have Retail Search enabled. Please submit a form [here](https://
726
+ # Bulk import of processed completion dataset. Request processing is
727
+ # asynchronous. Partial updating is not supported. The operation is successfully
728
+ # finished only after the imported suggestions are indexed successfully and
729
+ # ready for serving. The process takes hours. This feature is only available for
730
+ # users who have Retail Search enabled. Please submit a form [here](https://
729
731
  # cloud.google.com/contact) to contact cloud sales if you are interested in
730
732
  # using Retail Search.
731
733
  # @param [String] parent
@@ -841,7 +843,8 @@ module Google
841
843
  # Makes a recommendation prediction.
842
844
  # @param [String] placement
843
845
  # Required. Full resource name of the format: `name=projects/*/locations/global/
844
- # catalogs/default_catalog/placements/*` The ID of the Recommendations AI
846
+ # catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
847
+ # catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
845
848
  # placement. Before you can request predictions from your model, you must create
846
849
  # at least one placement for it. For more information, see [Managing placements](
847
850
  # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
@@ -882,9 +885,10 @@ module Google
882
885
  # to contact cloud sales if you are interested in using Retail Search.
883
886
  # @param [String] placement
884
887
  # Required. The resource name of the search engine placement, such as `projects/*
885
- # /locations/global/catalogs/default_catalog/placements/default_search`. This
886
- # field is used to identify the serving configuration name and the set of models
887
- # that will be used to make the search.
888
+ # /locations/global/catalogs/default_catalog/placements/default_search` or `
889
+ # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
890
+ # default_serving_config` This field is used to identify the serving
891
+ # configuration name and the set of models that will be used to make the search.
888
892
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
889
893
  # @param [String] fields
890
894
  # Selector specifying which fields to include in a partial response.
@@ -915,6 +919,85 @@ module Google
915
919
  execute_or_queue_command(command, &block)
916
920
  end
917
921
 
922
+ # Makes a recommendation prediction.
923
+ # @param [String] placement
924
+ # Required. Full resource name of the format: `name=projects/*/locations/global/
925
+ # catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
926
+ # catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
927
+ # placement. Before you can request predictions from your model, you must create
928
+ # at least one placement for it. For more information, see [Managing placements](
929
+ # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
930
+ # The full list of available placements can be seen at https://console.cloud.
931
+ # google.com/recommendation/catalogs/default_catalog/placements
932
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
933
+ # @param [String] fields
934
+ # Selector specifying which fields to include in a partial response.
935
+ # @param [String] quota_user
936
+ # Available to use for quota purposes for server-side applications. Can be any
937
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
938
+ # @param [Google::Apis::RequestOptions] options
939
+ # Request-specific options
940
+ #
941
+ # @yield [result, err] Result & error if block supplied
942
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse] parsed result object
943
+ # @yieldparam err [StandardError] error object if request failed
944
+ #
945
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse]
946
+ #
947
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
948
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
949
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
950
+ def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
951
+ command = make_simple_command(:post, 'v2/{+placement}:predict', options)
952
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest::Representation
953
+ command.request_object = google_cloud_retail_v2_predict_request_object
954
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse::Representation
955
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse
956
+ command.params['placement'] = placement unless placement.nil?
957
+ command.query['fields'] = fields unless fields.nil?
958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
962
+ # Performs a search. This feature is only available for users who have Retail
963
+ # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
964
+ # to contact cloud sales if you are interested in using Retail Search.
965
+ # @param [String] placement
966
+ # Required. The resource name of the search engine placement, such as `projects/*
967
+ # /locations/global/catalogs/default_catalog/placements/default_search` or `
968
+ # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
969
+ # default_serving_config` This field is used to identify the serving
970
+ # configuration name and the set of models that will be used to make the search.
971
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
972
+ # @param [String] fields
973
+ # Selector specifying which fields to include in a partial response.
974
+ # @param [String] quota_user
975
+ # Available to use for quota purposes for server-side applications. Can be any
976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
977
+ # @param [Google::Apis::RequestOptions] options
978
+ # Request-specific options
979
+ #
980
+ # @yield [result, err] Result & error if block supplied
981
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse] parsed result object
982
+ # @yieldparam err [StandardError] error object if request failed
983
+ #
984
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse]
985
+ #
986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
989
+ def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
990
+ command = make_simple_command(:post, 'v2/{+placement}:search', options)
991
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest::Representation
992
+ command.request_object = google_cloud_retail_v2_search_request_object
993
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse::Representation
994
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse
995
+ command.params['placement'] = placement unless placement.nil?
996
+ command.query['fields'] = fields unless fields.nil?
997
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
998
+ execute_or_queue_command(command, &block)
999
+ end
1000
+
918
1001
  # Writes a single user event from the browser. This uses a GET request to due to
919
1002
  # browser restriction of POST-ing to a 3rd party domain. This method is used
920
1003
  # 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.31.0
4
+ version: 0.32.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-03-21 00:00:00.000000000 Z
11
+ date: 2022-03-28 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.32.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: []