google-cloud-recommendation_engine-v1beta1 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +8 -10
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +12 -14
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb +769 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb +807 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest.rb +53 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service.rb +7 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +4 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb +512 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb +226 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest.rb +56 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry.rb +7 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +4 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb +440 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/service_stub.rb +108 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest.rb +52 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service.rb +7 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/rest.rb +40 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +12 -14
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +12 -14
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb +765 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb +807 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/service_stub.rb +346 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest.rb +53 -0
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service.rb +7 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1.rb +7 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +25 -8
@@ -0,0 +1,346 @@
|
|
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
|
+
require "google/cloud/recommendationengine/v1beta1/user_event_service_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module RecommendationEngine
|
24
|
+
module V1beta1
|
25
|
+
module UserEventService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the UserEventService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: true,
|
40
|
+
raise_faraday_errors: false
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Baseline implementation for the write_user_event REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::WriteUserEventRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Cloud::RecommendationEngine::V1beta1::UserEvent]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::UserEvent]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def write_user_event request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_write_user_event_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Baseline implementation for the collect_user_event REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::CollectUserEventRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Api::HttpBody]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def collect_user_event request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_collect_user_event_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
101
|
+
else
|
102
|
+
{}
|
103
|
+
end
|
104
|
+
|
105
|
+
response = @client_stub.make_http_request(
|
106
|
+
verb,
|
107
|
+
uri: uri,
|
108
|
+
body: body || "",
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
113
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
114
|
+
|
115
|
+
yield result, operation if block_given?
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Baseline implementation for the list_user_events REST call
|
121
|
+
#
|
122
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsRequest]
|
123
|
+
# A request object representing the call parameters. Required.
|
124
|
+
# @param options [::Gapic::CallOptions]
|
125
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
126
|
+
#
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
128
|
+
# @yieldparam result [::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse]
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
130
|
+
#
|
131
|
+
# @return [::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse]
|
132
|
+
# A result object deserialized from the server's reply
|
133
|
+
def list_user_events request_pb, options = nil
|
134
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
135
|
+
|
136
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_user_events_request request_pb
|
137
|
+
query_string_params = if query_string_params.any?
|
138
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
139
|
+
else
|
140
|
+
{}
|
141
|
+
end
|
142
|
+
|
143
|
+
response = @client_stub.make_http_request(
|
144
|
+
verb,
|
145
|
+
uri: uri,
|
146
|
+
body: body || "",
|
147
|
+
params: query_string_params,
|
148
|
+
options: options
|
149
|
+
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
151
|
+
result = ::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse.decode_json response.body, ignore_unknown_fields: true
|
152
|
+
|
153
|
+
yield result, operation if block_given?
|
154
|
+
result
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Baseline implementation for the purge_user_events REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::PurgeUserEventsRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Longrunning::Operation]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def purge_user_events request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_purge_user_events_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# Baseline implementation for the import_user_events REST call
|
197
|
+
#
|
198
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::ImportUserEventsRequest]
|
199
|
+
# A request object representing the call parameters. Required.
|
200
|
+
# @param options [::Gapic::CallOptions]
|
201
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
202
|
+
#
|
203
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
204
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
205
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
206
|
+
#
|
207
|
+
# @return [::Google::Longrunning::Operation]
|
208
|
+
# A result object deserialized from the server's reply
|
209
|
+
def import_user_events request_pb, options = nil
|
210
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
211
|
+
|
212
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_user_events_request request_pb
|
213
|
+
query_string_params = if query_string_params.any?
|
214
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
215
|
+
else
|
216
|
+
{}
|
217
|
+
end
|
218
|
+
|
219
|
+
response = @client_stub.make_http_request(
|
220
|
+
verb,
|
221
|
+
uri: uri,
|
222
|
+
body: body || "",
|
223
|
+
params: query_string_params,
|
224
|
+
options: options
|
225
|
+
)
|
226
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
227
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
228
|
+
|
229
|
+
yield result, operation if block_given?
|
230
|
+
result
|
231
|
+
end
|
232
|
+
|
233
|
+
##
|
234
|
+
# @private
|
235
|
+
#
|
236
|
+
# GRPC transcoding helper method for the write_user_event REST call
|
237
|
+
#
|
238
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::WriteUserEventRequest]
|
239
|
+
# A request object representing the call parameters. Required.
|
240
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
241
|
+
# Uri, Body, Query string parameters
|
242
|
+
def self.transcode_write_user_event_request request_pb
|
243
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
244
|
+
.with_bindings(
|
245
|
+
uri_method: :post,
|
246
|
+
uri_template: "/v1beta1/{parent}/userEvents:write",
|
247
|
+
body: "user_event",
|
248
|
+
matches: [
|
249
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/?$}, false]
|
250
|
+
]
|
251
|
+
)
|
252
|
+
transcoder.transcode request_pb
|
253
|
+
end
|
254
|
+
|
255
|
+
##
|
256
|
+
# @private
|
257
|
+
#
|
258
|
+
# GRPC transcoding helper method for the collect_user_event REST call
|
259
|
+
#
|
260
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::CollectUserEventRequest]
|
261
|
+
# A request object representing the call parameters. Required.
|
262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
263
|
+
# Uri, Body, Query string parameters
|
264
|
+
def self.transcode_collect_user_event_request request_pb
|
265
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
266
|
+
.with_bindings(
|
267
|
+
uri_method: :get,
|
268
|
+
uri_template: "/v1beta1/{parent}/userEvents:collect",
|
269
|
+
matches: [
|
270
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/?$}, false]
|
271
|
+
]
|
272
|
+
)
|
273
|
+
transcoder.transcode request_pb
|
274
|
+
end
|
275
|
+
|
276
|
+
##
|
277
|
+
# @private
|
278
|
+
#
|
279
|
+
# GRPC transcoding helper method for the list_user_events REST call
|
280
|
+
#
|
281
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsRequest]
|
282
|
+
# A request object representing the call parameters. Required.
|
283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
284
|
+
# Uri, Body, Query string parameters
|
285
|
+
def self.transcode_list_user_events_request request_pb
|
286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
287
|
+
.with_bindings(
|
288
|
+
uri_method: :get,
|
289
|
+
uri_template: "/v1beta1/{parent}/userEvents",
|
290
|
+
matches: [
|
291
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/?$}, false]
|
292
|
+
]
|
293
|
+
)
|
294
|
+
transcoder.transcode request_pb
|
295
|
+
end
|
296
|
+
|
297
|
+
##
|
298
|
+
# @private
|
299
|
+
#
|
300
|
+
# GRPC transcoding helper method for the purge_user_events REST call
|
301
|
+
#
|
302
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::PurgeUserEventsRequest]
|
303
|
+
# A request object representing the call parameters. Required.
|
304
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
305
|
+
# Uri, Body, Query string parameters
|
306
|
+
def self.transcode_purge_user_events_request request_pb
|
307
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
308
|
+
.with_bindings(
|
309
|
+
uri_method: :post,
|
310
|
+
uri_template: "/v1beta1/{parent}/userEvents:purge",
|
311
|
+
body: "*",
|
312
|
+
matches: [
|
313
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/?$}, false]
|
314
|
+
]
|
315
|
+
)
|
316
|
+
transcoder.transcode request_pb
|
317
|
+
end
|
318
|
+
|
319
|
+
##
|
320
|
+
# @private
|
321
|
+
#
|
322
|
+
# GRPC transcoding helper method for the import_user_events REST call
|
323
|
+
#
|
324
|
+
# @param request_pb [::Google::Cloud::RecommendationEngine::V1beta1::ImportUserEventsRequest]
|
325
|
+
# A request object representing the call parameters. Required.
|
326
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
327
|
+
# Uri, Body, Query string parameters
|
328
|
+
def self.transcode_import_user_events_request request_pb
|
329
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
330
|
+
.with_bindings(
|
331
|
+
uri_method: :post,
|
332
|
+
uri_template: "/v1beta1/{parent}/userEvents:import",
|
333
|
+
body: "*",
|
334
|
+
matches: [
|
335
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/eventStores/[^/]+/?$}, false]
|
336
|
+
]
|
337
|
+
)
|
338
|
+
transcoder.transcode request_pb
|
339
|
+
end
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/recommendation_engine/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/credentials"
|
26
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/paths"
|
27
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations"
|
28
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module RecommendationEngine
|
33
|
+
module V1beta1
|
34
|
+
##
|
35
|
+
# Service for ingesting end user actions on the customer website.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest"
|
40
|
+
# client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module UserEventService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/recommendation_engine/v1beta1/user_event_service/credentia
|
|
26
26
|
require "google/cloud/recommendation_engine/v1beta1/user_event_service/paths"
|
27
27
|
require "google/cloud/recommendation_engine/v1beta1/user_event_service/operations"
|
28
28
|
require "google/cloud/recommendation_engine/v1beta1/user_event_service/client"
|
29
|
+
require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# Service for ingesting end user actions on the customer website.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/recommendation_engine/v1beta1/user_event_service"
|
40
41
|
# client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/recommendation_engine/v1beta1/user_event_service/rest"
|
46
|
+
# client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module UserEventService
|
43
49
|
end
|
44
50
|
end
|
@@ -26,13 +26,18 @@ module Google
|
|
26
26
|
module Cloud
|
27
27
|
module RecommendationEngine
|
28
28
|
##
|
29
|
-
#
|
29
|
+
# API client module.
|
30
30
|
#
|
31
|
-
# @example
|
31
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
32
32
|
#
|
33
33
|
# require "google/cloud/recommendation_engine/v1beta1"
|
34
34
|
# client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
35
35
|
#
|
36
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
37
|
+
#
|
38
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
39
|
+
# client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Rest::Client.new
|
40
|
+
#
|
36
41
|
module V1beta1
|
37
42
|
end
|
38
43
|
end
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recommendation_engine-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.18.0
|
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:
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,19 +178,34 @@ files:
|
|
178
178
|
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/credentials.rb
|
179
179
|
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb
|
180
180
|
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/paths.rb
|
181
|
+
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest.rb
|
182
|
+
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb
|
183
|
+
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb
|
184
|
+
- lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/service_stub.rb
|
181
185
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry.rb
|
182
186
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb
|
183
187
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/credentials.rb
|
184
188
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb
|
189
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest.rb
|
190
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb
|
191
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb
|
185
192
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service.rb
|
186
193
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb
|
187
194
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/credentials.rb
|
188
195
|
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/paths.rb
|
196
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest.rb
|
197
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb
|
198
|
+
- lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/service_stub.rb
|
199
|
+
- lib/google/cloud/recommendation_engine/v1beta1/rest.rb
|
189
200
|
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service.rb
|
190
201
|
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb
|
191
202
|
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/credentials.rb
|
192
203
|
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb
|
193
204
|
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/paths.rb
|
205
|
+
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest.rb
|
206
|
+
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb
|
207
|
+
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb
|
208
|
+
- lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/service_stub.rb
|
194
209
|
- lib/google/cloud/recommendation_engine/v1beta1/version.rb
|
195
210
|
- lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb
|
196
211
|
- lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb
|
@@ -246,8 +261,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
261
|
- !ruby/object:Gem::Version
|
247
262
|
version: '0'
|
248
263
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
264
|
+
rubygems_version: 3.4.2
|
250
265
|
signing_key:
|
251
266
|
specification_version: 4
|
252
|
-
summary:
|
267
|
+
summary: Recommendations AI service enables customers to build end-to-end personalized
|
268
|
+
recommendation systems without requiring a high level of expertise in machine learning,
|
269
|
+
recommendation system, or Google Cloud.
|
253
270
|
test_files: []
|