import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Repository Ref resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/RepositoryRef * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a new reference or updates an existing one. This API will be deprecated on Wed, 12 June 2024 01:00:00 GMT as it does not get recognized when refName has '/'. This will be replaced by "/repositories/{repositoryId}/actions/createOrUpdateGitRef" * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRepositoryRef = new oci.devops.RepositoryRef("test_repository_ref", { * refName: repositoryRefRefName, * refType: repositoryRefRefType, * repositoryId: testRepository.id, * commitId: testCommit.id, * objectId: testObject.id, * }); * ``` * * ## Import * * RepositoryRefs can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/repositoryRef:RepositoryRef test_repository_ref "repositories/{repositoryId}/refs/{refName}" * ``` */ export declare class RepositoryRef extends pulumi.CustomResource { /** * Get an existing RepositoryRef 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?: RepositoryRefState, opts?: pulumi.CustomResourceOptions): RepositoryRef; /** * Returns true if the given object is an instance of RepositoryRef. 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 RepositoryRef; /** * (Updatable) Commit ID pointed to by the new branch. */ readonly commitId: pulumi.Output; /** * 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; }>; /** * 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; }>; /** * Unique full reference name inside a repository. */ readonly fullRefName: pulumi.Output; /** * (Updatable) SHA-1 hash value of the object pointed to by the tag. */ readonly objectId: pulumi.Output; /** * A filter to return only resources that match the given reference name. */ readonly refName: pulumi.Output; /** * (Updatable) The type of reference (BRANCH or TAG). */ readonly refType: pulumi.Output; /** * Unique repository identifier. * * ** 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 repositoryId: pulumi.Output; /** * Create a RepositoryRef 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: RepositoryRefArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepositoryRef resources. */ export interface RepositoryRefState { /** * (Updatable) Commit ID pointed to by the new branch. */ commitId?: pulumi.Input; /** * 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>; /** * 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>; /** * Unique full reference name inside a repository. */ fullRefName?: pulumi.Input; /** * (Updatable) SHA-1 hash value of the object pointed to by the tag. */ objectId?: pulumi.Input; /** * A filter to return only resources that match the given reference name. */ refName?: pulumi.Input; /** * (Updatable) The type of reference (BRANCH or TAG). */ refType?: pulumi.Input; /** * Unique repository identifier. * * ** 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 */ repositoryId?: pulumi.Input; } /** * The set of arguments for constructing a RepositoryRef resource. */ export interface RepositoryRefArgs { /** * (Updatable) Commit ID pointed to by the new branch. */ commitId?: pulumi.Input; /** * (Updatable) SHA-1 hash value of the object pointed to by the tag. */ objectId?: pulumi.Input; /** * A filter to return only resources that match the given reference name. */ refName: pulumi.Input; /** * (Updatable) The type of reference (BRANCH or TAG). */ refType: pulumi.Input; /** * Unique repository identifier. * * ** 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 */ repositoryId: pulumi.Input; } //# sourceMappingURL=repositoryRef.d.ts.map