google-cloud-discovery_engine-v1beta 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +10 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +16 -0
  4. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +10 -1
  5. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +100 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +10 -1
  7. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +10 -1
  8. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +130 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +75 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +10 -1
  11. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +16 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +10 -1
  13. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +10 -1
  14. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +105 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +75 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +10 -1
  17. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +20 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +10 -1
  19. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +10 -1
  20. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +55 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +75 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  23. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e4a17a1b826777691e17ecf0261e73facf5117e570d387450afe09f29698b94
4
- data.tar.gz: ad54b4f89578fb6ac4c9cd23f24090423529f8c82722e7808375fbe132405f83
3
+ metadata.gz: c38099d0888d0affb8b7a6b7994f3a1f872c4dcd89f0d73b46d936ca136abcef
4
+ data.tar.gz: 6c89d1ee7cb59dd1cf8ff94b7929a51e90912c9fa4eb5de8e3607dd8863bd82f
5
5
  SHA512:
6
- metadata.gz: b0b5bfcb4937f7d7f829a4cb53b611216edff46abd9dd518fb2139873f70a37be2759d727233a12cc2c1c039fa03fd66b6e0b53eefcb66652f21898c4f7abcd4
7
- data.tar.gz: a558e3290182274f61d40586f4e52b1e776557a69be78bac1dce3342c1b1a5b03be2e6648a0c893c466bcea067278311e6d4273a766580963ce5d432faec1810
6
+ metadata.gz: 1f9229fb79cc50eae6767e6badcf2b7954cb6438b0ee109cb3b652d2b870aa67e9f49bfaa345267871652328dda64b8e965a772121f52cec38033e4c4879faa6
7
+ data.tar.gz: d742bac3155f58bb3971f01c7432f6902231b2db45d6e24a5f04aed76f6b7b06fef6aa346b7533cc31fd6533f08fd64b5cdba095ca1f6bbb8578cf16554ac336
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -410,6 +411,14 @@ module Google
410
411
  end
411
412
  end
412
413
 
414
+ ##
415
+ # Configuration for the channel pool
416
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
417
+ #
418
+ def channel_pool
419
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
420
+ end
421
+
413
422
  ##
414
423
  # Configuration RPC class for the CompletionService API.
415
424
  #
@@ -224,6 +224,22 @@ module Google
224
224
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::CompleteQueryResponse]
225
225
  #
226
226
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
227
+ #
228
+ # @example Basic example
229
+ # require "google/cloud/discovery_engine/v1beta"
230
+ #
231
+ # # Create a client object. The client can be reused for multiple calls.
232
+ # client = Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Rest::Client.new
233
+ #
234
+ # # Create a request. To set request fields, pass in keyword arguments.
235
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CompleteQueryRequest.new
236
+ #
237
+ # # Call the complete_query method.
238
+ # result = client.complete_query request
239
+ #
240
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::CompleteQueryResponse.
241
+ # p result
242
+ #
227
243
  def complete_query request, options = nil
228
244
  raise ::ArgumentError, "request must be provided" if request.nil?
229
245
 
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -883,6 +884,14 @@ module Google
883
884
  end
884
885
  end
885
886
 
887
+ ##
888
+ # Configuration for the channel pool
889
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
890
+ #
891
+ def channel_pool
892
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
893
+ end
894
+
886
895
  ##
887
896
  # Configuration RPC class for the ConversationalSearchService API.
888
897
  #
@@ -218,6 +218,22 @@ module Google
218
218
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationResponse]
219
219
  #
220
220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/cloud/discovery_engine/v1beta"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationRequest.new
230
+ #
231
+ # # Call the converse_conversation method.
232
+ # result = client.converse_conversation request
233
+ #
234
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationResponse.
235
+ # p result
236
+ #
221
237
  def converse_conversation request, options = nil
222
238
  raise ::ArgumentError, "request must be provided" if request.nil?
223
239
 
@@ -286,6 +302,22 @@ module Google
286
302
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
287
303
  #
