< Summary

Class:Microsoft.Azure.ContainerRegistry.Models.ChangeableAttributes
Assembly:Microsoft.Azure.ContainerRegistry
File(s):C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Generated\Models\ChangeableAttributes.cs
Covered lines:6
Uncovered lines:6
Coverable lines:12
Total lines:72
Line coverage:50% (6 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_DeleteEnabled()-100%100%
get_WriteEnabled()-100%100%
get_ListEnabled()-100%100%
get_ReadEnabled()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Generated\Models\ChangeableAttributes.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.ContainerRegistry.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    public partial class ChangeableAttributes
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the ChangeableAttributes class.
 20        /// </summary>
 29421        public ChangeableAttributes()
 22        {
 23            CustomInit();
 29424        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the ChangeableAttributes class.
 28        /// </summary>
 29        /// <param name="deleteEnabled">Delete enabled</param>
 30        /// <param name="writeEnabled">Write enabled</param>
 31        /// <param name="listEnabled">List enabled</param>
 32        /// <param name="readEnabled">Read enabled</param>
 033        public ChangeableAttributes(bool? deleteEnabled = default(bool?), bool? writeEnabled = default(bool?), bool? lis
 34        {
 035            DeleteEnabled = deleteEnabled;
 036            WriteEnabled = writeEnabled;
 037            ListEnabled = listEnabled;
 038            ReadEnabled = readEnabled;
 39            CustomInit();
 040        }
 41
 42        /// <summary>
 43        /// An initialization method that performs custom operations like setting defaults
 44        /// </summary>
 45        partial void CustomInit();
 46
 47        /// <summary>
 48        /// Gets or sets delete enabled
 49        /// </summary>
 50        [JsonProperty(PropertyName = "deleteEnabled")]
 33651        public bool? DeleteEnabled { get; set; }
 52
 53        /// <summary>
 54        /// Gets or sets write enabled
 55        /// </summary>
 56        [JsonProperty(PropertyName = "writeEnabled")]
 34657        public bool? WriteEnabled { get; set; }
 58
 59        /// <summary>
 60        /// Gets or sets list enabled
 61        /// </summary>
 62        [JsonProperty(PropertyName = "listEnabled")]
 33463        public bool? ListEnabled { get; set; }
 64
 65        /// <summary>
 66        /// Gets or sets read enabled
 67        /// </summary>
 68        [JsonProperty(PropertyName = "readEnabled")]
 33469        public bool? ReadEnabled { get; set; }
 70
 71    }
 72}