/** * DevOps API * Use the DevOps API to create DevOps projects, configure code repositories, add artifacts to deploy, build and test software applications, configure target deployment environments, and deploy software applications. For more information, see [DevOps](https://docs.oracle.com/iaas/Content/devops/using/home.htm). * OpenAPI spec version: 20210630 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ /** * Holds information used to restrict certain actions on branches */ export interface ProtectedBranch { /** * The branchName can either be exact branch name or branch pattern. */ "branchName": string; /** * Protection levels to be added on the branch. */ "protectionLevels": Array; /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {@code {\"bar-key\": \"value\"}} */ "freeformTags"?: { [key: string]: string; }; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} */ "definedTags"?: { [key: string]: { [key: string]: any; }; }; } export declare namespace ProtectedBranch { enum ProtectionLevels { ReadOnly = "READ_ONLY", PullRequestMergeOnly = "PULL_REQUEST_MERGE_ONLY", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. */ UnknownValue = "UNKNOWN_VALUE" } function getJsonObj(obj: ProtectedBranch): object; function getDeserializedJsonObj(obj: ProtectedBranch): object; }