< Summary

Class:Azure.ResourceManager.Network.Models.Ipv6CircuitConnectionConfig
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\Ipv6CircuitConnectionConfig.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\Ipv6CircuitConnectionConfig.Serialization.cs
Covered lines:0
Uncovered lines:28
Coverable lines:28
Total lines:91
Line coverage:0% (0 of 28)
Covered branches:0
Total branches:14
Branch coverage:0% (0 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_AddressPrefix()-0%100%
get_CircuitConnectionStatus()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeIpv6CircuitConnectionConfig(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\Ipv6CircuitConnectionConfig.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.Network.Models
 9{
 10    /// <summary> IPv6 Circuit Connection properties for global reach. </summary>
 11    public partial class Ipv6CircuitConnectionConfig
 12    {
 13        /// <summary> Initializes a new instance of Ipv6CircuitConnectionConfig. </summary>
 014        public Ipv6CircuitConnectionConfig()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of Ipv6CircuitConnectionConfig. </summary>
 19        /// <param name="addressPrefix"> /125 IP address space to carve out customer addresses for global reach. </param
 20        /// <param name="circuitConnectionStatus"> Express Route Circuit connection state. </param>
 021        internal Ipv6CircuitConnectionConfig(string addressPrefix, CircuitConnectionStatus? circuitConnectionStatus)
 22        {
 023            AddressPrefix = addressPrefix;
 024            CircuitConnectionStatus = circuitConnectionStatus;
 025        }
 26
 27        /// <summary> /125 IP address space to carve out customer addresses for global reach. </summary>
 028        public string AddressPrefix { get; set; }
 29        /// <summary> Express Route Circuit connection state. </summary>
 030        public CircuitConnectionStatus? CircuitConnectionStatus { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\Ipv6CircuitConnectionConfig.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.Network.Models
 12{
 13    public partial class Ipv6CircuitConnectionConfig : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (AddressPrefix != null)
 19            {
 020                writer.WritePropertyName("addressPrefix");
 021                writer.WriteStringValue(AddressPrefix);
 22            }
 023            if (CircuitConnectionStatus != null)
 24            {
 025                writer.WritePropertyName("circuitConnectionStatus");
 026                writer.WriteStringValue(CircuitConnectionStatus.Value.ToString());
 27            }
 028            writer.WriteEndObject();
 029        }
 30
 31        internal static Ipv6CircuitConnectionConfig DeserializeIpv6CircuitConnectionConfig(JsonElement element)
 32        {
 033            string addressPrefix = default;
 034            CircuitConnectionStatus? circuitConnectionStatus = default;
 035            foreach (var property in element.EnumerateObject())
 36            {
 037                if (property.NameEquals("addressPrefix"))
 38                {
 039                    if (property.Value.ValueKind == JsonValueKind.Null)
 40                    {
 41                        continue;
 42                    }
 043                    addressPrefix = property.Value.GetString();
 044                    continue;
 45                }
 046                if (property.NameEquals("circuitConnectionStatus"))
 47                {
 048                    if (property.Value.ValueKind == JsonValueKind.Null)
 49                    {
 50                        continue;
 51                    }
 052                    circuitConnectionStatus = new CircuitConnectionStatus(property.Value.GetString());
 53                    continue;
 54                }
 55            }
 056            return new Ipv6CircuitConnectionConfig(addressPrefix, circuitConnectionStatus);
 57        }
 58    }
 59}