< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Url()-0%100%
get_Type()-0%100%
DeserializeVirtualWanSecurityProvider(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualWanSecurityProvider.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> Collection of SecurityProviders. </summary>
 11    public partial class VirtualWanSecurityProvider
 12    {
 13        /// <summary> Initializes a new instance of VirtualWanSecurityProvider. </summary>
 014        internal VirtualWanSecurityProvider()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of VirtualWanSecurityProvider. </summary>
 19        /// <param name="name"> Name of the security provider. </param>
 20        /// <param name="url"> Url of the security provider. </param>
 21        /// <param name="type"> Name of the security provider. </param>
 022        internal VirtualWanSecurityProvider(string name, string url, VirtualWanSecurityProviderType? type)
 23        {
 024            Name = name;
 025            Url = url;
 026            Type = type;
 027        }
 28
 29        /// <summary> Name of the security provider. </summary>
 030        public string Name { get; }
 31        /// <summary> Url of the security provider. </summary>
 032        public string Url { get; }
 33        /// <summary> Name of the security provider. </summary>
 034        public VirtualWanSecurityProviderType? Type { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualWanSecurityProvider.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 VirtualWanSecurityProvider
 14    {
 15        internal static VirtualWanSecurityProvider DeserializeVirtualWanSecurityProvider(JsonElement element)
 16        {
 017            string name = default;
 018            string url = default;
 019            VirtualWanSecurityProviderType? type = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("name"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    name = property.Value.GetString();
 029                    continue;
 30                }
 031                if (property.NameEquals("url"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    url = property.Value.GetString();
 038                    continue;
 39                }
 040                if (property.NameEquals("type"))
 41                {
 042                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 046                    type = new VirtualWanSecurityProviderType(property.Value.GetString());
 47                    continue;
 48                }
 49            }
 050            return new VirtualWanSecurityProvider(name, url, type);
 51        }
 52    }
 53}