< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_ProcessorArchitecture()-0%100%
get_AuthenticationMethod()-0%100%
get_RadiusServerAuthCertificate()-0%100%
get_ClientRootCertificates()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnClientParameters.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Vpn Client Parameters for package generation. </summary>
 13    public partial class VpnClientParameters
 14    {
 15        /// <summary> Initializes a new instance of VpnClientParameters. </summary>
 016        public VpnClientParameters()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VpnClientParameters. </summary>
 21        /// <param name="processorArchitecture"> VPN client Processor Architecture. </param>
 22        /// <param name="authenticationMethod"> VPN client authentication method. </param>
 23        /// <param name="radiusServerAuthCertificate"> The public certificate data for the radius server authentication 
 24        /// <param name="clientRootCertificates"> A list of client root certificates public certificate data encoded as 
 025        internal VpnClientParameters(ProcessorArchitecture? processorArchitecture, AuthenticationMethod? authenticationM
 26        {
 027            ProcessorArchitecture = processorArchitecture;
 028            AuthenticationMethod = authenticationMethod;
 029            RadiusServerAuthCertificate = radiusServerAuthCertificate;
 030            ClientRootCertificates = clientRootCertificates;
 031        }
 32
 33        /// <summary> VPN client Processor Architecture. </summary>
 034        public ProcessorArchitecture? ProcessorArchitecture { get; set; }
 35        /// <summary> VPN client authentication method. </summary>
 036        public AuthenticationMethod? AuthenticationMethod { get; set; }
 37        /// <summary> The public certificate data for the radius server authentication certificate as a Base-64 encoded 
 038        public string RadiusServerAuthCertificate { get; set; }
 39        /// <summary> A list of client root certificates public certificate data encoded as Base-64 strings. Optional pa
 040        public IList<string> ClientRootCertificates { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnClientParameters.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 VpnClientParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (ProcessorArchitecture != null)
 19            {
 020                writer.WritePropertyName("processorArchitecture");
 021                writer.WriteStringValue(ProcessorArchitecture.Value.ToString());
 22            }
 023            if (AuthenticationMethod != null)
 24            {
 025                writer.WritePropertyName("authenticationMethod");
 026                writer.WriteStringValue(AuthenticationMethod.Value.ToString());
 27            }
 028            if (RadiusServerAuthCertificate != null)
 29            {
 030                writer.WritePropertyName("radiusServerAuthCertificate");
 031                writer.WriteStringValue(RadiusServerAuthCertificate);
 32            }
 033            if (ClientRootCertificates != null)
 34            {
 035                writer.WritePropertyName("clientRootCertificates");
 036                writer.WriteStartArray();
 037                foreach (var item in ClientRootCertificates)
 38                {
 039                    writer.WriteStringValue(item);
 40                }
 041                writer.WriteEndArray();
 42            }
 043            writer.WriteEndObject();
 044        }
 45    }
 46}