Class CreateOrUpdateProtectedBranchDetails
Information to create a protected branch
Inherited Members
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. |