Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.AgentsResource.TestCasesResource

The "testCases" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v3
Assembly: Google.Apis.Dialogflow.v3.dll
Syntax
public class ProjectsResource.LocationsResource.AgentsResource.TestCasesResource

Constructors

TestCasesResource(IClientService)

Constructs a new resource.

Declaration
public TestCasesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Results

Gets the Results resource.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ResultsResource Results { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ResultsResource

Methods

BatchDelete(GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest, string)

Batch deletes test cases.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.BatchDeleteRequest BatchDelete(GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest body

The body of the request.

string parent

Required. The agent to delete test cases from. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.BatchDeleteRequest

BatchRun(GoogleCloudDialogflowCxV3BatchRunTestCasesRequest, string)

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

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.BatchRunRequest BatchRun(GoogleCloudDialogflowCxV3BatchRunTestCasesRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3BatchRunTestCasesRequest body

The body of the request.

string parent

Required. Agent name. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.BatchRunRequest

CalculateCoverage(string)

Calculates the test coverage for an agent.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.CalculateCoverageRequest CalculateCoverage(string agent)
Parameters
Type Name Description
string agent

Required. The agent to calculate coverage for. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.CalculateCoverageRequest

Create(GoogleCloudDialogflowCxV3TestCase, string)

Creates a test case for the given agent.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.CreateRequest Create(GoogleCloudDialogflowCxV3TestCase body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3TestCase body

The body of the request.

string parent

Required. The agent to create the test case for. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.CreateRequest

Export(GoogleCloudDialogflowCxV3ExportTestCasesRequest, string)

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
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ExportRequest Export(GoogleCloudDialogflowCxV3ExportTestCasesRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3ExportTestCasesRequest body

The body of the request.

string parent

Required. The agent where to export test cases from. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ExportRequest

Get(string)

Gets a test case.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the testcase. Format: projects//locations//agents//testCases/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.GetRequest

Import(GoogleCloudDialogflowCxV3ImportTestCasesRequest, string)

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
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ImportRequest Import(GoogleCloudDialogflowCxV3ImportTestCasesRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3ImportTestCasesRequest body

The body of the request.

string parent

Required. The agent to import test cases to. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ImportRequest

List(string)

Fetches a list of test cases for a given agent.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The agent to list all pages for. Format: projects//locations//agents/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.ListRequest

Patch(GoogleCloudDialogflowCxV3TestCase, string)

Updates the specified test case.

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.PatchRequest Patch(GoogleCloudDialogflowCxV3TestCase body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3TestCase body

The body of the request.

string name

The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: projects//locations//agents//testCases/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.PatchRequest

Run(GoogleCloudDialogflowCxV3RunTestCaseRequest, string)

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

Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.RunRequest Run(GoogleCloudDialogflowCxV3RunTestCaseRequest body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowCxV3RunTestCaseRequest body

The body of the request.

string name

Required. Format of test case name to run: projects//locations//agents//testCases/.

Returns
Type Description
ProjectsResource.LocationsResource.AgentsResource.TestCasesResource.RunRequest
In this article
Back to top Generated by DocFX