< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Network()-0%100%
get_NextHop()-0%100%
get_LocPrf()-0%100%
get_Weight()-0%100%
get_Path()-0%100%
DeserializeExpressRouteCircuitRoutesTable(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitRoutesTable.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> The routes table associated with the ExpressRouteCircuit. </summary>
 11    public partial class ExpressRouteCircuitRoutesTable
 12    {
 13        /// <summary> Initializes a new instance of ExpressRouteCircuitRoutesTable. </summary>
 014        internal ExpressRouteCircuitRoutesTable()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ExpressRouteCircuitRoutesTable. </summary>
 19        /// <param name="network"> IP address of a network entity. </param>
 20        /// <param name="nextHop"> NextHop address. </param>
 21        /// <param name="locPrf"> Local preference value as set with the set local-preference route-map configuration co
 22        /// <param name="weight"> Route Weight. </param>
 23        /// <param name="path"> Autonomous system paths to the destination network. </param>
 024        internal ExpressRouteCircuitRoutesTable(string network, string nextHop, string locPrf, int? weight, string path)
 25        {
 026            Network = network;
 027            NextHop = nextHop;
 028            LocPrf = locPrf;
 029            Weight = weight;
 030            Path = path;
 031        }
 32
 33        /// <summary> IP address of a network entity. </summary>
 034        public string Network { get; }
 35        /// <summary> NextHop address. </summary>
 036        public string NextHop { get; }
 37        /// <summary> Local preference value as set with the set local-preference route-map configuration command. </sum
 038        public string LocPrf { get; }
 39        /// <summary> Route Weight. </summary>
 040        public int? Weight { get; }
 41        /// <summary> Autonomous system paths to the destination network. </summary>
 042        public string Path { get; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitRoutesTable.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 ExpressRouteCircuitRoutesTable
 14    {
 15        internal static ExpressRouteCircuitRoutesTable DeserializeExpressRouteCircuitRoutesTable(JsonElement element)
 16        {
 017            string network = default;
 018            string nextHop = default;
 019            string locPrf = default;
 020            int? weight = default;
 021            string path = default;
 022            foreach (var property in element.EnumerateObject())
 23            {
 024                if (property.NameEquals("network"))
 25                {
 026                    if (property.Value.ValueKind == JsonValueKind.Null)
 27                    {
 28                        continue;
 29                    }
 030                    network = property.Value.GetString();
 031                    continue;
 32                }
 033                if (property.NameEquals("nextHop"))
 34                {
 035                    if (property.Value.ValueKind == JsonValueKind.Null)
 36                    {
 37                        continue;
 38                    }
 039                    nextHop = property.Value.GetString();
 040                    continue;
 41                }
 042                if (property.NameEquals("locPrf"))
 43                {
 044                    if (property.Value.ValueKind == JsonValueKind.Null)
 45                    {
 46                        continue;
 47                    }
 048                    locPrf = property.Value.GetString();
 049                    continue;
 50                }
 051                if (property.NameEquals("weight"))
 52                {
 053                    if (property.Value.ValueKind == JsonValueKind.Null)
 54                    {
 55                        continue;
 56                    }
 057                    weight = property.Value.GetInt32();
 058                    continue;
 59                }
 060                if (property.NameEquals("path"))
 61                {
 062                    if (property.Value.ValueKind == JsonValueKind.Null)
 63                    {
 64                        continue;
 65                    }
 066                    path = property.Value.GetString();
 67                    continue;
 68                }
 69            }
 070            return new ExpressRouteCircuitRoutesTable(network, nextHop, locPrf, weight, path);
 71        }
 72    }
 73}