@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
174 lines (173 loc) • 5.3 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* ## Import
*
* Azure DevOps Repositories can be imported using the repo name or by the repo Guid e.g.
*
* ```sh
* $ pulumi import azuredevops:index/git:Git example projectName/repoName
* ```
*
* or
*
* ```sh
* $ pulumi import azuredevops:index/git:Git example projectName/00000000-0000-0000-0000-000000000000
* ```
*/
export declare class Git extends pulumi.CustomResource {
/**
* Get an existing Git 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<pulumi.ID>, state?: GitState, opts?: pulumi.CustomResourceOptions): Git;
/**
* Returns true if the given object is an instance of Git. 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 Git;
/**
* The ref of the default branch. Will be used as the branch name for initialized repositories.
*/
readonly defaultBranch: pulumi.Output<string>;
/**
* The ability to disable or enable the repository. Defaults to `false`.
*/
readonly disabled: pulumi.Output<boolean | undefined>;
/**
* A `initialization` block as documented below.
*/
readonly initialization: pulumi.Output<outputs.GitInitialization>;
/**
* True if the repository was created as a fork.
*/
readonly isFork: pulumi.Output<boolean>;
/**
* The name of the git repository.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of a Git project from which a fork is to be created.
*/
readonly parentRepositoryId: pulumi.Output<string | undefined>;
/**
* The project ID or project name.
*/
readonly projectId: pulumi.Output<string>;
/**
* Git HTTPS URL of the repository
*/
readonly remoteUrl: pulumi.Output<string>;
/**
* Size in bytes.
*/
readonly size: pulumi.Output<number>;
/**
* Git SSH URL of the repository.
*/
readonly sshUrl: pulumi.Output<string>;
/**
* REST API URL of the repository.
*/
readonly url: pulumi.Output<string>;
/**
* Web link to the repository.
*/
readonly webUrl: pulumi.Output<string>;
/**
* Create a Git 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: GitArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Git resources.
*/
export interface GitState {
/**
* The ref of the default branch. Will be used as the branch name for initialized repositories.
*/
defaultBranch?: pulumi.Input<string>;
/**
* The ability to disable or enable the repository. Defaults to `false`.
*/
disabled?: pulumi.Input<boolean>;
/**
* A `initialization` block as documented below.
*/
initialization?: pulumi.Input<inputs.GitInitialization>;
/**
* True if the repository was created as a fork.
*/
isFork?: pulumi.Input<boolean>;
/**
* The name of the git repository.
*/
name?: pulumi.Input<string>;
/**
* The ID of a Git project from which a fork is to be created.
*/
parentRepositoryId?: pulumi.Input<string>;
/**
* The project ID or project name.
*/
projectId?: pulumi.Input<string>;
/**
* Git HTTPS URL of the repository
*/
remoteUrl?: pulumi.Input<string>;
/**
* Size in bytes.
*/
size?: pulumi.Input<number>;
/**
* Git SSH URL of the repository.
*/
sshUrl?: pulumi.Input<string>;
/**
* REST API URL of the repository.
*/
url?: pulumi.Input<string>;
/**
* Web link to the repository.
*/
webUrl?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Git resource.
*/
export interface GitArgs {
/**
* The ref of the default branch. Will be used as the branch name for initialized repositories.
*/
defaultBranch?: pulumi.Input<string>;
/**
* The ability to disable or enable the repository. Defaults to `false`.
*/
disabled?: pulumi.Input<boolean>;
/**
* A `initialization` block as documented below.
*/
initialization: pulumi.Input<inputs.GitInitialization>;
/**
* The name of the git repository.
*/
name?: pulumi.Input<string>;
/**
* The ID of a Git project from which a fork is to be created.
*/
parentRepositoryId?: pulumi.Input<string>;
/**
* The project ID or project name.
*/
projectId: pulumi.Input<string>;
}