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.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -27
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  4. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +46 -6
  5. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +46 -6
  6. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  7. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +226 -27
  8. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  9. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  10. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +227 -30
  11. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  12. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  13. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  14. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  15. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  16. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  17. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +280 -36
  18. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  19. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  20. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  21. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +140 -18
  22. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  23. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  24. metadata +2 -2
@@ -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::Intents::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::Dialogflow::CX::V3::ListIntentsRequest.new
209
+ #
210
+ # # Call the list_intents method.
211
+ # result = client.list_intents 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::Intent.
219
+ # p response
220
+ # end
221
+ #
201
222
  def list_intents 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
- "parent" => request.parent
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
 
@@ -280,6 +303,21 @@ module Google
280
303
  #
281
304
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
282
305
  #
306
+ # @example Basic example
307
+ # require "google/cloud/dialogflow/cx/v3"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::Dialogflow::CX::V3::GetIntentRequest.new
314
+ #
315
+ # # Call the get_intent method.
316
+ # result = client.get_intent request
317
+ #
318
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
319
+ # p result
320
+ #
283
321
  def get_intent request, options = nil
284
322
  raise ::ArgumentError, "request must be provided" if request.nil?
285
323
 
@@ -297,9 +335,11 @@ module Google
297
335
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
298
336
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
299
337
 
300
- header_params = {
301
- "name" => request.name
302
- }
338
+ header_params = {}
339
+ if request.name
340
+ header_params["name"] = request.name
341
+ end
342
+
303
343
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
304
344
  metadata[:"x-goog-request-params"] ||= request_params_header
305
345
 
@@ -365,6 +405,21 @@ module Google
365
405
  #
366
406
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
407
  #
408
+ # @example Basic example
409
+ # require "google/cloud/dialogflow/cx/v3"
410
+ #
411
+ # # Create a client object. The client can be reused for multiple calls.
412
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
413
+ #
414
+ # # Create a request. To set request fields, pass in keyword arguments.
415
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateIntentRequest.new
416
+ #
417
+ # # Call the create_intent method.
418
+ # result = client.create_intent request
419
+ #
420
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
421
+ # p result
422
+ #
368
423
  def create_intent request, options = nil
369
424
  raise ::ArgumentError, "request must be provided" if request.nil?
370
425
 
@@ -382,9 +437,11 @@ module Google
382
437
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
383
438
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
439
 
385
- header_params = {
386
- "parent" => request.parent
387
- }
440
+ header_params = {}
441
+ if request.parent
442
+ header_params["parent"] = request.parent
443
+ end
444
+
388
445
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
446
  metadata[:"x-goog-request-params"] ||= request_params_header
390
447
 
@@ -450,6 +507,21 @@ module Google
450
507
  #
451
508
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
452
509
  #
510
+ # @example Basic example
511
+ # require "google/cloud/dialogflow/cx/v3"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateIntentRequest.new
518
+ #
519
+ # # Call the update_intent method.
520
+ # result = client.update_intent request
521
+ #
522
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
523
+ # p result
524
+ #
453
525
  def update_intent request, options = nil
454
526
  raise ::ArgumentError, "request must be provided" if request.nil?
455
527
 
@@ -467,9 +539,11 @@ module Google
467
539
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
468
540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
541
 
470
- header_params = {
471
- "intent.name" => request.intent.name
472
- }
542
+ header_params = {}
543
+ if request.intent&.name
544
+ header_params["intent.name"] = request.intent.name
545
+ end
546
+
473
547
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
474
548
  metadata[:"x-goog-request-params"] ||= request_params_header
475
549
 
@@ -524,6 +598,21 @@ module Google
524
598
  #
525
599
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
526
600
  #
