< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_AadTenant()-0%100%
get_AadAudience()-0%100%
get_AadIssuer()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeAadAuthenticationParameters(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AadAuthenticationParameters.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> AAD Vpn authentication type related parameters. </summary>
 11    public partial class AadAuthenticationParameters
 12    {
 13        /// <summary> Initializes a new instance of AadAuthenticationParameters. </summary>
 014        public AadAuthenticationParameters()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of AadAuthenticationParameters. </summary>
 19        /// <param name="aadTenant"> AAD Vpn authentication parameter AAD tenant. </param>
 20        /// <param name="aadAudience"> AAD Vpn authentication parameter AAD audience. </param>
 21        /// <param name="aadIssuer"> AAD Vpn authentication parameter AAD issuer. </param>
 022        internal AadAuthenticationParameters(string aadTenant, string aadAudience, string aadIssuer)
 23        {
 024            AadTenant = aadTenant;
 025            AadAudience = aadAudience;
 026            AadIssuer = aadIssuer;
 027        }
 28
 29        /// <summary> AAD Vpn authentication parameter AAD tenant. </summary>
 030        public string AadTenant { get; set; }
 31        /// <summary> AAD Vpn authentication parameter AAD audience. </summary>
 032        public string AadAudience { get; set; }
 33        /// <summary> AAD Vpn authentication parameter AAD issuer. </summary>
 034        public string AadIssuer { get; set; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AadAuthenticationParameters.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 AadAuthenticationParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (AadTenant != null)
 19            {
 020                writer.WritePropertyName("aadTenant");
 021                writer.WriteStringValue(AadTenant);
 22            }
 023            if (AadAudience != null)
 24            {
 025                writer.WritePropertyName("aadAudience");
 026                writer.WriteStringValue(AadAudience);
 27            }
 028            if (AadIssuer != null)
 29            {
 030                writer.WritePropertyName("aadIssuer");
 031                writer.WriteStringValue(AadIssuer);
 32            }
 033            writer.WriteEndObject();
 034        }
 35
 36        internal static AadAuthenticationParameters DeserializeAadAuthenticationParameters(JsonElement element)
 37        {
 038            string aadTenant = default;
 039            string aadAudience = default;
 040            string aadIssuer = default;
 041            foreach (var property in element.EnumerateObject())
 42            {
 043                if (property.NameEquals("aadTenant"))
 44                {
 045                    if (property.Value.ValueKind == JsonValueKind.Null)
 46                    {
 47                        continue;
 48                    }
 049                    aadTenant = property.Value.GetString();
 050                    continue;
 51                }
 052                if (property.NameEquals("aadAudience"))
 53                {
 054                    if (property.Value.ValueKind == JsonValueKind.Null)
 55                    {
 56                        continue;
 57                    }
 058                    aadAudience = property.Value.GetString();
 059                    continue;
 60                }
 061                if (property.NameEquals("aadIssuer"))
 62                {
 063                    if (property.Value.ValueKind == JsonValueKind.Null)
 64                    {
 65                        continue;
 66                    }
 067                    aadIssuer = property.Value.GetString();
 68                    continue;
 69                }
 70            }
 071            return new AadAuthenticationParameters(aadTenant, aadAudience, aadIssuer);
 72        }
 73    }
 74}