google-cloud-dialogflow-cx-v3 0.2.0 → 0.5.0
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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +201 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- 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/environment_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +227 -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 +228 -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/response_message_pb.rb +7 -0
- 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 +281 -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/version_pb.rb +12 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +250 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +2 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +11 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +54 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +17 -0
- metadata +10 -3
@@ -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
|
|
@@ -29,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
29
|
optional :username, :string, 2
|
30
30
|
optional :password, :string, 3
|
31
31
|
map :request_headers, :string, :string, 4
|
32
|
+
repeated :allowed_ca_certs, :bytes, 5
|
32
33
|
end
|
33
34
|
add_message "google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig" do
|
34
35
|
optional :service, :string, 1
|
@@ -113,6 +114,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
113
114
|
end
|
114
115
|
add_message "google.cloud.dialogflow.cx.v3.PageInfo" do
|
115
116
|
optional :current_page, :string, 1
|
117
|
+
optional :display_name, :string, 4
|
116
118
|
optional :form_info, :message, 3, "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo"
|
117
119
|
end
|
118
120
|
add_message "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo" do
|
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
@@ -20,6 +20,7 @@ require "google/cloud/dialogflow/cx/v3/pages"
|
|
20
20
|
require "google/cloud/dialogflow/cx/v3/flows"
|
21
21
|
require "google/cloud/dialogflow/cx/v3/security_settings_service"
|
22
22
|
require "google/cloud/dialogflow/cx/v3/agents"
|
23
|
+
require "google/cloud/dialogflow/cx/v3/changelogs"
|
23
24
|
require "google/cloud/dialogflow/cx/v3/deployments"
|
24
25
|
require "google/cloud/dialogflow/cx/v3/entity_types"
|
25
26
|
require "google/cloud/dialogflow/cx/v3/intents"
|
@@ -27,9 +28,9 @@ require "google/cloud/dialogflow/cx/v3/session_entity_types"
|
|
27
28
|
require "google/cloud/dialogflow/cx/v3/sessions"
|
28
29
|
require "google/cloud/dialogflow/cx/v3/transition_route_groups"
|
29
30
|
require "google/cloud/dialogflow/cx/v3/test_cases"
|
31
|
+
require "google/cloud/dialogflow/cx/v3/webhooks"
|
30
32
|
require "google/cloud/dialogflow/cx/v3/environments"
|
31
33
|
require "google/cloud/dialogflow/cx/v3/experiments"
|
32
|
-
require "google/cloud/dialogflow/cx/v3/webhooks"
|
33
34
|
require "google/cloud/dialogflow/cx/v3/versions"
|
34
35
|
require "google/cloud/dialogflow/cx/v3/version"
|
35
36
|
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -0,0 +1,122 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Dialogflow
|
23
|
+
module CX
|
24
|
+
module V3
|
25
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#list_changelogs Changelogs.ListChangelogs}.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The agent containing the changelogs.
|
29
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
|
30
|
+
# @!attribute [rw] filter
|
31
|
+
# @return [::String]
|
32
|
+
# The filter string. Supports filter by user_email, resource, type and
|
33
|
+
# create_time. Some examples:
|
34
|
+
# 1. By user email:
|
35
|
+
# user_email = "someone@google.com"
|
36
|
+
# 2. By resource name:
|
37
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
38
|
+
# 3. By resource display name:
|
39
|
+
# display_name = "my agent"
|
40
|
+
# 4. By action:
|
41
|
+
# action = "Create"
|
42
|
+
# 5. By type:
|
43
|
+
# type = "flows"
|
44
|
+
# 6. By create time. Currently predicates on `create_time` and
|
45
|
+
# `create_time_epoch_seconds` are supported:
|
46
|
+
# create_time_epoch_seconds > 1551790877 AND create_time <=
|
47
|
+
# 2017-01-15T01:30:15.01Z
|
48
|
+
# 7. Combination of above filters:
|
49
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
50
|
+
# AND user_email = "someone@google.com"
|
51
|
+
# AND create_time <= 2017-01-15T01:30:15.01Z
|
52
|
+
# @!attribute [rw] page_size
|
53
|
+
# @return [::Integer]
|
54
|
+
# The maximum number of items to return in a single page. By default 100 and
|
55
|
+
# at most 1000.
|
56
|
+
# @!attribute [rw] page_token
|
57
|
+
# @return [::String]
|
58
|
+
# The next_page_token value returned from a previous list request.
|
59
|
+
class ListChangelogsRequest
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#list_changelogs Changelogs.ListChangelogs}.
|
65
|
+
# @!attribute [rw] changelogs
|
66
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Changelog>]
|
67
|
+
# The list of changelogs. There will be a maximum number of items returned
|
68
|
+
# based on the page_size field in the request. The changelogs will be ordered
|
69
|
+
# by timestamp.
|
70
|
+
# @!attribute [rw] next_page_token
|
71
|
+
# @return [::String]
|
72
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
73
|
+
# results in the list.
|
74
|
+
class ListChangelogsResponse
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#get_changelog Changelogs.GetChangelog}.
|
80
|
+
# @!attribute [rw] name
|
81
|
+
# @return [::String]
|
82
|
+
# Required. The name of the changelog to get.
|
83
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
84
|
+
# ID>/changelogs/<Changelog ID>`.
|
85
|
+
class GetChangelogRequest
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
90
|
+
# Changelogs represents a change made to a given agent.
|
91
|
+
# @!attribute [rw] name
|
92
|
+
# @return [::String]
|
93
|
+
# The unique identifier of the changelog.
|
94
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
95
|
+
# ID>/changelogs/<Changelog ID>`.
|
96
|
+
# @!attribute [rw] user_email
|
97
|
+
# @return [::String]
|
98
|
+
# Email address of the authenticated user.
|
99
|
+
# @!attribute [rw] display_name
|
100
|
+
# @return [::String]
|
101
|
+
# The affected resource display name of the change.
|
102
|
+
# @!attribute [rw] action
|
103
|
+
# @return [::String]
|
104
|
+
# The action of the change.
|
105
|
+
# @!attribute [rw] type
|
106
|
+
# @return [::String]
|
107
|
+
# The affected resource type.
|
108
|
+
# @!attribute [rw] resource
|
109
|
+
# @return [::String]
|
110
|
+
# The affected resource name of the change.
|
111
|
+
# @!attribute [rw] create_time
|
112
|
+
# @return [::Google::Protobuf::Timestamp]
|
113
|
+
# The timestamp of the change.
|
114
|
+
class Changelog
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -76,6 +76,10 @@ module Google
|
|
76
76
|
# {::Google::Cloud::Dialogflow::CX::V3::ResponseMessage#play_audio play_audio}.
|
77
77
|
# This message is generated by Dialogflow only and not supposed to be
|
78
78
|
# defined by the user.
|
79
|
+
# @!attribute [rw] telephony_transfer_call
|
80
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::TelephonyTransferCall]
|
81
|
+
# A signal that the client should transfer the phone call connected to
|
82
|
+
# this agent to a third-party endpoint.
|
79
83
|
class ResponseMessage
|
80
84
|
include ::Google::Protobuf::MessageExts
|
81
85
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +216,17 @@ module Google
|
|
212
216
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
213
217
|
end
|
214
218
|
end
|
219
|
+
|
220
|
+
# Represents the signal that telles the client to transfer the phone call
|
221
|
+
# connected to the agent to a third-party endpoint.
|
222
|
+
# @!attribute [rw] phone_number
|
223
|
+
# @return [::String]
|
224
|
+
# Transfer the call to a phone number
|
225
|
+
# in [E.164 format](https://en.wikipedia.org/wiki/E.164).
|
226
|
+
class TelephonyTransferCall
|
227
|
+
include ::Google::Protobuf::MessageExts
|
228
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
229
|
+
end
|
215
230
|
end
|
216
231
|
end
|
217
232
|
end
|