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
@@ -185,6 +185,27 @@ module Google
185
185
  #
186
186
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
187
187
  #
188
+ # @example Basic example
189
+ # require "google/cloud/dialogflow/cx/v3"
190
+ #
191
+ # # Create a client object. The client can be reused for multiple calls.
192
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Client.new
193
+ #
194
+ # # Create a request. To set request fields, pass in keyword arguments.
195
+ # request = Google::Cloud::Dialogflow::CX::V3::ListWebhooksRequest.new
196
+ #
197
+ # # Call the list_webhooks method.
198
+ # result = client.list_webhooks request
199
+ #
200
+ # # The returned object is of type Gapic::PagedEnumerable. You can
201
+ # # iterate over all elements by calling #each, and the enumerable
202
+ # # will lazily make API calls to fetch subsequent pages. Other
203
+ # # methods are also available for managing paging directly.
204
+ # result.each do |response|
205
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Webhook.
206
+ # p response
207
+ # end
208
+ #
188
209
  def list_webhooks request, options = nil
189
210
  raise ::ArgumentError, "request must be provided" if request.nil?
190
211
 
@@ -202,9 +223,11 @@ module Google
202
223
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
203
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
204
225
 
205
- header_params = {
206
- "parent" => request.parent
207
- }
226
+ header_params = {}
227
+ if request.parent
228
+ header_params["parent"] = request.parent
229
+ end
230
+
208
231
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
209
232
  metadata[:"x-goog-request-params"] ||= request_params_header
210
233
 
@@ -256,6 +279,21 @@ module Google
256
279
  #
257
280
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
258
281
  #
282
+ # @example Basic example
283
+ # require "google/cloud/dialogflow/cx/v3"
284
+ #
285
+ # # Create a client object. The client can be reused for multiple calls.
286
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Client.new
287
+ #
288
+ # # Create a request. To set request fields, pass in keyword arguments.
289
+ # request = Google::Cloud::Dialogflow::CX::V3::GetWebhookRequest.new
290
+ #
291
+ # # Call the get_webhook method.
292
+ # result = client.get_webhook request
293
+ #
294
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
295
+ # p result
296
+ #
259
297
  def get_webhook request, options = nil
260
298
  raise ::ArgumentError, "request must be provided" if request.nil?
261
299
 
@@ -273,9 +311,11 @@ module Google
273
311
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
274
312
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
313
 
276
- header_params = {
277
- "name" => request.name
278
- }
314
+ header_params = {}
315
+ if request.name
316
+ header_params["name"] = request.name
317
+ end
318
+
279
319
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
280
320
  metadata[:"x-goog-request-params"] ||= request_params_header
281
321
 
@@ -327,6 +367,21 @@ module Google
327
367
  #
328
368
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
329
369
  #
370
+ # @example Basic example
371
+ # require "google/cloud/dialogflow/cx/v3"
372
+ #
373
+ # # Create a client object. The client can be reused for multiple calls.
374
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Client.new
375
+ #
376
+ # # Create a request. To set request fields, pass in keyword arguments.
377
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateWebhookRequest.new
378
+ #
379
+ # # Call the create_webhook method.
380
+ # result = client.create_webhook request
381
+ #
382
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
383
+ # p result
384
+ #
330
385
  def create_webhook request, options = nil
331
386
  raise ::ArgumentError, "request must be provided" if request.nil?
332
387
 
@@ -344,9 +399,11 @@ module Google
344
399
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
345
400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
401
 
347
- header_params = {
348
- "parent" => request.parent
349
- }
402
+ header_params = {}
403
+ if request.parent
404
+ header_params["parent"] = request.parent
405
+ end
406
+
350
407
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
351
408
  metadata[:"x-goog-request-params"] ||= request_params_header
352
409
 
@@ -398,6 +455,21 @@ module Google
398
455
  #
399
456
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
400
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::Webhooks::Client.new
463
+ #
464
+ # # Create a request. To set request fields, pass in keyword arguments.
465
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateWebhookRequest.new
466
+ #
467
+ # # Call the update_webhook method.
468
+ # result = client.update_webhook request
469
+ #
470
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
471
+ # p result
472
+ #
401
473
  def update_webhook request, options = nil
402
474
  raise ::ArgumentError, "request must be provided" if request.nil?
403
475
 
@@ -415,9 +487,11 @@ module Google
415
487
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
416
488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
489
 
418
- header_params = {
419
- "webhook.name" => request.webhook.name
420
- }
490
+ header_params = {}
491
+ if request.webhook&.name
492
+ header_params["webhook.name"] = request.webhook.name
493
+ end
494
+
421
495
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
422
496
  metadata[:"x-goog-request-params"] ||= request_params_header
423
497
 
@@ -478,6 +552,21 @@ module Google
478
552
  #
479
553
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
480
554
  #
555
+ # @example Basic example
556
+ # require "google/cloud/dialogflow/cx/v3"
557
+ #
558
+ # # Create a client object. The client can be reused for multiple calls.
559
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Client.new
560
+ #
561
+ # # Create a request. To set request fields, pass in keyword arguments.
562
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteWebhookRequest.new
563
+ #
564
+ # # Call the delete_webhook method.
565
+ # result = client.delete_webhook request
566
+ #
567
+ # # The returned object is of type Google::Protobuf::Empty.
568
+ # p result
569
+ #
481
570
  def delete_webhook request, options = nil
482
571
  raise ::ArgumentError, "request must be provided" if request.nil?
483
572
 
@@ -495,9 +584,11 @@ module Google
495
584
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
496
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
497
586
 
498
- header_params = {
499
- "name" => request.name
500
- }
587
+ header_params = {}
588
+ if request.name
589
+ header_params["name"] = request.name
590
+ end
591
+
501
592
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
502
593
  metadata[:"x-goog-request-params"] ||= request_params_header
503
594
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-cx-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common