google-cloud-recommendation_engine-v1beta1 0.3.5 → 0.3.6
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/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +133 -18
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +115 -12
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +66 -9
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +26 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +120 -15
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +115 -12
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97d63c8f98c3c4ecdfbbf93301cef165679d6be77d62256015857bf1e12712cf
|
|
4
|
+
data.tar.gz: d3906b8b4f0761fa89331fae7707398b3ab376fdaefcb218bdcab5965e36acb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f386f017411cc4e74cd72485464a826b96c97c3009ba4c14094758f4332a1c951793c48ab790b41425771ac596d7102e3954fe851af9169f2da25714de89649
|
|
7
|
+
data.tar.gz: b7904644ab34032d1b938b1ce21a126500e33a282e2dcf589154d29bd9a300395bd381938522afbec35b33125145405e9a087db29e0760f348ef021483dab94f
|
|
@@ -218,6 +218,21 @@ module Google
|
|
|
218
218
|
#
|
|
219
219
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
220
220
|
#
|
|
221
|
+
# @example Basic example
|
|
222
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
223
|
+
#
|
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
225
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
226
|
+
#
|
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
228
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::CreateCatalogItemRequest.new
|
|
229
|
+
#
|
|
230
|
+
# # Call the create_catalog_item method.
|
|
231
|
+
# result = client.create_catalog_item request
|
|
232
|
+
#
|
|
233
|
+
# # The returned object is of type Google::Cloud::RecommendationEngine::V1beta1::CatalogItem.
|
|
234
|
+
# p result
|
|
235
|
+
#
|
|
221
236
|
def create_catalog_item request, options = nil
|
|
222
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
223
238
|
|
|
@@ -235,9 +250,11 @@ module Google
|
|
|
235
250
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
236
251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
237
252
|
|
|
238
|
-
header_params = {
|
|
239
|
-
|
|
240
|
-
|
|
253
|
+
header_params = {}
|
|
254
|
+
if request.parent
|
|
255
|
+
header_params["parent"] = request.parent
|
|
256
|
+
end
|
|
257
|
+
|
|
241
258
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
242
259
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
243
260
|
|
|
@@ -287,6 +304,21 @@ module Google
|
|
|
287
304
|
#
|
|
288
305
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
289
306
|
#
|
|
307
|
+
# @example Basic example
|
|
308
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
309
|
+
#
|
|
310
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
311
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
312
|
+
#
|
|
313
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
314
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::GetCatalogItemRequest.new
|
|
315
|
+
#
|
|
316
|
+
# # Call the get_catalog_item method.
|
|
317
|
+
# result = client.get_catalog_item request
|
|
318
|
+
#
|
|
319
|
+
# # The returned object is of type Google::Cloud::RecommendationEngine::V1beta1::CatalogItem.
|
|
320
|
+
# p result
|
|
321
|
+
#
|
|
290
322
|
def get_catalog_item request, options = nil
|
|
291
323
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
292
324
|
|
|
@@ -304,9 +336,11 @@ module Google
|
|
|
304
336
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
305
337
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
306
338
|
|
|
307
|
-
header_params = {
|
|
308
|
-
|
|
309
|
-
|
|
339
|
+
header_params = {}
|
|
340
|
+
if request.name
|
|
341
|
+
header_params["name"] = request.name
|
|
342
|
+
end
|
|
343
|
+
|
|
310
344
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
311
345
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
312
346
|
|
|
@@ -363,6 +397,27 @@ module Google
|
|
|
363
397
|
#
|
|
364
398
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
365
399
|
#
|
|
400
|
+
# @example Basic example
|
|
401
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
402
|
+
#
|
|
403
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
404
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
405
|
+
#
|
|
406
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
407
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::ListCatalogItemsRequest.new
|
|
408
|
+
#
|
|
409
|
+
# # Call the list_catalog_items method.
|
|
410
|
+
# result = client.list_catalog_items request
|
|
411
|
+
#
|
|
412
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
413
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
414
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
415
|
+
# # methods are also available for managing paging directly.
|
|
416
|
+
# result.each do |response|
|
|
417
|
+
# # Each element is of type ::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem.
|
|
418
|
+
# p response
|
|
419
|
+
# end
|
|
420
|
+
#
|
|
366
421
|
def list_catalog_items request, options = nil
|
|
367
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
368
423
|
|
|
@@ -380,9 +435,11 @@ module Google
|
|
|
380
435
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
381
436
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
382
437
|
|
|
383
|
-
header_params = {
|
|
384
|
-
|
|
385
|
-
|
|
438
|
+
header_params = {}
|
|
439
|
+
if request.parent
|
|
440
|
+
header_params["parent"] = request.parent
|
|
441
|
+
end
|
|
442
|
+
|
|
386
443
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
387
444
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
388
445
|
|
|
@@ -440,6 +497,21 @@ module Google
|
|
|
440
497
|
#
|
|
441
498
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
442
499
|
#
|
|
500
|
+
# @example Basic example
|
|
501
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
502
|
+
#
|
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
504
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
505
|
+
#
|
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
507
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::UpdateCatalogItemRequest.new
|
|
508
|
+
#
|
|
509
|
+
# # Call the update_catalog_item method.
|
|
510
|
+
# result = client.update_catalog_item request
|
|
511
|
+
#
|
|
512
|
+
# # The returned object is of type Google::Cloud::RecommendationEngine::V1beta1::CatalogItem.
|
|
513
|
+
# p result
|
|
514
|
+
#
|
|
443
515
|
def update_catalog_item request, options = nil
|
|
444
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
445
517
|
|
|
@@ -457,9 +529,11 @@ module Google
|
|
|
457
529
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
458
530
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
459
531
|
|
|
460
|
-
header_params = {
|
|
461
|
-
|
|
462
|
-
|
|
532
|
+
header_params = {}
|
|
533
|
+
if request.name
|
|
534
|
+
header_params["name"] = request.name
|
|
535
|
+
end
|
|
536
|
+
|
|
463
537
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
464
538
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
465
539
|
|
|
@@ -509,6 +583,21 @@ module Google
|
|
|
509
583
|
#
|
|
510
584
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
511
585
|
#
|
|
586
|
+
# @example Basic example
|
|
587
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
588
|
+
#
|
|
589
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
590
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
591
|
+
#
|
|
592
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
593
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::DeleteCatalogItemRequest.new
|
|
594
|
+
#
|
|
595
|
+
# # Call the delete_catalog_item method.
|
|
596
|
+
# result = client.delete_catalog_item request
|
|
597
|
+
#
|
|
598
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
599
|
+
# p result
|
|
600
|
+
#
|
|
512
601
|
def delete_catalog_item request, options = nil
|
|
513
602
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
514
603
|
|
|
@@ -526,9 +615,11 @@ module Google
|
|
|
526
615
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
527
616
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
528
617
|
|
|
529
|
-
header_params = {
|
|
530
|
-
|
|
531
|
-
|
|
618
|
+
header_params = {}
|
|
619
|
+
if request.name
|
|
620
|
+
header_params["name"] = request.name
|
|
621
|
+
end
|
|
622
|
+
|
|
532
623
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
533
624
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
534
625
|
|
|
@@ -591,6 +682,28 @@ module Google
|
|
|
591
682
|
#
|
|
592
683
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
593
684
|
#
|
|
685
|
+
# @example Basic example
|
|
686
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
687
|
+
#
|
|
688
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
689
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
|
690
|
+
#
|
|
691
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
692
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::ImportCatalogItemsRequest.new
|
|
693
|
+
#
|
|
694
|
+
# # Call the import_catalog_items method.
|
|
695
|
+
# result = client.import_catalog_items request
|
|
696
|
+
#
|
|
697
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
698
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
699
|
+
# # for results. Here is how to block until completion:
|
|
700
|
+
# result.wait_until_done! timeout: 60
|
|
701
|
+
# if result.response?
|
|
702
|
+
# p result.response
|
|
703
|
+
# else
|
|
704
|
+
# puts "Error!"
|
|
705
|
+
# end
|
|
706
|
+
#
|
|
594
707
|
def import_catalog_items request, options = nil
|
|
595
708
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
596
709
|
|
|
@@ -608,9 +721,11 @@ module Google
|
|
|
608
721
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
609
722
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
610
723
|
|
|
611
|
-
header_params = {
|
|
612
|
-
|
|
613
|
-
|
|
724
|
+
header_params = {}
|
|
725
|
+
if request.parent
|
|
726
|
+
header_params["parent"] = request.parent
|
|
727
|
+
end
|
|
728
|
+
|
|
614
729
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
615
730
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
616
731
|
|
|
@@ -143,6 +143,27 @@ module Google
|
|
|
143
143
|
#
|
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
145
145
|
#
|
|
146
|
+
# @example Basic example
|
|
147
|
+
# require "google/longrunning"
|
|
148
|
+
#
|
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
151
|
+
#
|
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
|
154
|
+
#
|
|
155
|
+
# # Call the list_operations method.
|
|
156
|
+
# result = client.list_operations request
|
|
157
|
+
#
|
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
161
|
+
# # methods are also available for managing paging directly.
|
|
162
|
+
# result.each do |response|
|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
|
164
|
+
# p response
|
|
165
|
+
# end
|
|
166
|
+
#
|
|
146
167
|
def list_operations request, options = nil
|
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
148
169
|
|
|
@@ -160,9 +181,11 @@ module Google
|
|
|
160
181
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
162
183
|
|
|
163
|
-
header_params = {
|
|
164
|
-
|
|
165
|
-
|
|
184
|
+
header_params = {}
|
|
185
|
+
if request.name
|
|
186
|
+
header_params["name"] = request.name
|
|
187
|
+
end
|
|
188
|
+
|
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
168
191
|
|
|
@@ -215,6 +238,28 @@ module Google
|
|
|
215
238
|
#
|
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
217
240
|
#
|
|
241
|
+
# @example Basic example
|
|
242
|
+
# require "google/longrunning"
|
|
243
|
+
#
|
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
246
|
+
#
|
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
|
249
|
+
#
|
|
250
|
+
# # Call the get_operation method.
|
|
251
|
+
# result = client.get_operation request
|
|
252
|
+
#
|
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
255
|
+
# # for results. Here is how to block until completion:
|
|
256
|
+
# result.wait_until_done! timeout: 60
|
|
257
|
+
# if result.response?
|
|
258
|
+
# p result.response
|
|
259
|
+
# else
|
|
260
|
+
# puts "Error!"
|
|
261
|
+
# end
|
|
262
|
+
#
|
|
218
263
|
def get_operation request, options = nil
|
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
220
265
|
|
|
@@ -232,9 +277,11 @@ module Google
|
|
|
232
277
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
234
279
|
|
|
235
|
-
header_params = {
|
|
236
|
-
|
|
237
|
-
|
|
280
|
+
header_params = {}
|
|
281
|
+
if request.name
|
|
282
|
+
header_params["name"] = request.name
|
|
283
|
+
end
|
|
284
|
+
|
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
240
287
|
|
|
@@ -287,6 +334,21 @@ module Google
|
|
|
287
334
|
#
|
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
289
336
|
#
|
|
337
|
+
# @example Basic example
|
|
338
|
+
# require "google/longrunning"
|
|
339
|
+
#
|
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
342
|
+
#
|
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
|
345
|
+
#
|
|
346
|
+
# # Call the delete_operation method.
|
|
347
|
+
# result = client.delete_operation request
|
|
348
|
+
#
|
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
350
|
+
# p result
|
|
351
|
+
#
|
|
290
352
|
def delete_operation request, options = nil
|
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
292
354
|
|
|
@@ -304,9 +366,11 @@ module Google
|
|
|
304
366
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
306
368
|
|
|
307
|
-
header_params = {
|
|
308
|
-
|
|
309
|
-
|
|
369
|
+
header_params = {}
|
|
370
|
+
if request.name
|
|
371
|
+
header_params["name"] = request.name
|
|
372
|
+
end
|
|
373
|
+
|
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
312
376
|
|
|
@@ -364,6 +428,21 @@ module Google
|
|
|
364
428
|
#
|
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
366
430
|
#
|
|
431
|
+
# @example Basic example
|
|
432
|
+
# require "google/longrunning"
|
|
433
|
+
#
|
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
436
|
+
#
|
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
|
439
|
+
#
|
|
440
|
+
# # Call the cancel_operation method.
|
|
441
|
+
# result = client.cancel_operation request
|
|
442
|
+
#
|
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
444
|
+
# p result
|
|
445
|
+
#
|
|
367
446
|
def cancel_operation request, options = nil
|
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
369
448
|
|
|
@@ -381,9 +460,11 @@ module Google
|
|
|
381
460
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
383
462
|
|
|
384
|
-
header_params = {
|
|
385
|
-
|
|
386
|
-
|
|
463
|
+
header_params = {}
|
|
464
|
+
if request.name
|
|
465
|
+
header_params["name"] = request.name
|
|
466
|
+
end
|
|
467
|
+
|
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
389
470
|
|
|
@@ -444,6 +525,28 @@ module Google
|
|
|
444
525
|
#
|
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
446
527
|
#
|
|
528
|
+
# @example Basic example
|
|
529
|
+
# require "google/longrunning"
|
|
530
|
+
#
|
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
533
|
+
#
|
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
|
536
|
+
#
|
|
537
|
+
# # Call the wait_operation method.
|
|
538
|
+
# result = client.wait_operation request
|
|
539
|
+
#
|
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
542
|
+
# # for results. Here is how to block until completion:
|
|
543
|
+
# result.wait_until_done! timeout: 60
|
|
544
|
+
# if result.response?
|
|
545
|
+
# p result.response
|
|
546
|
+
# else
|
|
547
|
+
# puts "Error!"
|
|
548
|
+
# end
|
|
549
|
+
#
|
|
447
550
|
def wait_operation request, options = nil
|
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
449
552
|
|
|
@@ -195,6 +195,21 @@ module Google
|
|
|
195
195
|
#
|
|
196
196
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
197
197
|
#
|
|
198
|
+
# @example Basic example
|
|
199
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
200
|
+
#
|
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
202
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new
|
|
203
|
+
#
|
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
205
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::CreatePredictionApiKeyRegistrationRequest.new
|
|
206
|
+
#
|
|
207
|
+
# # Call the create_prediction_api_key_registration method.
|
|
208
|
+
# result = client.create_prediction_api_key_registration request
|
|
209
|
+
#
|
|
210
|
+
# # The returned object is of type Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration.
|
|
211
|
+
# p result
|
|
212
|
+
#
|
|
198
213
|
def create_prediction_api_key_registration request, options = nil
|
|
199
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
200
215
|
|
|
@@ -212,9 +227,11 @@ module Google
|
|
|
212
227
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
213
228
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
214
229
|
|
|
215
|
-
header_params = {
|
|
216
|
-
|
|
217
|
-
|
|
230
|
+
header_params = {}
|
|
231
|
+
if request.parent
|
|
232
|
+
header_params["parent"] = request.parent
|
|
233
|
+
end
|
|
234
|
+
|
|
218
235
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
219
236
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
220
237
|
|
|
@@ -269,6 +286,27 @@ module Google
|
|
|
269
286
|
#
|
|
270
287
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
271
288
|
#
|
|
289
|
+
# @example Basic example
|
|
290
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
291
|
+
#
|
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
293
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new
|
|
294
|
+
#
|
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
296
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::ListPredictionApiKeyRegistrationsRequest.new
|
|
297
|
+
#
|
|
298
|
+
# # Call the list_prediction_api_key_registrations method.
|
|
299
|
+
# result = client.list_prediction_api_key_registrations request
|
|
300
|
+
#
|
|
301
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
302
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
303
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
304
|
+
# # methods are also available for managing paging directly.
|
|
305
|
+
# result.each do |response|
|
|
306
|
+
# # Each element is of type ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration.
|
|
307
|
+
# p response
|
|
308
|
+
# end
|
|
309
|
+
#
|
|
272
310
|
def list_prediction_api_key_registrations request, options = nil
|
|
273
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
274
312
|
|
|
@@ -286,9 +324,11 @@ module Google
|
|
|
286
324
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
287
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
288
326
|
|
|
289
|
-
header_params = {
|
|
290
|
-
|
|
291
|
-
|
|
327
|
+
header_params = {}
|
|
328
|
+
if request.parent
|
|
329
|
+
header_params["parent"] = request.parent
|
|
330
|
+
end
|
|
331
|
+
|
|
292
332
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
293
333
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
294
334
|
|
|
@@ -339,6 +379,21 @@ module Google
|
|
|
339
379
|
#
|
|
340
380
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
341
381
|
#
|
|
382
|
+
# @example Basic example
|
|
383
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
384
|
+
#
|
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
386
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new
|
|
387
|
+
#
|
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
389
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::DeletePredictionApiKeyRegistrationRequest.new
|
|
390
|
+
#
|
|
391
|
+
# # Call the delete_prediction_api_key_registration method.
|
|
392
|
+
# result = client.delete_prediction_api_key_registration request
|
|
393
|
+
#
|
|
394
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
395
|
+
# p result
|
|
396
|
+
#
|
|
342
397
|
def delete_prediction_api_key_registration request, options = nil
|
|
343
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
344
399
|
|
|
@@ -356,9 +411,11 @@ module Google
|
|
|
356
411
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
357
412
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
358
413
|
|
|
359
|
-
header_params = {
|
|
360
|
-
|
|
361
|
-
|
|
414
|
+
header_params = {}
|
|
415
|
+
if request.name
|
|
416
|
+
header_params["name"] = request.name
|
|
417
|
+
end
|
|
418
|
+
|
|
362
419
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
363
420
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
364
421
|
|
|
@@ -268,6 +268,27 @@ module Google
|
|
|
268
268
|
#
|
|
269
269
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
270
270
|
#
|
|
271
|
+
# @example Basic example
|
|
272
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
273
|
+
#
|
|
274
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
275
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new
|
|
276
|
+
#
|
|
277
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
278
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::PredictRequest.new
|
|
279
|
+
#
|
|
280
|
+
# # Call the predict method.
|
|
281
|
+
# result = client.predict request
|
|
282
|
+
#
|
|
283
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
284
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
285
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
286
|
+
# # methods are also available for managing paging directly.
|
|
287
|
+
# result.each do |response|
|
|
288
|
+
# # Each element is of type ::Google::Cloud::RecommendationEngine::V1beta1::PredictResponse::PredictionResult.
|
|
289
|
+
# p response
|
|
290
|
+
# end
|
|
291
|
+
#
|
|
271
292
|
def predict request, options = nil
|
|
272
293
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
273
294
|
|
|
@@ -285,9 +306,11 @@ module Google
|
|
|
285
306
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
286
307
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
287
308
|
|
|
288
|
-
header_params = {
|
|
289
|
-
|
|
290
|
-
|
|
309
|
+
header_params = {}
|
|
310
|
+
if request.name
|
|
311
|
+
header_params["name"] = request.name
|
|
312
|
+
end
|
|
313
|
+
|
|
291
314
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
292
315
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
293
316
|
|
|
@@ -213,6 +213,21 @@ module Google
|
|
|
213
213
|
#
|
|
214
214
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
215
215
|
#
|
|
216
|
+
# @example Basic example
|
|
217
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
218
|
+
#
|
|
219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
220
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
|
221
|
+
#
|
|
222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
223
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::WriteUserEventRequest.new
|
|
224
|
+
#
|
|
225
|
+
# # Call the write_user_event method.
|
|
226
|
+
# result = client.write_user_event request
|
|
227
|
+
#
|
|
228
|
+
# # The returned object is of type Google::Cloud::RecommendationEngine::V1beta1::UserEvent.
|
|
229
|
+
# p result
|
|
230
|
+
#
|
|
216
231
|
def write_user_event request, options = nil
|
|
217
232
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
218
233
|
|
|
@@ -230,9 +245,11 @@ module Google
|
|
|
230
245
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
231
246
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
232
247
|
|
|
233
|
-
header_params = {
|
|
234
|
-
|
|
235
|
-
|
|
248
|
+
header_params = {}
|
|
249
|
+
if request.parent
|
|
250
|
+
header_params["parent"] = request.parent
|
|
251
|
+
end
|
|
252
|
+
|
|
236
253
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
237
254
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
238
255
|
|
|
@@ -297,6 +314,21 @@ module Google
|
|
|
297
314
|
#
|
|
298
315
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
299
316
|
#
|
|
317
|
+
# @example Basic example
|
|
318
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
319
|
+
#
|
|
320
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
321
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
|
322
|
+
#
|
|
323
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
324
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::CollectUserEventRequest.new
|
|
325
|
+
#
|
|
326
|
+
# # Call the collect_user_event method.
|
|
327
|
+
# result = client.collect_user_event request
|
|
328
|
+
#
|
|
329
|
+
# # The returned object is of type Google::Api::HttpBody.
|
|
330
|
+
# p result
|
|
331
|
+
#
|
|
300
332
|
def collect_user_event request, options = nil
|
|
301
333
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
302
334
|
|
|
@@ -314,9 +346,11 @@ module Google
|
|
|
314
346
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
315
347
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
316
348
|
|
|
317
|
-
header_params = {
|
|
318
|
-
|
|
319
|
-
|
|
349
|
+
header_params = {}
|
|
350
|
+
if request.parent
|
|
351
|
+
header_params["parent"] = request.parent
|
|
352
|
+
end
|
|
353
|
+
|
|
320
354
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
321
355
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
322
356
|
|
|
@@ -404,6 +438,27 @@ module Google
|
|
|
404
438
|
#
|
|
405
439
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
406
440
|
#
|
|
441
|
+
# @example Basic example
|
|
442
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
443
|
+
#
|
|
444
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
445
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
|
446
|
+
#
|
|
447
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
448
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsRequest.new
|
|
449
|
+
#
|
|
450
|
+
# # Call the list_user_events method.
|
|
451
|
+
# result = client.list_user_events request
|
|
452
|
+
#
|
|
453
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
454
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
455
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
456
|
+
# # methods are also available for managing paging directly.
|
|
457
|
+
# result.each do |response|
|
|
458
|
+
# # Each element is of type ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent.
|
|
459
|
+
# p response
|
|
460
|
+
# end
|
|
461
|
+
#
|
|
407
462
|
def list_user_events request, options = nil
|
|
408
463
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
409
464
|
|
|
@@ -421,9 +476,11 @@ module Google
|
|
|
421
476
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
422
477
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
423
478
|
|
|
424
|
-
header_params = {
|
|
425
|
-
|
|
426
|
-
|
|
479
|
+
header_params = {}
|
|
480
|
+
if request.parent
|
|
481
|
+
header_params["parent"] = request.parent
|
|
482
|
+
end
|
|
483
|
+
|
|
427
484
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
428
485
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
429
486
|
|
|
@@ -501,6 +558,28 @@ module Google
|
|
|
501
558
|
#
|
|
502
559
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
503
560
|
#
|
|
561
|
+
# @example Basic example
|
|
562
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
563
|
+
#
|
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
565
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
|
566
|
+
#
|
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
568
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::PurgeUserEventsRequest.new
|
|
569
|
+
#
|
|
570
|
+
# # Call the purge_user_events method.
|
|
571
|
+
# result = client.purge_user_events request
|
|
572
|
+
#
|
|
573
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
574
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
575
|
+
# # for results. Here is how to block until completion:
|
|
576
|
+
# result.wait_until_done! timeout: 60
|
|
577
|
+
# if result.response?
|
|
578
|
+
# p result.response
|
|
579
|
+
# else
|
|
580
|
+
# puts "Error!"
|
|
581
|
+
# end
|
|
582
|
+
#
|
|
504
583
|
def purge_user_events request, options = nil
|
|
505
584
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
506
585
|
|
|
@@ -518,9 +597,11 @@ module Google
|
|
|
518
597
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
519
598
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
520
599
|
|
|
521
|
-
header_params = {
|
|
522
|
-
|
|
523
|
-
|
|
600
|
+
header_params = {}
|
|
601
|
+
if request.parent
|
|
602
|
+
header_params["parent"] = request.parent
|
|
603
|
+
end
|
|
604
|
+
|
|
524
605
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
525
606
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
526
607
|
|
|
@@ -588,6 +669,28 @@ module Google
|
|
|
588
669
|
#
|
|
589
670
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
590
671
|
#
|
|
672
|
+
# @example Basic example
|
|
673
|
+
# require "google/cloud/recommendation_engine/v1beta1"
|
|
674
|
+
#
|
|
675
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
676
|
+
# client = Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
|
|
677
|
+
#
|
|
678
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
679
|
+
# request = Google::Cloud::RecommendationEngine::V1beta1::ImportUserEventsRequest.new
|
|
680
|
+
#
|
|
681
|
+
# # Call the import_user_events method.
|
|
682
|
+
# result = client.import_user_events request
|
|
683
|
+
#
|
|
684
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
685
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
686
|
+
# # for results. Here is how to block until completion:
|
|
687
|
+
# result.wait_until_done! timeout: 60
|
|
688
|
+
# if result.response?
|
|
689
|
+
# p result.response
|
|
690
|
+
# else
|
|
691
|
+
# puts "Error!"
|
|
692
|
+
# end
|
|
693
|
+
#
|
|
591
694
|
def import_user_events request, options = nil
|
|
592
695
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
593
696
|
|
|
@@ -605,9 +708,11 @@ module Google
|
|
|
605
708
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
606
709
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
607
710
|
|
|
608
|
-
header_params = {
|
|
609
|
-
|
|
610
|
-
|
|
711
|
+
header_params = {}
|
|
712
|
+
if request.parent
|
|
713
|
+
header_params["parent"] = request.parent
|
|
714
|
+
end
|
|
715
|
+
|
|
611
716
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
612
717
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
613
718
|
|
|
@@ -143,6 +143,27 @@ module Google
|
|
|
143
143
|
#
|
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
145
145
|
#
|
|
146
|
+
# @example Basic example
|
|
147
|
+
# require "google/longrunning"
|
|
148
|
+
#
|
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
151
|
+
#
|
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
|
154
|
+
#
|
|
155
|
+
# # Call the list_operations method.
|
|
156
|
+
# result = client.list_operations request
|
|
157
|
+
#
|
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
161
|
+
# # methods are also available for managing paging directly.
|
|
162
|
+
# result.each do |response|
|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
|
164
|
+
# p response
|
|
165
|
+
# end
|
|
166
|
+
#
|
|
146
167
|
def list_operations request, options = nil
|
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
148
169
|
|
|
@@ -160,9 +181,11 @@ module Google
|
|
|
160
181
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
162
183
|
|
|
163
|
-
header_params = {
|
|
164
|
-
|
|
165
|
-
|
|
184
|
+
header_params = {}
|
|
185
|
+
if request.name
|
|
186
|
+
header_params["name"] = request.name
|
|
187
|
+
end
|
|
188
|
+
|
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
168
191
|
|
|
@@ -215,6 +238,28 @@ module Google
|
|
|
215
238
|
#
|
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
217
240
|
#
|
|
241
|
+
# @example Basic example
|
|
242
|
+
# require "google/longrunning"
|
|
243
|
+
#
|
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
246
|
+
#
|
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
|
249
|
+
#
|
|
250
|
+
# # Call the get_operation method.
|
|
251
|
+
# result = client.get_operation request
|
|
252
|
+
#
|
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
255
|
+
# # for results. Here is how to block until completion:
|
|
256
|
+
# result.wait_until_done! timeout: 60
|
|
257
|
+
# if result.response?
|
|
258
|
+
# p result.response
|
|
259
|
+
# else
|
|
260
|
+
# puts "Error!"
|
|
261
|
+
# end
|
|
262
|
+
#
|
|
218
263
|
def get_operation request, options = nil
|
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
220
265
|
|
|
@@ -232,9 +277,11 @@ module Google
|
|
|
232
277
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
234
279
|
|
|
235
|
-
header_params = {
|
|
236
|
-
|
|
237
|
-
|
|
280
|
+
header_params = {}
|
|
281
|
+
if request.name
|
|
282
|
+
header_params["name"] = request.name
|
|
283
|
+
end
|
|
284
|
+
|
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
240
287
|
|
|
@@ -287,6 +334,21 @@ module Google
|
|
|
287
334
|
#
|
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
289
336
|
#
|
|
337
|
+
# @example Basic example
|
|
338
|
+
# require "google/longrunning"
|
|
339
|
+
#
|
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
342
|
+
#
|
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
|
345
|
+
#
|
|
346
|
+
# # Call the delete_operation method.
|
|
347
|
+
# result = client.delete_operation request
|
|
348
|
+
#
|
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
350
|
+
# p result
|
|
351
|
+
#
|
|
290
352
|
def delete_operation request, options = nil
|
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
292
354
|
|
|
@@ -304,9 +366,11 @@ module Google
|
|
|
304
366
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
306
368
|
|
|
307
|
-
header_params = {
|
|
308
|
-
|
|
309
|
-
|
|
369
|
+
header_params = {}
|
|
370
|
+
if request.name
|
|
371
|
+
header_params["name"] = request.name
|
|
372
|
+
end
|
|
373
|
+
|
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
312
376
|
|
|
@@ -364,6 +428,21 @@ module Google
|
|
|
364
428
|
#
|
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
366
430
|
#
|
|
431
|
+
# @example Basic example
|
|
432
|
+
# require "google/longrunning"
|
|
433
|
+
#
|
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
436
|
+
#
|
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
|
439
|
+
#
|
|
440
|
+
# # Call the cancel_operation method.
|
|
441
|
+
# result = client.cancel_operation request
|
|
442
|
+
#
|
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
444
|
+
# p result
|
|
445
|
+
#
|
|
367
446
|
def cancel_operation request, options = nil
|
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
369
448
|
|
|
@@ -381,9 +460,11 @@ module Google
|
|
|
381
460
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
383
462
|
|
|
384
|
-
header_params = {
|
|
385
|
-
|
|
386
|
-
|
|
463
|
+
header_params = {}
|
|
464
|
+
if request.name
|
|
465
|
+
header_params["name"] = request.name
|
|
466
|
+
end
|
|
467
|
+
|
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
389
470
|
|
|
@@ -444,6 +525,28 @@ module Google
|
|
|
444
525
|
#
|
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
446
527
|
#
|
|
528
|
+
# @example Basic example
|
|
529
|
+
# require "google/longrunning"
|
|
530
|
+
#
|
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
533
|
+
#
|
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
|
536
|
+
#
|
|
537
|
+
# # Call the wait_operation method.
|
|
538
|
+
# result = client.wait_operation request
|
|
539
|
+
#
|
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
542
|
+
# # for results. Here is how to block until completion:
|
|
543
|
+
# result.wait_until_done! timeout: 60
|
|
544
|
+
# if result.response?
|
|
545
|
+
# p result.response
|
|
546
|
+
# else
|
|
547
|
+
# puts "Error!"
|
|
548
|
+
# end
|
|
549
|
+
#
|
|
447
550
|
def wait_operation request, options = nil
|
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
449
552
|
|
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.3.
|
|
4
|
+
version: 0.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|