601
+ # @example Basic example
602
+ # require "google/cloud/dialogflow/cx/v3"
603
+ #
604
+ # # Create a client object. The client can be reused for multiple calls.
605
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
606
+ #
607
+ # # Create a request. To set request fields, pass in keyword arguments.
608
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest.new
609
+ #
610
+ # # Call the delete_intent method.
611
+ # result = client.delete_intent request
612
+ #
613
+ # # The returned object is of type Google::Protobuf::Empty.
614
+ # p result
615
+ #
527
616
  def delete_intent request, options = nil
528
617
  raise ::ArgumentError, "request must be provided" if request.nil?
529
618
 
@@ -541,9 +630,11 @@ module Google
541
630
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
542
631
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
543
632
 
544
- header_params = {
545
- "name" => request.name
546
- }
633
+ header_params = {}
634
+ if request.name
635
+ header_params["name"] = request.name
636
+ end
637
+
547
638
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
548
639
  metadata[:"x-goog-request-params"] ||= request_params_header
549
640
 
@@ -208,6 +208,27 @@ module Google
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
210
  #
211
+ # @example Basic example
212
+ # require "google/cloud/dialogflow/cx/v3"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::Dialogflow::CX::V3::ListPagesRequest.new
219
+ #
220
+ # # Call the list_pages method.
221
+ # result = client.list_pages request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can
224
+ # # iterate over all elements by calling #each, and the enumerable
225
+ # # will lazily make API calls to fetch subsequent pages. Other
226
+ # # methods are also available for managing paging directly.
227
+ # result.each do |response|
228
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Page.
229
+ # p response
230
+ # end
231
+ #
211
232
  def list_pages request, options = nil
212
233
  raise ::ArgumentError, "request must be provided" if request.nil?
213
234
 
@@ -225,9 +246,11 @@ module Google
225
246
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
226
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
248
 
228
- header_params = {
229
- "parent" => request.parent
230
- }
249
+ header_params = {}
250
+ if request.parent
251
+ header_params["parent"] = request.parent
252
+ end
253
+
231
254
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
232
255
  metadata[:"x-goog-request-params"] ||= request_params_header
233
256
 
@@ -301,6 +324,21 @@ module Google
301
324
  #
302
325
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
303
326
  #
327
+ # @example Basic example
328
+ # require "google/cloud/dialogflow/cx/v3"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::Dialogflow::CX::V3::GetPageRequest.new
335
+ #
336
+ # # Call the get_page method.
337
+ # result = client.get_page request
338
+ #
339
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
340
+ # p result
341
+ #
304
342
  def get_page request, options = nil
305
343
  raise ::ArgumentError, "request must be provided" if request.nil?
306
344
 
@@ -318,9 +356,11 @@ module Google
318
356
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
319
357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
358
 
321
- header_params = {
322
- "name" => request.name
323
- }
359
+ header_params = {}
360
+ if request.name
361
+ header_params["name"] = request.name
362
+ end
363
+
324
364
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
325
365
  metadata[:"x-goog-request-params"] ||= request_params_header
326
366
 
@@ -398,6 +438,21 @@ module Google
398
438
  #
399
439
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
400
440
  #
441
+ # @example Basic example
442
+ # require "google/cloud/dialogflow/cx/v3"
443
+ #
444
+ # # Create a client object. The client can be reused for multiple calls.
445
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
446
+ #
447
+ # # Create a request. To set request fields, pass in keyword arguments.
448
+ # request = Google::Cloud::Dialogflow::CX::V3::CreatePageRequest.new
449
+ #
450
+ # # Call the create_page method.
451
+ # result = client.create_page request
452
+ #
453
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
454
+ # p result
455
+ #
401
456
  def create_page request, options = nil
402
457
  raise ::ArgumentError, "request must be provided" if request.nil?
403
458
 
@@ -415,9 +470,11 @@ module Google
415
470
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
416
471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
472
 
418
- header_params = {
419
- "parent" => request.parent
420
- }
473
+ header_params = {}
474
+ if request.parent
475
+ header_params["parent"] = request.parent
476
+ end
477
+
421
478
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
422
479
  metadata[:"x-goog-request-params"] ||= request_params_header
423
480
 
@@ -494,6 +551,21 @@ module Google
494
551
  #