288
304
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
305
+ #
306
+ # @example Basic example
307
+ # require "google/cloud/discovery_engine/v1beta"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateConversationRequest.new
314
+ #
315
+ # # Call the create_conversation method.
316
+ # result = client.create_conversation request
317
+ #
318
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
319
+ # p result
320
+ #
289
321
  def create_conversation request, options = nil
290
322
  raise ::ArgumentError, "request must be provided" if request.nil?
291
323
 
@@ -352,6 +384,22 @@ module Google
352
384
  # @return [::Google::Protobuf::Empty]
353
385
  #
354
386
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
387
+ #
388
+ # @example Basic example
389
+ # require "google/cloud/discovery_engine/v1beta"
390
+ #
391
+ # # Create a client object. The client can be reused for multiple calls.
392
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
393
+ #
394
+ # # Create a request. To set request fields, pass in keyword arguments.
395
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteConversationRequest.new
396
+ #
397
+ # # Call the delete_conversation method.
398
+ # result = client.delete_conversation request
399
+ #
400
+ # # The returned object is of type Google::Protobuf::Empty.
401
+ # p result
402
+ #
355
403
  def delete_conversation request, options = nil
356
404
  raise ::ArgumentError, "request must be provided" if request.nil?
357
405
 
@@ -427,6 +475,22 @@ module Google
427
475
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
428
476
  #
429
477
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
478
+ #
479
+ # @example Basic example
480
+ # require "google/cloud/discovery_engine/v1beta"
481
+ #
482
+ # # Create a client object. The client can be reused for multiple calls.
483
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
484
+ #
485
+ # # Create a request. To set request fields, pass in keyword arguments.
486
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateConversationRequest.new
487
+ #
488
+ # # Call the update_conversation method.
489
+ # result = client.update_conversation request
490
+ #
491
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
492
+ # p result
493
+ #
430
494
  def update_conversation request, options = nil
431
495
  raise ::ArgumentError, "request must be provided" if request.nil?
432
496
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
491
555
  #
492
556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
557
+ #
558
+ # @example Basic example
559
+ # require "google/cloud/discovery_engine/v1beta"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetConversationRequest.new
566
+ #
567
+ # # Call the get_conversation method.
568
+ # result = client.get_conversation request
569
+ #
570
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
571
+ # p result
572
+ #
493
573
  def get_conversation request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -577,6 +657,26 @@ module Google
577
657
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Conversation>]
578
658
  #
579
659
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
660
+ #
661
+ # @example Basic example
662
+ # require "google/cloud/discovery_engine/v1beta"
663
+ #
664
+ # # Create a client object. The client can be reused for multiple calls.
665
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
666
+ #
667
+ # # Create a request. To set request fields, pass in keyword arguments.
668
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListConversationsRequest.new
669
+ #
670
+ # # Call the list_conversations method.
671
+ # result = client.list_conversations request
672
+ #
673
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
674
+ # # over elements, and API calls will be issued to fetch pages as needed.
675
+ # result.each do |item|
676
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Conversation.
677
+ # p item
678
+ # end
679
+ #
580
680
  def list_conversations request, options = nil
581
681
  raise ::ArgumentError, "request must be provided" if request.nil?
582
682
 
@@ -163,7 +163,8 @@ module Google
163
163
  credentials: credentials,
164
164
  endpoint: @config.endpoint,
165
165
  channel_args: @config.channel_args,
166
- interceptors: @config.interceptors
166
+ interceptors: @config.interceptors,
167
+ channel_pool_config: @config.channel_pool
167
168
  )
168
169
  end
169
170
 
@@ -1093,6 +1094,14 @@ module Google
1093
1094
  end
1094
1095
  end
1095
1096
 
1097
+ ##
1098
+ # Configuration for the channel pool
1099
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1100
+ #
1101
+ def channel_pool
1102
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1103
+ end
1104
+
1096
1105
  ##
1097
1106
  # Configuration RPC class for the DocumentService API.
1098
1107
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -210,6 +210,22 @@ module Google
210
210
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
211
211
  #
