import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Repository resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/Repository * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a new repository. * * ## Import * * Repositories can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/repository:Repository test_repository "id" * ``` */ export declare class Repository extends pulumi.CustomResource { /** * Get an existing Repository 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?: RepositoryState, opts?: pulumi.CustomResourceOptions): Repository; /** * Returns true if the given object is an instance of Repository. 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 Repository; /** * The count of the branches present in the repository. */ readonly branchCount: pulumi.Output; /** * The count of the commits present in the repository. */ readonly commitCount: pulumi.Output; /** * The OCID of the repository's compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) The default branch of the repository. */ readonly defaultBranch: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Details of the repository. Avoid entering confidential information. */ readonly description: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * HTTP URL that you use to git clone, pull and push. */ readonly httpUrl: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecyleDetails: pulumi.Output; /** * (Updatable) Configuration information for mirroring the repository. */ readonly mirrorRepositoryConfig: pulumi.Output; /** * (Updatable) Name of the repository. Should be unique within the project. */ readonly name: pulumi.Output; /** * Tenancy unique namespace. */ readonly namespace: pulumi.Output; /** * The OCID of the parent repository. */ readonly parentRepositoryId: pulumi.Output; /** * The OCID of the DevOps project containing the repository. */ readonly projectId: pulumi.Output; /** * Unique project name in a namespace. */ readonly projectName: pulumi.Output; /** * (Updatable) Type of repository. Allowed values: `MIRRORED` `HOSTED` `FORKED` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly repositoryType: pulumi.Output; /** * The size of the repository in bytes. */ readonly sizeInBytes: pulumi.Output; /** * SSH URL that you use to git clone, pull and push. */ readonly sshUrl: pulumi.Output; /** * The current state of the repository. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the repository was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * The time the repository was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository. */ readonly triggerBuildEvents: pulumi.Output; /** * Create a Repository 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: RepositoryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Repository resources. */ export interface RepositoryState { /** * The count of the branches present in the repository. */ branchCount?: pulumi.Input; /** * The count of the commits present in the repository. */ commitCount?: pulumi.Input; /** * The OCID of the repository's compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) The default branch of the repository. */ defaultBranch?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Details of the repository. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * HTTP URL that you use to git clone, pull and push. */ httpUrl?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecyleDetails?: pulumi.Input; /** * (Updatable) Configuration information for mirroring the repository. */ mirrorRepositoryConfig?: pulumi.Input; /** * (Updatable) Name of the repository. Should be unique within the project. */ name?: pulumi.Input; /** * Tenancy unique namespace. */ namespace?: pulumi.Input; /** * The OCID of the parent repository. */ parentRepositoryId?: pulumi.Input; /** * The OCID of the DevOps project containing the repository. */ projectId?: pulumi.Input; /** * Unique project name in a namespace. */ projectName?: pulumi.Input; /** * (Updatable) Type of repository. Allowed values: `MIRRORED` `HOSTED` `FORKED` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ repositoryType?: pulumi.Input; /** * The size of the repository in bytes. */ sizeInBytes?: pulumi.Input; /** * SSH URL that you use to git clone, pull and push. */ sshUrl?: pulumi.Input; /** * The current state of the repository. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the repository was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreated?: pulumi.Input; /** * The time the repository was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeUpdated?: pulumi.Input; /** * Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository. */ triggerBuildEvents?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a Repository resource. */ export interface RepositoryArgs { /** * (Updatable) The default branch of the repository. */ defaultBranch?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Details of the repository. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Configuration information for mirroring the repository. */ mirrorRepositoryConfig?: pulumi.Input; /** * (Updatable) Name of the repository. Should be unique within the project. */ name?: pulumi.Input; /** * The OCID of the parent repository. */ parentRepositoryId?: pulumi.Input; /** * The OCID of the DevOps project containing the repository. */ projectId: pulumi.Input; /** * (Updatable) Type of repository. Allowed values: `MIRRORED` `HOSTED` `FORKED` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ repositoryType: pulumi.Input; } //# sourceMappingURL=repository.d.ts.map