495
552
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
496
553
  #
554
+ # @example Basic example
555
+ # require "google/cloud/dialogflow/cx/v3"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdatePageRequest.new
562
+ #
563
+ # # Call the update_page method.
564
+ # result = client.update_page request
565
+ #
566
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
567
+ # p result
568
+ #
497
569
  def update_page request, options = nil
498
570
  raise ::ArgumentError, "request must be provided" if request.nil?
499
571
 
@@ -511,9 +583,11 @@ module Google
511
583
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
512
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
585
 
514
- header_params = {
515
- "page.name" => request.page.name
516
- }
586
+ header_params = {}
587
+ if request.page&.name
588
+ header_params["page.name"] = request.page.name
589
+ end
590
+
517
591
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
518
592
  metadata[:"x-goog-request-params"] ||= request_params_header
519
593
 
@@ -579,6 +653,21 @@ module Google
579
653
  #
580
654
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
581
655
  #
656
+ # @example Basic example
657
+ # require "google/cloud/dialogflow/cx/v3"
658
+ #
659
+ # # Create a client object. The client can be reused for multiple calls.
660
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
661
+ #
662
+ # # Create a request. To set request fields, pass in keyword arguments.
663
+ # request = Google::Cloud::Dialogflow::CX::V3::DeletePageRequest.new
664
+ #
665
+ # # Call the delete_page method.
666
+ # result = client.delete_page request
667
+ #
668
+ # # The returned object is of type Google::Protobuf::Empty.
669
+ # p result
670
+ #
582
671
  def delete_page request, options = nil
583
672
  raise ::ArgumentError, "request must be provided" if request.nil?
584
673
 
@@ -596,9 +685,11 @@ module Google
596
685
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
597
686
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
598
687
 
599
- header_params = {
600
- "name" => request.name
601
- }
688
+ header_params = {}
689
+ if request.name
690
+ header_params["name"] = request.name
691
+ end
692
+
602
693
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
603
694
  metadata[:"x-goog-request-params"] ||= request_params_header
604
695
 
@@ -182,6 +182,21 @@ module Google
182
182
  #
183
183
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
184
184
  #
185
+ # @example Basic example
186
+ # require "google/cloud/dialogflow/cx/v3"
187
+ #
188
+ # # Create a client object. The client can be reused for multiple calls.
189
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
190
+ #
191
+ # # Create a request. To set request fields, pass in keyword arguments.
192
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateSecuritySettingsRequest.new
193
+ #
194
+ # # Call the create_security_settings method.
195
+ # result = client.create_security_settings request
196
+ #
197
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
198
+ # p result
199
+ #
185
200
  def create_security_settings request, options = nil
186
201
  raise ::ArgumentError, "request must be provided" if request.nil?
187
202
 
@@ -199,9 +214,11 @@ module Google
199
214
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
200
215
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
201
216
 
202
- header_params = {
203
- "parent" => request.parent
204
- }
217
+ header_params = {}
218
+ if request.parent
219
+ header_params["parent"] = request.parent
220
+ end
221
+
205
222
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
206
223
  metadata[:"x-goog-request-params"] ||= request_params_header
207
224
 
@@ -253,6 +270,21 @@ module Google
253
270
  #
254
271
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
255
272
  #
273
+ # @example Basic example
274
+ # require "google/cloud/dialogflow/cx/v3"
275
+ #
276
+ # # Create a client object. The client can be reused for multiple calls.
277
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
278
+ #
279
+ # # Create a request. To set request fields, pass in keyword arguments.
280
+ # request = Google::Cloud::Dialogflow::CX::V3::GetSecuritySettingsRequest.new
281
+ #
282
+ # # Call the get_security_settings method.
283
+ # result = client.get_security_settings request
284
+ #
285
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
286
+ # p result
287
+ #
256
288
  def get_security_settings request, options = nil
257
289
  raise ::ArgumentError, "request must be provided" if request.nil?
258
290
 
