< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Neighbor()-0%100%
get_Asn()-0%100%
get_UpDown()-0%100%
get_StateOrPrefixesReceived()-0%100%
DeserializeExpressRouteCrossConnectionRoutesTableSummary(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCrossConnectionRoutesTableSummary.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 ExpressRouteCrossConnectionRoutesTableSummary
 12    {
 13        /// <summary> Initializes a new instance of ExpressRouteCrossConnectionRoutesTableSummary. </summary>
 014        internal ExpressRouteCrossConnectionRoutesTableSummary()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ExpressRouteCrossConnectionRoutesTableSummary. </summary>
 19        /// <param name="neighbor"> IP address of Neighbor router. </param>
 20        /// <param name="asn"> Autonomous system number. </param>
 21        /// <param name="upDown"> The length of time that the BGP session has been in the Established state, or the curr
 22        /// <param name="stateOrPrefixesReceived"> Current state of the BGP session, and the number of prefixes that hav
 023        internal ExpressRouteCrossConnectionRoutesTableSummary(string neighbor, int? asn, string upDown, string stateOrP
 24        {
 025            Neighbor = neighbor;
 026            Asn = asn;
 027            UpDown = upDown;
 028            StateOrPrefixesReceived = stateOrPrefixesReceived;
 029        }
 30
 31        /// <summary> IP address of Neighbor router. </summary>
 032        public string Neighbor { get; }
 33        /// <summary> Autonomous system number. </summary>
 034        public int? Asn { get; }
 35        /// <summary> The length of time that the BGP session has been in the Established state, or the current status i
 036        public string UpDown { get; }
 37        /// <summary> Current state of the BGP session, and the number of prefixes that have been received from a neighb
 038        public string StateOrPrefixesReceived { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ExpressRouteCrossConnectionRoutesTableSummary.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 ExpressRouteCrossConnectionRoutesTableSummary
 14    {
 15        internal static ExpressRouteCrossConnectionRoutesTableSummary DeserializeExpressRouteCrossConnectionRoutesTableS
 16        {
 017            string neighbor = default;
 018            int? asn = default;
 019            string upDown = default;
 020            string stateOrPrefixesReceived = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("neighbor"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    neighbor = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("asn"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    asn = property.Value.GetInt32();
 039                    continue;
 40                }
 041                if (property.NameEquals("upDown"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    upDown = property.Value.GetString();
 048                    continue;
 49                }
 050                if (property.NameEquals("stateOrPrefixesReceived"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    stateOrPrefixesReceived = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new ExpressRouteCrossConnectionRoutesTableSummary(neighbor, asn, upDown, stateOrPrefixesReceived);
 61        }
 62    }
 63}