< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Etag()-0%100%
get_NamePropertiesName()-0%100%
get_VpnProtocols()-0%100%
get_VpnAuthenticationTypes()-0%100%
get_VpnClientRootCertificates()-0%100%
get_VpnClientRevokedCertificates()-0%100%
get_RadiusServerRootCertificates()-0%100%
get_RadiusClientRootCertificates()-0%100%
get_VpnClientIpsecPolicies()-0%100%
get_RadiusServerAddress()-0%100%
get_RadiusServerSecret()-0%100%
get_RadiusServers()-0%100%
get_AadAuthenticationParameters()-0%100%
get_ProvisioningState()-0%100%
get_P2SVpnGateways()-0%100%
get_EtagPropertiesEtag()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeVpnServerConfiguration(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnServerConfiguration.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> VpnServerConfiguration Resource. </summary>
 13    public partial class VpnServerConfiguration : Resource
 14    {
 15        /// <summary> Initializes a new instance of VpnServerConfiguration. </summary>
 016        public VpnServerConfiguration()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VpnServerConfiguration. </summary>
 21        /// <param name="id"> Resource ID. </param>
 22        /// <param name="name"> Resource name. </param>
 23        /// <param name="type"> Resource type. </param>
 24        /// <param name="location"> Resource location. </param>
 25        /// <param name="tags"> Resource tags. </param>
 26        /// <param name="etag"> A unique read-only string that changes whenever the resource is updated. </param>
 27        /// <param name="namePropertiesName"> The name of the VpnServerConfiguration that is unique within a resource gr
 28        /// <param name="vpnProtocols"> VPN protocols for the VpnServerConfiguration. </param>
 29        /// <param name="vpnAuthenticationTypes"> VPN authentication types for the VpnServerConfiguration. </param>
 30        /// <param name="vpnClientRootCertificates"> VPN client root certificate of VpnServerConfiguration. </param>
 31        /// <param name="vpnClientRevokedCertificates"> VPN client revoked certificate of VpnServerConfiguration. </para
 32        /// <param name="radiusServerRootCertificates"> Radius Server root certificate of VpnServerConfiguration. </para
 33        /// <param name="radiusClientRootCertificates"> Radius client root certificate of VpnServerConfiguration. </para
 34        /// <param name="vpnClientIpsecPolicies"> VpnClientIpsecPolicies for VpnServerConfiguration. </param>
 35        /// <param name="radiusServerAddress"> The radius server address property of the VpnServerConfiguration resource
 36        /// <param name="radiusServerSecret"> The radius secret property of the VpnServerConfiguration resource for poin
 37        /// <param name="radiusServers"> Multiple Radius Server configuration for VpnServerConfiguration. </param>
 38        /// <param name="aadAuthenticationParameters"> The set of aad vpn authentication parameters. </param>
 39        /// <param name="provisioningState"> The provisioning state of the VpnServerConfiguration resource. Possible val
 40        /// <param name="p2SVpnGateways"> List of references to P2SVpnGateways. </param>
 41        /// <param name="etagPropertiesEtag"> A unique read-only string that changes whenever the resource is updated. <
 042        internal VpnServerConfiguration(string id, string name, string type, string location, IDictionary<string, string
 43        {
 044            Etag = etag;
 045            NamePropertiesName = namePropertiesName;
 046            VpnProtocols = vpnProtocols;
 047            VpnAuthenticationTypes = vpnAuthenticationTypes;
 048            VpnClientRootCertificates = vpnClientRootCertificates;
 049            VpnClientRevokedCertificates = vpnClientRevokedCertificates;
 050            RadiusServerRootCertificates = radiusServerRootCertificates;
 051            RadiusClientRootCertificates = radiusClientRootCertificates;
 052            VpnClientIpsecPolicies = vpnClientIpsecPolicies;
 053            RadiusServerAddress = radiusServerAddress;
 054            RadiusServerSecret = radiusServerSecret;
 055            RadiusServers = radiusServers;
 056            AadAuthenticationParameters = aadAuthenticationParameters;
 057            ProvisioningState = provisioningState;
 058            P2SVpnGateways = p2SVpnGateways;
 059            EtagPropertiesEtag = etagPropertiesEtag;
 060        }
 61
 62        /// <summary> A unique read-only string that changes whenever the resource is updated. </summary>
 063        public string Etag { get; }
 64        /// <summary> The name of the VpnServerConfiguration that is unique within a resource group. </summary>
 065        public string NamePropertiesName { get; set; }
 66        /// <summary> VPN protocols for the VpnServerConfiguration. </summary>
 067        public IList<VpnGatewayTunnelingProtocol> VpnProtocols { get; set; }
 68        /// <summary> VPN authentication types for the VpnServerConfiguration. </summary>
 069        public IList<VpnAuthenticationType> VpnAuthenticationTypes { get; set; }
 70        /// <summary> VPN client root certificate of VpnServerConfiguration. </summary>
 071        public IList<VpnServerConfigVpnClientRootCertificate> VpnClientRootCertificates { get; set; }
 72        /// <summary> VPN client revoked certificate of VpnServerConfiguration. </summary>
 073        public IList<VpnServerConfigVpnClientRevokedCertificate> VpnClientRevokedCertificates { get; set; }
 74        /// <summary> Radius Server root certificate of VpnServerConfiguration. </summary>
 075        public IList<VpnServerConfigRadiusServerRootCertificate> RadiusServerRootCertificates { get; set; }
 76        /// <summary> Radius client root certificate of VpnServerConfiguration. </summary>
 077        public IList<VpnServerConfigRadiusClientRootCertificate> RadiusClientRootCertificates { get; set; }
 78        /// <summary> VpnClientIpsecPolicies for VpnServerConfiguration. </summary>
 079        public IList<IpsecPolicy> VpnClientIpsecPolicies { get; set; }
 80        /// <summary> The radius server address property of the VpnServerConfiguration resource for point to site client
 081        public string RadiusServerAddress { get; set; }
 82        /// <summary> The radius secret property of the VpnServerConfiguration resource for point to site client connect
 083        public string RadiusServerSecret { get; set; }
 84        /// <summary> Multiple Radius Server configuration for VpnServerConfiguration. </summary>
 085        public IList<RadiusServer> RadiusServers { get; set; }
 86        /// <summary> The set of aad vpn authentication parameters. </summary>
 087        public AadAuthenticationParameters AadAuthenticationParameters { get; set; }
 88        /// <summary> The provisioning state of the VpnServerConfiguration resource. Possible values are: &apos;Updating
 089        public string ProvisioningState { get; }
 90        /// <summary> List of references to P2SVpnGateways. </summary>
 091        public IList<P2SVpnGateway> P2SVpnGateways { get; }
 92        /// <summary> A unique read-only string that changes whenever the resource is updated. </summary>
 093        public string EtagPropertiesEtag { get; }
 94    }
 95}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VpnServerConfiguration.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    public partial class VpnServerConfiguration : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            if (Etag != null)
 20            {
 021                writer.WritePropertyName("etag");
 022                writer.WriteStringValue(Etag);
 23            }
 024            if (Id != null)
 25            {
 026                writer.WritePropertyName("id");
 027                writer.WriteStringValue(Id);
 28            }
 029            if (Name != null)
 30            {
 031                writer.WritePropertyName("name");
 032                writer.WriteStringValue(Name);
 33            }
 034            if (Type != null)
 35            {
 036                writer.WritePropertyName("type");
 037                writer.WriteStringValue(Type);
 38            }
 039            if (Location != null)
 40            {
 041                writer.WritePropertyName("location");
 042                writer.WriteStringValue(Location);
 43            }
 044            if (Tags != null)
 45            {
 046                writer.WritePropertyName("tags");
 047                writer.WriteStartObject();
 048                foreach (var item in Tags)
 49                {
 050                    writer.WritePropertyName(item.Key);
 051                    writer.WriteStringValue(item.Value);
 52                }
 053                writer.WriteEndObject();
 54            }
 055            writer.WritePropertyName("properties");
 056            writer.WriteStartObject();
 057            if (NamePropertiesName != null)
 58            {
 059                writer.WritePropertyName("name");
 060                writer.WriteStringValue(NamePropertiesName);
 61            }
 062            if (VpnProtocols != null)
 63            {
 064                writer.WritePropertyName("vpnProtocols");
 065                writer.WriteStartArray();
 066                foreach (var item in VpnProtocols)
 67                {
 068                    writer.WriteStringValue(item.ToString());
 69                }
 070                writer.WriteEndArray();
 71            }
 072            if (VpnAuthenticationTypes != null)
 73            {
 074                writer.WritePropertyName("vpnAuthenticationTypes");
 075                writer.WriteStartArray();
 076                foreach (var item in VpnAuthenticationTypes)
 77                {
 078                    writer.WriteStringValue(item.ToString());
 79                }
 080                writer.WriteEndArray();
 81            }
 082            if (VpnClientRootCertificates != null)
 83            {
 084                writer.WritePropertyName("vpnClientRootCertificates");
 085                writer.WriteStartArray();
 086                foreach (var item in VpnClientRootCertificates)
 87                {
 088                    writer.WriteObjectValue(item);
 89                }
 090                writer.WriteEndArray();
 91            }
 092            if (VpnClientRevokedCertificates != null)
 93            {
 094                writer.WritePropertyName("vpnClientRevokedCertificates");
 095                writer.WriteStartArray();
 096                foreach (var item in VpnClientRevokedCertificates)
 97                {
 098                    writer.WriteObjectValue(item);
 99                }
 0100                writer.WriteEndArray();
 101            }
 0102            if (RadiusServerRootCertificates != null)
 103            {
 0104                writer.WritePropertyName("radiusServerRootCertificates");
 0105                writer.WriteStartArray();
 0106                foreach (var item in RadiusServerRootCertificates)
 107                {
 0108                    writer.WriteObjectValue(item);
 109                }
 0110                writer.WriteEndArray();
 111            }
 0112            if (RadiusClientRootCertificates != null)
 113            {
 0114                writer.WritePropertyName("radiusClientRootCertificates");
 0115                writer.WriteStartArray();
 0116                foreach (var item in RadiusClientRootCertificates)
 117                {
 0118                    writer.WriteObjectValue(item);
 119                }
 0120                writer.WriteEndArray();
 121            }
 0122            if (VpnClientIpsecPolicies != null)
 123            {
 0124                writer.WritePropertyName("vpnClientIpsecPolicies");
 0125                writer.WriteStartArray();
 0126                foreach (var item in VpnClientIpsecPolicies)
 127                {
 0128                    writer.WriteObjectValue(item);
 129                }
 0130                writer.WriteEndArray();
 131            }
 0132            if (RadiusServerAddress != null)
 133            {
 0134                writer.WritePropertyName("radiusServerAddress");
 0135                writer.WriteStringValue(RadiusServerAddress);
 136            }
 0137            if (RadiusServerSecret != null)
 138            {
 0139                writer.WritePropertyName("radiusServerSecret");
 0140                writer.WriteStringValue(RadiusServerSecret);
 141            }
 0142            if (RadiusServers != null)
 143            {
 0144                writer.WritePropertyName("radiusServers");
 0145                writer.WriteStartArray();
 0146                foreach (var item in RadiusServers)
 147                {
 0148                    writer.WriteObjectValue(item);
 149                }
 0150                writer.WriteEndArray();
 151            }
 0152            if (AadAuthenticationParameters != null)
 153            {
 0154                writer.WritePropertyName("aadAuthenticationParameters");
 0155                writer.WriteObjectValue(AadAuthenticationParameters);
 156            }
 0157            if (ProvisioningState != null)
 158            {
 0159                writer.WritePropertyName("provisioningState");
 0160                writer.WriteStringValue(ProvisioningState);
 161            }
 0162            if (P2SVpnGateways != null)
 163            {
 0164                writer.WritePropertyName("p2SVpnGateways");
 0165                writer.WriteStartArray();
 0166                foreach (var item in P2SVpnGateways)
 167                {
 0168                    writer.WriteObjectValue(item);
 169                }
 0170                writer.WriteEndArray();
 171            }
 0172            if (EtagPropertiesEtag != null)
 173            {
 0174                writer.WritePropertyName("etag");
 0175                writer.WriteStringValue(EtagPropertiesEtag);
 176            }
 0177            writer.WriteEndObject();
 0178            writer.WriteEndObject();
 0179        }
 180
 181        internal static VpnServerConfiguration DeserializeVpnServerConfiguration(JsonElement element)
 182        {
 0183            string etag = default;
 0184            string id = default;
 0185            string name = default;
 0186            string type = default;
 0187            string location = default;
 0188            IDictionary<string, string> tags = default;
 0189            string name0 = default;
 0190            IList<VpnGatewayTunnelingProtocol> vpnProtocols = default;
 0191            IList<VpnAuthenticationType> vpnAuthenticationTypes = default;
 0192            IList<VpnServerConfigVpnClientRootCertificate> vpnClientRootCertificates = default;
 0193            IList<VpnServerConfigVpnClientRevokedCertificate> vpnClientRevokedCertificates = default;
 0194            IList<VpnServerConfigRadiusServerRootCertificate> radiusServerRootCertificates = default;
 0195            IList<VpnServerConfigRadiusClientRootCertificate> radiusClientRootCertificates = default;
 0196            IList<IpsecPolicy> vpnClientIpsecPolicies = default;
 0197            string radiusServerAddress = default;
 0198            string radiusServerSecret = default;
 0199            IList<RadiusServer> radiusServers = default;
 0200            AadAuthenticationParameters aadAuthenticationParameters = default;
 0201            string provisioningState = default;
 0202            IList<P2SVpnGateway> p2SVpnGateways = default;
 0203            string etag0 = default;
 0204            foreach (var property in element.EnumerateObject())
 205            {
 0206                if (property.NameEquals("etag"))
 207                {
 0208                    if (property.Value.ValueKind == JsonValueKind.Null)
 209                    {
 210                        continue;
 211                    }
 0212                    etag = property.Value.GetString();
 0213                    continue;
 214                }
 0215                if (property.NameEquals("id"))
 216                {
 0217                    if (property.Value.ValueKind == JsonValueKind.Null)
 218                    {
 219                        continue;
 220                    }
 0221                    id = property.Value.GetString();
 0222                    continue;
 223                }
 0224                if (property.NameEquals("name"))
 225                {
 0226                    if (property.Value.ValueKind == JsonValueKind.Null)
 227                    {
 228                        continue;
 229                    }
 0230                    name = property.Value.GetString();
 0231                    continue;
 232                }
 0233                if (property.NameEquals("type"))
 234                {
 0235                    if (property.Value.ValueKind == JsonValueKind.Null)
 236                    {
 237                        continue;
 238                    }
 0239                    type = property.Value.GetString();
 0240                    continue;
 241                }
 0242                if (property.NameEquals("location"))
 243                {
 0244                    if (property.Value.ValueKind == JsonValueKind.Null)
 245                    {
 246                        continue;
 247                    }
 0248                    location = property.Value.GetString();
 0249                    continue;
 250                }
 0251                if (property.NameEquals("tags"))
 252                {
 0253                    if (property.Value.ValueKind == JsonValueKind.Null)
 254                    {
 255                        continue;
 256                    }
 0257                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 0258                    foreach (var property0 in property.Value.EnumerateObject())
 259                    {
 0260                        if (property0.Value.ValueKind == JsonValueKind.Null)
 261                        {
 0262                            dictionary.Add(property0.Name, null);
 263                        }
 264                        else
 265                        {
 0266                            dictionary.Add(property0.Name, property0.Value.GetString());
 267                        }
 268                    }
 0269                    tags = dictionary;
 0270                    continue;
 271                }
 0272                if (property.NameEquals("properties"))
 273                {
 0274                    foreach (var property0 in property.Value.EnumerateObject())
 275                    {
 0276                        if (property0.NameEquals("name"))
 277                        {
 0278                            if (property0.Value.ValueKind == JsonValueKind.Null)
 279                            {
 280                                continue;
 281                            }
 0282                            name0 = property0.Value.GetString();
 0283                            continue;
 284                        }
 0285                        if (property0.NameEquals("vpnProtocols"))
 286                        {
 0287                            if (property0.Value.ValueKind == JsonValueKind.Null)
 288                            {
 289                                continue;
 290                            }
 0291                            List<VpnGatewayTunnelingProtocol> array = new List<VpnGatewayTunnelingProtocol>();
 0292                            foreach (var item in property0.Value.EnumerateArray())
 293                            {
 0294                                array.Add(new VpnGatewayTunnelingProtocol(item.GetString()));
 295                            }
 0296                            vpnProtocols = array;
 0297                            continue;
 298                        }
 0299                        if (property0.NameEquals("vpnAuthenticationTypes"))
 300                        {
 0301                            if (property0.Value.ValueKind == JsonValueKind.Null)
 302                            {
 303                                continue;
 304                            }
 0305                            List<VpnAuthenticationType> array = new List<VpnAuthenticationType>();
 0306                            foreach (var item in property0.Value.EnumerateArray())
 307                            {
 0308                                array.Add(new VpnAuthenticationType(item.GetString()));
 309                            }
 0310                            vpnAuthenticationTypes = array;
 0311                            continue;
 312                        }
 0313                        if (property0.NameEquals("vpnClientRootCertificates"))
 314                        {
 0315                            if (property0.Value.ValueKind == JsonValueKind.Null)
 316                            {
 317                                continue;
 318                            }
 0319                            List<VpnServerConfigVpnClientRootCertificate> array = new List<VpnServerConfigVpnClientRootC
 0320                            foreach (var item in property0.Value.EnumerateArray())
 321                            {
 0322                                if (item.ValueKind == JsonValueKind.Null)
 323                                {
 0324                                    array.Add(null);
 325                                }
 326                                else
 327                                {
 0328                                    array.Add(VpnServerConfigVpnClientRootCertificate.DeserializeVpnServerConfigVpnClien
 329                                }
 330                            }
 0331                            vpnClientRootCertificates = array;
 0332                            continue;
 333                        }
 0334                        if (property0.NameEquals("vpnClientRevokedCertificates"))
 335                        {
 0336                            if (property0.Value.ValueKind == JsonValueKind.Null)
 337                            {
 338                                continue;
 339                            }
 0340                            List<VpnServerConfigVpnClientRevokedCertificate> array = new List<VpnServerConfigVpnClientRe
 0341                            foreach (var item in property0.Value.EnumerateArray())
 342                            {
 0343                                if (item.ValueKind == JsonValueKind.Null)
 344                                {
 0345                                    array.Add(null);
 346                                }
 347                                else
 348                                {
 0349                                    array.Add(VpnServerConfigVpnClientRevokedCertificate.DeserializeVpnServerConfigVpnCl
 350                                }
 351                            }
 0352                            vpnClientRevokedCertificates = array;
 0353                            continue;
 354                        }
 0355                        if (property0.NameEquals("radiusServerRootCertificates"))
 356                        {
 0357                            if (property0.Value.ValueKind == JsonValueKind.Null)
 358                            {
 359                                continue;
 360                            }
 0361                            List<VpnServerConfigRadiusServerRootCertificate> array = new List<VpnServerConfigRadiusServe
 0362                            foreach (var item in property0.Value.EnumerateArray())
 363                            {
 0364                                if (item.ValueKind == JsonValueKind.Null)
 365                                {
 0366                                    array.Add(null);
 367                                }
 368                                else
 369                                {
 0370                                    array.Add(VpnServerConfigRadiusServerRootCertificate.DeserializeVpnServerConfigRadiu
 371                                }
 372                            }
 0373                            radiusServerRootCertificates = array;
 0374                            continue;
 375                        }
 0376                        if (property0.NameEquals("radiusClientRootCertificates"))
 377                        {
 0378                            if (property0.Value.ValueKind == JsonValueKind.Null)
 379                            {
 380                                continue;
 381                            }
 0382                            List<VpnServerConfigRadiusClientRootCertificate> array = new List<VpnServerConfigRadiusClien
 0383                            foreach (var item in property0.Value.EnumerateArray())
 384                            {
 0385                                if (item.ValueKind == JsonValueKind.Null)
 386                                {
 0387                                    array.Add(null);
 388                                }
 389                                else
 390                                {
 0391                                    array.Add(VpnServerConfigRadiusClientRootCertificate.DeserializeVpnServerConfigRadiu
 392                                }
 393                            }
 0394                            radiusClientRootCertificates = array;
 0395                            continue;
 396                        }
 0397                        if (property0.NameEquals("vpnClientIpsecPolicies"))
 398                        {
 0399                            if (property0.Value.ValueKind == JsonValueKind.Null)
 400                            {
 401                                continue;
 402                            }
 0403                            List<IpsecPolicy> array = new List<IpsecPolicy>();
 0404                            foreach (var item in property0.Value.EnumerateArray())
 405                            {
 0406                                if (item.ValueKind == JsonValueKind.Null)
 407                                {
 0408                                    array.Add(null);
 409                                }
 410                                else
 411                                {
 0412                                    array.Add(IpsecPolicy.DeserializeIpsecPolicy(item));
 413                                }
 414                            }
 0415                            vpnClientIpsecPolicies = array;
 0416                            continue;
 417                        }
 0418                        if (property0.NameEquals("radiusServerAddress"))
 419                        {
 0420                            if (property0.Value.ValueKind == JsonValueKind.Null)
 421                            {
 422                                continue;
 423                            }
 0424                            radiusServerAddress = property0.Value.GetString();
 0425                            continue;
 426                        }
 0427                        if (property0.NameEquals("radiusServerSecret"))
 428                        {
 0429                            if (property0.Value.ValueKind == JsonValueKind.Null)
 430                            {
 431                                continue;
 432                            }
 0433                            radiusServerSecret = property0.Value.GetString();
 0434                            continue;
 435                        }
 0436                        if (property0.NameEquals("radiusServers"))
 437                        {
 0438                            if (property0.Value.ValueKind == JsonValueKind.Null)
 439                            {
 440                                continue;
 441                            }
 0442                            List<RadiusServer> array = new List<RadiusServer>();
 0443                            foreach (var item in property0.Value.EnumerateArray())
 444                            {
 0445                                if (item.ValueKind == JsonValueKind.Null)
 446                                {
 0447                                    array.Add(null);
 448                                }
 449                                else
 450                                {
 0451                                    array.Add(RadiusServer.DeserializeRadiusServer(item));
 452                                }
 453                            }
 0454                            radiusServers = array;
 0455                            continue;
 456                        }
 0457                        if (property0.NameEquals("aadAuthenticationParameters"))
 458                        {
 0459                            if (property0.Value.ValueKind == JsonValueKind.Null)
 460                            {
 461                                continue;
 462                            }
 0463                            aadAuthenticationParameters = AadAuthenticationParameters.DeserializeAadAuthenticationParame
 0464                            continue;
 465                        }
 0466                        if (property0.NameEquals("provisioningState"))
 467                        {
 0468                            if (property0.Value.ValueKind == JsonValueKind.Null)
 469                            {
 470                                continue;
 471                            }
 0472                            provisioningState = property0.Value.GetString();
 0473                            continue;
 474                        }
 0475                        if (property0.NameEquals("p2SVpnGateways"))
 476                        {
 0477                            if (property0.Value.ValueKind == JsonValueKind.Null)
 478                            {
 479                                continue;
 480                            }
 0481                            List<P2SVpnGateway> array = new List<P2SVpnGateway>();
 0482                            foreach (var item in property0.Value.EnumerateArray())
 483                            {
 0484                                if (item.ValueKind == JsonValueKind.Null)
 485                                {
 0486                                    array.Add(null);
 487                                }
 488                                else
 489                                {
 0490                                    array.Add(P2SVpnGateway.DeserializeP2SVpnGateway(item));
 491                                }
 492                            }
 0493                            p2SVpnGateways = array;
 0494                            continue;
 495                        }
 0496                        if (property0.NameEquals("etag"))
 497                        {
 0498                            if (property0.Value.ValueKind == JsonValueKind.Null)
 499                            {
 500                                continue;
 501                            }
 0502                            etag0 = property0.Value.GetString();
 503                            continue;
 504                        }
 505                    }
 506                    continue;
 507                }
 508            }
 0509            return new VpnServerConfiguration(id, name, type, location, tags, etag, name0, vpnProtocols, vpnAuthenticati
 510        }
 511    }
 512}