google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
- metadata +16 -2
@@ -201,6 +201,27 @@ module Google
|
|
201
201
|
#
|
202
202
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
203
203
|
#
|
204
|
+
# @example Basic example
|
205
|
+
# require "google/cloud/dialogflow/cx/v3"
|
206
|
+
#
|
207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
208
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
209
|
+
#
|
210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
211
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest.new
|
212
|
+
#
|
213
|
+
# # Call the list_test_cases method.
|
214
|
+
# result = client.list_test_cases request
|
215
|
+
#
|
216
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
217
|
+
# # iterate over all elements by calling #each, and the enumerable
|
218
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
219
|
+
# # methods are also available for managing paging directly.
|
220
|
+
# result.each do |response|
|
221
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCase.
|
222
|
+
# p response
|
223
|
+
# end
|
224
|
+
#
|
204
225
|
def list_test_cases request, options = nil
|
205
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
227
|
|
@@ -218,9 +239,11 @@ module Google
|
|
218
239
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
219
240
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
220
241
|
|
221
|
-
header_params = {
|
222
|
-
|
223
|
-
|
242
|
+
header_params = {}
|
243
|
+
if request.parent
|
244
|
+
header_params["parent"] = request.parent
|
245
|
+
end
|
246
|
+
|
224
247
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
225
248
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
226
249
|
|
@@ -274,6 +297,21 @@ module Google
|
|
274
297
|
#
|
275
298
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
276
299
|
#
|
300
|
+
# @example Basic example
|
301
|
+
# require "google/cloud/dialogflow/cx/v3"
|
302
|
+
#
|
303
|
+
# # Create a client object. The client can be reused for multiple calls.
|
304
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
305
|
+
#
|
306
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
307
|
+
# request = Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest.new
|
308
|
+
#
|
309
|
+
# # Call the batch_delete_test_cases method.
|
310
|
+
# result = client.batch_delete_test_cases request
|
311
|
+
#
|
312
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
313
|
+
# p result
|
314
|
+
#
|
277
315
|
def batch_delete_test_cases request, options = nil
|
278
316
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
317
|
|
@@ -291,9 +329,11 @@ module Google
|
|
291
329
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
292
330
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
293
331
|
|
294
|
-
header_params = {
|
295
|
-
|
296
|
-
|
332
|
+
header_params = {}
|
333
|
+
if request.parent
|
334
|
+
header_params["parent"] = request.parent
|
335
|
+
end
|
336
|
+
|
297
337
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
298
338
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
299
339
|
|
@@ -344,6 +384,21 @@ module Google
|
|
344
384
|
#
|
345
385
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
346
386
|
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/dialogflow/cx/v3"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest.new
|
395
|
+
#
|
396
|
+
# # Call the get_test_case method.
|
397
|
+
# result = client.get_test_case request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
400
|
+
# p result
|
401
|
+
#
|
347
402
|
def get_test_case request, options = nil
|
348
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
404
|
|
@@ -361,9 +416,11 @@ module Google
|
|
361
416
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
362
417
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
363
418
|
|
364
|
-
header_params = {
|
365
|
-
|
366
|
-
|
419
|
+
header_params = {}
|
420
|
+
if request.name
|
421
|
+
header_params["name"] = request.name
|
422
|
+
end
|
423
|
+
|
367
424
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
368
425
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
369
426
|
|
@@ -415,6 +472,21 @@ module Google
|
|
415
472
|
#
|
416
473
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
417
474
|
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/dialogflow/cx/v3"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest.new
|
483
|
+
#
|
484
|
+
# # Call the create_test_case method.
|
485
|
+
# result = client.create_test_case request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
488
|
+
# p result
|
489
|
+
#
|
418
490
|
def create_test_case request, options = nil
|
419
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
420
492
|
|
@@ -432,9 +504,11 @@ module Google
|
|
432
504
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
433
505
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
434
506
|
|
435
|
-
header_params = {
|
436
|
-
|
437
|
-
|
507
|
+
header_params = {}
|
508
|
+
if request.parent
|
509
|
+
header_params["parent"] = request.parent
|
510
|
+
end
|
511
|
+
|
438
512
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
439
513
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
440
514
|
|
@@ -487,6 +561,21 @@ module Google
|
|
487
561
|
#
|
488
562
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
489
563
|
#
|
564
|
+
# @example Basic example
|
565
|
+
# require "google/cloud/dialogflow/cx/v3"
|
566
|
+
#
|
567
|
+
# # Create a client object. The client can be reused for multiple calls.
|
568
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
569
|
+
#
|
570
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
571
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest.new
|
572
|
+
#
|
573
|
+
# # Call the update_test_case method.
|
574
|
+
# result = client.update_test_case request
|
575
|
+
#
|
576
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
577
|
+
# p result
|
578
|
+
#
|
490
579
|
def update_test_case request, options = nil
|
491
580
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
492
581
|
|
@@ -504,9 +593,11 @@ module Google
|
|
504
593
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
505
594
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
506
595
|
|
507
|
-
header_params = {
|
508
|
-
|
509
|
-
|
596
|
+
header_params = {}
|
597
|
+
if request.test_case&.name
|
598
|
+
header_params["test_case.name"] = request.test_case.name
|
599
|
+
end
|
600
|
+
|
510
601
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
511
602
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
512
603
|
|
@@ -528,6 +619,7 @@ module Google
|
|
528
619
|
|
529
620
|
##
|
530
621
|
# Kicks off a test case run.
|
622
|
+
#
|
531
623
|
# This method is a [long-running
|
532
624
|
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
533
625
|
# The returned `Operation` type has the following method-specific fields:
|
@@ -566,6 +658,28 @@ module Google
|
|
566
658
|
#
|
567
659
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
568
660
|
#
|
661
|
+
# @example Basic example
|
662
|
+
# require "google/cloud/dialogflow/cx/v3"
|
663
|
+
#
|
664
|
+
# # Create a client object. The client can be reused for multiple calls.
|
665
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
666
|
+
#
|
667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
668
|
+
# request = Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest.new
|
669
|
+
#
|
670
|
+
# # Call the run_test_case method.
|
671
|
+
# result = client.run_test_case request
|
672
|
+
#
|
673
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
674
|
+
# # object to check the status of an operation, cancel it, or wait
|
675
|
+
# # for results. Here is how to block until completion:
|
676
|
+
# result.wait_until_done! timeout: 60
|
677
|
+
# if result.response?
|
678
|
+
# p result.response
|
679
|
+
# else
|
680
|
+
# puts "Error!"
|
681
|
+
# end
|
682
|
+
#
|
569
683
|
def run_test_case request, options = nil
|
570
684
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
571
685
|
|
@@ -583,9 +697,11 @@ module Google
|
|
583
697
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
584
698
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
585
699
|
|
586
|
-
header_params = {
|
587
|
-
|
588
|
-
|
700
|
+
header_params = {}
|
701
|
+
if request.name
|
702
|
+
header_params["name"] = request.name
|
703
|
+
end
|
704
|
+
|
589
705
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
590
706
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
591
707
|
|
@@ -609,6 +725,13 @@ module Google
|
|
609
725
|
##
|
610
726
|
# Kicks off a batch run of test cases.
|
611
727
|
#
|
728
|
+
# This method is a [long-running
|
729
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
730
|
+
# The returned `Operation` type has the following method-specific fields:
|
731
|
+
#
|
732
|
+
# - `metadata`: {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesMetadata BatchRunTestCasesMetadata}
|
733
|
+
# - `response`: {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesResponse BatchRunTestCasesResponse}
|
734
|
+
#
|
612
735
|
# @overload batch_run_test_cases(request, options = nil)
|
613
736
|
# Pass arguments to `batch_run_test_cases` via a request object, either of type
|
614
737
|
# {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest} or an equivalent Hash.
|
@@ -643,6 +766,28 @@ module Google
|
|
643
766
|
#
|
644
767
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
645
768
|
#
|
769
|
+
# @example Basic example
|
770
|
+
# require "google/cloud/dialogflow/cx/v3"
|
771
|
+
#
|
772
|
+
# # Create a client object. The client can be reused for multiple calls.
|
773
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
774
|
+
#
|
775
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
776
|
+
# request = Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest.new
|
777
|
+
#
|
778
|
+
# # Call the batch_run_test_cases method.
|
779
|
+
# result = client.batch_run_test_cases request
|
780
|
+
#
|
781
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
782
|
+
# # object to check the status of an operation, cancel it, or wait
|
783
|
+
# # for results. Here is how to block until completion:
|
784
|
+
# result.wait_until_done! timeout: 60
|
785
|
+
# if result.response?
|
786
|
+
# p result.response
|
787
|
+
# else
|
788
|
+
# puts "Error!"
|
789
|
+
# end
|
790
|
+
#
|
646
791
|
def batch_run_test_cases request, options = nil
|
647
792
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
648
793
|
|
@@ -660,9 +805,11 @@ module Google
|
|
660
805
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
661
806
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
662
807
|
|
663
|
-
header_params = {
|
664
|
-
|
665
|
-
|
808
|
+
header_params = {}
|
809
|
+
if request.parent
|
810
|
+
header_params["parent"] = request.parent
|
811
|
+
end
|
812
|
+
|
666
813
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
667
814
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
668
815
|
|
@@ -715,6 +862,21 @@ module Google
|
|
715
862
|
#
|
716
863
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
717
864
|
#
|
865
|
+
# @example Basic example
|
866
|
+
# require "google/cloud/dialogflow/cx/v3"
|
867
|
+
#
|
868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
869
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
870
|
+
#
|
871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
872
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest.new
|
873
|
+
#
|
874
|
+
# # Call the calculate_coverage method.
|
875
|
+
# result = client.calculate_coverage request
|
876
|
+
#
|
877
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse.
|
878
|
+
# p result
|
879
|
+
#
|
718
880
|
def calculate_coverage request, options = nil
|
719
881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
720
882
|
|
@@ -732,9 +894,11 @@ module Google
|
|
732
894
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
733
895
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
734
896
|
|
735
|
-
header_params = {
|
736
|
-
|
737
|
-
|
897
|
+
header_params = {}
|
898
|
+
if request.agent
|
899
|
+
header_params["agent"] = request.agent
|
900
|
+
end
|
901
|
+
|
738
902
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
739
903
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
740
904
|
|
@@ -759,6 +923,13 @@ module Google
|
|
759
923
|
# always creates new test cases and won't overwite any existing ones. The
|
760
924
|
# provided ID in the imported test case is neglected.
|
761
925
|
#
|
926
|
+
# This method is a [long-running
|
927
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
928
|
+
# The returned `Operation` type has the following method-specific fields:
|
929
|
+
#
|
930
|
+
# - `metadata`: {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesMetadata ImportTestCasesMetadata}
|
931
|
+
# - `response`: {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesResponse ImportTestCasesResponse}
|
932
|
+
#
|
762
933
|
# @overload import_test_cases(request, options = nil)
|
763
934
|
# Pass arguments to `import_test_cases` via a request object, either of type
|
764
935
|
# {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest} or an equivalent Hash.
|
@@ -792,6 +963,28 @@ module Google
|
|
792
963
|
#
|
793
964
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
794
965
|
#
|
966
|
+
# @example Basic example
|
967
|
+
# require "google/cloud/dialogflow/cx/v3"
|
968
|
+
#
|
969
|
+
# # Create a client object. The client can be reused for multiple calls.
|
970
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
971
|
+
#
|
972
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
973
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest.new
|
974
|
+
#
|
975
|
+
# # Call the import_test_cases method.
|
976
|
+
# result = client.import_test_cases request
|
977
|
+
#
|
978
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
979
|
+
# # object to check the status of an operation, cancel it, or wait
|
980
|
+
# # for results. Here is how to block until completion:
|
981
|
+
# result.wait_until_done! timeout: 60
|
982
|
+
# if result.response?
|
983
|
+
# p result.response
|
984
|
+
# else
|
985
|
+
# puts "Error!"
|
986
|
+
# end
|
987
|
+
#
|
795
988
|
def import_test_cases request, options = nil
|
796
989
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
797
990
|
|
@@ -809,9 +1002,11 @@ module Google
|
|
809
1002
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
810
1003
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
811
1004
|
|
812
|
-
header_params = {
|
813
|
-
|
814
|
-
|
1005
|
+
header_params = {}
|
1006
|
+
if request.parent
|
1007
|
+
header_params["parent"] = request.parent
|
1008
|
+
end
|
1009
|
+
|
815
1010
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
816
1011
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
817
1012
|
|
@@ -836,6 +1031,13 @@ module Google
|
|
836
1031
|
# Exports the test cases under the agent to a Cloud Storage bucket or a local
|
837
1032
|
# file. Filter can be applied to export a subset of test cases.
|
838
1033
|
#
|
1034
|
+
# This method is a [long-running
|
1035
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
1036
|
+
# The returned `Operation` type has the following method-specific fields:
|
1037
|
+
#
|
1038
|
+
# - `metadata`: {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesMetadata ExportTestCasesMetadata}
|
1039
|
+
# - `response`: {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesResponse ExportTestCasesResponse}
|
1040
|
+
#
|
839
1041
|
# @overload export_test_cases(request, options = nil)
|
840
1042
|
# Pass arguments to `export_test_cases` via a request object, either of type
|
841
1043
|
# {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest} or an equivalent Hash.
|
@@ -882,6 +1084,28 @@ module Google
|
|
882
1084
|
#
|
883
1085
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
884
1086
|
#
|
1087
|
+
# @example Basic example
|
1088
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1089
|
+
#
|
1090
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1091
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
1092
|
+
#
|
1093
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1094
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest.new
|
1095
|
+
#
|
1096
|
+
# # Call the export_test_cases method.
|
1097
|
+
# result = client.export_test_cases request
|
1098
|
+
#
|
1099
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1100
|
+
# # object to check the status of an operation, cancel it, or wait
|
1101
|
+
# # for results. Here is how to block until completion:
|
1102
|
+
# result.wait_until_done! timeout: 60
|
1103
|
+
# if result.response?
|
1104
|
+
# p result.response
|
1105
|
+
# else
|
1106
|
+
# puts "Error!"
|
1107
|
+
# end
|
1108
|
+
#
|
885
1109
|
def export_test_cases request, options = nil
|
886
1110
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
887
1111
|
|
@@ -899,9 +1123,11 @@ module Google
|
|
899
1123
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
900
1124
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
901
1125
|
|
902
|
-
header_params = {
|
903
|
-
|
904
|
-
|
1126
|
+
header_params = {}
|
1127
|
+
if request.parent
|
1128
|
+
header_params["parent"] = request.parent
|
1129
|
+
end
|
1130
|
+
|
905
1131
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
906
1132
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
907
1133
|
|
@@ -984,6 +1210,27 @@ module Google
|
|
984
1210
|
#
|
985
1211
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
986
1212
|
#
|
1213
|
+
# @example Basic example
|
1214
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1215
|
+
#
|
1216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1217
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
1218
|
+
#
|
1219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1220
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest.new
|
1221
|
+
#
|
1222
|
+
# # Call the list_test_case_results method.
|
1223
|
+
# result = client.list_test_case_results request
|
1224
|
+
#
|
1225
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1226
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1227
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1228
|
+
# # methods are also available for managing paging directly.
|
1229
|
+
# result.each do |response|
|
1230
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
|
1231
|
+
# p response
|
1232
|
+
# end
|
1233
|
+
#
|
987
1234
|
def list_test_case_results request, options = nil
|
988
1235
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
989
1236
|
|
@@ -1001,9 +1248,11 @@ module Google
|
|
1001
1248
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
1002
1249
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1003
1250
|
|
1004
|
-
header_params = {
|
1005
|
-
|
1006
|
-
|
1251
|
+
header_params = {}
|
1252
|
+
if request.parent
|
1253
|
+
header_params["parent"] = request.parent
|
1254
|
+
end
|
1255
|
+
|
1007
1256
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1008
1257
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1009
1258
|
|
@@ -1055,6 +1304,21 @@ module Google
|
|
1055
1304
|
#
|
1056
1305
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1057
1306
|
#
|
1307
|
+
# @example Basic example
|
1308
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1309
|
+
#
|
1310
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1311
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Client.new
|
1312
|
+
#
|
1313
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1314
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest.new
|
1315
|
+
#
|
1316
|
+
# # Call the get_test_case_result method.
|
1317
|
+
# result = client.get_test_case_result request
|
1318
|
+
#
|
1319
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
|
1320
|
+
# p result
|
1321
|
+
#
|
1058
1322
|
def get_test_case_result request, options = nil
|
1059
1323
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1060
1324
|
|
@@ -1072,9 +1336,11 @@ module Google
|
|
1072
1336
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
1073
1337
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1074
1338
|
|
1075
|
-
header_params = {
|
1076
|
-
|
1077
|
-
|
1339
|
+
header_params = {}
|
1340
|
+
if request.name
|
1341
|
+
header_params["name"] = request.name
|
1342
|
+
end
|
1343
|
+
|
1078
1344
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1079
1345
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1080
1346
|
|