google-apis-dialogflow_v3beta1 0.7.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/google/apis/dialogflow_v3beta1.rb +1 -1
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +349 -47
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +114 -0
- data/lib/google/apis/dialogflow_v3beta1/service.rb +197 -69
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV3beta1
|
18
18
|
# Version of the google-apis-dialogflow_v3beta1 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
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -178,6 +184,12 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
181
193
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
195
|
|
@@ -622,6 +634,18 @@ module Google
|
|
622
634
|
include Google::Apis::Core::JsonObjectSupport
|
623
635
|
end
|
624
636
|
|
637
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowRequest
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
+
|
640
|
+
include Google::Apis::Core::JsonObjectSupport
|
641
|
+
end
|
642
|
+
|
643
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
644
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
645
|
+
|
646
|
+
include Google::Apis::Core::JsonObjectSupport
|
647
|
+
end
|
648
|
+
|
625
649
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
626
650
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
651
|
|
@@ -730,6 +754,18 @@ module Google
|
|
730
754
|
include Google::Apis::Core::JsonObjectSupport
|
731
755
|
end
|
732
756
|
|
757
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowRequest
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
759
|
+
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
761
|
+
end
|
762
|
+
|
763
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
|
+
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
767
|
+
end
|
768
|
+
|
733
769
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
734
770
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
771
|
|
@@ -1306,6 +1342,12 @@ module Google
|
|
1306
1342
|
include Google::Apis::Core::JsonObjectSupport
|
1307
1343
|
end
|
1308
1344
|
|
1345
|
+
class GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
|
1346
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1347
|
+
|
1348
|
+
include Google::Apis::Core::JsonObjectSupport
|
1349
|
+
end
|
1350
|
+
|
1309
1351
|
class GoogleCloudDialogflowV2AnnotatedMessagePart
|
1310
1352
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1311
1353
|
|
@@ -2309,6 +2351,14 @@ module Google
|
|
2309
2351
|
end
|
2310
2352
|
end
|
2311
2353
|
|
2354
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
2355
|
+
# @private
|
2356
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2357
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
2358
|
+
property :flow_uri, as: 'flowUri'
|
2359
|
+
end
|
2360
|
+
end
|
2361
|
+
|
2312
2362
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
2313
2363
|
# @private
|
2314
2364
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2427,6 +2477,13 @@ module Google
|
|
2427
2477
|
end
|
2428
2478
|
end
|
2429
2479
|
|
2480
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
2481
|
+
# @private
|
2482
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2483
|
+
property :flow, as: 'flow'
|
2484
|
+
end
|
2485
|
+
end
|
2486
|
+
|
2430
2487
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
2431
2488
|
# @private
|
2432
2489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2782,6 +2839,7 @@ module Google
|
|
2782
2839
|
|
2783
2840
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo::Representation
|
2784
2841
|
|
2842
|
+
property :language_code, as: 'languageCode'
|
2785
2843
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessage::Representation
|
2786
2844
|
|
2787
2845
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3PageInfo::Representation
|
@@ -2791,6 +2849,10 @@ module Google
|
|
2791
2849
|
|
2792
2850
|
property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo::Representation
|
2793
2851
|
|
2852
|
+
property :text, as: 'text'
|
2853
|
+
property :transcript, as: 'transcript'
|
2854
|
+
property :trigger_event, as: 'triggerEvent'
|
2855
|
+
property :trigger_intent, as: 'triggerIntent'
|
2794
2856
|
end
|
2795
2857
|
end
|
2796
2858
|
|
@@ -2866,6 +2928,7 @@ module Google
|
|
2866
2928
|
property :speech_to_text_settings, as: 'speechToTextSettings', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings::Representation
|
2867
2929
|
|
2868
2930
|
property :start_flow, as: 'startFlow'
|
2931
|
+
collection :supported_language_codes, as: 'supportedLanguageCodes'
|
2869
2932
|
property :time_zone, as: 'timeZone'
|
2870
2933
|
end
|
2871
2934
|
end
|
@@ -3169,6 +3232,7 @@ module Google
|
|
3169
3232
|
# @private
|
3170
3233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3171
3234
|
property :agent_uri, as: 'agentUri'
|
3235
|
+
property :environment, as: 'environment'
|
3172
3236
|
end
|
3173
3237
|
end
|
3174
3238
|
|
@@ -3180,6 +3244,22 @@ module Google
|
|
3180
3244
|
end
|
3181
3245
|
end
|
3182
3246
|
|
3247
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowRequest
|
3248
|
+
# @private
|
3249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3250
|
+
property :flow_uri, as: 'flowUri'
|
3251
|
+
property :include_referenced_flows, as: 'includeReferencedFlows'
|
3252
|
+
end
|
3253
|
+
end
|
3254
|
+
|
3255
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
3256
|
+
# @private
|
3257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3258
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
3259
|
+
property :flow_uri, as: 'flowUri'
|
3260
|
+
end
|
3261
|
+
end
|
3262
|
+
|
3183
3263
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
3184
3264
|
# @private
|
3185
3265
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3213,6 +3293,7 @@ module Google
|
|
3213
3293
|
property :name, as: 'name'
|
3214
3294
|
property :nlu_settings, as: 'nluSettings', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NluSettings, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NluSettings::Representation
|
3215
3295
|
|
3296
|
+
collection :transition_route_groups, as: 'transitionRouteGroups'
|
3216
3297
|
collection :transition_routes, as: 'transitionRoutes', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRoute, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRoute::Representation
|
3217
3298
|
|
3218
3299
|
end
|
@@ -3356,6 +3437,22 @@ module Google
|
|
3356
3437
|
end
|
3357
3438
|
end
|
3358
3439
|
|
3440
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowRequest
|
3441
|
+
# @private
|
3442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3443
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
3444
|
+
property :flow_uri, as: 'flowUri'
|
3445
|
+
property :import_option, as: 'importOption'
|
3446
|
+
end
|
3447
|
+
end
|
3448
|
+
|
3449
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
3450
|
+
# @private
|
3451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3452
|
+
property :flow, as: 'flow'
|
3453
|
+
end
|
3454
|
+
end
|
3455
|
+
|
3359
3456
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3360
3457
|
# @private
|
3361
3458
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3724,6 +3821,7 @@ module Google
|
|
3724
3821
|
# @private
|
3725
3822
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3726
3823
|
property :analyze_query_text_sentiment, as: 'analyzeQueryTextSentiment'
|
3824
|
+
property :current_page, as: 'currentPage'
|
3727
3825
|
property :disable_webhook, as: 'disableWebhook'
|
3728
3826
|
property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV3beta1::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV3beta1::GoogleTypeLatLng::Representation
|
3729
3827
|
|
@@ -4216,6 +4314,8 @@ module Google
|
|
4216
4314
|
property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService::Representation
|
4217
4315
|
|
4218
4316
|
property :name, as: 'name'
|
4317
|
+
property :service_directory, as: 'serviceDirectory', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig::Representation
|
4318
|
+
|
4219
4319
|
property :timeout, as: 'timeout'
|
4220
4320
|
end
|
4221
4321
|
end
|
@@ -4238,6 +4338,7 @@ module Google
|
|
4238
4338
|
|
4239
4339
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo::Representation
|
4240
4340
|
|
4341
|
+
property :language_code, as: 'languageCode'
|
4241
4342
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation
|
4242
4343
|
|
4243
4344
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PageInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PageInfo::Representation
|
@@ -4247,6 +4348,10 @@ module Google
|
|
4247
4348
|
|
4248
4349
|
property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo::Representation
|
4249
4350
|
|
4351
|
+
property :text, as: 'text'
|
4352
|
+
property :transcript, as: 'transcript'
|
4353
|
+
property :trigger_event, as: 'triggerEvent'
|
4354
|
+
property :trigger_intent, as: 'triggerIntent'
|
4250
4355
|
end
|
4251
4356
|
end
|
4252
4357
|
|
@@ -4308,6 +4413,15 @@ module Google
|
|
4308
4413
|
end
|
4309
4414
|
end
|
4310
4415
|
|
4416
|
+
class GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
|
4417
|
+
# @private
|
4418
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4419
|
+
property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService::Representation
|
4420
|
+
|
4421
|
+
property :service, as: 'service'
|
4422
|
+
end
|
4423
|
+
end
|
4424
|
+
|
4311
4425
|
class GoogleCloudDialogflowV2AnnotatedMessagePart
|
4312
4426
|
# @private
|
4313
4427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportFlowRequest] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
|
1429
|
+
# @yieldparam err [StandardError] error object if request failed
|
1430
|
+
#
|
1431
|
+
# @return [Google::Apis::DialogflowV3beta1::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_v3beta1_export_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1437
|
+
command = make_simple_command(:post, 'v3beta1/{+name}:export', options)
|
1438
|
+
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportFlowRequest::Representation
|
1439
|
+
command.request_object = google_cloud_dialogflow_cx_v3beta1_export_flow_request_object
|
1440
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
|
1441
|
+
command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportFlowRequest] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
|
1539
|
+
# @yieldparam err [StandardError] error object if request failed
|
1540
|
+
#
|
1541
|
+
# @return [Google::Apis::DialogflowV3beta1::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_v3beta1_import_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1547
|
+
command = make_simple_command(:post, 'v3beta1/{+parent}/flows:import', options)
|
1548
|
+
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportFlowRequest::Representation
|
1549
|
+
command.request_object = google_cloud_dialogflow_cx_v3beta1_import_flow_request_object
|
1550
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
|
1551
|
+
command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LoadVersionRequest] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TestCaseResult] parsed result object
|
3261
|
+
# @yieldparam err [StandardError] error object if request failed
|
3262
|
+
#
|
3263
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TestCaseResult]
|
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, 'v3beta1/{+name}', options)
|
3270
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TestCaseResult::Representation
|
3271
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TestCaseResult
|
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//
|