212
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/discovery_engine/v1beta"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetDocumentRequest.new
222
+ #
223
+ # # Call the get_document method.
224
+ # result = client.get_document request
225
+ #
226
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Document.
227
+ # p result
228
+ #
213
229
  def get_document request, options = nil
214
230
  raise ::ArgumentError, "request must be provided" if request.nil?
215
231
 
@@ -297,6 +313,26 @@ module Google
297
313
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Document>]
298
314
  #
299
315
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
316
+ #
317
+ # @example Basic example
318
+ # require "google/cloud/discovery_engine/v1beta"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListDocumentsRequest.new
325
+ #
326
+ # # Call the list_documents method.
327
+ # result = client.list_documents request
328
+ #
329
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
330
+ # # over elements, and API calls will be issued to fetch pages as needed.
331
+ # result.each do |item|
332
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Document.
333
+ # p item
334
+ # end
335
+ #
300
336
  def list_documents request, options = nil
301
337
  raise ::ArgumentError, "request must be provided" if request.nil?
302
338
 
@@ -382,6 +418,22 @@ module Google
382
418
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
383
419
  #
384
420
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
421
+ #
422
+ # @example Basic example
423
+ # require "google/cloud/discovery_engine/v1beta"
424
+ #
425
+ # # Create a client object. The client can be reused for multiple calls.
426
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
427
+ #
428
+ # # Create a request. To set request fields, pass in keyword arguments.
429
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateDocumentRequest.new
430
+ #
431
+ # # Call the create_document method.
432
+ # result = client.create_document request
433
+ #
434
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Document.
435
+ # p result
436
+ #
385
437
  def create_document request, options = nil
386
438
  raise ::ArgumentError, "request must be provided" if request.nil?
387
439
 
@@ -458,6 +510,22 @@ module Google
458
510
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
459
511
  #
460
512
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
513
+ #
514
+ # @example Basic example
515
+ # require "google/cloud/discovery_engine/v1beta"
516
+ #
517
+ # # Create a client object. The client can be reused for multiple calls.
518
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
519
+ #
520
+ # # Create a request. To set request fields, pass in keyword arguments.
521
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateDocumentRequest.new
522
+ #
523
+ # # Call the update_document method.
524
+ # result = client.update_document request
525
+ #
526
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Document.
527
+ # p result
528
+ #
461
529
  def update_document request, options = nil
462
530
  raise ::ArgumentError, "request must be provided" if request.nil?
463
531
 
@@ -529,6 +597,22 @@ module Google
529
597
  # @return [::Google::Protobuf::Empty]
530
598
  #
531
599
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
600
+ #
601
+ # @example Basic example
602
+ # require "google/cloud/discovery_engine/v1beta"
603
+ #
604
+ # # Create a client object. The client can be reused for multiple calls.
605
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
606
+ #
607
+ # # Create a request. To set request fields, pass in keyword arguments.
608
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteDocumentRequest.new
609
+ #
610
+ # # Call the delete_document method.
611
+ # result = client.delete_document request
612
+ #
613
+ # # The returned object is of type Google::Protobuf::Empty.
614
+ # p result
615
+ #
532
616
  def delete_document request, options = nil
533
617
  raise ::ArgumentError, "request must be provided" if request.nil?
534
618
 
@@ -663,6 +747,29 @@ module Google
663
747
  # @return [::Gapic::Operation]
664
748
  #
665
749
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
750
+ #
751
+ # @example Basic example
752
+ # require "google/cloud/discovery_engine/v1beta"
753
+ #
754
+ # # Create a client object. The client can be reused for multiple calls.
755
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
756
+ #
757
+ # # Create a request. To set request fields, pass in keyword arguments.
758
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest.new
759
+ #
760
+ # # Call the import_documents method.
761
+ # result = client.import_documents request
762
+ #
763
+ # # The returned object is of type Gapic::Operation. You can use it to
764
+ # # check the status of an operation, cancel it, or wait for results.
765
+ # # Here is how to wait for a response.
766
+ # result.wait_until_done! timeout: 60
767
+ # if result.response?
768
+ # p result.response
769
+ # else
770
+ # puts "No response received."
771
+ # end
772
+ #
666
773
  def import_documents request, options = nil
