import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Repository Setting resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/RepositorySetting * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Updates the settings for a repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRepositorySetting = new oci.devops.RepositorySetting("test_repository_setting", { * repositoryId: testRepository.id, * approvalRules: { * items: [{ * minApprovalsCount: Number(repositorySettingApprovalRulesItemsMinApprovalsCount), * name: repositorySettingApprovalRulesItemsName, * destinationBranch: repositorySettingApprovalRulesItemsDestinationBranch, * reviewers: [{ * principalId: testPrincipal.id, * }], * }], * }, * mergeChecks: { * lastBuildSucceeded: repositorySettingMergeChecksLastBuildSucceeded, * }, * mergeSettings: { * allowedMergeStrategies: repositorySettingMergeSettingsAllowedMergeStrategies, * defaultMergeStrategy: repositorySettingMergeSettingsDefaultMergeStrategy, * }, * }); * ``` * * ## Import * * RepositorySettings can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/repositorySetting:RepositorySetting test_repository_setting "repositories/{repositoryId}/repositorySettings" * ``` */ export declare class RepositorySetting extends pulumi.CustomResource { /** * Get an existing RepositorySetting 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?: RepositorySettingState, opts?: pulumi.CustomResourceOptions): RepositorySetting; /** * Returns true if the given object is an instance of RepositorySetting. 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 RepositorySetting; /** * (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged */ readonly approvalRules: pulumi.Output; /** * (Updatable) Criteria which must be satisfied to merge a pull request. */ readonly mergeChecks: pulumi.Output; /** * (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy. */ readonly mergeSettings: 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 RepositorySetting 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: RepositorySettingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RepositorySetting resources. */ export interface RepositorySettingState { /** * (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged */ approvalRules?: pulumi.Input; /** * (Updatable) Criteria which must be satisfied to merge a pull request. */ mergeChecks?: pulumi.Input; /** * (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy. */ mergeSettings?: 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 RepositorySetting resource. */ export interface RepositorySettingArgs { /** * (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged */ approvalRules?: pulumi.Input; /** * (Updatable) Criteria which must be satisfied to merge a pull request. */ mergeChecks?: pulumi.Input; /** * (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy. */ mergeSettings?: 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=repositorySetting.d.ts.map