import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets details of a single connection. */ export declare function getConnection(args: GetConnectionArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetConnectionArgs { connectionId: string; location: string; project?: string; } export interface GetConnectionResult { /** * Allows clients to store small amounts of arbitrary data. */ readonly annotations: { [key: string]: string; }; /** * Server assigned timestamp for when the connection was created. */ readonly createTime: string; /** * If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled. */ readonly disabled: boolean; /** * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ readonly etag: string; /** * Configuration for connections to github.com. */ readonly githubConfig: outputs.cloudbuild.v2.GitHubConfigResponse; /** * Configuration for connections to an instance of GitHub Enterprise. */ readonly githubEnterpriseConfig: outputs.cloudbuild.v2.GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfigResponse; /** * Configuration for connections to gitlab.com or an instance of GitLab Enterprise. */ readonly gitlabConfig: outputs.cloudbuild.v2.GoogleDevtoolsCloudbuildV2GitLabConfigResponse; /** * Installation state of the Connection. */ readonly installationState: outputs.cloudbuild.v2.InstallationStateResponse; /** * Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`. */ readonly name: string; /** * Set to true when the connection is being set up or updated in the background. */ readonly reconciling: boolean; /** * Server assigned timestamp for when the connection was updated. */ readonly updateTime: string; } /** * Gets details of a single connection. */ export declare function getConnectionOutput(args: GetConnectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetConnectionOutputArgs { connectionId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }