import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a test case for the given agent. * Note - this resource's API doesn't support deletion. When deleted, the resource will persist * on Google Cloud even though it will be deleted from Pulumi state. */ export declare class TestCase extends pulumi.CustomResource { /** * Get an existing TestCase resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): TestCase; /** * Returns true if the given object is an instance of TestCase. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TestCase; readonly agentId: pulumi.Output; /** * When the test was created. */ readonly creationTime: pulumi.Output; /** * The human-readable name of the test case, unique within the agent. Limit of 200 characters. */ readonly displayName: pulumi.Output; /** * The latest test result. */ readonly lastTestResult: pulumi.Output; readonly location: pulumi.Output; /** * The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`. */ readonly name: pulumi.Output; /** * Additional freeform notes about the test case. Limit of 400 characters. */ readonly notes: pulumi.Output; readonly project: pulumi.Output; /** * Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters. */ readonly tags: pulumi.Output; /** * The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly. */ readonly testCaseConversationTurns: pulumi.Output; /** * Config for the test case. */ readonly testConfig: pulumi.Output; /** * Create a TestCase resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TestCaseArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a TestCase resource. */ export interface TestCaseArgs { agentId: pulumi.Input; /** * The human-readable name of the test case, unique within the agent. Limit of 200 characters. */ displayName: pulumi.Input; /** * The latest test result. */ lastTestResult?: pulumi.Input; location?: pulumi.Input; /** * The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`. */ name?: pulumi.Input; /** * Additional freeform notes about the test case. Limit of 400 characters. */ notes?: pulumi.Input; project?: pulumi.Input; /** * Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters. */ tags?: pulumi.Input[]>; /** * The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly. */ testCaseConversationTurns?: pulumi.Input[]>; /** * Config for the test case. */ testConfig?: pulumi.Input; }