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
@@ -186,6 +186,27 @@ module Google
|
|
186
186
|
#
|
187
187
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
188
188
|
#
|
189
|
+
# @example Basic example
|
190
|
+
# require "google/cloud/dialogflow/cx/v3"
|
191
|
+
#
|
192
|
+
# # Create a client object. The client can be reused for multiple calls.
|
193
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Deployments::Client.new
|
194
|
+
#
|
195
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
196
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListDeploymentsRequest.new
|
197
|
+
#
|
198
|
+
# # Call the list_deployments method.
|
199
|
+
# result = client.list_deployments request
|
200
|
+
#
|
201
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
202
|
+
# # iterate over all elements by calling #each, and the enumerable
|
203
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
204
|
+
# # methods are also available for managing paging directly.
|
205
|
+
# result.each do |response|
|
206
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Deployment.
|
207
|
+
# p response
|
208
|
+
# end
|
209
|
+
#
|
189
210
|
def list_deployments request, options = nil
|
190
211
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
191
212
|
|
@@ -203,9 +224,11 @@ module Google
|
|
203
224
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
204
225
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
205
226
|
|
206
|
-
header_params = {
|
207
|
-
|
208
|
-
|
227
|
+
header_params = {}
|
228
|
+
if request.parent
|
229
|
+
header_params["parent"] = request.parent
|
230
|
+
end
|
231
|
+
|
209
232
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
210
233
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
211
234
|
|
@@ -257,6 +280,21 @@ module Google
|
|
257
280
|
#
|
258
281
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
259
282
|
#
|
283
|
+
# @example Basic example
|
284
|
+
# require "google/cloud/dialogflow/cx/v3"
|
285
|
+
#
|
286
|
+
# # Create a client object. The client can be reused for multiple calls.
|
287
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Deployments::Client.new
|
288
|
+
#
|
289
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
290
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetDeploymentRequest.new
|
291
|
+
#
|
292
|
+
# # Call the get_deployment method.
|
293
|
+
# result = client.get_deployment request
|
294
|
+
#
|
295
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Deployment.
|
296
|
+
# p result
|
297
|
+
#
|
260
298
|
def get_deployment request, options = nil
|
261
299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
262
300
|
|
@@ -274,9 +312,11 @@ module Google
|
|
274
312
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
275
313
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
276
314
|
|
277
|
-
header_params = {
|
278
|
-
|
279
|
-
|
315
|
+
header_params = {}
|
316
|
+
if request.name
|
317
|
+
header_params["name"] = request.name
|
318
|
+
end
|
319
|
+
|
280
320
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
281
321
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
282
322
|
|
@@ -198,6 +198,27 @@ module Google
|
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
200
200
|
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/dialogflow/cx/v3"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest.new
|
209
|
+
#
|
210
|
+
# # Call the list_entity_types method.
|
211
|
+
# result = client.list_entity_types request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
214
|
+
# # iterate over all elements by calling #each, and the enumerable
|
215
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
216
|
+
# # methods are also available for managing paging directly.
|
217
|
+
# result.each do |response|
|
218
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::EntityType.
|
219
|
+
# p response
|
220
|
+
# end
|
221
|
+
#
|
201
222
|
def list_entity_types request, options = nil
|
202
223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
224
|
|
@@ -215,9 +236,11 @@ module Google
|
|
215
236
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
216
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
217
238
|
|
218
|
-
header_params = {
|
219
|
-
|
220
|
-
|
239
|
+
header_params = {}
|
240
|
+
if request.parent
|
241
|
+
header_params["parent"] = request.parent
|
242
|
+
end
|
243
|
+
|
221
244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
222
245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
223
246
|
|
@@ -282,6 +305,21 @@ module Google
|
|
282
305
|
#
|
283
306
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
307
|
#
|
308
|
+
# @example Basic example
|
309
|
+
# require "google/cloud/dialogflow/cx/v3"
|
310
|
+
#
|
311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
312
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
313
|
+
#
|
314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
315
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetEntityTypeRequest.new
|
316
|
+
#
|
317
|
+
# # Call the get_entity_type method.
|
318
|
+
# result = client.get_entity_type request
|
319
|
+
#
|
320
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
321
|
+
# p result
|
322
|
+
#
|
285
323
|
def get_entity_type request, options = nil
|
286
324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
325
|
|
@@ -299,9 +337,11 @@ module Google
|
|
299
337
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
300
338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
339
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
340
|
+
header_params = {}
|
341
|
+
if request.name
|
342
|
+
header_params["name"] = request.name
|
343
|
+
end
|
344
|
+
|
305
345
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
346
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
347
|
|
@@ -369,6 +409,21 @@ module Google
|
|
369
409
|
#
|
370
410
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
371
411
|
#
|
412
|
+
# @example Basic example
|
413
|
+
# require "google/cloud/dialogflow/cx/v3"
|
414
|
+
#
|
415
|
+
# # Create a client object. The client can be reused for multiple calls.
|
416
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
417
|
+
#
|
418
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
419
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateEntityTypeRequest.new
|
420
|
+
#
|
421
|
+
# # Call the create_entity_type method.
|
422
|
+
# result = client.create_entity_type request
|
423
|
+
#
|
424
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
425
|
+
# p result
|
426
|
+
#
|
372
427
|
def create_entity_type request, options = nil
|
373
428
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
429
|
|
@@ -386,9 +441,11 @@ module Google
|
|
386
441
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
387
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
388
443
|
|
389
|
-
header_params = {
|
390
|
-
|
391
|
-
|
444
|
+
header_params = {}
|
445
|
+
if request.parent
|
446
|
+
header_params["parent"] = request.parent
|
447
|
+
end
|
448
|
+
|
392
449
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
393
450
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
394
451
|
|
@@ -455,6 +512,21 @@ module Google
|
|
455
512
|
#
|
456
513
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
457
514
|
#
|
515
|
+
# @example Basic example
|
516
|
+
# require "google/cloud/dialogflow/cx/v3"
|
517
|
+
#
|
518
|
+
# # Create a client object. The client can be reused for multiple calls.
|
519
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
520
|
+
#
|
521
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
522
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateEntityTypeRequest.new
|
523
|
+
#
|
524
|
+
# # Call the update_entity_type method.
|
525
|
+
# result = client.update_entity_type request
|
526
|
+
#
|
527
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
|
528
|
+
# p result
|
529
|
+
#
|
458
530
|
def update_entity_type request, options = nil
|
459
531
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
460
532
|
|
@@ -472,9 +544,11 @@ module Google
|
|
472
544
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
473
545
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
546
|
|
475
|
-
header_params = {
|
476
|
-
|
477
|
-
|
547
|
+
header_params = {}
|
548
|
+
if request.entity_type&.name
|
549
|
+
header_params["entity_type.name"] = request.entity_type.name
|
550
|
+
end
|
551
|
+
|
478
552
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
479
553
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
480
554
|
|
@@ -540,6 +614,21 @@ module Google
|
|
540
614
|
#
|
541
615
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
542
616
|
#
|
617
|
+
# @example Basic example
|
618
|
+
# require "google/cloud/dialogflow/cx/v3"
|
619
|
+
#
|
620
|
+
# # Create a client object. The client can be reused for multiple calls.
|
621
|
+
# client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
|
622
|
+
#
|
623
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
624
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteEntityTypeRequest.new
|
625
|
+
#
|
626
|
+
# # Call the delete_entity_type method.
|
627
|
+
# result = client.delete_entity_type request
|
628
|
+
#
|
629
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
630
|
+
# p result
|
631
|
+
#
|
543
632
|
def delete_entity_type request, options = nil
|
544
633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
634
|
|
@@ -557,9 +646,11 @@ module Google
|
|
557
646
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
558
647
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
559
648
|
|
560
|
-
header_params = {
|
561
|
-
|
562
|
-
|
649
|
+
header_params = {}
|
650
|
+
if request.name
|
651
|
+
header_params["name"] = request.name
|
652
|
+
end
|
653
|
+
|
563
654
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
564
655
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
565
656
|
|
@@ -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::Environments::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListEnvironmentsRequest.new
|
208
|
+
#
|
209
|
+
# # Call the list_environments method.
|
210
|
+
# result = client.list_environments 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::Environment.
|
218
|
+
# p response
|
219
|
+
# end
|
220
|
+
#
|
200
221
|
def list_environments 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
|
|
@@ -268,6 +291,21 @@ module Google
|
|
268
291
|
#
|
269
292
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
293
|
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/dialogflow/cx/v3"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetEnvironmentRequest.new
|
302
|
+
#
|
303
|
+
# # Call the get_environment method.
|
304
|
+
# result = client.get_environment request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Environment.
|
307
|
+
# p result
|
308
|
+
#
|
271
309
|
def get_environment request, options = nil
|
272
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
311
|
|
@@ -285,9 +323,11 @@ module Google
|
|
285
323
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
286
324
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
325
|
|
288
|
-
header_params = {
|
289
|
-
|
290
|
-
|
326
|
+
header_params = {}
|
327
|
+
if request.name
|
328
|
+
header_params["name"] = request.name
|
329
|
+
end
|
330
|
+
|
291
331
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
292
332
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
293
333
|
|
@@ -347,6 +387,28 @@ module Google
|
|
347
387
|
#
|
348
388
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
349
389
|
#
|
390
|
+
# @example Basic example
|
391
|
+
# require "google/cloud/dialogflow/cx/v3"
|
392
|
+
#
|
393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
394
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateEnvironmentRequest.new
|
398
|
+
#
|
399
|
+
# # Call the create_environment method.
|
400
|
+
# result = client.create_environment request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
403
|
+
# # object to check the status of an operation, cancel it, or wait
|
404
|
+
# # for results. Here is how to block until completion:
|
405
|
+
# result.wait_until_done! timeout: 60
|
406
|
+
# if result.response?
|
407
|
+
# p result.response
|
408
|
+
# else
|
409
|
+
# puts "Error!"
|
410
|
+
# end
|
411
|
+
#
|
350
412
|
def create_environment request, options = nil
|
351
413
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
352
414
|
|
@@ -364,9 +426,11 @@ module Google
|
|
364
426
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
365
427
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
428
|
|
367
|
-
header_params = {
|
368
|
-
|
369
|
-
|
429
|
+
header_params = {}
|
430
|
+
if request.parent
|
431
|
+
header_params["parent"] = request.parent
|
432
|
+
end
|
433
|
+
|
370
434
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
371
435
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
372
436
|
|
@@ -426,6 +490,28 @@ module Google
|
|
426
490
|
#
|
427
491
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
428
492
|
#
|
493
|
+
# @example Basic example
|
494
|
+
# require "google/cloud/dialogflow/cx/v3"
|
495
|
+
#
|
496
|
+
# # Create a client object. The client can be reused for multiple calls.
|
497
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
498
|
+
#
|
499
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
500
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateEnvironmentRequest.new
|
501
|
+
#
|
502
|
+
# # Call the update_environment method.
|
503
|
+
# result = client.update_environment request
|
504
|
+
#
|
505
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
506
|
+
# # object to check the status of an operation, cancel it, or wait
|
507
|
+
# # for results. Here is how to block until completion:
|
508
|
+
# result.wait_until_done! timeout: 60
|
509
|
+
# if result.response?
|
510
|
+
# p result.response
|
511
|
+
# else
|
512
|
+
# puts "Error!"
|
513
|
+
# end
|
514
|
+
#
|
429
515
|
def update_environment request, options = nil
|
430
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
517
|
|
@@ -443,9 +529,11 @@ module Google
|
|
443
529
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
444
530
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
445
531
|
|
446
|
-
header_params = {
|
447
|
-
|
448
|
-
|
532
|
+
header_params = {}
|
533
|
+
if request.environment&.name
|
534
|
+
header_params["environment.name"] = request.environment.name
|
535
|
+
end
|
536
|
+
|
449
537
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
450
538
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
451
539
|
|
@@ -497,6 +585,21 @@ module Google
|
|
497
585
|
#
|
498
586
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
499
587
|
#
|
588
|
+
# @example Basic example
|
589
|
+
# require "google/cloud/dialogflow/cx/v3"
|
590
|
+
#
|
591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
592
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
593
|
+
#
|
594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
595
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteEnvironmentRequest.new
|
596
|
+
#
|
597
|
+
# # Call the delete_environment method.
|
598
|
+
# result = client.delete_environment request
|
599
|
+
#
|
600
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
601
|
+
# p result
|
602
|
+
#
|
500
603
|
def delete_environment request, options = nil
|
501
604
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
605
|
|
@@ -514,9 +617,11 @@ module Google
|
|
514
617
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
515
618
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
516
619
|
|
517
|
-
header_params = {
|
518
|
-
|
519
|
-
|
620
|
+
header_params = {}
|
621
|
+
if request.name
|
622
|
+
header_params["name"] = request.name
|
623
|
+
end
|
624
|
+
|
520
625
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
521
626
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
522
627
|
|
@@ -572,6 +677,27 @@ module Google
|
|
572
677
|
#
|
573
678
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
574
679
|
#
|
680
|
+
# @example Basic example
|
681
|
+
# require "google/cloud/dialogflow/cx/v3"
|
682
|
+
#
|
683
|
+
# # Create a client object. The client can be reused for multiple calls.
|
684
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
685
|
+
#
|
686
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
687
|
+
# request = Google::Cloud::Dialogflow::CX::V3::LookupEnvironmentHistoryRequest.new
|
688
|
+
#
|
689
|
+
# # Call the lookup_environment_history method.
|
690
|
+
# result = client.lookup_environment_history request
|
691
|
+
#
|
692
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
693
|
+
# # iterate over all elements by calling #each, and the enumerable
|
694
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
695
|
+
# # methods are also available for managing paging directly.
|
696
|
+
# result.each do |response|
|
697
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Environment.
|
698
|
+
# p response
|
699
|
+
# end
|
700
|
+
#
|
575
701
|
def lookup_environment_history request, options = nil
|
576
702
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
703
|
|
@@ -589,9 +715,11 @@ module Google
|
|
589
715
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
590
716
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
591
717
|
|
592
|
-
header_params = {
|
593
|
-
|
594
|
-
|
718
|
+
header_params = {}
|
719
|
+
if request.name
|
720
|
+
header_params["name"] = request.name
|
721
|
+
end
|
722
|
+
|
595
723
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
596
724
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
597
725
|
|
@@ -649,6 +777,28 @@ module Google
|
|
649
777
|
#
|
650
778
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
651
779
|
#
|
780
|
+
# @example Basic example
|
781
|
+
# require "google/cloud/dialogflow/cx/v3"
|
782
|
+
#
|
783
|
+
# # Create a client object. The client can be reused for multiple calls.
|
784
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
785
|
+
#
|
786
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
787
|
+
# request = Google::Cloud::Dialogflow::CX::V3::RunContinuousTestRequest.new
|
788
|
+
#
|
789
|
+
# # Call the run_continuous_test method.
|
790
|
+
# result = client.run_continuous_test request
|
791
|
+
#
|
792
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
793
|
+
# # object to check the status of an operation, cancel it, or wait
|
794
|
+
# # for results. Here is how to block until completion:
|
795
|
+
# result.wait_until_done! timeout: 60
|
796
|
+
# if result.response?
|
797
|
+
# p result.response
|
798
|
+
# else
|
799
|
+
# puts "Error!"
|
800
|
+
# end
|
801
|
+
#
|
652
802
|
def run_continuous_test request, options = nil
|
653
803
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
654
804
|
|
@@ -666,9 +816,11 @@ module Google
|
|
666
816
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
667
817
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
668
818
|
|
669
|
-
header_params = {
|
670
|
-
|
671
|
-
|
819
|
+
header_params = {}
|
820
|
+
if request.environment
|
821
|
+
header_params["environment"] = request.environment
|
822
|
+
end
|
823
|
+
|
672
824
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
673
825
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
674
826
|
|
@@ -725,6 +877,27 @@ module Google
|
|
725
877
|
#
|
726
878
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
727
879
|
#
|
880
|
+
# @example Basic example
|
881
|
+
# require "google/cloud/dialogflow/cx/v3"
|
882
|
+
#
|
883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
884
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
885
|
+
#
|
886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
887
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListContinuousTestResultsRequest.new
|
888
|
+
#
|
889
|
+
# # Call the list_continuous_test_results method.
|
890
|
+
# result = client.list_continuous_test_results request
|
891
|
+
#
|
892
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
893
|
+
# # iterate over all elements by calling #each, and the enumerable
|
894
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
895
|
+
# # methods are also available for managing paging directly.
|
896
|
+
# result.each do |response|
|
897
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::ContinuousTestResult.
|
898
|
+
# p response
|
899
|
+
# end
|
900
|
+
#
|
728
901
|
def list_continuous_test_results request, options = nil
|
729
902
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
730
903
|
|
@@ -742,9 +915,11 @@ module Google
|
|
742
915
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
743
916
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
917
|
|
745
|
-
header_params = {
|
746
|
-
|
747
|
-
|
918
|
+
header_params = {}
|
919
|
+
if request.parent
|
920
|
+
header_params["parent"] = request.parent
|
921
|
+
end
|
922
|
+
|
748
923
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
749
924
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
750
925
|
|
@@ -807,6 +982,28 @@ module Google
|
|
807
982
|
#
|
808
983
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
809
984
|
#
|
985
|
+
# @example Basic example
|
986
|
+
# require "google/cloud/dialogflow/cx/v3"
|
987
|
+
#
|
988
|
+
# # Create a client object. The client can be reused for multiple calls.
|
989
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Environments::Client.new
|
990
|
+
#
|
991
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
992
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest.new
|
993
|
+
#
|
994
|
+
# # Call the deploy_flow method.
|
995
|
+
# result = client.deploy_flow request
|
996
|
+
#
|
997
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
998
|
+
# # object to check the status of an operation, cancel it, or wait
|
999
|
+
# # for results. Here is how to block until completion:
|
1000
|
+
# result.wait_until_done! timeout: 60
|
1001
|
+
# if result.response?
|
1002
|
+
# p result.response
|
1003
|
+
# else
|
1004
|
+
# puts "Error!"
|
1005
|
+
# end
|
1006
|
+
#
|
810
1007
|
def deploy_flow request, options = nil
|
811
1008
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
812
1009
|
|
@@ -824,9 +1021,11 @@ module Google
|
|
824
1021
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
825
1022
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
1023
|
|
827
|
-
header_params = {
|
828
|
-
|
829
|
-
|
1024
|
+
header_params = {}
|
1025
|
+
if request.environment
|
1026
|
+
header_params["environment"] = request.environment
|
1027
|
+
end
|
1028
|
+
|
830
1029
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
831
1030
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
832
1031
|
|