< Summary

Class:Azure.ResourceManager.Network.Models.VirtualNetworkGatewayConnectionListEntity
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionListEntity.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionListEntity.Serialization.cs
Covered lines:135
Uncovered lines:161
Coverable lines:296
Total lines:610
Line coverage:45.6% (135 of 296)
Covered branches:94
Total branches:180
Branch coverage:52.2% (94 of 180)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-100%100%
get_Etag()-0%100%
get_AuthorizationKey()-0%100%
get_VirtualNetworkGateway1()-0%100%
get_VirtualNetworkGateway2()-0%100%
get_LocalNetworkGateway2()-0%100%
get_ConnectionType()-0%100%
get_ConnectionProtocol()-0%100%
get_RoutingWeight()-0%100%
get_SharedKey()-0%100%
get_ConnectionStatus()-0%100%
get_TunnelConnectionStatus()-0%100%
get_EgressBytesTransferred()-0%100%
get_IngressBytesTransferred()-0%100%
get_Peer()-0%100%
get_EnableBgp()-0%100%
get_UsePolicyBasedTrafficSelectors()-0%100%
get_IpsecPolicies()-0%100%
get_TrafficSelectorPolicies()-0%100%
get_ResourceGuid()-0%100%
get_ProvisioningState()-0%100%
get_ExpressRouteGatewayBypass()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeVirtualNetworkGatewayConnectionListEntity(...)-74.17%77.05%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionListEntity.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;
 9using System.Collections.Generic;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> A common class for general resource information. </summary>
 14    public partial class VirtualNetworkGatewayConnectionListEntity : Resource
 15    {
 16        /// <summary> Initializes a new instance of VirtualNetworkGatewayConnectionListEntity. </summary>
 17        /// <param name="virtualNetworkGateway1"> The reference to virtual network gateway resource. </param>
 18        /// <param name="connectionType"> Gateway connection type. </param>
 019        public VirtualNetworkGatewayConnectionListEntity(VirtualNetworkConnectionGatewayReference virtualNetworkGateway1
 20        {
 021            if (virtualNetworkGateway1 == null)
 22            {
 023                throw new ArgumentNullException(nameof(virtualNetworkGateway1));
 24            }
 25
 026            VirtualNetworkGateway1 = virtualNetworkGateway1;
 027            ConnectionType = connectionType;
 028        }
 29
 30        /// <summary> Initializes a new instance of VirtualNetworkGatewayConnectionListEntity. </summary>
 31        /// <param name="id"> Resource ID. </param>
 32        /// <param name="name"> Resource name. </param>
 33        /// <param name="type"> Resource type. </param>
 34        /// <param name="location"> Resource location. </param>
 35        /// <param name="tags"> Resource tags. </param>
 36        /// <param name="etag"> A unique read-only string that changes whenever the resource is updated. </param>
 37        /// <param name="authorizationKey"> The authorizationKey. </param>
 38        /// <param name="virtualNetworkGateway1"> The reference to virtual network gateway resource. </param>
 39        /// <param name="virtualNetworkGateway2"> The reference to virtual network gateway resource. </param>
 40        /// <param name="localNetworkGateway2"> The reference to local network gateway resource. </param>
 41        /// <param name="connectionType"> Gateway connection type. </param>
 42        /// <param name="connectionProtocol"> Connection protocol used for this connection. </param>
 43        /// <param name="routingWeight"> The routing weight. </param>
 44        /// <param name="sharedKey"> The IPSec shared key. </param>
 45        /// <param name="connectionStatus"> Virtual Network Gateway connection status. </param>
 46        /// <param name="tunnelConnectionStatus"> Collection of all tunnels&apos; connection health status. </param>
 47        /// <param name="egressBytesTransferred"> The egress bytes transferred in this connection. </param>
 48        /// <param name="ingressBytesTransferred"> The ingress bytes transferred in this connection. </param>
 49        /// <param name="peer"> The reference to peerings resource. </param>
 50        /// <param name="enableBgp"> EnableBgp flag. </param>
 51        /// <param name="usePolicyBasedTrafficSelectors"> Enable policy-based traffic selectors. </param>
 52        /// <param name="ipsecPolicies"> The IPSec Policies to be considered by this connection. </param>
 53        /// <param name="trafficSelectorPolicies"> The Traffic Selector Policies to be considered by this connection. </
 54        /// <param name="resourceGuid"> The resource GUID property of the virtual network gateway connection resource. <
 55        /// <param name="provisioningState"> The provisioning state of the virtual network gateway connection resource. 
 56        /// <param name="expressRouteGatewayBypass"> Bypass ExpressRoute Gateway for data forwarding. </param>
 457        internal VirtualNetworkGatewayConnectionListEntity(string id, string name, string type, string location, IDictio
 58        {
 459            Etag = etag;
 460            AuthorizationKey = authorizationKey;
 461            VirtualNetworkGateway1 = virtualNetworkGateway1;
 462            VirtualNetworkGateway2 = virtualNetworkGateway2;
 463            LocalNetworkGateway2 = localNetworkGateway2;
 464            ConnectionType = connectionType;
 465            ConnectionProtocol = connectionProtocol;
 466            RoutingWeight = routingWeight;
 467            SharedKey = sharedKey;
 468            ConnectionStatus = connectionStatus;
 469            TunnelConnectionStatus = tunnelConnectionStatus;
 470            EgressBytesTransferred = egressBytesTransferred;
 471            IngressBytesTransferred = ingressBytesTransferred;
 472            Peer = peer;
 473            EnableBgp = enableBgp;
 474            UsePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors;
 475            IpsecPolicies = ipsecPolicies;
 476            TrafficSelectorPolicies = trafficSelectorPolicies;
 477            ResourceGuid = resourceGuid;
 478            ProvisioningState = provisioningState;
 479            ExpressRouteGatewayBypass = expressRouteGatewayBypass;
 480        }
 81
 82        /// <summary> A unique read-only string that changes whenever the resource is updated. </summary>
 083        public string Etag { get; }
 84        /// <summary> The authorizationKey. </summary>
 085        public string AuthorizationKey { get; set; }
 86        /// <summary> The reference to virtual network gateway resource. </summary>
 087        public VirtualNetworkConnectionGatewayReference VirtualNetworkGateway1 { get; set; }
 88        /// <summary> The reference to virtual network gateway resource. </summary>
 089        public VirtualNetworkConnectionGatewayReference VirtualNetworkGateway2 { get; set; }
 90        /// <summary> The reference to local network gateway resource. </summary>
 091        public VirtualNetworkConnectionGatewayReference LocalNetworkGateway2 { get; set; }
 92        /// <summary> Gateway connection type. </summary>
 093        public VirtualNetworkGatewayConnectionType ConnectionType { get; set; }
 94        /// <summary> Connection protocol used for this connection. </summary>
 095        public VirtualNetworkGatewayConnectionProtocol? ConnectionProtocol { get; set; }
 96        /// <summary> The routing weight. </summary>
 097        public int? RoutingWeight { get; set; }
 98        /// <summary> The IPSec shared key. </summary>
 099        public string SharedKey { get; set; }
 100        /// <summary> Virtual Network Gateway connection status. </summary>
 0101        public VirtualNetworkGatewayConnectionStatus? ConnectionStatus { get; }
 102        /// <summary> Collection of all tunnels&apos; connection health status. </summary>
 0103        public IList<TunnelConnectionHealth> TunnelConnectionStatus { get; }
 104        /// <summary> The egress bytes transferred in this connection. </summary>
 0105        public long? EgressBytesTransferred { get; }
 106        /// <summary> The ingress bytes transferred in this connection. </summary>
 0107        public long? IngressBytesTransferred { get; }
 108        /// <summary> The reference to peerings resource. </summary>
 0109        public SubResource Peer { get; set; }
 110        /// <summary> EnableBgp flag. </summary>
 0111        public bool? EnableBgp { get; set; }
 112        /// <summary> Enable policy-based traffic selectors. </summary>
 0113        public bool? UsePolicyBasedTrafficSelectors { get; set; }
 114        /// <summary> The IPSec Policies to be considered by this connection. </summary>
 0115        public IList<IpsecPolicy> IpsecPolicies { get; set; }
 116        /// <summary> The Traffic Selector Policies to be considered by this connection. </summary>
 0117        public IList<TrafficSelectorPolicy> TrafficSelectorPolicies { get; set; }
 118        /// <summary> The resource GUID property of the virtual network gateway connection resource. </summary>
 0119        public string ResourceGuid { get; }
 120        /// <summary> The provisioning state of the virtual network gateway connection resource. </summary>
 0121        public ProvisioningState? ProvisioningState { get; }
 122        /// <summary> Bypass ExpressRoute Gateway for data forwarding. </summary>
 0123        public bool? ExpressRouteGatewayBypass { get; set; }
 124    }
 125}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\VirtualNetworkGatewayConnectionListEntity.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 VirtualNetworkGatewayConnectionListEntity : 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 (AuthorizationKey != null)
 58            {
 059                writer.WritePropertyName("authorizationKey");
 060                writer.WriteStringValue(AuthorizationKey);
 61            }
 062            writer.WritePropertyName("virtualNetworkGateway1");
 063            writer.WriteObjectValue(VirtualNetworkGateway1);
 064            if (VirtualNetworkGateway2 != null)
 65            {
 066                writer.WritePropertyName("virtualNetworkGateway2");
 067                writer.WriteObjectValue(VirtualNetworkGateway2);
 68            }
 069            if (LocalNetworkGateway2 != null)
 70            {
 071                writer.WritePropertyName("localNetworkGateway2");
 072                writer.WriteObjectValue(LocalNetworkGateway2);
 73            }
 074            writer.WritePropertyName("connectionType");
 075            writer.WriteStringValue(ConnectionType.ToString());
 076            if (ConnectionProtocol != null)
 77            {
 078                writer.WritePropertyName("connectionProtocol");
 079                writer.WriteStringValue(ConnectionProtocol.Value.ToString());
 80            }
 081            if (RoutingWeight != null)
 82            {
 083                writer.WritePropertyName("routingWeight");
 084                writer.WriteNumberValue(RoutingWeight.Value);
 85            }
 086            if (SharedKey != null)
 87            {
 088                writer.WritePropertyName("sharedKey");
 089                writer.WriteStringValue(SharedKey);
 90            }
 091            if (ConnectionStatus != null)
 92            {
 093                writer.WritePropertyName("connectionStatus");
 094                writer.WriteStringValue(ConnectionStatus.Value.ToString());
 95            }
 096            if (TunnelConnectionStatus != null)
 97            {
 098                writer.WritePropertyName("tunnelConnectionStatus");
 099                writer.WriteStartArray();
 0100                foreach (var item in TunnelConnectionStatus)
 101                {
 0102                    writer.WriteObjectValue(item);
 103                }
 0104                writer.WriteEndArray();
 105            }
 0106            if (EgressBytesTransferred != null)
 107            {
 0108                writer.WritePropertyName("egressBytesTransferred");
 0109                writer.WriteNumberValue(EgressBytesTransferred.Value);
 110            }
 0111            if (IngressBytesTransferred != null)
 112            {
 0113                writer.WritePropertyName("ingressBytesTransferred");
 0114                writer.WriteNumberValue(IngressBytesTransferred.Value);
 115            }
 0116            if (Peer != null)
 117            {
 0118                writer.WritePropertyName("peer");
 0119                writer.WriteObjectValue(Peer);
 120            }
 0121            if (EnableBgp != null)
 122            {
 0123                writer.WritePropertyName("enableBgp");
 0124                writer.WriteBooleanValue(EnableBgp.Value);
 125            }
 0126            if (UsePolicyBasedTrafficSelectors != null)
 127            {
 0128                writer.WritePropertyName("usePolicyBasedTrafficSelectors");
 0129                writer.WriteBooleanValue(UsePolicyBasedTrafficSelectors.Value);
 130            }
 0131            if (IpsecPolicies != null)
 132            {
 0133                writer.WritePropertyName("ipsecPolicies");
 0134                writer.WriteStartArray();
 0135                foreach (var item in IpsecPolicies)
 136                {
 0137                    writer.WriteObjectValue(item);
 138                }
 0139                writer.WriteEndArray();
 140            }
 0141            if (TrafficSelectorPolicies != null)
 142            {
 0143                writer.WritePropertyName("trafficSelectorPolicies");
 0144                writer.WriteStartArray();
 0145                foreach (var item in TrafficSelectorPolicies)
 146                {
 0147                    writer.WriteObjectValue(item);
 148                }
 0149                writer.WriteEndArray();
 150            }
 0151            if (ResourceGuid != null)
 152            {
 0153                writer.WritePropertyName("resourceGuid");
 0154                writer.WriteStringValue(ResourceGuid);
 155            }
 0156            if (ProvisioningState != null)
 157            {
 0158                writer.WritePropertyName("provisioningState");
 0159                writer.WriteStringValue(ProvisioningState.Value.ToString());
 160            }
 0161            if (ExpressRouteGatewayBypass != null)
 162            {
 0163                writer.WritePropertyName("expressRouteGatewayBypass");
 0164                writer.WriteBooleanValue(ExpressRouteGatewayBypass.Value);
 165            }
 0166            writer.WriteEndObject();
 0167            writer.WriteEndObject();
 0168        }
 169
 170        internal static VirtualNetworkGatewayConnectionListEntity DeserializeVirtualNetworkGatewayConnectionListEntity(J
 171        {
 4172            string etag = default;
 4173            string id = default;
 4174            string name = default;
 4175            string type = default;
 4176            string location = default;
 4177            IDictionary<string, string> tags = default;
 4178            string authorizationKey = default;
 4179            VirtualNetworkConnectionGatewayReference virtualNetworkGateway1 = default;
 4180            VirtualNetworkConnectionGatewayReference virtualNetworkGateway2 = default;
 4181            VirtualNetworkConnectionGatewayReference localNetworkGateway2 = default;
 4182            VirtualNetworkGatewayConnectionType connectionType = default;
 4183            VirtualNetworkGatewayConnectionProtocol? connectionProtocol = default;
 4184            int? routingWeight = default;
 4185            string sharedKey = default;
 4186            VirtualNetworkGatewayConnectionStatus? connectionStatus = default;
 4187            IList<TunnelConnectionHealth> tunnelConnectionStatus = default;
 4188            long? egressBytesTransferred = default;
 4189            long? ingressBytesTransferred = default;
 4190            SubResource peer = default;
 4191            bool? enableBgp = default;
 4192            bool? usePolicyBasedTrafficSelectors = default;
 4193            IList<IpsecPolicy> ipsecPolicies = default;
 4194            IList<TrafficSelectorPolicy> trafficSelectorPolicies = default;
 4195            string resourceGuid = default;
 4196            ProvisioningState? provisioningState = default;
 4197            bool? expressRouteGatewayBypass = default;
 56198            foreach (var property in element.EnumerateObject())
 199            {
 24200                if (property.NameEquals("etag"))
 201                {
 4202                    if (property.Value.ValueKind == JsonValueKind.Null)
 203                    {
 204                        continue;
 205                    }
 4206                    etag = property.Value.GetString();
 4207                    continue;
 208                }
 20209                if (property.NameEquals("id"))
 210                {
 4211                    if (property.Value.ValueKind == JsonValueKind.Null)
 212                    {
 213                        continue;
 214                    }
 4215                    id = property.Value.GetString();
 4216                    continue;
 217                }
 16218                if (property.NameEquals("name"))
 219                {
 4220                    if (property.Value.ValueKind == JsonValueKind.Null)
 221                    {
 222                        continue;
 223                    }
 4224                    name = property.Value.GetString();
 4225                    continue;
 226                }
 12227                if (property.NameEquals("type"))
 228                {
 4229                    if (property.Value.ValueKind == JsonValueKind.Null)
 230                    {
 231                        continue;
 232                    }
 4233                    type = property.Value.GetString();
 4234                    continue;
 235                }
 8236                if (property.NameEquals("location"))
 237                {
 4238                    if (property.Value.ValueKind == JsonValueKind.Null)
 239                    {
 240                        continue;
 241                    }
 4242                    location = property.Value.GetString();
 4243                    continue;
 244                }
 4245                if (property.NameEquals("tags"))
 246                {
 0247                    if (property.Value.ValueKind == JsonValueKind.Null)
 248                    {
 249                        continue;
 250                    }
 0251                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 0252                    foreach (var property0 in property.Value.EnumerateObject())
 253                    {
 0254                        if (property0.Value.ValueKind == JsonValueKind.Null)
 255                        {
 0256                            dictionary.Add(property0.Name, null);
 257                        }
 258                        else
 259                        {
 0260                            dictionary.Add(property0.Name, property0.Value.GetString());
 261                        }
 262                    }
 0263                    tags = dictionary;
 0264                    continue;
 265                }
 4266                if (property.NameEquals("properties"))
 267                {
 144268                    foreach (var property0 in property.Value.EnumerateObject())
 269                    {
 68270                        if (property0.NameEquals("authorizationKey"))
 271                        {
 0272                            if (property0.Value.ValueKind == JsonValueKind.Null)
 273                            {
 274                                continue;
 275                            }
 0276                            authorizationKey = property0.Value.GetString();
 0277                            continue;
 278                        }
 68279                        if (property0.NameEquals("virtualNetworkGateway1"))
 280                        {
 4281                            virtualNetworkGateway1 = VirtualNetworkConnectionGatewayReference.DeserializeVirtualNetworkC
 4282                            continue;
 283                        }
 64284                        if (property0.NameEquals("virtualNetworkGateway2"))
 285                        {
 0286                            if (property0.Value.ValueKind == JsonValueKind.Null)
 287                            {
 288                                continue;
 289                            }
 0290                            virtualNetworkGateway2 = VirtualNetworkConnectionGatewayReference.DeserializeVirtualNetworkC
 0291                            continue;
 292                        }
 64293                        if (property0.NameEquals("localNetworkGateway2"))
 294                        {
 4295                            if (property0.Value.ValueKind == JsonValueKind.Null)
 296                            {
 297                                continue;
 298                            }
 4299                            localNetworkGateway2 = VirtualNetworkConnectionGatewayReference.DeserializeVirtualNetworkCon
 4300                            continue;
 301                        }
 60302                        if (property0.NameEquals("connectionType"))
 303                        {
 4304                            connectionType = new VirtualNetworkGatewayConnectionType(property0.Value.GetString());
 4305                            continue;
 306                        }
 56307                        if (property0.NameEquals("connectionProtocol"))
 308                        {
 4309                            if (property0.Value.ValueKind == JsonValueKind.Null)
 310                            {
 311                                continue;
 312                            }
 4313                            connectionProtocol = new VirtualNetworkGatewayConnectionProtocol(property0.Value.GetString()
 4314                            continue;
 315                        }
 52316                        if (property0.NameEquals("routingWeight"))
 317                        {
 4318                            if (property0.Value.ValueKind == JsonValueKind.Null)
 319                            {
 320                                continue;
 321                            }
 4322                            routingWeight = property0.Value.GetInt32();
 4323                            continue;
 324                        }
 48325                        if (property0.NameEquals("sharedKey"))
 326                        {
 0327                            if (property0.Value.ValueKind == JsonValueKind.Null)
 328                            {
 329                                continue;
 330                            }
 0331                            sharedKey = property0.Value.GetString();
 0332                            continue;
 333                        }
 48334                        if (property0.NameEquals("connectionStatus"))
 335                        {
 0336                            if (property0.Value.ValueKind == JsonValueKind.Null)
 337                            {
 338                                continue;
 339                            }
 0340                            connectionStatus = new VirtualNetworkGatewayConnectionStatus(property0.Value.GetString());
 0341                            continue;
 342                        }
 48343                        if (property0.NameEquals("tunnelConnectionStatus"))
 344                        {
 0345                            if (property0.Value.ValueKind == JsonValueKind.Null)
 346                            {
 347                                continue;
 348                            }
 0349                            List<TunnelConnectionHealth> array = new List<TunnelConnectionHealth>();
 0350                            foreach (var item in property0.Value.EnumerateArray())
 351                            {
 0352                                if (item.ValueKind == JsonValueKind.Null)
 353                                {
 0354                                    array.Add(null);
 355                                }
 356                                else
 357                                {
 0358                                    array.Add(TunnelConnectionHealth.DeserializeTunnelConnectionHealth(item));
 359                                }
 360                            }
 0361                            tunnelConnectionStatus = array;
 0362                            continue;
 363                        }
 48364                        if (property0.NameEquals("egressBytesTransferred"))
 365                        {
 4366                            if (property0.Value.ValueKind == JsonValueKind.Null)
 367                            {
 368                                continue;
 369                            }
 4370                            egressBytesTransferred = property0.Value.GetInt64();
 4371                            continue;
 372                        }
 44373                        if (property0.NameEquals("ingressBytesTransferred"))
 374                        {
 4375                            if (property0.Value.ValueKind == JsonValueKind.Null)
 376                            {
 377                                continue;
 378                            }
 4379                            ingressBytesTransferred = property0.Value.GetInt64();
 4380                            continue;
 381                        }
 40382                        if (property0.NameEquals("peer"))
 383                        {
 0384                            if (property0.Value.ValueKind == JsonValueKind.Null)
 385                            {
 386                                continue;
 387                            }
 0388                            peer = SubResource.DeserializeSubResource(property0.Value);
 0389                            continue;
 390                        }
 40391                        if (property0.NameEquals("enableBgp"))
 392                        {
 4393                            if (property0.Value.ValueKind == JsonValueKind.Null)
 394                            {
 395                                continue;
 396                            }
 4397                            enableBgp = property0.Value.GetBoolean();
 4398                            continue;
 399                        }
 36400                        if (property0.NameEquals("usePolicyBasedTrafficSelectors"))
 401                        {
 4402                            if (property0.Value.ValueKind == JsonValueKind.Null)
 403                            {
 404                                continue;
 405                            }
 4406                            usePolicyBasedTrafficSelectors = property0.Value.GetBoolean();
 4407                            continue;
 408                        }
 32409                        if (property0.NameEquals("ipsecPolicies"))
 410                        {
 4411                            if (property0.Value.ValueKind == JsonValueKind.Null)
 412                            {
 413                                continue;
 414                            }
 4415                            List<IpsecPolicy> array = new List<IpsecPolicy>();
 0416                            foreach (var item in property0.Value.EnumerateArray())
 417                            {
 0418                                if (item.ValueKind == JsonValueKind.Null)
 419                                {
 0420                                    array.Add(null);
 421                                }
 422                                else
 423                                {
 0424                                    array.Add(IpsecPolicy.DeserializeIpsecPolicy(item));
 425                                }
 426                            }
 4427                            ipsecPolicies = array;
 4428                            continue;
 429                        }
 28430                        if (property0.NameEquals("trafficSelectorPolicies"))
 431                        {
 4432                            if (property0.Value.ValueKind == JsonValueKind.Null)
 433                            {
 434                                continue;
 435                            }
 4436                            List<TrafficSelectorPolicy> array = new List<TrafficSelectorPolicy>();
 0437                            foreach (var item in property0.Value.EnumerateArray())
 438                            {
 0439                                if (item.ValueKind == JsonValueKind.Null)
 440                                {
 0441                                    array.Add(null);
 442                                }
 443                                else
 444                                {
 0445                                    array.Add(TrafficSelectorPolicy.DeserializeTrafficSelectorPolicy(item));
 446                                }
 447                            }
 4448                            trafficSelectorPolicies = array;
 4449                            continue;
 450                        }
 24451                        if (property0.NameEquals("resourceGuid"))
 452                        {
 4453                            if (property0.Value.ValueKind == JsonValueKind.Null)
 454                            {
 455                                continue;
 456                            }
 4457                            resourceGuid = property0.Value.GetString();
 4458                            continue;
 459                        }
 20460                        if (property0.NameEquals("provisioningState"))
 461                        {
 4462                            if (property0.Value.ValueKind == JsonValueKind.Null)
 463                            {
 464                                continue;
 465                            }
 4466                            provisioningState = new ProvisioningState(property0.Value.GetString());
 4467                            continue;
 468                        }
 16469                        if (property0.NameEquals("expressRouteGatewayBypass"))
 470                        {
 4471                            if (property0.Value.ValueKind == JsonValueKind.Null)
 472                            {
 473                                continue;
 474                            }
 4475                            expressRouteGatewayBypass = property0.Value.GetBoolean();
 476                            continue;
 477                        }
 478                    }
 479                    continue;
 480                }
 481            }
 4482            return new VirtualNetworkGatewayConnectionListEntity(id, name, type, location, tags, etag, authorizationKey,
 483        }
 484    }
 485}