< Summary

Class:Microsoft.Azure.ContainerRegistry.Models.RepositoryAttributes
Assembly:Microsoft.Azure.ContainerRegistry
File(s):C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Generated\Models\RepositoryAttributes.cs
Covered lines:8
Uncovered lines:10
Coverable lines:18
Total lines:99
Line coverage:44.4% (8 of 18)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Registry()-100%100%
get_ImageName()-100%100%
get_CreatedTime()-100%100%
get_LastUpdateTime()-0%100%
get_ManifestCount()-100%100%
get_TagCount()-100%100%
get_ChangeableAttributes()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Generated\Models\RepositoryAttributes.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    /// <summary>
 17    /// Repository attributes
 18    /// </summary>
 19    public partial class RepositoryAttributes
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the RepositoryAttributes class.
 23        /// </summary>
 424        public RepositoryAttributes()
 25        {
 26            CustomInit();
 427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the RepositoryAttributes class.
 31        /// </summary>
 32        /// <param name="registry">Registry name</param>
 33        /// <param name="imageName">Image name</param>
 34        /// <param name="createdTime">Image created time</param>
 35        /// <param name="lastUpdateTime">Image last update time</param>
 36        /// <param name="manifestCount">Number of the manifests</param>
 37        /// <param name="tagCount">Number of the tags</param>
 38        /// <param name="changeableAttributes">Changeable attributes</param>
 039        public RepositoryAttributes(string registry = default(string), string imageName = default(string), string create
 40        {
 041            Registry = registry;
 042            ImageName = imageName;
 043            CreatedTime = createdTime;
 044            LastUpdateTime = lastUpdateTime;
 045            ManifestCount = manifestCount;
 046            TagCount = tagCount;
 047            ChangeableAttributes = changeableAttributes;
 48            CustomInit();
 049        }
 50
 51        /// <summary>
 52        /// An initialization method that performs custom operations like setting defaults
 53        /// </summary>
 54        partial void CustomInit();
 55
 56        /// <summary>
 57        /// Gets or sets registry name
 58        /// </summary>
 59        [JsonProperty(PropertyName = "registry")]
 660        public string Registry { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets image name
 64        /// </summary>
 65        [JsonProperty(PropertyName = "imageName")]
 866        public string ImageName { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets image created time
 70        /// </summary>
 71        [JsonProperty(PropertyName = "createdTime")]
 672        public string CreatedTime { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets image last update time
 76        /// </summary>
 77        [JsonProperty(PropertyName = "lastUpdateTime")]
 078        public string LastUpdateTime { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets number of the manifests
 82        /// </summary>
 83        [JsonProperty(PropertyName = "manifestCount")]
 884        public int? ManifestCount { get; set; }
 85
 86        /// <summary>
 87        /// Gets or sets number of the tags
 88        /// </summary>
 89        [JsonProperty(PropertyName = "tagCount")]
 890        public int? TagCount { get; set; }
 91
 92        /// <summary>
 93        /// Gets or sets changeable attributes
 94        /// </summary>
 95        [JsonProperty(PropertyName = "changeableAttributes")]
 2496        public ChangeableAttributes ChangeableAttributes { get; set; }
 97
 98    }
 99}