import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`. */ export declare class Repo extends pulumi.CustomResource { /** * Get an existing Repo 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Repo; /** * Returns true if the given object is an instance of Repo. 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 Repo; /** * How this repository mirrors a repository managed by another service. Read-only field. */ readonly mirrorConfig: pulumi.Output; /** * Resource name of the repository, of the form `projects//repos/`. The repo name may contain slashes. eg, `projects/myproject/repos/name/with/slash` */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. */ readonly pubsubConfigs: pulumi.Output<{ [key: string]: string; }>; /** * The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo. */ readonly size: pulumi.Output; /** * URL to clone the repository from Google Cloud Source Repositories. Read-only field. */ readonly url: pulumi.Output; /** * Create a Repo 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?: RepoArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Repo resource. */ export interface RepoArgs { /** * How this repository mirrors a repository managed by another service. Read-only field. */ mirrorConfig?: pulumi.Input; /** * Resource name of the repository, of the form `projects//repos/`. The repo name may contain slashes. eg, `projects/myproject/repos/name/with/slash` */ name?: pulumi.Input; project?: pulumi.Input; /** * How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. */ pubsubConfigs?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo. */ size?: pulumi.Input; /** * URL to clone the repository from Google Cloud Source Repositories. Read-only field. */ url?: pulumi.Input; }