google-cloud-discovery_engine-v1 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +16 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +100 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +130 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +75 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +105 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +75 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +20 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +75 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612779fb26fbf2d52a5d3c825d5e664bc23206248dc5a171b723e7d5f5e1a852
|
4
|
+
data.tar.gz: ee192e70a8de293037cb9b2d8d97788c7501f7537e647bb20d330a304835ebf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5642a09d8b0e95211e5feeae43578c80fec411a6d08334852c199c4eb3de7eba954a4b4a5fb5c24e680923313f619e6c3e15df350c0bd90593c07225f08a6fa
|
7
|
+
data.tar.gz: ffb576b76c3bf6ddb71389b7e36add869500050a4bf7d42a146b5a99d401f12fdce475e872ec4b84ee46965970c00f58a963903d03e543600e33baced6315caf
|
@@ -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::V1::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/v1"
|
230
|
+
#
|
231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
232
|
+
# client = Google::Cloud::DiscoveryEngine::V1::CompletionService::Rest::Client.new
|
233
|
+
#
|
234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
235
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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::V1::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/v1"
|
224
|
+
#
|
225
|
+
# # Create a client object. The client can be reused for multiple calls.
|
226
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
227
|
+
#
|
228
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
229
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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::V1::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/v1"
|
308
|
+
#
|
309
|
+
# # Create a client object. The client can be reused for multiple calls.
|
310
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
311
|
+
#
|
312
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
313
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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/v1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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::V1::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/v1"
|
560
|
+
#
|
561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
562
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
563
|
+
#
|
564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
565
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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::V1::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/v1"
|
663
|
+
#
|
664
|
+
# # Create a client object. The client can be reused for multiple calls.
|
665
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Rest::Client.new
|
666
|
+
#
|
667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
668
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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
|
|
@@ -162,7 +162,8 @@ module Google
|
|
162
162
|
credentials: credentials,
|
163
163
|
endpoint: @config.endpoint,
|
164
164
|
channel_args: @config.channel_args,
|
165
|
-
interceptors: @config.interceptors
|
165
|
+
interceptors: @config.interceptors,
|
166
|
+
channel_pool_config: @config.channel_pool
|
166
167
|
)
|
167
168
|
end
|
168
169
|
|
@@ -1087,6 +1088,14 @@ module Google
|
|
1087
1088
|
end
|
1088
1089
|
end
|
1089
1090
|
|
1091
|
+
##
|
1092
|
+
# Configuration for the channel pool
|
1093
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1094
|
+
#
|
1095
|
+
def channel_pool
|
1096
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1097
|
+
end
|
1098
|
+
|
1090
1099
|
##
|
1091
1100
|
# Configuration RPC class for the DocumentService API.
|
1092
1101
|
#
|
@@ -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
|
#
|
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Google::Cloud::DiscoveryEngine::V1::Document]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/discovery_engine/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::DiscoveryEngine::V1::GetDocumentRequest.new
|
221
|
+
#
|
222
|
+
# # Call the get_document method.
|
223
|
+
# result = client.get_document request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1::Document.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def get_document request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -296,6 +312,26 @@ module Google
|
|
296
312
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::Document>]
|
297
313
|
#
|
298
314
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
315
|
+
#
|
316
|
+
# @example Basic example
|
317
|
+
# require "google/cloud/discovery_engine/v1"
|
318
|
+
#
|
319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
320
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
321
|
+
#
|
322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
323
|
+
# request = Google::Cloud::DiscoveryEngine::V1::ListDocumentsRequest.new
|
324
|
+
#
|
325
|
+
# # Call the list_documents method.
|
326
|
+
# result = client.list_documents request
|
327
|
+
#
|
328
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
329
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
330
|
+
# result.each do |item|
|
331
|
+
# # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::Document.
|
332
|
+
# p item
|
333
|
+
# end
|
334
|
+
#
|
299
335
|
def list_documents request, options = nil
|
300
336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
301
337
|
|
@@ -381,6 +417,22 @@ module Google
|
|
381
417
|
# @return [::Google::Cloud::DiscoveryEngine::V1::Document]
|
382
418
|
#
|
383
419
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
420
|
+
#
|
421
|
+
# @example Basic example
|
422
|
+
# require "google/cloud/discovery_engine/v1"
|
423
|
+
#
|
424
|
+
# # Create a client object. The client can be reused for multiple calls.
|
425
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
426
|
+
#
|
427
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
428
|
+
# request = Google::Cloud::DiscoveryEngine::V1::CreateDocumentRequest.new
|
429
|
+
#
|
430
|
+
# # Call the create_document method.
|
431
|
+
# result = client.create_document request
|
432
|
+
#
|
433
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1::Document.
|
434
|
+
# p result
|
435
|
+
#
|
384
436
|
def create_document request, options = nil
|
385
437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
386
438
|
|
@@ -456,6 +508,22 @@ module Google
|
|
456
508
|
# @return [::Google::Cloud::DiscoveryEngine::V1::Document]
|
457
509
|
#
|
458
510
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
511
|
+
#
|
512
|
+
# @example Basic example
|
513
|
+
# require "google/cloud/discovery_engine/v1"
|
514
|
+
#
|
515
|
+
# # Create a client object. The client can be reused for multiple calls.
|
516
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
517
|
+
#
|
518
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
519
|
+
# request = Google::Cloud::DiscoveryEngine::V1::UpdateDocumentRequest.new
|
520
|
+
#
|
521
|
+
# # Call the update_document method.
|
522
|
+
# result = client.update_document request
|
523
|
+
#
|
524
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1::Document.
|
525
|
+
# p result
|
526
|
+
#
|
459
527
|
def update_document request, options = nil
|
460
528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
461
529
|
|
@@ -527,6 +595,22 @@ module Google
|
|
527
595
|
# @return [::Google::Protobuf::Empty]
|
528
596
|
#
|
529
597
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
598
|
+
#
|
599
|
+
# @example Basic example
|
600
|
+
# require "google/cloud/discovery_engine/v1"
|
601
|
+
#
|
602
|
+
# # Create a client object. The client can be reused for multiple calls.
|
603
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
604
|
+
#
|
605
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
606
|
+
# request = Google::Cloud::DiscoveryEngine::V1::DeleteDocumentRequest.new
|
607
|
+
#
|
608
|
+
# # Call the delete_document method.
|
609
|
+
# result = client.delete_document request
|
610
|
+
#
|
611
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
612
|
+
# p result
|
613
|
+
#
|
530
614
|
def delete_document request, options = nil
|
531
615
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
532
616
|
|
@@ -658,6 +742,29 @@ module Google
|
|
658
742
|
# @return [::Gapic::Operation]
|
659
743
|
#
|
660
744
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
745
|
+
#
|
746
|
+
# @example Basic example
|
747
|
+
# require "google/cloud/discovery_engine/v1"
|
748
|
+
#
|
749
|
+
# # Create a client object. The client can be reused for multiple calls.
|
750
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
751
|
+
#
|
752
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
753
|
+
# request = Google::Cloud::DiscoveryEngine::V1::ImportDocumentsRequest.new
|
754
|
+
#
|
755
|
+
# # Call the import_documents method.
|
756
|
+
# result = client.import_documents request
|
757
|
+
#
|
758
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
759
|
+
# # check the status of an operation, cancel it, or wait for results.
|
760
|
+
# # Here is how to wait for a response.
|
761
|
+
# result.wait_until_done! timeout: 60
|
762
|
+
# if result.response?
|
763
|
+
# p result.response
|
764
|
+
# else
|
765
|
+
# puts "No response received."
|
766
|
+
# end
|
767
|
+
#
|
661
768
|
def import_documents request, options = nil
|
662
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
663
770
|
|
@@ -744,6 +851,29 @@ module Google
|
|
744
851
|
# @return [::Gapic::Operation]
|
745
852
|
#
|
746
853
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
854
|
+
#
|
855
|
+
# @example Basic example
|
856
|
+
# require "google/cloud/discovery_engine/v1"
|
857
|
+
#
|
858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
859
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DocumentService::Rest::Client.new
|
860
|
+
#
|
861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
862
|
+
# request = Google::Cloud::DiscoveryEngine::V1::PurgeDocumentsRequest.new
|
863
|
+
#
|
864
|
+
# # Call the purge_documents method.
|
865
|
+
# result = client.purge_documents request
|
866
|
+
#
|
867
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
868
|
+
# # check the status of an operation, cancel it, or wait for results.
|
869
|
+
# # Here is how to wait for a response.
|
870
|
+
# result.wait_until_done! timeout: 60
|
871
|
+
# if result.response?
|
872
|
+
# p result.response
|
873
|
+
# else
|
874
|
+
# puts "No response received."
|
875
|
+
# end
|
876
|
+
#
|
747
877
|
def purge_documents request, options = nil
|
748
878
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
749
879
|
|
@@ -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
|
|
@@ -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
|
|
@@ -784,6 +785,14 @@ module Google
|
|
784
785
|
end
|
785
786
|
end
|
786
787
|
|
788
|
+
##
|
789
|
+
# Configuration for the channel pool
|
790
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
791
|
+
#
|
792
|
+
def channel_pool
|
793
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
794
|
+
end
|
795
|
+
|
787
796
|
##
|
788
797
|
# Configuration RPC class for the SchemaService API.
|
789
798
|
#
|
@@ -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::V1::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/v1"
|
201
|
+
#
|
202
|
+
# # Create a client object. The client can be reused for multiple calls.
|
203
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client.new
|
204
|
+
#
|
205
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
206
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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::V1::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/v1"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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
|
|
@@ -349,6 +385,29 @@ module Google
|
|
349
385
|
# @return [::Gapic::Operation]
|
350
386
|
#
|
351
387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
|
+
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/discovery_engine/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::DiscoveryEngine::V1::CreateSchemaRequest.new
|
397
|
+
#
|
398
|
+
# # Call the create_schema method.
|
399
|
+
# result = client.create_schema request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
402
|
+
# # check the status of an operation, cancel it, or wait for results.
|
403
|
+
# # Here is how to wait for a response.
|
404
|
+
# result.wait_until_done! timeout: 60
|
405
|
+
# if result.response?
|
406
|
+
# p result.response
|
407
|
+
# else
|
408
|
+
# puts "No response received."
|
409
|
+
# end
|
410
|
+
#
|
352
411
|
def create_schema request, options = nil
|
353
412
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
413
|
|
@@ -416,6 +475,29 @@ module Google
|
|
416
475
|
# @return [::Gapic::Operation]
|
417
476
|
#
|
418
477
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
478
|
+
#
|
479
|
+
# @example Basic example
|
480
|
+
# require "google/cloud/discovery_engine/v1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::DiscoveryEngine::V1::UpdateSchemaRequest.new
|
487
|
+
#
|
488
|
+
# # Call the update_schema method.
|
489
|
+
# result = client.update_schema request
|
490
|
+
#
|
491
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
492
|
+
# # check the status of an operation, cancel it, or wait for results.
|
493
|
+
# # Here is how to wait for a response.
|
494
|
+
# result.wait_until_done! timeout: 60
|
495
|
+
# if result.response?
|
496
|
+
# p result.response
|
497
|
+
# else
|
498
|
+
# puts "No response received."
|
499
|
+
# end
|
500
|
+
#
|
419
501
|
def update_schema request, options = nil
|
420
502
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
421
503
|
|
@@ -480,6 +562,29 @@ module Google
|
|
480
562
|
# @return [::Gapic::Operation]
|
481
563
|
#
|
482
564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
565
|
+
#
|
566
|
+
# @example Basic example
|
567
|
+
# require "google/cloud/discovery_engine/v1"
|
568
|
+
#
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
570
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client.new
|
571
|
+
#
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
573
|
+
# request = Google::Cloud::DiscoveryEngine::V1::DeleteSchemaRequest.new
|
574
|
+
#
|
575
|
+
# # Call the delete_schema method.
|
576
|
+
# result = client.delete_schema request
|
577
|
+
#
|
578
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
579
|
+
# # check the status of an operation, cancel it, or wait for results.
|
580
|
+
# # Here is how to wait for a response.
|
581
|
+
# result.wait_until_done! timeout: 60
|
582
|
+
# if result.response?
|
583
|
+
# p result.response
|
584
|
+
# else
|
585
|
+
# puts "No response received."
|
586
|
+
# end
|
587
|
+
#
|
483
588
|
def delete_schema request, options = nil
|
484
589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
485
590
|
|
@@ -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
|
|
@@ -488,6 +489,14 @@ module Google
|
|
488
489
|
end
|
489
490
|
end
|
490
491
|
|
492
|
+
##
|
493
|
+
# Configuration for the channel pool
|
494
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
495
|
+
#
|
496
|
+
def channel_pool
|
497
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
498
|
+
end
|
499
|
+
|
491
500
|
##
|
492
501
|
# Configuration RPC class for the SearchService API.
|
493
502
|
#
|
@@ -297,6 +297,26 @@ module Google
|
|
297
297
|
# @return [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
|
298
298
|
#
|
299
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/discovery_engine/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::DiscoveryEngine::V1::SearchService::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::DiscoveryEngine::V1::SearchRequest.new
|
309
|
+
#
|
310
|
+
# # Call the search method.
|
311
|
+
# result = client.search request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
314
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
315
|
+
# result.each do |item|
|
316
|
+
# # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult.
|
317
|
+
# p item
|
318
|
+
# end
|
319
|
+
#
|
300
320
|
def search request, options = nil
|
301
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
302
322
|
|
@@ -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::V1::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/v1"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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::V1::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/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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/v1"
|
397
|
+
#
|
398
|
+
# # Create a client object. The client can be reused for multiple calls.
|
399
|
+
# client = Google::Cloud::DiscoveryEngine::V1::UserEventService::Rest::Client.new
|
400
|
+
#
|
401
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
402
|
+
# request = Google::Cloud::DiscoveryEngine::V1::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
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-discovery_engine-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-
|
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
|
+
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.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|