< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_SasUrl()-0%100%
DeserializeP2SVpnConnectionHealth(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\P2SVpnConnectionHealth.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> P2S Vpn connection detailed health written to sas url. </summary>
 11    public partial class P2SVpnConnectionHealth
 12    {
 13        /// <summary> Initializes a new instance of P2SVpnConnectionHealth. </summary>
 014        internal P2SVpnConnectionHealth()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of P2SVpnConnectionHealth. </summary>
 19        /// <param name="sasUrl"> Returned sas url of the blob to which the p2s vpn connection detailed health will be w
 020        internal P2SVpnConnectionHealth(string sasUrl)
 21        {
 022            SasUrl = sasUrl;
 023        }
 24
 25        /// <summary> Returned sas url of the blob to which the p2s vpn connection detailed health will be written. </su
 026        public string SasUrl { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\P2SVpnConnectionHealth.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 P2SVpnConnectionHealth
 14    {
 15        internal static P2SVpnConnectionHealth DeserializeP2SVpnConnectionHealth(JsonElement element)
 16        {
 017            string sasUrl = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("sasUrl"))
 21                {
 022                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 026                    sasUrl = property.Value.GetString();
 27                    continue;
 28                }
 29            }
 030            return new P2SVpnConnectionHealth(sasUrl);
 31        }
 32    }
 33}