< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_VpnConnectionId()-0%100%
get_VpnConnectionDuration()-0%100%
get_VpnConnectionTime()-0%100%
get_PublicIpAddress()-0%100%
get_PrivateIpAddress()-0%100%
get_VpnUserName()-0%100%
get_MaxBandwidth()-0%100%
get_EgressPacketsTransferred()-0%100%
get_EgressBytesTransferred()-0%100%
get_IngressPacketsTransferred()-0%100%
get_IngressBytesTransferred()-0%100%
get_MaxPacketsPerSecond()-0%100%
DeserializeVpnClientConnectionHealthDetail(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnClientConnectionHealthDetail.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> VPN client connection health detail. </summary>
 11    public partial class VpnClientConnectionHealthDetail
 12    {
 13        /// <summary> Initializes a new instance of VpnClientConnectionHealthDetail. </summary>
 014        internal VpnClientConnectionHealthDetail()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of VpnClientConnectionHealthDetail. </summary>
 19        /// <param name="vpnConnectionId"> The vpn client Id. </param>
 20        /// <param name="vpnConnectionDuration"> The duration time of a connected vpn client. </param>
 21        /// <param name="vpnConnectionTime"> The start time of a connected vpn client. </param>
 22        /// <param name="publicIpAddress"> The public Ip of a connected vpn client. </param>
 23        /// <param name="privateIpAddress"> The assigned private Ip of a connected vpn client. </param>
 24        /// <param name="vpnUserName"> The user name of a connected vpn client. </param>
 25        /// <param name="maxBandwidth"> The max band width. </param>
 26        /// <param name="egressPacketsTransferred"> The egress packets per second. </param>
 27        /// <param name="egressBytesTransferred"> The egress bytes per second. </param>
 28        /// <param name="ingressPacketsTransferred"> The ingress packets per second. </param>
 29        /// <param name="ingressBytesTransferred"> The ingress bytes per second. </param>
 30        /// <param name="maxPacketsPerSecond"> The max packets transferred per second. </param>
 031        internal VpnClientConnectionHealthDetail(string vpnConnectionId, long? vpnConnectionDuration, string vpnConnecti
 32        {
 033            VpnConnectionId = vpnConnectionId;
 034            VpnConnectionDuration = vpnConnectionDuration;
 035            VpnConnectionTime = vpnConnectionTime;
 036            PublicIpAddress = publicIpAddress;
 037            PrivateIpAddress = privateIpAddress;
 038            VpnUserName = vpnUserName;
 039            MaxBandwidth = maxBandwidth;
 040            EgressPacketsTransferred = egressPacketsTransferred;
 041            EgressBytesTransferred = egressBytesTransferred;
 042            IngressPacketsTransferred = ingressPacketsTransferred;
 043            IngressBytesTransferred = ingressBytesTransferred;
 044            MaxPacketsPerSecond = maxPacketsPerSecond;
 045        }
 46
 47        /// <summary> The vpn client Id. </summary>
 048        public string VpnConnectionId { get; }
 49        /// <summary> The duration time of a connected vpn client. </summary>
 050        public long? VpnConnectionDuration { get; }
 51        /// <summary> The start time of a connected vpn client. </summary>
 052        public string VpnConnectionTime { get; }
 53        /// <summary> The public Ip of a connected vpn client. </summary>
 054        public string PublicIpAddress { get; }
 55        /// <summary> The assigned private Ip of a connected vpn client. </summary>
 056        public string PrivateIpAddress { get; }
 57        /// <summary> The user name of a connected vpn client. </summary>
 058        public string VpnUserName { get; }
 59        /// <summary> The max band width. </summary>
 060        public long? MaxBandwidth { get; }
 61        /// <summary> The egress packets per second. </summary>
 062        public long? EgressPacketsTransferred { get; }
 63        /// <summary> The egress bytes per second. </summary>
 064        public long? EgressBytesTransferred { get; }
 65        /// <summary> The ingress packets per second. </summary>
 066        public long? IngressPacketsTransferred { get; }
 67        /// <summary> The ingress bytes per second. </summary>
 068        public long? IngressBytesTransferred { get; }
 69        /// <summary> The max packets transferred per second. </summary>
 070        public long? MaxPacketsPerSecond { get; }
 71    }
 72}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnClientConnectionHealthDetail.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 VpnClientConnectionHealthDetail
 14    {
 15        internal static VpnClientConnectionHealthDetail DeserializeVpnClientConnectionHealthDetail(JsonElement element)
 16        {
 017            string vpnConnectionId = default;
 018            long? vpnConnectionDuration = default;
 019            string vpnConnectionTime = default;
 020            string publicIpAddress = default;
 021            string privateIpAddress = default;
 022            string vpnUserName = default;
 023            long? maxBandwidth = default;
 024            long? egressPacketsTransferred = default;
 025            long? egressBytesTransferred = default;
 026            long? ingressPacketsTransferred = default;
 027            long? ingressBytesTransferred = default;
 028            long? maxPacketsPerSecond = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("vpnConnectionId"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    vpnConnectionId = property.Value.GetString();
 038                    continue;
 39                }
 040                if (property.NameEquals("vpnConnectionDuration"))
 41                {
 042                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 046                    vpnConnectionDuration = property.Value.GetInt64();
 047                    continue;
 48                }
 049                if (property.NameEquals("vpnConnectionTime"))
 50                {
 051                    if (property.Value.ValueKind == JsonValueKind.Null)
 52                    {
 53                        continue;
 54                    }
 055                    vpnConnectionTime = property.Value.GetString();
 056                    continue;
 57                }
 058                if (property.NameEquals("publicIpAddress"))
 59                {
 060                    if (property.Value.ValueKind == JsonValueKind.Null)
 61                    {
 62                        continue;
 63                    }
 064                    publicIpAddress = property.Value.GetString();
 065                    continue;
 66                }
 067                if (property.NameEquals("privateIpAddress"))
 68                {
 069                    if (property.Value.ValueKind == JsonValueKind.Null)
 70                    {
 71                        continue;
 72                    }
 073                    privateIpAddress = property.Value.GetString();
 074                    continue;
 75                }
 076                if (property.NameEquals("vpnUserName"))
 77                {
 078                    if (property.Value.ValueKind == JsonValueKind.Null)
 79                    {
 80                        continue;
 81                    }
 082                    vpnUserName = property.Value.GetString();
 083                    continue;
 84                }
 085                if (property.NameEquals("maxBandwidth"))
 86                {
 087                    if (property.Value.ValueKind == JsonValueKind.Null)
 88                    {
 89                        continue;
 90                    }
 091                    maxBandwidth = property.Value.GetInt64();
 092                    continue;
 93                }
 094                if (property.NameEquals("egressPacketsTransferred"))
 95                {
 096                    if (property.Value.ValueKind == JsonValueKind.Null)
 97                    {
 98                        continue;
 99                    }
 0100                    egressPacketsTransferred = property.Value.GetInt64();
 0101                    continue;
 102                }
 0103                if (property.NameEquals("egressBytesTransferred"))
 104                {
 0105                    if (property.Value.ValueKind == JsonValueKind.Null)
 106                    {
 107                        continue;
 108                    }
 0109                    egressBytesTransferred = property.Value.GetInt64();
 0110                    continue;
 111                }
 0112                if (property.NameEquals("ingressPacketsTransferred"))
 113                {
 0114                    if (property.Value.ValueKind == JsonValueKind.Null)
 115                    {
 116                        continue;
 117                    }
 0118                    ingressPacketsTransferred = property.Value.GetInt64();
 0119                    continue;
 120                }
 0121                if (property.NameEquals("ingressBytesTransferred"))
 122                {
 0123                    if (property.Value.ValueKind == JsonValueKind.Null)
 124                    {
 125                        continue;
 126                    }
 0127                    ingressBytesTransferred = property.Value.GetInt64();
 0128                    continue;
 129                }
 0130                if (property.NameEquals("maxPacketsPerSecond"))
 131                {
 0132                    if (property.Value.ValueKind == JsonValueKind.Null)
 133                    {
 134                        continue;
 135                    }
 0136                    maxPacketsPerSecond = property.Value.GetInt64();
 137                    continue;
 138                }
 139            }
 0140            return new VpnClientConnectionHealthDetail(vpnConnectionId, vpnConnectionDuration, vpnConnectionTime, public
 141        }
 142    }
 143}