< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.Serialization.cs
Covered lines:0
Uncovered lines:43
Coverable lines:43
Total lines:120
Line coverage:0% (0 of 43)
Covered branches:0
Total branches:24
Branch coverage:0% (0 of 24)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_IdleTimeoutInMinutes()-0%100%
get_DnsSettings()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeVirtualMachineScaleSetUpdatePublicIPAddressConfiguration(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.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
 8namespace Azure.ResourceManager.Compute.Models
 9{
 10    /// <summary> Describes a virtual machines scale set IP Configuration&apos;s PublicIPAddress configuration. </summar
 11    public partial class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration
 12    {
 13        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdatePublicIPAddressConfiguration. </summary>
 014        public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdatePublicIPAddressConfiguration. </summary>
 19        /// <param name="name"> The publicIP address configuration name. </param>
 20        /// <param name="idleTimeoutInMinutes"> The idle timeout of the public IP address. </param>
 21        /// <param name="dnsSettings"> The dns settings to be applied on the publicIP addresses . </param>
 022        internal VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name, int? idleTimeoutInMinutes, Virtua
 23        {
 024            Name = name;
 025            IdleTimeoutInMinutes = idleTimeoutInMinutes;
 026            DnsSettings = dnsSettings;
 027        }
 28
 29        /// <summary> The publicIP address configuration name. </summary>
 030        public string Name { get; set; }
 31        /// <summary> The idle timeout of the public IP address. </summary>
 032        public int? IdleTimeoutInMinutes { get; set; }
 33        /// <summary> The dns settings to be applied on the publicIP addresses . </summary>
 034        public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.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 VirtualMachineScaleSetUpdatePublicIPAddressConfiguration : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Name != null)
 19            {
 020                writer.WritePropertyName("name");
 021                writer.WriteStringValue(Name);
 22            }
 023            writer.WritePropertyName("properties");
 024            writer.WriteStartObject();
 025            if (IdleTimeoutInMinutes != null)
 26            {
 027                writer.WritePropertyName("idleTimeoutInMinutes");
 028                writer.WriteNumberValue(IdleTimeoutInMinutes.Value);
 29            }
 030            if (DnsSettings != null)
 31            {
 032                writer.WritePropertyName("dnsSettings");
 033                writer.WriteObjectValue(DnsSettings);
 34            }
 035            writer.WriteEndObject();
 036            writer.WriteEndObject();
 037        }
 38
 39        internal static VirtualMachineScaleSetUpdatePublicIPAddressConfiguration DeserializeVirtualMachineScaleSetUpdate
 40        {
 041            string name = default;
 042            int? idleTimeoutInMinutes = default;
 043            VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default;
 044            foreach (var property in element.EnumerateObject())
 45            {
 046                if (property.NameEquals("name"))
 47                {
 048                    if (property.Value.ValueKind == JsonValueKind.Null)
 49                    {
 50                        continue;
 51                    }
 052                    name = property.Value.GetString();
 053                    continue;
 54                }
 055                if (property.NameEquals("properties"))
 56                {
 057                    foreach (var property0 in property.Value.EnumerateObject())
 58                    {
 059                        if (property0.NameEquals("idleTimeoutInMinutes"))
 60                        {
 061                            if (property0.Value.ValueKind == JsonValueKind.Null)
 62                            {
 63                                continue;
 64                            }
 065                            idleTimeoutInMinutes = property0.Value.GetInt32();
 066                            continue;
 67                        }
 068                        if (property0.NameEquals("dnsSettings"))
 69                        {
 070                            if (property0.Value.ValueKind == JsonValueKind.Null)
 71                            {
 72                                continue;
 73                            }
 074                            dnsSettings = VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.DeserializeVirtu
 75                            continue;
 76                        }
 77                    }
 78                    continue;
 79                }
 80            }
 081            return new VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(name, idleTimeoutInMinutes, dnsSettings)
 82        }
 83    }
 84}