< Summary

Class:Azure.ResourceManager.Network.Models.ExpressRouteCircuitRoutesTableSummary
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitRoutesTableSummary.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitRoutesTableSummary.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_Neighbor()-0%100%
get_V()-0%100%
get_As()-0%100%
get_UpDown()-0%100%
get_StatePfxRcd()-0%100%
DeserializeExpressRouteCircuitRoutesTableSummary(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCircuitRoutesTableSummary.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 ExpressRouteCircuitRoutesTableSummary
 12    {
 13        /// <summary> Initializes a new instance of ExpressRouteCircuitRoutesTableSummary. </summary>
 014        internal ExpressRouteCircuitRoutesTableSummary()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ExpressRouteCircuitRoutesTableSummary. </summary>
 19        /// <param name="neighbor"> IP address of the neighbor. </param>
 20        /// <param name="v"> BGP version number spoken to the neighbor. </param>
 21        /// <param name="as"> Autonomous system number. </param>
 22        /// <param name="upDown"> The length of time that the BGP session has been in the Established state, or the curr
 23        /// <param name="statePfxRcd"> Current state of the BGP session, and the number of prefixes that have been recei
 024        internal ExpressRouteCircuitRoutesTableSummary(string neighbor, int? v, int? @as, string upDown, string statePfx
 25        {
 026            Neighbor = neighbor;
 027            V = v;
 028            As = @as;
 029            UpDown = upDown;
 030            StatePfxRcd = statePfxRcd;
 031        }
 32
 33        /// <summary> IP address of the neighbor. </summary>
 034        public string Neighbor { get; }
 35        /// <summary> BGP version number spoken to the neighbor. </summary>
 036        public int? V { get; }
 37        /// <summary> Autonomous system number. </summary>
 038        public int? As { get; }
 39        /// <summary> The length of time that the BGP session has been in the Established state, or the current status i
 040        public string UpDown { get; }
 41        /// <summary> Current state of the BGP session, and the number of prefixes that have been received from a neighb
 042        public string StatePfxRcd { get; }
 43    }
 44}

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