@@ -270,9 +302,11 @@ module Google
270
302
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
271
303
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
304
 
273
- header_params = {
274
- "name" => request.name
275
- }
305
+ header_params = {}
306
+ if request.name
307
+ header_params["name"] = request.name
308
+ end
309
+
276
310
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
277
311
  metadata[:"x-goog-request-params"] ||= request_params_header
278
312
 
@@ -325,6 +359,21 @@ module Google
325
359
  #
326
360
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
327
361
  #
362
+ # @example Basic example
363
+ # require "google/cloud/dialogflow/cx/v3"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateSecuritySettingsRequest.new
370
+ #
371
+ # # Call the update_security_settings method.
372
+ # result = client.update_security_settings request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
375
+ # p result
376
+ #
328
377
  def update_security_settings request, options = nil
329
378
  raise ::ArgumentError, "request must be provided" if request.nil?
330
379
 
@@ -342,9 +391,11 @@ module Google
342
391
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
343
392
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
344
393
 
345
- header_params = {
346
- "security_settings.name" => request.security_settings.name
347
- }
394
+ header_params = {}
395
+ if request.security_settings&.name
396
+ header_params["security_settings.name"] = request.security_settings.name
397
+ end
398
+
348
399
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
349
400
  metadata[:"x-goog-request-params"] ||= request_params_header
350
401
 
@@ -399,6 +450,27 @@ module Google
399
450
  #
400
451
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
452
  #
453
+ # @example Basic example
454
+ # require "google/cloud/dialogflow/cx/v3"
455
+ #
456
+ # # Create a client object. The client can be reused for multiple calls.
457
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
458
+ #
459
+ # # Create a request. To set request fields, pass in keyword arguments.
460
+ # request = Google::Cloud::Dialogflow::CX::V3::ListSecuritySettingsRequest.new
461
+ #
462
+ # # Call the list_security_settings method.
463
+ # result = client.list_security_settings request
464
+ #
465
+ # # The returned object is of type Gapic::PagedEnumerable. You can
466
+ # # iterate over all elements by calling #each, and the enumerable
467
+ # # will lazily make API calls to fetch subsequent pages. Other
468
+ # # methods are also available for managing paging directly.
469
+ # result.each do |response|
470
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
471
+ # p response
472
+ # end
473
+ #
402
474
  def list_security_settings request, options = nil
403
475
  raise ::ArgumentError, "request must be provided" if request.nil?
404
476
 
@@ -416,9 +488,11 @@ module Google
416
488
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
417
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
490
 
419
- header_params = {
420
- "parent" => request.parent
421
- }
491
+ header_params = {}
492
+ if request.parent
493
+ header_params["parent"] = request.parent
494
+ end
495
+
422
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
423
497
  metadata[:"x-goog-request-params"] ||= request_params_header
424
498
 
@@ -470,6 +544,21 @@ module Google
470
544
  #
471
545
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
472
546
  #
547
+ # @example Basic example
548
+ # require "google/cloud/dialogflow/cx/v3"
549
+ #
550
+ # # Create a client object. The client can be reused for multiple calls.
551
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
552
+ #
553
+ # # Create a request. To set request fields, pass in keyword arguments.
554
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteSecuritySettingsRequest.new
555
+ #
556
+ # # Call the delete_security_settings method.
557
+ # result = client.delete_security_settings request
558
+ #
559
+ # # The returned object is of type Google::Protobuf::Empty.
560
+ # p result
561
+ #
473
562
  def delete_security_settings request, options = nil
474
563
  raise ::ArgumentError, "request must be provided" if request.nil?
475
564
 
@@ -487,9 +576,11 @@ module Google
487
576
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
488
577
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
489
578
 
490
- header_params = {
491
- "name" => request.name
492
- }
579
+ header_params = {}
580
+ if request.name
581
+ header_params["name"] = request.name
582
+ end
583
+
493
584
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
494
585
  metadata[:"x-goog-request-params"] ||= request_params_header
495
586