google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
- 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/deployment_pb.rb +63 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -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 +15 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
- metadata +16 -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
|
-
|
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,15 +20,17 @@ 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"
|
24
|
+
require "google/cloud/dialogflow/cx/v3/deployments"
|
23
25
|
require "google/cloud/dialogflow/cx/v3/entity_types"
|
24
26
|
require "google/cloud/dialogflow/cx/v3/intents"
|
25
27
|
require "google/cloud/dialogflow/cx/v3/session_entity_types"
|
26
28
|
require "google/cloud/dialogflow/cx/v3/sessions"
|
27
29
|
require "google/cloud/dialogflow/cx/v3/transition_route_groups"
|
28
30
|
require "google/cloud/dialogflow/cx/v3/test_cases"
|
31
|
+
require "google/cloud/dialogflow/cx/v3/webhooks"
|
29
32
|
require "google/cloud/dialogflow/cx/v3/environments"
|
30
33
|
require "google/cloud/dialogflow/cx/v3/experiments"
|
31
|
-
require "google/cloud/dialogflow/cx/v3/webhooks"
|
32
34
|
require "google/cloud/dialogflow/cx/v3/versions"
|
33
35
|
require "google/cloud/dialogflow/cx/v3/version"
|
34
36
|
|
@@ -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
|
@@ -0,0 +1,135 @@
|
|
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
|
+
# Represents an deployment in an environment. A deployment happens when a flow
|
26
|
+
# version configured to be active in the environment. You can configure running
|
27
|
+
# pre-deployment steps, e.g. running validation test cases, experiment
|
28
|
+
# auto-rollout, etc.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# The name of the deployment.
|
32
|
+
# Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
33
|
+
# ID>/environments/<Environment ID>/deployments/<Deployment ID>.
|
34
|
+
# @!attribute [rw] flow_version
|
35
|
+
# @return [::String]
|
36
|
+
# The name of the flow version for this deployment.
|
37
|
+
# Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
38
|
+
# ID>/flows/<Flow ID>/versions/<Verion ID>.
|
39
|
+
# @!attribute [rw] state
|
40
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Deployment::State]
|
41
|
+
# The current state of the deployment.
|
42
|
+
# @!attribute [rw] result
|
43
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Deployment::Result]
|
44
|
+
# Result of the deployment.
|
45
|
+
# @!attribute [rw] start_time
|
46
|
+
# @return [::Google::Protobuf::Timestamp]
|
47
|
+
# Start time of this deployment.
|
48
|
+
# @!attribute [rw] end_time
|
49
|
+
# @return [::Google::Protobuf::Timestamp]
|
50
|
+
# End time of this deployment.
|
51
|
+
class Deployment
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
|
55
|
+
# Result of the deployment.
|
56
|
+
# @!attribute [rw] deployment_test_results
|
57
|
+
# @return [::Array<::String>]
|
58
|
+
# Results of test cases running before the deployment.
|
59
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
60
|
+
# ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
|
61
|
+
# @!attribute [rw] experiment
|
62
|
+
# @return [::String]
|
63
|
+
# The name of the experiment triggered by this deployment.
|
64
|
+
# Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
65
|
+
# ID>/environments/<Environment ID>/experiments/<Experiment ID>.
|
66
|
+
class Result
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
71
|
+
# The state of the deployment.
|
72
|
+
module State
|
73
|
+
# State unspecified.
|
74
|
+
STATE_UNSPECIFIED = 0
|
75
|
+
|
76
|
+
# The deployment is running.
|
77
|
+
RUNNING = 1
|
78
|
+
|
79
|
+
# The deployment succeeded.
|
80
|
+
SUCCEEDED = 2
|
81
|
+
|
82
|
+
# The deployment failed.
|
83
|
+
FAILED = 3
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Deployments::Client#list_deployments Deployments.ListDeployments}.
|
88
|
+
# @!attribute [rw] parent
|
89
|
+
# @return [::String]
|
90
|
+
# Required. The {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} to list all environments for.
|
91
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
92
|
+
# ID>/environments/<Environment ID>`.
|
93
|
+
# @!attribute [rw] page_size
|
94
|
+
# @return [::Integer]
|
95
|
+
# The maximum number of items to return in a single page. By default 20 and
|
96
|
+
# at most 100.
|
97
|
+
# @!attribute [rw] page_token
|
98
|
+
# @return [::String]
|
99
|
+
# The next_page_token value returned from a previous list request.
|
100
|
+
class ListDeploymentsRequest
|
101
|
+
include ::Google::Protobuf::MessageExts
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
end
|
104
|
+
|
105
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Deployments::Client#list_deployments Deployments.ListDeployments}.
|
106
|
+
# @!attribute [rw] deployments
|
107
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Deployment>]
|
108
|
+
# The list of deployments. There will be a maximum number of items
|
109
|
+
# returned based on the page_size field in the request. The list may in some
|
110
|
+
# cases be empty or contain fewer entries than page_size even if this isn't
|
111
|
+
# the last page.
|
112
|
+
# @!attribute [rw] next_page_token
|
113
|
+
# @return [::String]
|
114
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
115
|
+
# results in the list.
|
116
|
+
class ListDeploymentsResponse
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Deployments::Client#get_deployment Deployments.GetDeployment}.
|
122
|
+
# @!attribute [rw] name
|
123
|
+
# @return [::String]
|
124
|
+
# Required. The name of the {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployment}.
|
125
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
126
|
+
# ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
|
127
|
+
class GetDeploymentRequest
|
128
|
+
include ::Google::Protobuf::MessageExts
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
# @!attribute [r] update_time
|
53
53
|
# @return [::Google::Protobuf::Timestamp]
|
54
54
|
# Output only. Update time of this environment.
|
55
|
+
# @!attribute [rw] test_cases_config
|
56
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig]
|
57
|
+
# The test cases config for continuous tests of this environment.
|
55
58
|
class Environment
|
56
59
|
include ::Google::Protobuf::MessageExts
|
57
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -65,6 +68,25 @@ module Google
|
|
65
68
|
include ::Google::Protobuf::MessageExts
|
66
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
70
|
end
|
71
|
+
|
72
|
+
# The configuration for continuous tests.
|
73
|
+
# @!attribute [rw] test_cases
|
74
|
+
# @return [::Array<::String>]
|
75
|
+
# A list of test case names to run. They should be under the same agent.
|
76
|
+
# Format of each test case name: `projects/<Project ID>/locations/
|
77
|
+
# <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
|
78
|
+
# @!attribute [rw] enable_continuous_run
|
79
|
+
# @return [::Boolean]
|
80
|
+
# Whether to run test cases in {::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig#test_cases TestCasesConfig.test_cases} periodically.
|
81
|
+
# Default false. If set to ture, run once a day.
|
82
|
+
# @!attribute [rw] enable_predeployment_run
|
83
|
+
# @return [::Boolean]
|
84
|
+
# Whether to run test cases in {::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig#test_cases TestCasesConfig.test_cases} before
|
85
|
+
# deploying a flow version to the environment. Default false.
|
86
|
+
class TestCasesConfig
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
68
90
|
end
|
69
91
|
|
70
92
|
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Environments::Client#list_environments Environments.ListEnvironments}.
|
@@ -272,6 +294,46 @@ module Google
|
|
272
294
|
include ::Google::Protobuf::MessageExts
|
273
295
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
274
296
|
end
|
297
|
+
|
298
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Environments::Client#deploy_flow Environments.DeployFlow}.
|
299
|
+
# @!attribute [rw] environment
|
300
|
+
# @return [::String]
|
301
|
+
# Required. The environment to deploy the flow to.
|
302
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
|
303
|
+
# environments/<Environment ID>`.
|
304
|
+
# @!attribute [rw] flow_version
|
305
|
+
# @return [::String]
|
306
|
+
# Required. The flow version to deploy.
|
307
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
|
308
|
+
# flows/<Flow ID>/versions/<Version ID>`.
|
309
|
+
class DeployFlowRequest
|
310
|
+
include ::Google::Protobuf::MessageExts
|
311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
312
|
+
end
|
313
|
+
|
314
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Environments::Client#deploy_flow Environments.DeployFlow}.
|
315
|
+
# @!attribute [rw] environment
|
316
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Environment]
|
317
|
+
# The updated environment where the flow is deployed.
|
318
|
+
# @!attribute [rw] deployment
|
319
|
+
# @return [::String]
|
320
|
+
# The name of the flow version {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployment}.
|
321
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
|
322
|
+
# environments/<Environment ID>/deployments/<Deployment ID>`.
|
323
|
+
class DeployFlowResponse
|
324
|
+
include ::Google::Protobuf::MessageExts
|
325
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
326
|
+
end
|
327
|
+
|
328
|
+
# Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::Environments::Client#deploy_flow Environments.DeployFlow} long running
|
329
|
+
# operation.
|
330
|
+
# @!attribute [rw] test_errors
|
331
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestError>]
|
332
|
+
# Errors of running deployment tests.
|
333
|
+
class DeployFlowMetadata
|
334
|
+
include ::Google::Protobuf::MessageExts
|
335
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
336
|
+
end
|
275
337
|
end
|
276
338
|
end
|
277
339
|
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
|
@@ -106,7 +106,10 @@ module Google
|
|
106
106
|
# propagate to all the related components and take effect.
|
107
107
|
# @!attribute [rw] name
|
108
108
|
# @return [::String]
|
109
|
-
#
|
109
|
+
# Resource name of the settings.
|
110
|
+
# Required for the {::Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#update_security_settings SecuritySettingsService.UpdateSecuritySettings} method.
|
111
|
+
# {::Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#create_security_settings SecuritySettingsService.CreateSecuritySettings} populates the name
|
112
|
+
# automatically.
|
110
113
|
# Format: `projects/<Project ID>/locations/<Location
|
111
114
|
# ID>/securitySettings/<Security Settings ID>`.
|
112
115
|
# @!attribute [rw] display_name
|
@@ -126,6 +129,11 @@ module Google
|
|
126
129
|
# [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
|
127
130
|
# template to define inspect base settings.
|
128
131
|
#
|
132
|
+
# The `DLP Inspect Templates Reader` role is needed on the Dialogflow
|
133
|
+
# service identity service account (has the form
|
134
|
+
# `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
|
135
|
+
# for your agent's project.
|
136
|
+
#
|
129
137
|
# If empty, we use the default DLP inspect config.
|
130
138
|
#
|
131
139
|
# The template name will have one of the following formats:
|
@@ -140,6 +148,11 @@ module Google
|
|
140
148
|
# [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
|
141
149
|
# template to define de-identification configuration for the content.
|
142
150
|
#
|
151
|
+
# The `DLP De-identify Templates Reader` role is needed on the Dialogflow
|
152
|
+
# service identity service account (has the form
|
153
|
+
# `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
|
154
|
+
# for your agent's project.
|
155
|
+
#
|
143
156
|
# If empty, Dialogflow replaces sensitive info with `[redacted]` text.
|
144
157
|
#
|
145
158
|
# The template name will have one of the following formats:
|
@@ -154,7 +167,7 @@ module Google
|
|
154
167
|
# Retains data in interaction logging for the specified number of days.
|
155
168
|
# This does not apply to Cloud logging, which is owned by the user - not
|
156
169
|
# Dialogflow.
|
157
|
-
# User must
|
170
|
+
# User must set a value lower than Dialogflow's default 365d TTL. Setting a
|
158
171
|
# value higher than that has no effect.
|
159
172
|
# A missing value or setting to 0 also means we use Dialogflow's default
|
160
173
|
# TTL.
|