import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Data source for retrieving workspaces. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getWorkspace({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getWorkspace. */ export interface GetWorkspaceArgs { /** * Provider connectors configured on the Workspace. Only one connector of a type is supported */ connectors?: inputs.platform.GetWorkspaceConnector[]; /** * Description of the Workspace */ description?: string; /** * Environment variables configured on the workspace */ environmentVariables?: inputs.platform.GetWorkspaceEnvironmentVariable[]; /** * Identifier of the Workspace */ identifier: string; /** * Organization Identifier */ orgId: string; /** * Project Identifier */ projectId: string; /** * Repository Branch in which the code should be accessed */ repositoryBranch?: string; /** * Repository Tag in which the code should be accessed */ repositoryCommit?: string; /** * Repository Commit SHA in which the code should be accessed */ repositorySha?: string; /** * Tags to associate with the resource. */ tags?: string[]; /** * Terraform variables files configured on the workspace (see below for nested schema) */ terraformVariableFiles?: inputs.platform.GetWorkspaceTerraformVariableFile[]; /** * Terraform variables configured on the workspace (see below for nested schema) */ terraformVariables?: inputs.platform.GetWorkspaceTerraformVariable[]; /** * Variable sets to use. */ variableSets?: string[]; } /** * A collection of values returned by getWorkspace. */ export interface GetWorkspaceResult { /** * Provider connectors configured on the Workspace. Only one connector of a type is supported */ readonly connectors?: outputs.platform.GetWorkspaceConnector[]; /** * If enabled cost estimation operations will be performed in this workspace */ readonly costEstimationEnabled: boolean; /** * Default pipelines associated with this workspace */ readonly defaultPipelines: { [key: string]: string; }; /** * Description of the Workspace */ readonly description: string; /** * Environment variables configured on the workspace */ readonly environmentVariables: outputs.platform.GetWorkspaceEnvironmentVariable[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Identifier of the Workspace */ readonly identifier: string; /** * Name of the Workspace */ readonly name: string; /** * Organization Identifier */ readonly orgId: string; /** * Project Identifier */ readonly projectId: string; /** * Provider Connector is the reference to the connector for the infrastructure provider */ readonly providerConnector: string; /** * Provisioner type defines the provisioning tool to use. */ readonly provisionerType: string; /** * Provisioner Version defines the tool version to use */ readonly provisionerVersion: string; /** * Repository is the name of the repository to use */ readonly repository: string; /** * Repository Branch in which the code should be accessed */ readonly repositoryBranch: string; /** * Repository Tag in which the code should be accessed */ readonly repositoryCommit: string; /** * Repository Connector is the reference to the connector to use for this code */ readonly repositoryConnector: string; /** * Repository Path is the path in which the infra code resides */ readonly repositoryPath: string; /** * Repository Commit SHA in which the code should be accessed */ readonly repositorySha: string; /** * Tags to associate with the resource. */ readonly tags?: string[]; /** * Terraform variables files configured on the workspace (see below for nested schema) */ readonly terraformVariableFiles: outputs.platform.GetWorkspaceTerraformVariableFile[]; /** * Terraform variables configured on the workspace (see below for nested schema) */ readonly terraformVariables: outputs.platform.GetWorkspaceTerraformVariable[]; /** * Variable sets to use. */ readonly variableSets: string[]; } /** * Data source for retrieving workspaces. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getWorkspace({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getWorkspace. */ export interface GetWorkspaceOutputArgs { /** * Provider connectors configured on the Workspace. Only one connector of a type is supported */ connectors?: pulumi.Input[] | undefined>; /** * Description of the Workspace */ description?: pulumi.Input; /** * Environment variables configured on the workspace */ environmentVariables?: pulumi.Input[] | undefined>; /** * Identifier of the Workspace */ identifier: pulumi.Input; /** * Organization Identifier */ orgId: pulumi.Input; /** * Project Identifier */ projectId: pulumi.Input; /** * Repository Branch in which the code should be accessed */ repositoryBranch?: pulumi.Input; /** * Repository Tag in which the code should be accessed */ repositoryCommit?: pulumi.Input; /** * Repository Commit SHA in which the code should be accessed */ repositorySha?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; /** * Terraform variables files configured on the workspace (see below for nested schema) */ terraformVariableFiles?: pulumi.Input[] | undefined>; /** * Terraform variables configured on the workspace (see below for nested schema) */ terraformVariables?: pulumi.Input[] | undefined>; /** * Variable sets to use. */ variableSets?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getWorkspace.d.ts.map