import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Resource for creating a git connector * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const _default = harness.getSecretManager({ * "default": true, * }); * const example = new harness.EncryptedText("example", { * name: "example-secret", * value: "foo", * secretManagerId: _default.then(_default => _default.id), * }); * const exampleGitConnector = new harness.GitConnector("example", { * name: "example", * url: "https://github.com/harness/terraform-provider-harness", * branch: "master", * generateWebhookUrl: true, * passwordSecretId: example.id, * urlType: "REPO", * username: "someuser", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import using the Harness git connector id * * ```sh * $ pulumi import harness:index/gitConnector:GitConnector example * ``` */ export declare class GitConnector extends pulumi.CustomResource { /** * Get an existing GitConnector resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: GitConnectorState, opts?: pulumi.CustomResourceOptions): GitConnector; /** * Returns true if the given object is an instance of GitConnector. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is GitConnector; /** * The branch of the git connector to use */ readonly branch: pulumi.Output; /** * Custom details to use when making commits using this git connector */ readonly commitDetails: pulumi.Output; /** * The time the git connector was created */ readonly createdAt: pulumi.Output; /** * Delegate selectors to apply to this git connector. */ readonly delegateSelectors: pulumi.Output; /** * Boolean indicating whether or not to generate a webhook url. */ readonly generateWebhookUrl: pulumi.Output; /** * Name of the git connector. */ readonly name: pulumi.Output; /** * The id of the secret for connecting to the git repository. */ readonly passwordSecretId: pulumi.Output; /** * The id of the SSH secret to use */ readonly sshSettingId: pulumi.Output; /** * The URL of the git repository or account/organization */ readonly url: pulumi.Output; /** * The type of git url being used. Options are `ACCOUNT`, and `REPO.` */ readonly urlType: pulumi.Output; /** * This block is used for scoping the resource to a specific set of applications or environments. */ readonly usageScopes: pulumi.Output; /** * The name of the user used to connect to the git repository */ readonly username: pulumi.Output; /** * The generated webhook url */ readonly webhookUrl: pulumi.Output; /** * Create a GitConnector resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GitConnectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GitConnector resources. */ export interface GitConnectorState { /** * The branch of the git connector to use */ branch?: pulumi.Input; /** * Custom details to use when making commits using this git connector */ commitDetails?: pulumi.Input; /** * The time the git connector was created */ createdAt?: pulumi.Input; /** * Delegate selectors to apply to this git connector. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Boolean indicating whether or not to generate a webhook url. */ generateWebhookUrl?: pulumi.Input; /** * Name of the git connector. */ name?: pulumi.Input; /** * The id of the secret for connecting to the git repository. */ passwordSecretId?: pulumi.Input; /** * The id of the SSH secret to use */ sshSettingId?: pulumi.Input; /** * The URL of the git repository or account/organization */ url?: pulumi.Input; /** * The type of git url being used. Options are `ACCOUNT`, and `REPO.` */ urlType?: pulumi.Input; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input[] | undefined>; /** * The name of the user used to connect to the git repository */ username?: pulumi.Input; /** * The generated webhook url */ webhookUrl?: pulumi.Input; } /** * The set of arguments for constructing a GitConnector resource. */ export interface GitConnectorArgs { /** * The branch of the git connector to use */ branch?: pulumi.Input; /** * Custom details to use when making commits using this git connector */ commitDetails?: pulumi.Input; /** * Delegate selectors to apply to this git connector. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Boolean indicating whether or not to generate a webhook url. */ generateWebhookUrl?: pulumi.Input; /** * Name of the git connector. */ name?: pulumi.Input; /** * The id of the secret for connecting to the git repository. */ passwordSecretId?: pulumi.Input; /** * The id of the SSH secret to use */ sshSettingId?: pulumi.Input; /** * The URL of the git repository or account/organization */ url: pulumi.Input; /** * The type of git url being used. Options are `ACCOUNT`, and `REPO.` */ urlType: pulumi.Input; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input[] | undefined>; /** * The name of the user used to connect to the git repository */ username?: pulumi.Input; } //# sourceMappingURL=gitConnector.d.ts.map