667
774
  raise ::ArgumentError, "request must be provided" if request.nil?
668
775
 
@@ -750,6 +857,29 @@ module Google
750
857
  # @return [::Gapic::Operation]
751
858
  #
752
859
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
860
+ #
861
+ # @example Basic example
862
+ # require "google/cloud/discovery_engine/v1beta"
863
+ #
864
+ # # Create a client object. The client can be reused for multiple calls.
865
+ # client = Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::Client.new
866
+ #
867
+ # # Create a request. To set request fields, pass in keyword arguments.
868
+ # request = Google::Cloud::DiscoveryEngine::V1beta::PurgeDocumentsRequest.new
869
+ #
870
+ # # Call the purge_documents method.
871
+ # result = client.purge_documents request
872
+ #
873
+ # # The returned object is of type Gapic::Operation. You can use it to
874
+ # # check the status of an operation, cancel it, or wait for results.
875
+ # # Here is how to wait for a response.
876
+ # result.wait_until_done! timeout: 60
877
+ # if result.response?
878
+ # p result.response
879
+ # else
880
+ # puts "No response received."
881
+ # end
882
+ #
753
883
  def purge_documents request, options = nil
754
884
  raise ::ArgumentError, "request must be provided" if request.nil?
755
885
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -461,6 +462,14 @@ module Google
461
462
  end
462
463
  end
463
464
 
465
+ ##
466
+ # Configuration for the channel pool
467
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
468
+ #
469
+ def channel_pool
470
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
471
+ end
472
+
464
473
  ##
465
474
  # Configuration RPC class for the RecommendationService API.
466
475
  #
@@ -275,6 +275,22 @@ module Google
275
275
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::RecommendResponse]
276
276
  #
277
277
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
278
+ #
279
+ # @example Basic example
280
+ # require "google/cloud/discovery_engine/v1beta"
281
+ #
282
+ # # Create a client object. The client can be reused for multiple calls.
283
+ # client = Google::Cloud::DiscoveryEngine::V1beta::RecommendationService::Rest::Client.new
284
+ #
285
+ # # Create a request. To set request fields, pass in keyword arguments.
286
+ # request = Google::Cloud::DiscoveryEngine::V1beta::RecommendRequest.new
287
+ #
288
+ # # Call the recommend method.
289
+ # result = client.recommend request
290
+ #
291
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::RecommendResponse.
292
+ # p result
293
+ #
278
294
  def recommend request, options = nil
279
295
  raise ::ArgumentError, "request must be provided" if request.nil?
280
296
 
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -787,6 +788,14 @@ module Google
787
788
  end
788
789
  end
789
790
 
791
+ ##
792
+ # Configuration for the channel pool
793
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
794
+ #
795
+ def channel_pool
796
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
797
+ end
798
+
790
799
  ##
791
800
  # Configuration RPC class for the SchemaService API.
792
801
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -195,6 +195,22 @@ module Google
195
195
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Schema]
196
196
  #
197
197
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
198
+ #
199
+ # @example Basic example
200
+ # require "google/cloud/discovery_engine/v1beta"
201
+ #
202
+ # # Create a client object. The client can be reused for multiple calls.
203
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client.new
204
+ #
205
+ # # Create a request. To set request fields, pass in keyword arguments.
206
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetSchemaRequest.new
207
+ #
208
+ # # Call the get_schema method.
209
+ # result = client.get_schema request
210
+ #
211
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Schema.
212
+ # p result
213
+ #
198
214
  def get_schema request, options = nil
199
215
  raise ::ArgumentError, "request must be provided" if request.nil?
200
216
 
@@ -274,6 +290,26 @@ module Google
274
290
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Schema>]
275
291
  #
