google-cloud-dialogflow-cx-v3 0.3.0 → 0.3.1
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/dialogflow/cx/v3/agents/client.rb +200 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +46 -6
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +46 -6
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +226 -27
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +227 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +280 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +140 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- metadata +2 -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
|
|
@@ -567,6 +658,28 @@ module Google
|
|
567
658
|
#
|
568
659
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
569
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
|
+
#
|
570
683
|
def run_test_case request, options = nil
|
571
684
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
572
685
|
|
@@ -584,9 +697,11 @@ module Google
|
|
584
697
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
585
698
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
586
699
|
|
587
|
-
header_params = {
|
588
|
-
|
589
|
-
|
700
|
+
header_params = {}
|
701
|
+
if request.name
|
702
|
+
header_params["name"] = request.name
|
703
|
+
end
|
704
|
+
|
590
705
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
591
706
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
592
707
|
|
@@ -651,6 +766,28 @@ module Google
|
|
651
766
|
#
|
652
767
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
653
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
|
+
#
|
654
791
|
def batch_run_test_cases request, options = nil
|
655
792
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
656
793
|
|
@@ -668,9 +805,11 @@ module Google
|
|
668
805
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
669
806
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
670
807
|
|
671
|
-
header_params = {
|
672
|
-
|
673
|
-
|
808
|
+
header_params = {}
|
809
|
+
if request.parent
|
810
|
+
header_params["parent"] = request.parent
|
811
|
+
end
|
812
|
+
|
674
813
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
675
814
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
676
815
|
|
@@ -723,6 +862,21 @@ module Google
|
|
723
862
|
#
|
724
863
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
725
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
|
+
#
|
726
880
|
def calculate_coverage request, options = nil
|
727
881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
728
882
|
|
@@ -740,9 +894,11 @@ module Google
|
|
740
894
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
741
895
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
742
896
|
|
743
|
-
header_params = {
|
744
|
-
|
745
|
-
|
897
|
+
header_params = {}
|
898
|
+
if request.agent
|
899
|
+
header_params["agent"] = request.agent
|
900
|
+
end
|
901
|
+
|
746
902
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
747
903
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
748
904
|
|
@@ -807,6 +963,28 @@ module Google
|
|
807
963
|
#
|
808
964
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
809
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
|
+
#
|
810
988
|
def import_test_cases request, options = nil
|
811
989
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
812
990
|
|
@@ -824,9 +1002,11 @@ module Google
|
|
824
1002
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
825
1003
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
1004
|
|
827
|
-
header_params = {
|
828
|
-
|
829
|
-
|
1005
|
+
header_params = {}
|
1006
|
+
if request.parent
|
1007
|
+
header_params["parent"] = request.parent
|
1008
|
+
end
|
1009
|
+
|
830
1010
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
831
1011
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
832
1012
|
|
@@ -904,6 +1084,28 @@ module Google
|
|
904
1084
|
#
|
905
1085
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
906
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
|
+
#
|
907
1109
|
def export_test_cases request, options = nil
|
908
1110
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
909
1111
|
|
@@ -921,9 +1123,11 @@ module Google
|
|
921
1123
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
922
1124
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
923
1125
|
|
924
|
-
header_params = {
|
925
|
-
|
926
|
-
|
1126
|
+
header_params = {}
|
1127
|
+
if request.parent
|
1128
|
+
header_params["parent"] = request.parent
|
1129
|
+
end
|
1130
|
+
|
927
1131
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
928
1132
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
929
1133
|
|
@@ -1006,6 +1210,27 @@ module Google
|
|
1006
1210
|
#
|
1007
1211
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1008
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
|
+
#
|
1009
1234
|
def list_test_case_results request, options = nil
|
1010
1235
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1011
1236
|
|
@@ -1023,9 +1248,11 @@ module Google
|
|
1023
1248
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
1024
1249
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1025
1250
|
|
1026
|
-
header_params = {
|
1027
|
-
|
1028
|
-
|
1251
|
+
header_params = {}
|
1252
|
+
if request.parent
|
1253
|
+
header_params["parent"] = request.parent
|
1254
|
+
end
|
1255
|
+
|
1029
1256
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1030
1257
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1031
1258
|
|
@@ -1077,6 +1304,21 @@ module Google
|
|
1077
1304
|
#
|
1078
1305
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1079
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
|
+
#
|
1080
1322
|
def get_test_case_result request, options = nil
|
1081
1323
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1082
1324
|
|
@@ -1094,9 +1336,11 @@ module Google
|
|
1094
1336
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
1095
1337
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1096
1338
|
|
1097
|
-
header_params = {
|
1098
|
-
|
1099
|
-
|
1339
|
+
header_params = {}
|
1340
|
+
if request.name
|
1341
|
+
header_params["name"] = request.name
|
1342
|
+
end
|
1343
|
+
|
1100
1344
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1101
1345
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1102
1346
|
|
@@ -144,6 +144,27 @@ module Google
|
|
144
144
|
#
|
145
145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
146
146
|
#
|
147
|
+
# @example Basic example
|
148
|
+
# require "google/longrunning"
|
149
|
+
#
|
150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
151
|
+
# client = Google::Longrunning::Operations::Client.new
|
152
|
+
#
|
153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
154
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
155
|
+
#
|
156
|
+
# # Call the list_operations method.
|
157
|
+
# result = client.list_operations request
|
158
|
+
#
|
159
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
160
|
+
# # iterate over all elements by calling #each, and the enumerable
|
161
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
162
|
+
# # methods are also available for managing paging directly.
|
163
|
+
# result.each do |response|
|
164
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
165
|
+
# p response
|
166
|
+
# end
|
167
|
+
#
|
147
168
|
def list_operations request, options = nil
|
148
169
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
149
170
|
|
@@ -161,9 +182,11 @@ module Google
|
|
161
182
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
162
183
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
163
184
|
|
164
|
-
header_params = {
|
165
|
-
|
166
|
-
|
185
|
+
header_params = {}
|
186
|
+
if request.name
|
187
|
+
header_params["name"] = request.name
|
188
|
+
end
|
189
|
+
|
167
190
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
168
191
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
169
192
|
|
@@ -216,6 +239,28 @@ module Google
|
|
216
239
|
#
|
217
240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
241
|
#
|
242
|
+
# @example Basic example
|
243
|
+
# require "google/longrunning"
|
244
|
+
#
|
245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
246
|
+
# client = Google::Longrunning::Operations::Client.new
|
247
|
+
#
|
248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
249
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
250
|
+
#
|
251
|
+
# # Call the get_operation method.
|
252
|
+
# result = client.get_operation request
|
253
|
+
#
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
255
|
+
# # object to check the status of an operation, cancel it, or wait
|
256
|
+
# # for results. Here is how to block until completion:
|
257
|
+
# result.wait_until_done! timeout: 60
|
258
|
+
# if result.response?
|
259
|
+
# p result.response
|
260
|
+
# else
|
261
|
+
# puts "Error!"
|
262
|
+
# end
|
263
|
+
#
|
219
264
|
def get_operation request, options = nil
|
220
265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
266
|
|
@@ -233,9 +278,11 @@ module Google
|
|
233
278
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
234
279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
280
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
281
|
+
header_params = {}
|
282
|
+
if request.name
|
283
|
+
header_params["name"] = request.name
|
284
|
+
end
|
285
|
+
|
239
286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
288
|
|
@@ -288,6 +335,21 @@ module Google
|
|
288
335
|
#
|
289
336
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
337
|
#
|
338
|
+
# @example Basic example
|
339
|
+
# require "google/longrunning"
|
340
|
+
#
|
341
|
+
# # Create a client object. The client can be reused for multiple calls.
|
342
|
+
# client = Google::Longrunning::Operations::Client.new
|
343
|
+
#
|
344
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
345
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
346
|
+
#
|
347
|
+
# # Call the delete_operation method.
|
348
|
+
# result = client.delete_operation request
|
349
|
+
#
|
350
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
351
|
+
# p result
|
352
|
+
#
|
291
353
|
def delete_operation request, options = nil
|
292
354
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
355
|
|
@@ -305,9 +367,11 @@ module Google
|
|
305
367
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
306
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
369
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
370
|
+
header_params = {}
|
371
|
+
if request.name
|
372
|
+
header_params["name"] = request.name
|
373
|
+
end
|
374
|
+
|
311
375
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
376
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
377
|
|
@@ -365,6 +429,21 @@ module Google
|
|
365
429
|
#
|
366
430
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
367
431
|
#
|
432
|
+
# @example Basic example
|
433
|
+
# require "google/longrunning"
|
434
|
+
#
|
435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
436
|
+
# client = Google::Longrunning::Operations::Client.new
|
437
|
+
#
|
438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
439
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
440
|
+
#
|
441
|
+
# # Call the cancel_operation method.
|
442
|
+
# result = client.cancel_operation request
|
443
|
+
#
|
444
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
445
|
+
# p result
|
446
|
+
#
|
368
447
|
def cancel_operation request, options = nil
|
369
448
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
370
449
|
|
@@ -382,9 +461,11 @@ module Google
|
|
382
461
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
383
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
463
|
|
385
|
-
header_params = {
|
386
|
-
|
387
|
-
|
464
|
+
header_params = {}
|
465
|
+
if request.name
|
466
|
+
header_params["name"] = request.name
|
467
|
+
end
|
468
|
+
|
388
469
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
389
470
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
390
471
|
|
@@ -445,6 +526,28 @@ module Google
|
|
445
526
|
#
|
446
527
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
447
528
|
#
|
529
|
+
# @example Basic example
|
530
|
+
# require "google/longrunning"
|
531
|
+
#
|
532
|
+
# # Create a client object. The client can be reused for multiple calls.
|
533
|
+
# client = Google::Longrunning::Operations::Client.new
|
534
|
+
#
|
535
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
536
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
537
|
+
#
|
538
|
+
# # Call the wait_operation method.
|
539
|
+
# result = client.wait_operation request
|
540
|
+
#
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
542
|
+
# # object to check the status of an operation, cancel it, or wait
|
543
|
+
# # for results. Here is how to block until completion:
|
544
|
+
# result.wait_until_done! timeout: 60
|
545
|
+
# if result.response?
|
546
|
+
# p result.response
|
547
|
+
# else
|
548
|
+
# puts "Error!"
|
549
|
+
# end
|
550
|
+
#
|
448
551
|
def wait_operation request, options = nil
|
449
552
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
553
|
|