< Summary

Class:Microsoft.Azure.Batch.Protocol.Models.ContainerRegistry
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ContainerRegistry.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:72
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_RegistryServer()-100%100%
get_UserName()-100%100%
get_Password()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ContainerRegistry.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.Batch.Protocol.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// A private container registry.
 18    /// </summary>
 19    public partial class ContainerRegistry
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ContainerRegistry class.
 23        /// </summary>
 277424        public ContainerRegistry()
 25        {
 26            CustomInit();
 277427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ContainerRegistry class.
 31        /// </summary>
 32        /// <param name="userName">The user name to log into the registry
 33        /// server.</param>
 34        /// <param name="password">The password to log into the registry
 35        /// server.</param>
 36        /// <param name="registryServer">The registry URL.</param>
 037        public ContainerRegistry(string userName, string password, string registryServer = default(string))
 38        {
 039            RegistryServer = registryServer;
 040            UserName = userName;
 041            Password = password;
 42            CustomInit();
 043        }
 44
 45        /// <summary>
 46        /// An initialization method that performs custom operations like setting defaults
 47        /// </summary>
 48        partial void CustomInit();
 49
 50        /// <summary>
 51        /// Gets or sets the registry URL.
 52        /// </summary>
 53        /// <remarks>
 54        /// If omitted, the default is "docker.io".
 55        /// </remarks>
 56        [JsonProperty(PropertyName = "registryServer")]
 632057        public string RegistryServer { get; set; }
 58
 59        /// <summary>
 60        /// Gets or sets the user name to log into the registry server.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "username")]
 636663        public string UserName { get; set; }
 64
 65        /// <summary>
 66        /// Gets or sets the password to log into the registry server.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "password")]
 633069        public string Password { get; set; }
 70
 71    }
 72}