@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
136 lines (135 loc) • 3.41 kB
TypeScript
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<GetDbSchemaResult>;
/**
* A collection of arguments for invoking getDbSchema.
*/
export interface GetDbSchemaArgs {
/**
* Unique identifier of the resource.
*/
identifier: 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;
}
/**
* 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;
/**
* 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
*/
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;
}
/**
* 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<GetDbSchemaResult>;
/**
* A collection of arguments for invoking getDbSchema.
*/
export interface GetDbSchemaOutputArgs {
/**
* Unique identifier of the resource.
*/
identifier: pulumi.Input<string>;
/**
* Name of the resource.
*/
name?: pulumi.Input<string>;
/**
* Unique identifier of the organization.
*/
orgId: pulumi.Input<string>;
/**
* Unique identifier of the project.
*/
projectId: pulumi.Input<string>;
/**
* Type of the database schema. Valid values are: Repository, Script
*/
type?: pulumi.Input<string>;
}