Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running operation. The returned Operation
type has the following method-specific fields:
metadata
:ImportTestCasesMetadata
response
:ImportTestCasesResponse
HTTP request
POST https://{endpoint}/v3/{parent=projects/*/locations/*/agents/*}/testCases:import
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The agent to import test cases to. Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field source . Required. The source to import. source can be only one of the following: |
|
gcs |
The Google Cloud Storage URI to import test cases from. The format of this URI must be Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control. |
content |
Uncompressed raw byte content for test cases. A base64-encoded string. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.