ProjectsLocationsAgentsTestCases
class ProjectsLocationsAgentsTestCases extends Resource (View source)
The "testCases" collection of methods.
Typical usage is:
$dialogflowService = new Google\Service\Dialogflow(...);
$testCases = $dialogflowService->projects_locations_agents_testCases;
Methods
Batch deletes test cases. (testCases.batchDelete)
Kicks off a batch run of test cases. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: BatchRunTestCasesMetadata - response
:
BatchRunTestCasesResponse (testCases.batchRun)
Calculates the test coverage for an agent. (testCases.calculateCoverage)
Creates a test case for the given agent. (testCases.create)
Exports the test cases under the agent to a Cloud Storage bucket or a local
file. Filter can be applied to export a subset of test cases. This method is
a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ExportTestCasesMetadata - response
:
ExportTestCasesResponse (testCases.export)
Gets a test case. (testCases.get)
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 (testCases.import)
Fetches a list of test cases for a given agent.
Updates the specified test case. (testCases.patch)
Kicks off a test case run. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: RunTestCaseMetadata - response
: RunTestCaseResponse
(testCases.run)
Details
GoogleProtobufEmpty
batchDelete(string $parent, GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest $postBody, array $optParams = [])
Batch deletes test cases. (testCases.batchDelete)
GoogleLongrunningOperation
batchRun(string $parent, GoogleCloudDialogflowCxV3BatchRunTestCasesRequest $postBody, array $optParams = [])
Kicks off a batch run of test cases. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: BatchRunTestCasesMetadata - response
:
BatchRunTestCasesResponse (testCases.batchRun)
GoogleCloudDialogflowCxV3CalculateCoverageResponse
calculateCoverage(string $agent, array $optParams = [])
Calculates the test coverage for an agent. (testCases.calculateCoverage)
GoogleCloudDialogflowCxV3TestCase
create(string $parent, GoogleCloudDialogflowCxV3TestCase $postBody, array $optParams = [])
Creates a test case for the given agent. (testCases.create)
GoogleLongrunningOperation
export(string $parent, GoogleCloudDialogflowCxV3ExportTestCasesRequest $postBody, array $optParams = [])
Exports the test cases under the agent to a Cloud Storage bucket or a local
file. Filter can be applied to export a subset of test cases. This method is
a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ExportTestCasesMetadata - response
:
ExportTestCasesResponse (testCases.export)
GoogleCloudDialogflowCxV3TestCase
get(string $name, array $optParams = [])
Gets a test case. (testCases.get)
GoogleLongrunningOperation
import(string $parent, GoogleCloudDialogflowCxV3ImportTestCasesRequest $postBody, array $optParams = [])
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 (testCases.import)
GoogleCloudDialogflowCxV3ListTestCasesResponse
listProjectsLocationsAgentsTestCases(string $parent, array $optParams = [])
Fetches a list of test cases for a given agent.
(testCases.listProjectsLocationsAgentsTestCases)
GoogleCloudDialogflowCxV3TestCase
patch(string $name, GoogleCloudDialogflowCxV3TestCase $postBody, array $optParams = [])
Updates the specified test case. (testCases.patch)
GoogleLongrunningOperation
run(string $name, GoogleCloudDialogflowCxV3RunTestCaseRequest $postBody, array $optParams = [])
Kicks off a test case run. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: RunTestCaseMetadata - response
: RunTestCaseResponse
(testCases.run)