< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs
Covered lines:15
Uncovered lines:1
Coverable lines:16
Total lines:67
Line coverage:93.7% (15 of 16)
Covered branches:5
Total branches:6
Branch coverage:83.3% (5 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-80%50%
get_DomainNameLabel()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeVirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Describes a virtual machines scale sets network configuration&apos;s DNS settings. </summary>
 13    public partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings. </sum
 16        /// <param name="domainNameLabel"> The Domain name label.The concatenation of the domain name label and vm index
 3217        public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(string domainNameLabel)
 18        {
 3219            if (domainNameLabel == null)
 20            {
 021                throw new ArgumentNullException(nameof(domainNameLabel));
 22            }
 23
 3224            DomainNameLabel = domainNameLabel;
 3225        }
 26
 27        /// <summary> The Domain name label.The concatenation of the domain name label and vm index will be the domain n
 5628        public string DomainNameLabel { get; set; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    public partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1617            writer.WriteStartObject();
 1618            writer.WritePropertyName("domainNameLabel");
 1619            writer.WriteStringValue(DomainNameLabel);
 1620            writer.WriteEndObject();
 1621        }
 22
 23        internal static VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DeserializeVirtualMachineScaleSetP
 24        {
 2425            string domainNameLabel = default;
 9626            foreach (var property in element.EnumerateObject())
 27            {
 2428                if (property.NameEquals("domainNameLabel"))
 29                {
 2430                    domainNameLabel = property.Value.GetString();
 31                    continue;
 32                }
 33            }
 2434            return new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(domainNameLabel);
 35        }
 36    }
 37}