276
292
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
293
+ #
294
+ # @example Basic example
295
+ # require "google/cloud/discovery_engine/v1beta"
296
+ #
297
+ # # Create a client object. The client can be reused for multiple calls.
298
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client.new
299
+ #
300
+ # # Create a request. To set request fields, pass in keyword arguments.
301
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListSchemasRequest.new
302
+ #
303
+ # # Call the list_schemas method.
304
+ # result = client.list_schemas request
305
+ #
306
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
307
+ # # over elements, and API calls will be issued to fetch pages as needed.
308
+ # result.each do |item|
309
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Schema.
310
+ # p item
311
+ # end
312
+ #
277
313
  def list_schemas request, options = nil
278
314
  raise ::ArgumentError, "request must be provided" if request.nil?
279
315
 
@@ -350,6 +386,29 @@ module Google
350
386
  # @return [::Gapic::Operation]
351
387
  #
352
388
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
389
+ #
390
+ # @example Basic example
391
+ # require "google/cloud/discovery_engine/v1beta"
392
+ #
393
+ # # Create a client object. The client can be reused for multiple calls.
394
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client.new
395
+ #
396
+ # # Create a request. To set request fields, pass in keyword arguments.
397
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateSchemaRequest.new
398
+ #
399
+ # # Call the create_schema method.
400
+ # result = client.create_schema request
401
+ #
402
+ # # The returned object is of type Gapic::Operation. You can use it to
403
+ # # check the status of an operation, cancel it, or wait for results.
404
+ # # Here is how to wait for a response.
405
+ # result.wait_until_done! timeout: 60
406
+ # if result.response?
407
+ # p result.response
408
+ # else
409
+ # puts "No response received."
410
+ # end
411
+ #
353
412
  def create_schema request, options = nil
354
413
  raise ::ArgumentError, "request must be provided" if request.nil?
355
414
 
@@ -419,6 +478,29 @@ module Google
419
478
  # @return [::Gapic::Operation]
420
479
  #
421
480
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
481
+ #
482
+ # @example Basic example
483
+ # require "google/cloud/discovery_engine/v1beta"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateSchemaRequest.new
490
+ #
491
+ # # Call the update_schema method.
492
+ # result = client.update_schema request
493
+ #
494
+ # # The returned object is of type Gapic::Operation. You can use it to
495
+ # # check the status of an operation, cancel it, or wait for results.
496
+ # # Here is how to wait for a response.
497
+ # result.wait_until_done! timeout: 60
498
+ # if result.response?
499
+ # p result.response
500
+ # else
501
+ # puts "No response received."
502
+ # end
503
+ #
422
504
  def update_schema request, options = nil
423
505
  raise ::ArgumentError, "request must be provided" if request.nil?
424
506
 
@@ -483,6 +565,29 @@ module Google
483
565
  # @return [::Gapic::Operation]
484
566
  #
485
567
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
568
+ #
569
+ # @example Basic example
570
+ # require "google/cloud/discovery_engine/v1beta"
571
+ #
572
+ # # Create a client object. The client can be reused for multiple calls.
573
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client.new
574
+ #
575
+ # # Create a request. To set request fields, pass in keyword arguments.
576
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteSchemaRequest.new
577
+ #
578
+ # # Call the delete_schema method.
579
+ # result = client.delete_schema request
580
+ #
581
+ # # The returned object is of type Gapic::Operation. You can use it to
582
+ # # check the status of an operation, cancel it, or wait for results.
583
+ # # Here is how to wait for a response.
584
+ # result.wait_until_done! timeout: 60
585
+ # if result.response?
586
+ # p result.response
587
+ # else
588
+ # puts "No response received."
589
+ # end
590
+ #
486
591
  def delete_schema request, options = nil
487
592
  raise ::ArgumentError, "request must be provided" if request.nil?
488
593
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -517,6 +518,14 @@ module Google
517
518
  end
518
519
  end
519
520
 
521
+ ##
522
+ # Configuration for the channel pool
523
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
524
+ #
525
+ def channel_pool
526
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
527
+ end
528
+
520
529
  ##
521
530
  # Configuration RPC class for the SearchService API.
522
531
  #
@@ -326,6 +326,26 @@ module Google
326
326
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse]
327
327
  #
