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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 647a465151383c26f0ae739d549df516a5c440724d8d85d06a70dc39c59e5b1a
|
4
|
+
data.tar.gz: bdd0a39f3c07d4989b5a65fabc54e29ff5cf4a0591a15ff2bd883c82257139aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76fd6117cdd2bfb8b4d9a9c776667f34c9fe219e59fa0f625ba6735287338d997f1409ce86017b08e0cbaf17cf2be3b3c931b8cd97bd222c0c1c1b975bb903f9
|
7
|
+
data.tar.gz: 6c88d1b99a86141f1cde52e35b33c1d9fb6a3c56349d8cb2452feaf129ca07af748c9a51bee3fd552397c68b385fb683c649952fdf382450c50bf06826e16d9c
|
@@ -197,6 +197,27 @@ module Google
|
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
199
199
|
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/dialogflow/cx/v3"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListAgentsRequest.new
|
208
|
+
#
|
209
|
+
# # Call the list_agents method.
|
210
|
+
# result = client.list_agents request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
213
|
+
# # iterate over all elements by calling #each, and the enumerable
|
214
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
215
|
+
# # methods are also available for managing paging directly.
|
216
|
+
# result.each do |response|
|
217
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Agent.
|
218
|
+
# p response
|
219
|
+
# end
|
220
|
+
#
|
200
221
|
def list_agents request, options = nil
|
201
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
223
|
|
@@ -214,9 +235,11 @@ module Google
|
|
214
235
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
215
236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
216
237
|
|
217
|
-
header_params = {
|
218
|
-
|
219
|
-
|
238
|
+
header_params = {}
|
239
|
+
if request.parent
|
240
|
+
header_params["parent"] = request.parent
|
241
|
+
end
|
242
|
+
|
220
243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
221
244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
222
245
|
|
@@ -267,6 +290,21 @@ module Google
|
|
267
290
|
#
|
268
291
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
269
292
|
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/dialogflow/cx/v3"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetAgentRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get_agent method.
|
303
|
+
# result = client.get_agent request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
306
|
+
# p result
|
307
|
+
#
|
270
308
|
def get_agent request, options = nil
|
271
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
310
|
|
@@ -284,9 +322,11 @@ module Google
|
|
284
322
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
285
323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
286
324
|
|
287
|
-
header_params = {
|
288
|
-
|
289
|
-
|
325
|
+
header_params = {}
|
326
|
+
if request.name
|
327
|
+
header_params["name"] = request.name
|
328
|
+
end
|
329
|
+
|
290
330
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
291
331
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
292
332
|
|
@@ -342,6 +382,21 @@ module Google
|
|
342
382
|
#
|
343
383
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
344
384
|
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/dialogflow/cx/v3"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateAgentRequest.new
|
393
|
+
#
|
394
|
+
# # Call the create_agent method.
|
395
|
+
# result = client.create_agent request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
398
|
+
# p result
|
399
|
+
#
|
345
400
|
def create_agent request, options = nil
|
346
401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
347
402
|
|
@@ -359,9 +414,11 @@ module Google
|
|
359
414
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
360
415
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
416
|
|
362
|
-
header_params = {
|
363
|
-
|
364
|
-
|
417
|
+
header_params = {}
|
418
|
+
if request.parent
|
419
|
+
header_params["parent"] = request.parent
|
420
|
+
end
|
421
|
+
|
365
422
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
366
423
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
367
424
|
|
@@ -417,6 +474,21 @@ module Google
|
|
417
474
|
#
|
418
475
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
419
476
|
#
|
477
|
+
# @example Basic example
|
478
|
+
# require "google/cloud/dialogflow/cx/v3"
|
479
|
+
#
|
480
|
+
# # Create a client object. The client can be reused for multiple calls.
|
481
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
482
|
+
#
|
483
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
484
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateAgentRequest.new
|
485
|
+
#
|
486
|
+
# # Call the update_agent method.
|
487
|
+
# result = client.update_agent request
|
488
|
+
#
|
489
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
490
|
+
# p result
|
491
|
+
#
|
420
492
|
def update_agent request, options = nil
|
421
493
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
494
|
|
@@ -434,9 +506,11 @@ module Google
|
|
434
506
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
435
507
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
436
508
|
|
437
|
-
header_params = {
|
438
|
-
|
439
|
-
|
509
|
+
header_params = {}
|
510
|
+
if request.agent&.name
|
511
|
+
header_params["agent.name"] = request.agent.name
|
512
|
+
end
|
513
|
+
|
440
514
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
441
515
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
442
516
|
|
@@ -486,6 +560,21 @@ module Google
|
|
486
560
|
#
|
487
561
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
488
562
|
#
|
563
|
+
# @example Basic example
|
564
|
+
# require "google/cloud/dialogflow/cx/v3"
|
565
|
+
#
|
566
|
+
# # Create a client object. The client can be reused for multiple calls.
|
567
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
568
|
+
#
|
569
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
570
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteAgentRequest.new
|
571
|
+
#
|
572
|
+
# # Call the delete_agent method.
|
573
|
+
# result = client.delete_agent request
|
574
|
+
#
|
575
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
576
|
+
# p result
|
577
|
+
#
|
489
578
|
def delete_agent request, options = nil
|
490
579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
491
580
|
|
@@ -503,9 +592,11 @@ module Google
|
|
503
592
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
504
593
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
505
594
|
|
506
|
-
header_params = {
|
507
|
-
|
508
|
-
|
595
|
+
header_params = {}
|
596
|
+
if request.name
|
597
|
+
header_params["name"] = request.name
|
598
|
+
end
|
599
|
+
|
509
600
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
510
601
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
511
602
|
|
@@ -572,6 +663,28 @@ module Google
|
|
572
663
|
#
|
573
664
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
574
665
|
#
|
666
|
+
# @example Basic example
|
667
|
+
# require "google/cloud/dialogflow/cx/v3"
|
668
|
+
#
|
669
|
+
# # Create a client object. The client can be reused for multiple calls.
|
670
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
671
|
+
#
|
672
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
673
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest.new
|
674
|
+
#
|
675
|
+
# # Call the export_agent method.
|
676
|
+
# result = client.export_agent request
|
677
|
+
#
|
678
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
679
|
+
# # object to check the status of an operation, cancel it, or wait
|
680
|
+
# # for results. Here is how to block until completion:
|
681
|
+
# result.wait_until_done! timeout: 60
|
682
|
+
# if result.response?
|
683
|
+
# p result.response
|
684
|
+
# else
|
685
|
+
# puts "Error!"
|
686
|
+
# end
|
687
|
+
#
|
575
688
|
def export_agent request, options = nil
|
576
689
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
690
|
|
@@ -589,9 +702,11 @@ module Google
|
|
589
702
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
590
703
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
591
704
|
|
592
|
-
header_params = {
|
593
|
-
|
594
|
-
|
705
|
+
header_params = {}
|
706
|
+
if request.name
|
707
|
+
header_params["name"] = request.name
|
708
|
+
end
|
709
|
+
|
595
710
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
596
711
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
597
712
|
|
@@ -666,6 +781,28 @@ module Google
|
|
666
781
|
#
|
667
782
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
668
783
|
#
|
784
|
+
# @example Basic example
|
785
|
+
# require "google/cloud/dialogflow/cx/v3"
|
786
|
+
#
|
787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
788
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
789
|
+
#
|
790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
791
|
+
# request = Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest.new
|
792
|
+
#
|
793
|
+
# # Call the restore_agent method.
|
794
|
+
# result = client.restore_agent request
|
795
|
+
#
|
796
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
797
|
+
# # object to check the status of an operation, cancel it, or wait
|
798
|
+
# # for results. Here is how to block until completion:
|
799
|
+
# result.wait_until_done! timeout: 60
|
800
|
+
# if result.response?
|
801
|
+
# p result.response
|
802
|
+
# else
|
803
|
+
# puts "Error!"
|
804
|
+
# end
|
805
|
+
#
|
669
806
|
def restore_agent request, options = nil
|
670
807
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
808
|
|
@@ -683,9 +820,11 @@ module Google
|
|
683
820
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
684
821
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
685
822
|
|
686
|
-
header_params = {
|
687
|
-
|
688
|
-
|
823
|
+
header_params = {}
|
824
|
+
if request.name
|
825
|
+
header_params["name"] = request.name
|
826
|
+
end
|
827
|
+
|
689
828
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
690
829
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
691
830
|
|
@@ -740,6 +879,21 @@ module Google
|
|
740
879
|
#
|
741
880
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
742
881
|
#
|
882
|
+
# @example Basic example
|
883
|
+
# require "google/cloud/dialogflow/cx/v3"
|
884
|
+
#
|
885
|
+
# # Create a client object. The client can be reused for multiple calls.
|
886
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
887
|
+
#
|
888
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
889
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ValidateAgentRequest.new
|
890
|
+
#
|
891
|
+
# # Call the validate_agent method.
|
892
|
+
# result = client.validate_agent request
|
893
|
+
#
|
894
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::AgentValidationResult.
|
895
|
+
# p result
|
896
|
+
#
|
743
897
|
def validate_agent request, options = nil
|
744
898
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
899
|
|
@@ -757,9 +911,11 @@ module Google
|
|
757
911
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
758
912
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
759
913
|
|
760
|
-
header_params = {
|
761
|
-
|
762
|
-
|
914
|
+
header_params = {}
|
915
|
+
if request.name
|
916
|
+
header_params["name"] = request.name
|
917
|
+
end
|
918
|
+
|
763
919
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
764
920
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
765
921
|
|
@@ -813,6 +969,21 @@ module Google
|
|
813
969
|
#
|
814
970
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
815
971
|
#
|
972
|
+
# @example Basic example
|
973
|
+
# require "google/cloud/dialogflow/cx/v3"
|
974
|
+
#
|
975
|
+
# # Create a client object. The client can be reused for multiple calls.
|
976
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
977
|
+
#
|
978
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
979
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetAgentValidationResultRequest.new
|
980
|
+
#
|
981
|
+
# # Call the get_agent_validation_result method.
|
982
|
+
# result = client.get_agent_validation_result request
|
983
|
+
#
|
984
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::AgentValidationResult.
|
985
|
+
# p result
|
986
|
+
#
|
816
987
|
def get_agent_validation_result request, options = nil
|
817
988
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
818
989
|
|
@@ -830,9 +1001,11 @@ module Google
|
|
830
1001
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
831
1002
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
832
1003
|
|
833
|
-
header_params = {
|
834
|
-
|
835
|
-
|
1004
|
+
header_params = {}
|
1005
|
+
if request.name
|
1006
|
+
header_params["name"] = request.name
|
1007
|
+
end
|
1008
|
+
|
836
1009
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
837
1010
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
838
1011
|
|
@@ -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
|
|
@@ -206,6 +206,27 @@ module Google
|
|
206
206
|
#
|
207
207
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
208
208
|
#
|
209
|
+
# @example Basic example
|
210
|
+
# require "google/cloud/dialogflow/cx/v3"
|
211
|
+
#
|
212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
213
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new
|
214
|
+
#
|
215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
216
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListChangelogsRequest.new
|
217
|
+
#
|
218
|
+
# # Call the list_changelogs method.
|
219
|
+
# result = client.list_changelogs request
|
220
|
+
#
|
221
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
222
|
+
# # iterate over all elements by calling #each, and the enumerable
|
223
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
224
|
+
# # methods are also available for managing paging directly.
|
225
|
+
# result.each do |response|
|
226
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Changelog.
|
227
|
+
# p response
|
228
|
+
# end
|
229
|
+
#
|
209
230
|
def list_changelogs request, options = nil
|
210
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
211
232
|
|
@@ -223,9 +244,11 @@ module Google
|
|
223
244
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
224
245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
225
246
|
|
226
|
-
header_params = {
|
227
|
-
|
228
|
-
|
247
|
+
header_params = {}
|
248
|
+
if request.parent
|
249
|
+
header_params["parent"] = request.parent
|
250
|
+
end
|
251
|
+
|
229
252
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
230
253
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
231
254
|
|
@@ -277,6 +300,21 @@ module Google
|
|
277
300
|
#
|
278
301
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
279
302
|
#
|
303
|
+
# @example Basic example
|
304
|
+
# require "google/cloud/dialogflow/cx/v3"
|
305
|
+
#
|
306
|
+
# # Create a client object. The client can be reused for multiple calls.
|
307
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new
|
308
|
+
#
|
309
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
310
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetChangelogRequest.new
|
311
|
+
#
|
312
|
+
# # Call the get_changelog method.
|
313
|
+
# result = client.get_changelog request
|
314
|
+
#
|
315
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Changelog.
|
316
|
+
# p result
|
317
|
+
#
|
280
318
|
def get_changelog request, options = nil
|
281
319
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
282
320
|
|
@@ -294,9 +332,11 @@ module Google
|
|
294
332
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
295
333
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
296
334
|
|
297
|
-
header_params = {
|
298
|
-
|
299
|
-
|
335
|
+
header_params = {}
|
336
|
+
if request.name
|
337
|
+
header_params["name"] = request.name
|
338
|
+
end
|
339
|
+
|
300
340
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
301
341
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
302
342
|
|