google-cloud-dialogflow-cx-v3 0.19.0 → 0.21.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/agent_pb.rb +6 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +189 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +44 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +4 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +39 -13
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +20 -5
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +58 -13
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +94 -4
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +37 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +49 -4
- data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +24 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +54 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +48 -3
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +38 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +9 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +13 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
- metadata +13 -5
@@ -206,6 +206,26 @@ module Google
|
|
206
206
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCase>]
|
207
207
|
#
|
208
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
209
|
+
#
|
210
|
+
# @example Basic example
|
211
|
+
# require "google/cloud/dialogflow/cx/v3"
|
212
|
+
#
|
213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
214
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
215
|
+
#
|
216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
217
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest.new
|
218
|
+
#
|
219
|
+
# # Call the list_test_cases method.
|
220
|
+
# result = client.list_test_cases request
|
221
|
+
#
|
222
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
223
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
224
|
+
# result.each do |item|
|
225
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCase.
|
226
|
+
# p item
|
227
|
+
# end
|
228
|
+
#
|
209
229
|
def list_test_cases request, options = nil
|
210
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
211
231
|
|
@@ -273,6 +293,22 @@ module Google
|
|
273
293
|
# @return [::Google::Protobuf::Empty]
|
274
294
|
#
|
275
295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
296
|
+
#
|
297
|
+
# @example Basic example
|
298
|
+
# require "google/cloud/dialogflow/cx/v3"
|
299
|
+
#
|
300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
301
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
302
|
+
#
|
303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
304
|
+
# request = Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest.new
|
305
|
+
#
|
306
|
+
# # Call the batch_delete_test_cases method.
|
307
|
+
# result = client.batch_delete_test_cases request
|
308
|
+
#
|
309
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
310
|
+
# p result
|
311
|
+
#
|
276
312
|
def batch_delete_test_cases request, options = nil
|
277
313
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
314
|
|
@@ -337,6 +373,22 @@ module Google
|
|
337
373
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
|
338
374
|
#
|
339
375
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
376
|
+
#
|
377
|
+
# @example Basic example
|
378
|
+
# require "google/cloud/dialogflow/cx/v3"
|
379
|
+
#
|
380
|
+
# # Create a client object. The client can be reused for multiple calls.
|
381
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
382
|
+
#
|
383
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
384
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest.new
|
385
|
+
#
|
386
|
+
# # Call the get_test_case method.
|
387
|
+
# result = client.get_test_case request
|
388
|
+
#
|
389
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
390
|
+
# p result
|
391
|
+
#
|
340
392
|
def get_test_case request, options = nil
|
341
393
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
394
|
|
@@ -402,6 +454,22 @@ module Google
|
|
402
454
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
|
403
455
|
#
|
404
456
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
457
|
+
#
|
458
|
+
# @example Basic example
|
459
|
+
# require "google/cloud/dialogflow/cx/v3"
|
460
|
+
#
|
461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
462
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
463
|
+
#
|
464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
465
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest.new
|
466
|
+
#
|
467
|
+
# # Call the create_test_case method.
|
468
|
+
# result = client.create_test_case request
|
469
|
+
#
|
470
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
471
|
+
# p result
|
472
|
+
#
|
405
473
|
def create_test_case request, options = nil
|
406
474
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
407
475
|
|
@@ -469,6 +537,22 @@ module Google
|
|
469
537
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
|
470
538
|
#
|
471
539
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
540
|
+
#
|
541
|
+
# @example Basic example
|
542
|
+
# require "google/cloud/dialogflow/cx/v3"
|
543
|
+
#
|
544
|
+
# # Create a client object. The client can be reused for multiple calls.
|
545
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
546
|
+
#
|
547
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
548
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest.new
|
549
|
+
#
|
550
|
+
# # Call the update_test_case method.
|
551
|
+
# result = client.update_test_case request
|
552
|
+
#
|
553
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
|
554
|
+
# p result
|
555
|
+
#
|
472
556
|
def update_test_case request, options = nil
|
473
557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
474
558
|
|
@@ -545,6 +629,29 @@ module Google
|
|
545
629
|
# @return [::Gapic::Operation]
|
546
630
|
#
|
547
631
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
632
|
+
#
|
633
|
+
# @example Basic example
|
634
|
+
# require "google/cloud/dialogflow/cx/v3"
|
635
|
+
#
|
636
|
+
# # Create a client object. The client can be reused for multiple calls.
|
637
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
638
|
+
#
|
639
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
640
|
+
# request = Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest.new
|
641
|
+
#
|
642
|
+
# # Call the run_test_case method.
|
643
|
+
# result = client.run_test_case request
|
644
|
+
#
|
645
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
646
|
+
# # check the status of an operation, cancel it, or wait for results.
|
647
|
+
# # Here is how to wait for a response.
|
648
|
+
# result.wait_until_done! timeout: 60
|
649
|
+
# if result.response?
|
650
|
+
# p result.response
|
651
|
+
# else
|
652
|
+
# puts "No response received."
|
653
|
+
# end
|
654
|
+
#
|
548
655
|
def run_test_case request, options = nil
|
549
656
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
550
657
|
|
@@ -625,6 +732,29 @@ module Google
|
|
625
732
|
# @return [::Gapic::Operation]
|
626
733
|
#
|
627
734
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
735
|
+
#
|
736
|
+
# @example Basic example
|
737
|
+
# require "google/cloud/dialogflow/cx/v3"
|
738
|
+
#
|
739
|
+
# # Create a client object. The client can be reused for multiple calls.
|
740
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
741
|
+
#
|
742
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
743
|
+
# request = Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest.new
|
744
|
+
#
|
745
|
+
# # Call the batch_run_test_cases method.
|
746
|
+
# result = client.batch_run_test_cases request
|
747
|
+
#
|
748
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
749
|
+
# # check the status of an operation, cancel it, or wait for results.
|
750
|
+
# # Here is how to wait for a response.
|
751
|
+
# result.wait_until_done! timeout: 60
|
752
|
+
# if result.response?
|
753
|
+
# p result.response
|
754
|
+
# else
|
755
|
+
# puts "No response received."
|
756
|
+
# end
|
757
|
+
#
|
628
758
|
def batch_run_test_cases request, options = nil
|
629
759
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
630
760
|
|
@@ -691,6 +821,22 @@ module Google
|
|
691
821
|
# @return [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse]
|
692
822
|
#
|
693
823
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
824
|
+
#
|
825
|
+
# @example Basic example
|
826
|
+
# require "google/cloud/dialogflow/cx/v3"
|
827
|
+
#
|
828
|
+
# # Create a client object. The client can be reused for multiple calls.
|
829
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
830
|
+
#
|
831
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
832
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest.new
|
833
|
+
#
|
834
|
+
# # Call the calculate_coverage method.
|
835
|
+
# result = client.calculate_coverage request
|
836
|
+
#
|
837
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse.
|
838
|
+
# p result
|
839
|
+
#
|
694
840
|
def calculate_coverage request, options = nil
|
695
841
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
696
842
|
|
@@ -777,6 +923,29 @@ module Google
|
|
777
923
|
# @return [::Gapic::Operation]
|
778
924
|
#
|
779
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
926
|
+
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/dialogflow/cx/v3"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest.new
|
935
|
+
#
|
936
|
+
# # Call the import_test_cases method.
|
937
|
+
# result = client.import_test_cases request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
940
|
+
# # check the status of an operation, cancel it, or wait for results.
|
941
|
+
# # Here is how to wait for a response.
|
942
|
+
# result.wait_until_done! timeout: 60
|
943
|
+
# if result.response?
|
944
|
+
# p result.response
|
945
|
+
# else
|
946
|
+
# puts "No response received."
|
947
|
+
# end
|
948
|
+
#
|
780
949
|
def import_test_cases request, options = nil
|
781
950
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
782
951
|
|
@@ -876,6 +1045,29 @@ module Google
|
|
876
1045
|
# @return [::Gapic::Operation]
|
877
1046
|
#
|
878
1047
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1048
|
+
#
|
1049
|
+
# @example Basic example
|
1050
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1051
|
+
#
|
1052
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1053
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
1054
|
+
#
|
1055
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1056
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest.new
|
1057
|
+
#
|
1058
|
+
# # Call the export_test_cases method.
|
1059
|
+
# result = client.export_test_cases request
|
1060
|
+
#
|
1061
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1062
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1063
|
+
# # Here is how to wait for a response.
|
1064
|
+
# result.wait_until_done! timeout: 60
|
1065
|
+
# if result.response?
|
1066
|
+
# p result.response
|
1067
|
+
# else
|
1068
|
+
# puts "No response received."
|
1069
|
+
# end
|
1070
|
+
#
|
879
1071
|
def export_test_cases request, options = nil
|
880
1072
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
881
1073
|
|
@@ -973,6 +1165,26 @@ module Google
|
|
973
1165
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
|
974
1166
|
#
|
975
1167
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1168
|
+
#
|
1169
|
+
# @example Basic example
|
1170
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1171
|
+
#
|
1172
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1173
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
1174
|
+
#
|
1175
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1176
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest.new
|
1177
|
+
#
|
1178
|
+
# # Call the list_test_case_results method.
|
1179
|
+
# result = client.list_test_case_results request
|
1180
|
+
#
|
1181
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1182
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1183
|
+
# result.each do |item|
|
1184
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
|
1185
|
+
# p item
|
1186
|
+
# end
|
1187
|
+
#
|
976
1188
|
def list_test_case_results request, options = nil
|
977
1189
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
978
1190
|
|
@@ -1038,6 +1250,22 @@ module Google
|
|
1038
1250
|
# @return [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
|
1039
1251
|
#
|
1040
1252
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1253
|
+
#
|
1254
|
+
# @example Basic example
|
1255
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1256
|
+
#
|
1257
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1258
|
+
# client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
|
1259
|
+
#
|
1260
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1261
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest.new
|
1262
|
+
#
|
1263
|
+
# # Call the get_test_case_result method.
|
1264
|
+
# result = client.get_test_case_result request
|
1265
|
+
#
|
1266
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
|
1267
|
+
# p result
|
1268
|
+
#
|
1041
1269
|
def get_test_case_result request, options = nil
|
1042
1270
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1043
1271
|
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\
|
16
|
+
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xc9\x03\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xbc\x02\xea\x41\xb8\x02\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\x12\x65projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}*\x15transitionRouteGroups2\x14transitionRouteGroup\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xdd\x0e\n\x15TransitionRouteGroups\x12\xc3\x02\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"\xa2\x01\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroupsZD\x12\x42/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups\xda\x41\x06parent\x12\xb0\x02\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa0\x01\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD\x12\x42/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\xda\x41\x04name\x12\xff\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xe9\x01\x82\xd3\xe4\x93\x02\xc2\x01\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_groupZ\\\"B/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups:\x16transition_route_group\xda\x41\x1dparent,transition_route_group\x12\xb2\x03\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x9c\x02\x82\xd3\xe4\x93\x02\xf0\x01\x32\x61/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_groupZs2Y/v3/{transition_route_group.name=projects/*/locations/*/agents/*/transitionRouteGroups/*}:\x16transition_route_group\xda\x41\"transition_route_group,update_mask\x12\x99\x02\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"\xa0\x01\x82\xd3\xe4\x93\x02\x92\x01*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD*B/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbf\x01\n!com.google.cloud.dialogflow.cx.v3B\x19TransitionRouteGroupProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -152,7 +152,8 @@ module Google
|
|
152
152
|
credentials: credentials,
|
153
153
|
endpoint: @config.endpoint,
|
154
154
|
channel_args: @config.channel_args,
|
155
|
-
interceptors: @config.interceptors
|
155
|
+
interceptors: @config.interceptors,
|
156
|
+
channel_pool_config: @config.channel_pool
|
156
157
|
)
|
157
158
|
end
|
158
159
|
|
@@ -186,7 +187,8 @@ module Google
|
|
186
187
|
# @param parent [::String]
|
187
188
|
# Required. The flow to list all transition route groups for.
|
188
189
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
189
|
-
# ID>/flows/<Flow ID
|
190
|
+
# ID>/flows/<Flow ID>`
|
191
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
|
190
192
|
# @param page_size [::Integer]
|
191
193
|
# The maximum number of items to return in a single page. By default 100 and
|
192
194
|
# at most 1000.
|
@@ -299,7 +301,9 @@ module Google
|
|
299
301
|
# Required. The name of the
|
300
302
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
|
301
303
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
302
|
-
# ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID
|
304
|
+
# ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
|
305
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
306
|
+
# ID>/transitionRouteGroups/<Transition Route Group ID>`.
|
303
307
|
# @param language_code [::String]
|
304
308
|
# The language to retrieve the transition route group for. The following
|
305
309
|
# fields are language dependent:
|
@@ -406,7 +410,9 @@ module Google
|
|
406
410
|
# Required. The flow to create an
|
407
411
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
408
412
|
# for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
409
|
-
# ID>/flows/<Flow ID
|
413
|
+
# ID>/flows/<Flow ID>`
|
414
|
+
# or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
|
415
|
+
# for agent-level groups.
|
410
416
|
# @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
|
411
417
|
# Required. The transition route group to create.
|
412
418
|
# @param language_code [::String]
|
@@ -618,7 +624,8 @@ module Google
|
|
618
624
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
619
625
|
# to delete. Format: `projects/<Project ID>/locations/<Location
|
620
626
|
# ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
|
621
|
-
# Route Group ID
|
627
|
+
# Route Group ID>` or `projects/<Project ID>/locations/<Location
|
628
|
+
# ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
|
622
629
|
# @param force [::Boolean]
|
623
630
|
# This field has no effect for transition route group that no page is using.
|
624
631
|
# If the transition route group is referenced by any page:
|
@@ -811,6 +818,14 @@ module Google
|
|
811
818
|
end
|
812
819
|
end
|
813
820
|
|
821
|
+
##
|
822
|
+
# Configuration for the channel pool
|
823
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
824
|
+
#
|
825
|
+
def channel_pool
|
826
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
827
|
+
end
|
828
|
+
|
814
829
|
##
|
815
830
|
# Configuration RPC class for the TransitionRouteGroups API.
|
816
831
|
#
|
@@ -25,6 +25,25 @@ module Google
|
|
25
25
|
module TransitionRouteGroups
|
26
26
|
# Path helper methods for the TransitionRouteGroups API.
|
27
27
|
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Agent resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/agents/{agent}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param agent [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def agent_path project:, location:, agent:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}"
|
45
|
+
end
|
46
|
+
|
28
47
|
##
|
29
48
|
# Create a fully-qualified Flow resource string.
|
30
49
|
#
|
@@ -93,24 +112,50 @@ module Google
|
|
93
112
|
##
|
94
113
|
# Create a fully-qualified TransitionRouteGroup resource string.
|
95
114
|
#
|
96
|
-
#
|
115
|
+
# @overload transition_route_group_path(project:, location:, agent:, flow:, transition_route_group:)
|
116
|
+
# The resource will be in the following format:
|
97
117
|
#
|
98
|
-
#
|
118
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
|
99
119
|
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
120
|
+
# @param project [String]
|
121
|
+
# @param location [String]
|
122
|
+
# @param agent [String]
|
123
|
+
# @param flow [String]
|
124
|
+
# @param transition_route_group [String]
|
125
|
+
#
|
126
|
+
# @overload transition_route_group_path(project:, location:, agent:, transition_route_group:)
|
127
|
+
# The resource will be in the following format:
|
128
|
+
#
|
129
|
+
# `projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}`
|
130
|
+
#
|
131
|
+
# @param project [String]
|
132
|
+
# @param location [String]
|
133
|
+
# @param agent [String]
|
134
|
+
# @param transition_route_group [String]
|
105
135
|
#
|
106
136
|
# @return [::String]
|
107
|
-
def transition_route_group_path
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
137
|
+
def transition_route_group_path **args
|
138
|
+
resources = {
|
139
|
+
"agent:flow:location:project:transition_route_group" => (proc do |project:, location:, agent:, flow:, transition_route_group:|
|
140
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
141
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
142
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
143
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
144
|
+
|
145
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
|
146
|
+
end),
|
147
|
+
"agent:location:project:transition_route_group" => (proc do |project:, location:, agent:, transition_route_group:|
|
148
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
149
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
150
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
151
|
+
|
152
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/transitionRouteGroups/#{transition_route_group}"
|
153
|
+
end)
|
154
|
+
}
|
112
155
|
|
113
|
-
"
|
156
|
+
resource = resources[args.keys.sort.join(":")]
|
157
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
158
|
+
resource.call(**args)
|
114
159
|
end
|
115
160
|
|
116
161
|
##
|