328
328
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
329
+ #
330
+ # @example Basic example
331
+ # require "google/cloud/discovery_engine/v1beta"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SearchService::Rest::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::DiscoveryEngine::V1beta::SearchRequest.new
338
+ #
339
+ # # Call the search method.
340
+ # result = client.search request
341
+ #
342
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
343
+ # # over elements, and API calls will be issued to fetch pages as needed.
344
+ # result.each do |item|
345
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult.
346
+ # p item
347
+ # end
348
+ #
329
349
  def search request, options = nil
330
350
  raise ::ArgumentError, "request must be provided" if request.nil?
331
351
 
@@ -161,7 +161,8 @@ module Google
161
161
  credentials: credentials,
162
162
  endpoint: @config.endpoint,
163
163
  channel_args: @config.channel_args,
164
- interceptors: @config.interceptors
164
+ interceptors: @config.interceptors,
165
+ channel_pool_config: @config.channel_pool
165
166
  )
166
167
  end
167
168
 
@@ -599,6 +600,14 @@ module Google
599
600
  end
600
601
  end
601
602
 
603
+ ##
604
+ # Configuration for the channel pool
605
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
606
+ #
607
+ def channel_pool
608
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
609
+ end
610
+
602
611
  ##
603
612
  # Configuration RPC class for the UserEventService API.
604
613
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -202,6 +202,22 @@ module Google
202
202
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::UserEvent]
203
203
  #
204
204
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
205
+ #
206
+ # @example Basic example
207
+ # require "google/cloud/discovery_engine/v1beta"
208
+ #
209
+ # # Create a client object. The client can be reused for multiple calls.
210
+ # client = Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Rest::Client.new
211
+ #
212
+ # # Create a request. To set request fields, pass in keyword arguments.
213
+ # request = Google::Cloud::DiscoveryEngine::V1beta::WriteUserEventRequest.new
214
+ #
215
+ # # Call the write_user_event method.
216
+ # result = client.write_user_event request
217
+ #
218
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::UserEvent.
219
+ # p result
220
+ #
205
221
  def write_user_event request, options = nil
206
222
  raise ::ArgumentError, "request must be provided" if request.nil?
207
223
 
@@ -281,6 +297,22 @@ module Google
281
297
  # @return [::Google::Api::HttpBody]
282
298
  #
283
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
300
+ #
301
+ # @example Basic example
302
+ # require "google/cloud/discovery_engine/v1beta"
303
+ #
304
+ # # Create a client object. The client can be reused for multiple calls.
305
+ # client = Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Rest::Client.new
306
+ #
307
+ # # Create a request. To set request fields, pass in keyword arguments.
308
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CollectUserEventRequest.new
309
+ #
310
+ # # Call the collect_user_event method.
311
+ # result = client.collect_user_event request
312
+ #
313
+ # # The returned object is of type Google::Api::HttpBody.
314
+ # p result
315
+ #
284
316
  def collect_user_event request, options = nil
285
317
  raise ::ArgumentError, "request must be provided" if request.nil?
286
318
 
@@ -359,6 +391,29 @@ module Google
359
391
  # @return [::Gapic::Operation]
360
392
  #
361
393
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ #
395
+ # @example Basic example
396
+ # require "google/cloud/discovery_engine/v1beta"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ImportUserEventsRequest.new
403
+ #
404
+ # # Call the import_user_events method.
405
+ # result = client.import_user_events request
406
+ #
407
+ # # The returned object is of type Gapic::Operation. You can use it to
408
+ # # check the status of an operation, cancel it, or wait for results.
409
+ # # Here is how to wait for a response.
410
+ # result.wait_until_done! timeout: 60
411
+ # if result.response?
412
+ # p result.response
413
+ # else
414
+ # puts "No response received."
415
+ # end
416
+ #
362
417
  def import_user_events request, options = nil
363
418
  raise ::ArgumentError, "request must be provided" if request.nil?
364
419
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1beta
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-12 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: 0.19.1
19
+ version: 0.20.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: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a