google-cloud-retail-v2 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +2 -2
- data/lib/google/cloud/retail/v2/common_pb.rb +6 -0
- data/lib/google/cloud/retail/v2/completion_service/client.rb +11 -4
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +11 -4
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service/rest.rb +1 -1
- data/lib/google/cloud/retail/v2/completion_service.rb +1 -1
- data/lib/google/cloud/retail/v2/completion_service_pb.rb +1 -0
- data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/control_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +2 -2
- data/lib/google/cloud/retail/v2/model_pb.rb +70 -0
- data/lib/google/cloud/retail/v2/model_service/client.rb +1126 -0
- data/lib/google/cloud/retail/v2/model_service/credentials.rb +51 -0
- data/lib/google/cloud/retail/v2/model_service/operations.rb +768 -0
- data/lib/google/cloud/retail/v2/model_service/paths.rb +73 -0
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +904 -0
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +828 -0
- data/lib/google/cloud/retail/v2/model_service/rest/service_stub.rb +525 -0
- data/lib/google/cloud/retail/v2/model_service/rest.rb +64 -0
- data/lib/google/cloud/retail/v2/model_service.rb +67 -0
- data/lib/google/cloud/retail/v2/model_service_pb.rb +80 -0
- data/lib/google/cloud/retail/v2/model_service_services_pb.rb +73 -0
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +5 -2
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +5 -2
- data/lib/google/cloud/retail/v2/product_service/client.rb +18 -17
- data/lib/google/cloud/retail/v2/product_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +18 -17
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +16 -15
- data/lib/google/cloud/retail/v2/rest.rb +1 -0
- data/lib/google/cloud/retail/v2/search_service/client.rb +11 -4
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +11 -4
- data/lib/google/cloud/retail/v2/search_service_pb.rb +14 -0
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_pb.rb +1 -0
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +3 -3
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +3 -3
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/lib/google/cloud/retail/v2.rb +1 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/retail/v2/catalog.rb +11 -6
- data/proto_docs/google/cloud/retail/v2/common.rb +15 -1
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +10 -2
- data/proto_docs/google/cloud/retail/v2/import_config.rb +1 -1
- data/proto_docs/google/cloud/retail/v2/model.rb +228 -0
- data/proto_docs/google/cloud/retail/v2/model_service.rb +172 -0
- data/proto_docs/google/cloud/retail/v2/prediction_service.rb +3 -0
- data/proto_docs/google/cloud/retail/v2/product.rb +2 -3
- data/proto_docs/google/cloud/retail/v2/search_service.rb +56 -2
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +3 -3
- data/proto_docs/google/cloud/retail/v2/user_event.rb +7 -0
- data/proto_docs/google/cloud/retail/v2/user_event_service.rb +1 -1
- metadata +16 -2
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Retail
|
23
|
+
module V2
|
24
|
+
module ModelService
|
25
|
+
# Path helper methods for the ModelService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Catalog resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/catalogs/{catalog}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param catalog [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def catalog_path project:, location:, catalog:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/catalogs/#{catalog}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Model resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/catalogs/{catalog}/models/{model}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param catalog [String]
|
56
|
+
# @param model [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def model_path project:, location:, catalog:, model:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/catalogs/#{catalog}/models/#{model}"
|
65
|
+
end
|
66
|
+
|
67
|
+
extend self
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|