import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Repository Protected Branch Management resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/RepositoryProtectedBranchManagement * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a restriction on a branch that prevents certain actions on it. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRepositoryProtectedBranchManagement = new oci.devops.RepositoryProtectedBranchManagement("test_repository_protected_branch_management", { * branchName: repositoryProtectedBranchManagementBranchName, * repositoryId: testRepository.id, * protectionLevels: repositoryProtectedBranchManagementProtectionLevels, * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class RepositoryProtectedBranchManagement extends pulumi.CustomResource { /** * Get an existing RepositoryProtectedBranchManagement 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?: RepositoryProtectedBranchManagementState, opts?: pulumi.CustomResourceOptions): RepositoryProtectedBranchManagement; /** * Returns true if the given object is an instance of RepositoryProtectedBranchManagement. 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 RepositoryProtectedBranchManagement; /** * Name of a branch to protect. */ readonly branchName: pulumi.Output; /** * 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; }>; /** * Level of protection to add on a branch. */ readonly protectionLevels: 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 RepositoryProtectedBranchManagement 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: RepositoryProtectedBranchManagementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepositoryProtectedBranchManagement resources. */ export interface RepositoryProtectedBranchManagementState { /** * Name of a branch to protect. */ branchName?: pulumi.Input; /** * 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>; /** * Level of protection to add on a branch. */ protectionLevels?: pulumi.Input[] | undefined>; /** * 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 RepositoryProtectedBranchManagement resource. */ export interface RepositoryProtectedBranchManagementArgs { /** * Name of a branch to protect. */ branchName: pulumi.Input; /** * Level of protection to add on a branch. */ protectionLevels?: pulumi.Input[] | undefined>; /** * 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=repositoryProtectedBranchManagement.d.ts.map