import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness DBDevOps Schema. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getDbSchema({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getDbSchema(args: GetDbSchemaArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDbSchema. */ export interface GetDbSchemaArgs { /** * Unique identifier of the resource. */ identifier: string; /** * DB Migration tool type. Valid values are: Liquibase, Flyway */ migrationType?: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId: string; /** * Unique identifier of the project. */ projectId: string; /** * Type of the database schema. Valid values are: Repository, Script */ type?: string; /** * If percona-toolkit is enabled for the database schema. */ usePercona?: boolean; } /** * A collection of values returned by getDbSchema. */ export interface GetDbSchemaResult { /** * Configuration to clone changeSets using script */ readonly changelogScript: outputs.platform.GetDbSchemaChangelogScript; /** * Description of the resource. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the resource. */ readonly identifier: string; /** * DB Migration tool type. Valid values are: Liquibase, Flyway */ readonly migrationType?: string; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId: string; /** * Unique identifier of the project. */ readonly projectId: string; /** * Provides a connector and path at which to find the database schema representation. For Harness Code Repository, connector will be empty. */ readonly schemaSources: outputs.platform.GetDbSchemaSchemaSource[]; /** * The service associated with schema */ readonly service: string; /** * Tags to associate with the resource. */ readonly tags: string[]; /** * Type of the database schema. Valid values are: Repository, Script */ readonly type?: string; /** * If percona-toolkit is enabled for the database schema. */ readonly usePercona?: boolean; } /** * Data source for retrieving a Harness DBDevOps Schema. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getDbSchema({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getDbSchemaOutput(args: GetDbSchemaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDbSchema. */ export interface GetDbSchemaOutputArgs { /** * Unique identifier of the resource. */ identifier: pulumi.Input; /** * DB Migration tool type. Valid values are: Liquibase, Flyway */ migrationType?: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * Unique identifier of the organization. */ orgId: pulumi.Input; /** * Unique identifier of the project. */ projectId: pulumi.Input; /** * Type of the database schema. Valid values are: Repository, Script */ type?: pulumi.Input; /** * If percona-toolkit is enabled for the database schema. */ usePercona?: pulumi.Input; } //# sourceMappingURL=getDbSchema.d.ts.map