Show / Hide Table of Contents

Class CreateOrUpdateProtectedBranchDetails

Information to create a protected branch

Inheritance
object
CreateOrUpdateProtectedBranchDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DevopsService.Models
Assembly: OCI.DotNetSDK.Devops.dll
Syntax
public class CreateOrUpdateProtectedBranchDetails

Properties

BranchName

Declaration
[Required(ErrorMessage = "BranchName is required.")]
[JsonProperty(PropertyName = "branchName")]
public string BranchName { get; set; }
Property Value
Type Description
string

Name of a branch to protect.

Remarks

Required

ProtectionLevels

Declaration
[JsonProperty(PropertyName = "protectionLevels", ItemConverterType = typeof(StringEnumConverter))]
public List<ProtectionLevel> ProtectionLevels { get; set; }
Property Value
Type Description
List<ProtectionLevel>

Level of protection to add on a branch.

In this article
Back to top