google-apis-dialogflow_v3 0.7.0 → 0.12.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/CHANGELOG.md +20 -0
- data/lib/google/apis/dialogflow_v3.rb +1 -1
- data/lib/google/apis/dialogflow_v3/classes.rb +349 -47
- data/lib/google/apis/dialogflow_v3/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3/representations.rb +114 -0
- data/lib/google/apis/dialogflow_v3/service.rb +197 -69
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV3
|
18
18
|
# Version of the google-apis-dialogflow_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210517"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -214,6 +214,18 @@ module Google
|
|
214
214
|
include Google::Apis::Core::JsonObjectSupport
|
215
215
|
end
|
216
216
|
|
217
|
+
class GoogleCloudDialogflowCxV3ExportFlowRequest
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
217
229
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
218
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
231
|
|
@@ -322,6 +334,18 @@ module Google
|
|
322
334
|
include Google::Apis::Core::JsonObjectSupport
|
323
335
|
end
|
324
336
|
|
337
|
+
class GoogleCloudDialogflowCxV3ImportFlowRequest
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
343
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
325
349
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
326
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
351
|
|
@@ -898,6 +922,12 @@ module Google
|
|
898
922
|
include Google::Apis::Core::JsonObjectSupport
|
899
923
|
end
|
900
924
|
|
925
|
+
class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
|
926
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
927
|
+
|
928
|
+
include Google::Apis::Core::JsonObjectSupport
|
929
|
+
end
|
930
|
+
|
901
931
|
class GoogleCloudDialogflowCxV3beta1AudioInput
|
902
932
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
903
933
|
|
@@ -976,6 +1006,12 @@ module Google
|
|
976
1006
|
include Google::Apis::Core::JsonObjectSupport
|
977
1007
|
end
|
978
1008
|
|
1009
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
1010
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
|
+
|
1012
|
+
include Google::Apis::Core::JsonObjectSupport
|
1013
|
+
end
|
1014
|
+
|
979
1015
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
980
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
981
1017
|
|
@@ -1054,6 +1090,12 @@ module Google
|
|
1054
1090
|
include Google::Apis::Core::JsonObjectSupport
|
1055
1091
|
end
|
1056
1092
|
|
1093
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
1094
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1095
|
+
|
1096
|
+
include Google::Apis::Core::JsonObjectSupport
|
1097
|
+
end
|
1098
|
+
|
1057
1099
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
1058
1100
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1059
1101
|
|
@@ -2202,6 +2244,7 @@ module Google
|
|
2202
2244
|
property :speech_to_text_settings, as: 'speechToTextSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings::Representation
|
2203
2245
|
|
2204
2246
|
property :start_flow, as: 'startFlow'
|
2247
|
+
collection :supported_language_codes, as: 'supportedLanguageCodes'
|
2205
2248
|
property :time_zone, as: 'timeZone'
|
2206
2249
|
end
|
2207
2250
|
end
|
@@ -2505,6 +2548,7 @@ module Google
|
|
2505
2548
|
# @private
|
2506
2549
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2507
2550
|
property :agent_uri, as: 'agentUri'
|
2551
|
+
property :environment, as: 'environment'
|
2508
2552
|
end
|
2509
2553
|
end
|
2510
2554
|
|
@@ -2516,6 +2560,22 @@ module Google
|
|
2516
2560
|
end
|
2517
2561
|
end
|
2518
2562
|
|
2563
|
+
class GoogleCloudDialogflowCxV3ExportFlowRequest
|
2564
|
+
# @private
|
2565
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2566
|
+
property :flow_uri, as: 'flowUri'
|
2567
|
+
property :include_referenced_flows, as: 'includeReferencedFlows'
|
2568
|
+
end
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
2572
|
+
# @private
|
2573
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2574
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
2575
|
+
property :flow_uri, as: 'flowUri'
|
2576
|
+
end
|
2577
|
+
end
|
2578
|
+
|
2519
2579
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
2520
2580
|
# @private
|
2521
2581
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2549,6 +2609,7 @@ module Google
|
|
2549
2609
|
property :name, as: 'name'
|
2550
2610
|
property :nlu_settings, as: 'nluSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings::Representation
|
2551
2611
|
|
2612
|
+
collection :transition_route_groups, as: 'transitionRouteGroups'
|
2552
2613
|
collection :transition_routes, as: 'transitionRoutes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute::Representation
|
2553
2614
|
|
2554
2615
|
end
|
@@ -2692,6 +2753,22 @@ module Google
|
|
2692
2753
|
end
|
2693
2754
|
end
|
2694
2755
|
|
2756
|
+
class GoogleCloudDialogflowCxV3ImportFlowRequest
|
2757
|
+
# @private
|
2758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2759
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
2760
|
+
property :flow_uri, as: 'flowUri'
|
2761
|
+
property :import_option, as: 'importOption'
|
2762
|
+
end
|
2763
|
+
end
|
2764
|
+
|
2765
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
2766
|
+
# @private
|
2767
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2768
|
+
property :flow, as: 'flow'
|
2769
|
+
end
|
2770
|
+
end
|
2771
|
+
|
2695
2772
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
2696
2773
|
# @private
|
2697
2774
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3060,6 +3137,7 @@ module Google
|
|
3060
3137
|
# @private
|
3061
3138
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3062
3139
|
property :analyze_query_text_sentiment, as: 'analyzeQueryTextSentiment'
|
3140
|
+
property :current_page, as: 'currentPage'
|
3063
3141
|
property :disable_webhook, as: 'disableWebhook'
|
3064
3142
|
property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV3::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV3::GoogleTypeLatLng::Representation
|
3065
3143
|
|
@@ -3552,6 +3630,8 @@ module Google
|
|
3552
3630
|
property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService::Representation
|
3553
3631
|
|
3554
3632
|
property :name, as: 'name'
|
3633
|
+
property :service_directory, as: 'serviceDirectory', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig::Representation
|
3634
|
+
|
3555
3635
|
property :timeout, as: 'timeout'
|
3556
3636
|
end
|
3557
3637
|
end
|
@@ -3574,6 +3654,7 @@ module Google
|
|
3574
3654
|
|
3575
3655
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo::Representation
|
3576
3656
|
|
3657
|
+
property :language_code, as: 'languageCode'
|
3577
3658
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation
|
3578
3659
|
|
3579
3660
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo::Representation
|
@@ -3583,6 +3664,10 @@ module Google
|
|
3583
3664
|
|
3584
3665
|
property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo::Representation
|
3585
3666
|
|
3667
|
+
property :text, as: 'text'
|
3668
|
+
property :transcript, as: 'transcript'
|
3669
|
+
property :trigger_event, as: 'triggerEvent'
|
3670
|
+
property :trigger_intent, as: 'triggerIntent'
|
3586
3671
|
end
|
3587
3672
|
end
|
3588
3673
|
|
@@ -3644,6 +3729,15 @@ module Google
|
|
3644
3729
|
end
|
3645
3730
|
end
|
3646
3731
|
|
3732
|
+
class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
|
3733
|
+
# @private
|
3734
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3735
|
+
property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService::Representation
|
3736
|
+
|
3737
|
+
property :service, as: 'service'
|
3738
|
+
end
|
3739
|
+
end
|
3740
|
+
|
3647
3741
|
class GoogleCloudDialogflowCxV3beta1AudioInput
|
3648
3742
|
# @private
|
3649
3743
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3765,6 +3859,14 @@ module Google
|
|
3765
3859
|
end
|
3766
3860
|
end
|
3767
3861
|
|
3862
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
3863
|
+
# @private
|
3864
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3865
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
3866
|
+
property :flow_uri, as: 'flowUri'
|
3867
|
+
end
|
3868
|
+
end
|
3869
|
+
|
3768
3870
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
3769
3871
|
# @private
|
3770
3872
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3883,6 +3985,13 @@ module Google
|
|
3883
3985
|
end
|
3884
3986
|
end
|
3885
3987
|
|
3988
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
3989
|
+
# @private
|
3990
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3991
|
+
property :flow, as: 'flow'
|
3992
|
+
end
|
3993
|
+
end
|
3994
|
+
|
3886
3995
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3887
3996
|
# @private
|
3888
3997
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4238,6 +4347,7 @@ module Google
|
|
4238
4347
|
|
4239
4348
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo::Representation
|
4240
4349
|
|
4350
|
+
property :language_code, as: 'languageCode'
|
4241
4351
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation
|
4242
4352
|
|
4243
4353
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1PageInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1PageInfo::Representation
|
@@ -4247,6 +4357,10 @@ module Google
|
|
4247
4357
|
|
4248
4358
|
property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1SessionInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1SessionInfo::Representation
|
4249
4359
|
|
4360
|
+
property :text, as: 'text'
|
4361
|
+
property :transcript, as: 'transcript'
|
4362
|
+
property :trigger_event, as: 'triggerEvent'
|
4363
|
+
property :trigger_intent, as: 'triggerIntent'
|
4250
4364
|
end
|
4251
4365
|
end
|
4252
4366
|
|
@@ -1147,8 +1147,7 @@ module Google
|
|
1147
1147
|
execute_or_queue_command(command, &block)
|
1148
1148
|
end
|
1149
1149
|
|
1150
|
-
# Creates a session entity type.
|
1151
|
-
# exists, overrides the session entity type.
|
1150
|
+
# Creates a session entity type.
|
1152
1151
|
# @param [String] parent
|
1153
1152
|
# Required. The session to create a session entity type for. Format: `projects//
|
1154
1153
|
# locations//agents//sessions/` or `projects//locations//agents//environments//
|
@@ -1336,11 +1335,12 @@ module Google
|
|
1336
1335
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
|
1337
1336
|
# @param [String] language_code
|
1338
1337
|
# The language of the following fields in `flow`: * `Flow.event_handlers.
|
1339
|
-
# trigger_fulfillment.messages` * `Flow.
|
1340
|
-
#
|
1341
|
-
#
|
1342
|
-
#
|
1343
|
-
#
|
1338
|
+
# trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.
|
1339
|
+
# conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `
|
1340
|
+
# Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified,
|
1341
|
+
# the agent's default language is used. [Many languages](https://cloud.google.
|
1342
|
+
# com/dialogflow/cx/docs/reference/language) are supported. Note: languages must
|
1343
|
+
# be enabled in the agent before they can be used.
|
1344
1344
|
# @param [String] fields
|
1345
1345
|
# Selector specifying which fields to include in a partial response.
|
1346
1346
|
# @param [String] quota_user
|
@@ -1410,6 +1410,41 @@ module Google
|
|
1410
1410
|
execute_or_queue_command(command, &block)
|
1411
1411
|
end
|
1412
1412
|
|
1413
|
+
# Exports the specified flow to a binary file. Note that resources (e.g. intents,
|
1414
|
+
# entities, webhooks) that the flow references will also be exported.
|
1415
|
+
# @param [String] name
|
1416
|
+
# Required. The name of the flow to export. Format: `projects//locations//agents/
|
1417
|
+
# /flows/`.
|
1418
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportFlowRequest] google_cloud_dialogflow_cx_v3_export_flow_request_object
|
1419
|
+
# @param [String] fields
|
1420
|
+
# Selector specifying which fields to include in a partial response.
|
1421
|
+
# @param [String] quota_user
|
1422
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1423
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1424
|
+
# @param [Google::Apis::RequestOptions] options
|
1425
|
+
# Request-specific options
|
1426
|
+
#
|
1427
|
+
# @yield [result, err] Result & error if block supplied
|
1428
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
|
1429
|
+
# @yieldparam err [StandardError] error object if request failed
|
1430
|
+
#
|
1431
|
+
# @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
|
1432
|
+
#
|
1433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1436
|
+
def export_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_export_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1437
|
+
command = make_simple_command(:post, 'v3/{+name}:export', options)
|
1438
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportFlowRequest::Representation
|
1439
|
+
command.request_object = google_cloud_dialogflow_cx_v3_export_flow_request_object
|
1440
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
|
1441
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
|
1442
|
+
command.params['name'] = name unless name.nil?
|
1443
|
+
command.query['fields'] = fields unless fields.nil?
|
1444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1445
|
+
execute_or_queue_command(command, &block)
|
1446
|
+
end
|
1447
|
+
|
1413
1448
|
# Retrieves the specified flow.
|
1414
1449
|
# @param [String] name
|
1415
1450
|
# Required. The name of the flow to get. Format: `projects//locations//agents//
|
@@ -1417,10 +1452,12 @@ module Google
|
|
1417
1452
|
# @param [String] language_code
|
1418
1453
|
# The language to retrieve the flow for. The following fields are language
|
1419
1454
|
# dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.
|
1420
|
-
#
|
1421
|
-
#
|
1422
|
-
#
|
1423
|
-
#
|
1455
|
+
# event_handlers.trigger_fulfillment.conditional_cases` * `Flow.
|
1456
|
+
# transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.
|
1457
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1458
|
+
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1459
|
+
# reference/language) are supported. Note: languages must be enabled in the
|
1460
|
+
# agent before they can be used.
|
1424
1461
|
# @param [String] fields
|
1425
1462
|
# Selector specifying which fields to include in a partial response.
|
1426
1463
|
# @param [String] quota_user
|
@@ -1484,17 +1521,53 @@ module Google
|
|
1484
1521
|
execute_or_queue_command(command, &block)
|
1485
1522
|
end
|
1486
1523
|
|
1524
|
+
# Imports the specified flow to the specified agent from a binary file.
|
1525
|
+
# @param [String] parent
|
1526
|
+
# Required. The agent to import the flow into. Format: `projects//locations//
|
1527
|
+
# agents/`.
|
1528
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportFlowRequest] google_cloud_dialogflow_cx_v3_import_flow_request_object
|
1529
|
+
# @param [String] fields
|
1530
|
+
# Selector specifying which fields to include in a partial response.
|
1531
|
+
# @param [String] quota_user
|
1532
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1533
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1534
|
+
# @param [Google::Apis::RequestOptions] options
|
1535
|
+
# Request-specific options
|
1536
|
+
#
|
1537
|
+
# @yield [result, err] Result & error if block supplied
|
1538
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
|
1539
|
+
# @yieldparam err [StandardError] error object if request failed
|
1540
|
+
#
|
1541
|
+
# @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
|
1542
|
+
#
|
1543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1546
|
+
def import_project_location_agent_flow(parent, google_cloud_dialogflow_cx_v3_import_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1547
|
+
command = make_simple_command(:post, 'v3/{+parent}/flows:import', options)
|
1548
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportFlowRequest::Representation
|
1549
|
+
command.request_object = google_cloud_dialogflow_cx_v3_import_flow_request_object
|
1550
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
|
1551
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
|
1552
|
+
command.params['parent'] = parent unless parent.nil?
|
1553
|
+
command.query['fields'] = fields unless fields.nil?
|
1554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1555
|
+
execute_or_queue_command(command, &block)
|
1556
|
+
end
|
1557
|
+
|
1487
1558
|
# Returns the list of all flows in the specified agent.
|
1488
1559
|
# @param [String] parent
|
1489
1560
|
# Required. The agent containing the flows. Format: `projects//locations//agents/
|
1490
1561
|
# `.
|
1491
1562
|
# @param [String] language_code
|
1492
1563
|
# The language to list flows for. The following fields are language dependent: *
|
1493
|
-
# `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.
|
1494
|
-
# trigger_fulfillment.
|
1495
|
-
#
|
1496
|
-
#
|
1497
|
-
#
|
1564
|
+
# `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.
|
1565
|
+
# trigger_fulfillment.conditional_cases` * `Flow.transition_routes.
|
1566
|
+
# trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
|
1567
|
+
# conditional_cases` If not specified, the agent's default language is used. [
|
1568
|
+
# Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
1569
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
1570
|
+
# be used.
|
1498
1571
|
# @param [Fixnum] page_size
|
1499
1572
|
# The maximum number of items to return in a single page. By default 100 and at
|
1500
1573
|
# most 1000.
|
@@ -1537,11 +1610,12 @@ module Google
|
|
1537
1610
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
|
1538
1611
|
# @param [String] language_code
|
1539
1612
|
# The language of the following fields in `flow`: * `Flow.event_handlers.
|
1540
|
-
# trigger_fulfillment.messages` * `Flow.
|
1541
|
-
#
|
1542
|
-
#
|
1543
|
-
#
|
1544
|
-
#
|
1613
|
+
# trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.
|
1614
|
+
# conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `
|
1615
|
+
# Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified,
|
1616
|
+
# the agent's default language is used. [Many languages](https://cloud.google.
|
1617
|
+
# com/dialogflow/cx/docs/reference/language) are supported. Note: languages must
|
1618
|
+
# be enabled in the agent before they can be used.
|
1545
1619
|
# @param [String] update_mask
|
1546
1620
|
# Required. The mask to control which fields get updated. If `update_mask` is
|
1547
1621
|
# not specified, an error will be returned.
|
@@ -1652,13 +1726,18 @@ module Google
|
|
1652
1726
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
|
1653
1727
|
# @param [String] language_code
|
1654
1728
|
# The language of the following fields in `page`: * `Page.entry_fulfillment.
|
1655
|
-
# messages` * `Page.
|
1656
|
-
# messages` * `Page.
|
1657
|
-
#
|
1658
|
-
#
|
1659
|
-
#
|
1660
|
-
#
|
1661
|
-
#
|
1729
|
+
# messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.
|
1730
|
+
# trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.
|
1731
|
+
# conditional_cases` * `Page.form.parameters.fill_behavior.
|
1732
|
+
# initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
|
1733
|
+
# initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.
|
1734
|
+
# fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.
|
1735
|
+
# fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.
|
1736
|
+
# transition_routes.trigger_fulfillment.messages` * `Page.transition_routes.
|
1737
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1738
|
+
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1739
|
+
# reference/language) are supported. Note: languages must be enabled in the
|
1740
|
+
# agent before they can be used.
|
1662
1741
|
# @param [String] fields
|
1663
1742
|
# Selector specifying which fields to include in a partial response.
|
1664
1743
|
# @param [String] quota_user
|
@@ -1734,14 +1813,18 @@ module Google
|
|
1734
1813
|
# pages/`.
|
1735
1814
|
# @param [String] language_code
|
1736
1815
|
# The language to retrieve the page for. The following fields are language
|
1737
|
-
# dependent: * `Page.entry_fulfillment.messages` * `Page.
|
1738
|
-
#
|
1739
|
-
#
|
1740
|
-
#
|
1741
|
-
#
|
1742
|
-
#
|
1743
|
-
#
|
1744
|
-
#
|
1816
|
+
# dependent: * `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.
|
1817
|
+
# conditional_cases` * `Page.event_handlers.trigger_fulfillment.messages` * `
|
1818
|
+
# Page.event_handlers.trigger_fulfillment.conditional_cases` * `Page.form.
|
1819
|
+
# parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.
|
1820
|
+
# parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases` * `Page.
|
1821
|
+
# form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.form.
|
1822
|
+
# parameters.fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.
|
1823
|
+
# transition_routes.trigger_fulfillment.messages` * `Page.transition_routes.
|
1824
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1825
|
+
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1826
|
+
# reference/language) are supported. Note: languages must be enabled in the
|
1827
|
+
# agent before they can be used.
|
1745
1828
|
# @param [String] fields
|
1746
1829
|
# Selector specifying which fields to include in a partial response.
|
1747
1830
|
# @param [String] quota_user
|
@@ -1776,14 +1859,18 @@ module Google
|
|
1776
1859
|
# /flows/`.
|
1777
1860
|
# @param [String] language_code
|
1778
1861
|
# The language to list pages for. The following fields are language dependent: *
|
1779
|
-
# `Page.entry_fulfillment.messages` * `Page.
|
1862
|
+
# `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.conditional_cases`
|
1863
|
+
# * `Page.event_handlers.trigger_fulfillment.messages` * `Page.event_handlers.
|
1864
|
+
# trigger_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.
|
1780
1865
|
# initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
|
1781
|
-
#
|
1782
|
-
#
|
1783
|
-
#
|
1784
|
-
#
|
1785
|
-
#
|
1786
|
-
#
|
1866
|
+
# initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.
|
1867
|
+
# fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.
|
1868
|
+
# fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.
|
1869
|
+
# transition_routes.trigger_fulfillment.messages` * `Page.transition_routes.
|
1870
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1871
|
+
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1872
|
+
# reference/language) are supported. Note: languages must be enabled in the
|
1873
|
+
# agent before they can be used.
|
1787
1874
|
# @param [Fixnum] page_size
|
1788
1875
|
# The maximum number of items to return in a single page. By default 100 and at
|
1789
1876
|
# most 1000.
|
@@ -1827,13 +1914,18 @@ module Google
|
|
1827
1914
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
|
1828
1915
|
# @param [String] language_code
|
1829
1916
|
# The language of the following fields in `page`: * `Page.entry_fulfillment.
|
1830
|
-
# messages` * `Page.
|
1831
|
-
# messages` * `Page.
|
1832
|
-
#
|
1833
|
-
#
|
1834
|
-
#
|
1835
|
-
#
|
1836
|
-
#
|
1917
|
+
# messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.
|
1918
|
+
# trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.
|
1919
|
+
# conditional_cases` * `Page.form.parameters.fill_behavior.
|
1920
|
+
# initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
|
1921
|
+
# initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.
|
1922
|
+
# fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.
|
1923
|
+
# fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.
|
1924
|
+
# transition_routes.trigger_fulfillment.messages` * `Page.transition_routes.
|
1925
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1926
|
+
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1927
|
+
# reference/language) are supported. Note: languages must be enabled in the
|
1928
|
+
# agent before they can be used.
|
1837
1929
|
# @param [String] update_mask
|
1838
1930
|
# The mask to control which fields get updated. If the mask is not present, all
|
1839
1931
|
# fields will be updated.
|
@@ -1874,11 +1966,12 @@ module Google
|
|
1874
1966
|
# locations//agents//flows/`.
|
1875
1967
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
|
1876
1968
|
# @param [String] language_code
|
1877
|
-
# The language
|
1878
|
-
#
|
1879
|
-
#
|
1880
|
-
#
|
1881
|
-
#
|
1969
|
+
# The language of the following fields in `TransitionRouteGroup`: * `
|
1970
|
+
# TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` * `
|
1971
|
+
# TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`
|
1972
|
+
# If not specified, the agent's default language is used. [Many languages](https:
|
1973
|
+
# //cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note:
|
1974
|
+
# languages must be enabled in the agent before they can be used.
|
1882
1975
|
# @param [String] fields
|
1883
1976
|
# Selector specifying which fields to include in a partial response.
|
1884
1977
|
# @param [String] quota_user
|
@@ -1952,8 +2045,10 @@ module Google
|
|
1952
2045
|
# Required. The name of the TransitionRouteGroup. Format: `projects//locations//
|
1953
2046
|
# agents//flows//transitionRouteGroups/`.
|
1954
2047
|
# @param [String] language_code
|
1955
|
-
# The language to
|
1956
|
-
#
|
2048
|
+
# The language to retrieve the transition route group for. The following fields
|
2049
|
+
# are language dependent: * `TransitionRouteGroup.transition_routes.
|
2050
|
+
# trigger_fulfillment.messages` * `TransitionRouteGroup.transition_routes.
|
2051
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1957
2052
|
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1958
2053
|
# reference/language) are supported. Note: languages must be enabled in the
|
1959
2054
|
# agent before they can be used.
|
@@ -1990,8 +2085,10 @@ module Google
|
|
1990
2085
|
# Required. The flow to list all transition route groups for. Format: `projects//
|
1991
2086
|
# locations//agents//flows/`.
|
1992
2087
|
# @param [String] language_code
|
1993
|
-
# The language to list transition route groups for. The
|
1994
|
-
#
|
2088
|
+
# The language to list transition route groups for. The following fields are
|
2089
|
+
# language dependent: * `TransitionRouteGroup.transition_routes.
|
2090
|
+
# trigger_fulfillment.messages` * `TransitionRouteGroup.transition_routes.
|
2091
|
+
# trigger_fulfillment.conditional_cases` If not specified, the agent's default
|
1995
2092
|
# language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/
|
1996
2093
|
# reference/language) are supported. Note: languages must be enabled in the
|
1997
2094
|
# agent before they can be used.
|
@@ -2037,11 +2134,12 @@ module Google
|
|
2037
2134
|
# /locations//agents//flows//transitionRouteGroups/`.
|
2038
2135
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
|
2039
2136
|
# @param [String] language_code
|
2040
|
-
# The language
|
2041
|
-
#
|
2042
|
-
#
|
2043
|
-
#
|
2044
|
-
#
|
2137
|
+
# The language of the following fields in `TransitionRouteGroup`: * `
|
2138
|
+
# TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` * `
|
2139
|
+
# TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`
|
2140
|
+
# If not specified, the agent's default language is used. [Many languages](https:
|
2141
|
+
# //cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note:
|
2142
|
+
# languages must be enabled in the agent before they can be used.
|
2045
2143
|
# @param [String] update_mask
|
2046
2144
|
# The mask to control which fields get updated.
|
2047
2145
|
# @param [String] fields
|
@@ -2209,10 +2307,10 @@ module Google
|
|
2209
2307
|
execute_or_queue_command(command, &block)
|
2210
2308
|
end
|
2211
2309
|
|
2212
|
-
# Loads
|
2310
|
+
# Loads resources in the specified version to the draft flow.
|
2213
2311
|
# @param [String] name
|
2214
|
-
# Required. The Version to be loaded to draft
|
2215
|
-
#
|
2312
|
+
# Required. The Version to be loaded to draft flow. Format: `projects//locations/
|
2313
|
+
# /agents//flows//versions/`.
|
2216
2314
|
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest] google_cloud_dialogflow_cx_v3_load_version_request_object
|
2217
2315
|
# @param [String] fields
|
2218
2316
|
# Selector specifying which fields to include in a partial response.
|
@@ -2613,8 +2711,7 @@ module Google
|
|
2613
2711
|
execute_or_queue_command(command, &block)
|
2614
2712
|
end
|
2615
2713
|
|
2616
|
-
# Creates a session entity type.
|
2617
|
-
# exists, overrides the session entity type.
|
2714
|
+
# Creates a session entity type.
|
2618
2715
|
# @param [String] parent
|
2619
2716
|
# Required. The session to create a session entity type for. Format: `projects//
|
2620
2717
|
# locations//agents//sessions/` or `projects//locations//agents//environments//
|
@@ -3147,6 +3244,37 @@ module Google
|
|
3147
3244
|
execute_or_queue_command(command, &block)
|
3148
3245
|
end
|
3149
3246
|
|
3247
|
+
# Gets a test case result.
|
3248
|
+
# @param [String] name
|
3249
|
+
# Required. The name of the testcase. Format: `projects//locations//agents//
|
3250
|
+
# testCases//results/`.
|
3251
|
+
# @param [String] fields
|
3252
|
+
# Selector specifying which fields to include in a partial response.
|
3253
|
+
# @param [String] quota_user
|
3254
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3255
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3256
|
+
# @param [Google::Apis::RequestOptions] options
|
3257
|
+
# Request-specific options
|
3258
|
+
#
|
3259
|
+
# @yield [result, err] Result & error if block supplied
|
3260
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCaseResult] parsed result object
|
3261
|
+
# @yieldparam err [StandardError] error object if request failed
|
3262
|
+
#
|
3263
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCaseResult]
|
3264
|
+
#
|
3265
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3266
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3267
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3268
|
+
def get_project_location_agent_test_case_result(name, fields: nil, quota_user: nil, options: nil, &block)
|
3269
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
3270
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCaseResult::Representation
|
3271
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCaseResult
|
3272
|
+
command.params['name'] = name unless name.nil?
|
3273
|
+
command.query['fields'] = fields unless fields.nil?
|
3274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3275
|
+
execute_or_queue_command(command, &block)
|
3276
|
+
end
|
3277
|
+
|
3150
3278
|
# Fetches a list of results for a given test case.
|
3151
3279
|
# @param [String] parent
|
3152
3280
|
# Required. The test case to list results for. Format: `projects//locations//
|