@pulumi/harness
Version: 
A Pulumi package for creating and managing Harness resources.
128 lines (127 loc) • 3.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
 * Datasource for looking up a Git connector.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as harness from "@pulumi/harness";
 *
 * const example = harness.platform.getGitConnector({
 *     identifier: "identifier",
 * });
 * ```
 */
export declare function getGitConnector(args: GetGitConnectorArgs, opts?: pulumi.InvokeOptions): Promise<GetGitConnectorResult>;
/**
 * A collection of arguments for invoking getGitConnector.
 */
export interface GetGitConnectorArgs {
    /**
     * 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;
}
/**
 * A collection of values returned by getGitConnector.
 */
export interface GetGitConnectorResult {
    /**
     * Whether the connection we're making is to a git repository or a git account. Valid values are Account, Repo.
     */
    readonly connectionType: string;
    /**
     * Credentials to use for the connection.
     */
    readonly credentials: outputs.platform.GetGitConnectorCredential[];
    /**
     * Tags to filter delegates for connection.
     */
    readonly delegateSelectors: string[];
    /**
     * 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;
    /**
     * Tags to associate with the resource.
     */
    readonly tags: string[];
    /**
     * URL of the git repository or account.
     */
    readonly url: string;
    /**
     * Repository to test the connection with. This is only used when `connectionType` is `Account`.
     */
    readonly validationRepo: string;
}
/**
 * Datasource for looking up a Git connector.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as harness from "@pulumi/harness";
 *
 * const example = harness.platform.getGitConnector({
 *     identifier: "identifier",
 * });
 * ```
 */
export declare function getGitConnectorOutput(args: GetGitConnectorOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGitConnectorResult>;
/**
 * A collection of arguments for invoking getGitConnector.
 */
export interface GetGitConnectorOutputArgs {
    /**
     * 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>;
}