import * as pulumi from "@pulumi/pulumi"; /** * You can create multiple versions of your agent and publish them to separate environments. * * To get more information about Version, see: * * * [API documentation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.versions) * * How-to Guides * * [Official Documentation](https://cloud.google.com/dialogflow/docs/) * * ## Example Usage * * ### Dialogflow Version Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * import * as time from "@pulumiverse/time"; * * const project = new gcp.organizations.Project("project", { * projectId: "my-proj", * name: "my-proj", * orgId: "123456789", * billingAccount: "000000-0000000-0000000-000000", * deletionPolicy: "DELETE", * }); * const dialogflow = new gcp.projects.Service("dialogflow", { * project: project.projectId, * service: "dialogflow.googleapis.com", * }); * const waitEnableServiceApi = new time.Sleep("wait_enable_service_api", {createDuration: "30s"}, { * dependsOn: [dialogflow], * }); * const gcpSa = new gcp.projects.ServiceIdentity("gcp_sa", { * service: "dialogflow.googleapis.com", * project: project.projectId, * }, { * dependsOn: [waitEnableServiceApi], * }); * const basicAgent = new gcp.diagflow.Agent("basic_agent", { * displayName: "example_agent", * defaultLanguageCode: "en", * timeZone: "America/New_York", * project: project.projectId, * }, { * dependsOn: [waitEnableServiceApi], * }); * const fullVersion = new gcp.diagflow.Version("full_version", { * description: "Dialogflow Version", * parent: pulumi.interpolate`projects/${project.projectId}/agent`, * }, { * dependsOn: [basicAgent], * }); * ``` * * ## Import * * Version can be imported using any of these accepted formats: * * * `{{parent}}/versions/{{name}}` * * `{{parent}}/{{name}}` * * When using the `pulumi import` command, Version can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:diagflow/version:Version default {{parent}}/versions/{{name}} * $ pulumi import gcp:diagflow/version:Version default {{parent}}/{{name}} * ``` */ export declare class Version extends pulumi.CustomResource { /** * Get an existing Version 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: VersionState, opts?: pulumi.CustomResourceOptions): Version; /** * Returns true if the given object is an instance of Version. 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 Version; /** * The developer-provided description of this version. */ readonly description: pulumi.Output; /** * The unique identifier of this agent version. */ readonly name: pulumi.Output; /** * The Flow to create an Version for. * Format: projects//agent. */ readonly parent: pulumi.Output; /** * The status of this version. */ readonly status: pulumi.Output; /** * The sequential number of this version. */ readonly versionNumber: pulumi.Output; /** * Create a Version 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?: VersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Version resources. */ export interface VersionState { /** * The developer-provided description of this version. */ description?: pulumi.Input; /** * The unique identifier of this agent version. */ name?: pulumi.Input; /** * The Flow to create an Version for. * Format: projects//agent. */ parent?: pulumi.Input; /** * The status of this version. */ status?: pulumi.Input; /** * The sequential number of this version. */ versionNumber?: pulumi.Input; } /** * The set of arguments for constructing a Version resource. */ export interface VersionArgs { /** * The developer-provided description of this version. */ description?: pulumi.Input; /** * The Flow to create an Version for. * Format: projects//agent. */ parent?: pulumi.Input; }