| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using System.Text.Json; |
| | 10 | | using Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.ResourceManager.Network.Models |
| | 13 | | { |
| | 14 | | public partial class VirtualNetworkGatewayConnection : IUtf8JsonSerializable |
| | 15 | | { |
| | 16 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 17 | | { |
| 48 | 18 | | writer.WriteStartObject(); |
| 48 | 19 | | if (Etag != null) |
| | 20 | | { |
| 0 | 21 | | writer.WritePropertyName("etag"); |
| 0 | 22 | | writer.WriteStringValue(Etag); |
| | 23 | | } |
| 48 | 24 | | if (Id != null) |
| | 25 | | { |
| 0 | 26 | | writer.WritePropertyName("id"); |
| 0 | 27 | | writer.WriteStringValue(Id); |
| | 28 | | } |
| 48 | 29 | | if (Name != null) |
| | 30 | | { |
| 0 | 31 | | writer.WritePropertyName("name"); |
| 0 | 32 | | writer.WriteStringValue(Name); |
| | 33 | | } |
| 48 | 34 | | if (Type != null) |
| | 35 | | { |
| 0 | 36 | | writer.WritePropertyName("type"); |
| 0 | 37 | | writer.WriteStringValue(Type); |
| | 38 | | } |
| 48 | 39 | | if (Location != null) |
| | 40 | | { |
| 48 | 41 | | writer.WritePropertyName("location"); |
| 48 | 42 | | writer.WriteStringValue(Location); |
| | 43 | | } |
| 48 | 44 | | if (Tags != null) |
| | 45 | | { |
| 0 | 46 | | writer.WritePropertyName("tags"); |
| 0 | 47 | | writer.WriteStartObject(); |
| 0 | 48 | | foreach (var item in Tags) |
| | 49 | | { |
| 0 | 50 | | writer.WritePropertyName(item.Key); |
| 0 | 51 | | writer.WriteStringValue(item.Value); |
| | 52 | | } |
| 0 | 53 | | writer.WriteEndObject(); |
| | 54 | | } |
| 48 | 55 | | writer.WritePropertyName("properties"); |
| 48 | 56 | | writer.WriteStartObject(); |
| 48 | 57 | | if (AuthorizationKey != null) |
| | 58 | | { |
| 0 | 59 | | writer.WritePropertyName("authorizationKey"); |
| 0 | 60 | | writer.WriteStringValue(AuthorizationKey); |
| | 61 | | } |
| 48 | 62 | | writer.WritePropertyName("virtualNetworkGateway1"); |
| 48 | 63 | | writer.WriteObjectValue(VirtualNetworkGateway1); |
| 48 | 64 | | if (VirtualNetworkGateway2 != null) |
| | 65 | | { |
| 0 | 66 | | writer.WritePropertyName("virtualNetworkGateway2"); |
| 0 | 67 | | writer.WriteObjectValue(VirtualNetworkGateway2); |
| | 68 | | } |
| 48 | 69 | | if (LocalNetworkGateway2 != null) |
| | 70 | | { |
| 48 | 71 | | writer.WritePropertyName("localNetworkGateway2"); |
| 48 | 72 | | writer.WriteObjectValue(LocalNetworkGateway2); |
| | 73 | | } |
| 48 | 74 | | writer.WritePropertyName("connectionType"); |
| 48 | 75 | | writer.WriteStringValue(ConnectionType.ToString()); |
| 48 | 76 | | if (ConnectionProtocol != null) |
| | 77 | | { |
| 0 | 78 | | writer.WritePropertyName("connectionProtocol"); |
| 0 | 79 | | writer.WriteStringValue(ConnectionProtocol.Value.ToString()); |
| | 80 | | } |
| 48 | 81 | | if (RoutingWeight != null) |
| | 82 | | { |
| 48 | 83 | | writer.WritePropertyName("routingWeight"); |
| 48 | 84 | | writer.WriteNumberValue(RoutingWeight.Value); |
| | 85 | | } |
| 48 | 86 | | if (DpdTimeoutSeconds != null) |
| | 87 | | { |
| 0 | 88 | | writer.WritePropertyName("dpdTimeoutSeconds"); |
| 0 | 89 | | writer.WriteNumberValue(DpdTimeoutSeconds.Value); |
| | 90 | | } |
| 48 | 91 | | if (SharedKey != null) |
| | 92 | | { |
| 48 | 93 | | writer.WritePropertyName("sharedKey"); |
| 48 | 94 | | writer.WriteStringValue(SharedKey); |
| | 95 | | } |
| 48 | 96 | | if (ConnectionStatus != null) |
| | 97 | | { |
| 0 | 98 | | writer.WritePropertyName("connectionStatus"); |
| 0 | 99 | | writer.WriteStringValue(ConnectionStatus.Value.ToString()); |
| | 100 | | } |
| 48 | 101 | | if (TunnelConnectionStatus != null) |
| | 102 | | { |
| 0 | 103 | | writer.WritePropertyName("tunnelConnectionStatus"); |
| 0 | 104 | | writer.WriteStartArray(); |
| 0 | 105 | | foreach (var item in TunnelConnectionStatus) |
| | 106 | | { |
| 0 | 107 | | writer.WriteObjectValue(item); |
| | 108 | | } |
| 0 | 109 | | writer.WriteEndArray(); |
| | 110 | | } |
| 48 | 111 | | if (EgressBytesTransferred != null) |
| | 112 | | { |
| 0 | 113 | | writer.WritePropertyName("egressBytesTransferred"); |
| 0 | 114 | | writer.WriteNumberValue(EgressBytesTransferred.Value); |
| | 115 | | } |
| 48 | 116 | | if (IngressBytesTransferred != null) |
| | 117 | | { |
| 0 | 118 | | writer.WritePropertyName("ingressBytesTransferred"); |
| 0 | 119 | | writer.WriteNumberValue(IngressBytesTransferred.Value); |
| | 120 | | } |
| 48 | 121 | | if (Peer != null) |
| | 122 | | { |
| 0 | 123 | | writer.WritePropertyName("peer"); |
| 0 | 124 | | writer.WriteObjectValue(Peer); |
| | 125 | | } |
| 48 | 126 | | if (EnableBgp != null) |
| | 127 | | { |
| 8 | 128 | | writer.WritePropertyName("enableBgp"); |
| 8 | 129 | | writer.WriteBooleanValue(EnableBgp.Value); |
| | 130 | | } |
| 48 | 131 | | if (UseLocalAzureIpAddress != null) |
| | 132 | | { |
| 0 | 133 | | writer.WritePropertyName("useLocalAzureIpAddress"); |
| 0 | 134 | | writer.WriteBooleanValue(UseLocalAzureIpAddress.Value); |
| | 135 | | } |
| 48 | 136 | | if (UsePolicyBasedTrafficSelectors != null) |
| | 137 | | { |
| 24 | 138 | | writer.WritePropertyName("usePolicyBasedTrafficSelectors"); |
| 24 | 139 | | writer.WriteBooleanValue(UsePolicyBasedTrafficSelectors.Value); |
| | 140 | | } |
| 48 | 141 | | if (IpsecPolicies != null) |
| | 142 | | { |
| 16 | 143 | | writer.WritePropertyName("ipsecPolicies"); |
| 16 | 144 | | writer.WriteStartArray(); |
| 64 | 145 | | foreach (var item in IpsecPolicies) |
| | 146 | | { |
| 16 | 147 | | writer.WriteObjectValue(item); |
| | 148 | | } |
| 16 | 149 | | writer.WriteEndArray(); |
| | 150 | | } |
| 48 | 151 | | if (TrafficSelectorPolicies != null) |
| | 152 | | { |
| 0 | 153 | | writer.WritePropertyName("trafficSelectorPolicies"); |
| 0 | 154 | | writer.WriteStartArray(); |
| 0 | 155 | | foreach (var item in TrafficSelectorPolicies) |
| | 156 | | { |
| 0 | 157 | | writer.WriteObjectValue(item); |
| | 158 | | } |
| 0 | 159 | | writer.WriteEndArray(); |
| | 160 | | } |
| 48 | 161 | | if (ResourceGuid != null) |
| | 162 | | { |
| 0 | 163 | | writer.WritePropertyName("resourceGuid"); |
| 0 | 164 | | writer.WriteStringValue(ResourceGuid); |
| | 165 | | } |
| 48 | 166 | | if (ProvisioningState != null) |
| | 167 | | { |
| 0 | 168 | | writer.WritePropertyName("provisioningState"); |
| 0 | 169 | | writer.WriteStringValue(ProvisioningState.Value.ToString()); |
| | 170 | | } |
| 48 | 171 | | if (ExpressRouteGatewayBypass != null) |
| | 172 | | { |
| 0 | 173 | | writer.WritePropertyName("expressRouteGatewayBypass"); |
| 0 | 174 | | writer.WriteBooleanValue(ExpressRouteGatewayBypass.Value); |
| | 175 | | } |
| 48 | 176 | | writer.WriteEndObject(); |
| 48 | 177 | | writer.WriteEndObject(); |
| 48 | 178 | | } |
| | 179 | |
|
| | 180 | | internal static VirtualNetworkGatewayConnection DeserializeVirtualNetworkGatewayConnection(JsonElement element) |
| | 181 | | { |
| 60 | 182 | | string etag = default; |
| 60 | 183 | | string id = default; |
| 60 | 184 | | string name = default; |
| 60 | 185 | | string type = default; |
| 60 | 186 | | string location = default; |
| 60 | 187 | | IDictionary<string, string> tags = default; |
| 60 | 188 | | string authorizationKey = default; |
| 60 | 189 | | VirtualNetworkGateway virtualNetworkGateway1 = default; |
| 60 | 190 | | VirtualNetworkGateway virtualNetworkGateway2 = default; |
| 60 | 191 | | LocalNetworkGateway localNetworkGateway2 = default; |
| 60 | 192 | | VirtualNetworkGatewayConnectionType connectionType = default; |
| 60 | 193 | | VirtualNetworkGatewayConnectionProtocol? connectionProtocol = default; |
| 60 | 194 | | int? routingWeight = default; |
| 60 | 195 | | int? dpdTimeoutSeconds = default; |
| 60 | 196 | | string sharedKey = default; |
| 60 | 197 | | VirtualNetworkGatewayConnectionStatus? connectionStatus = default; |
| 60 | 198 | | IList<TunnelConnectionHealth> tunnelConnectionStatus = default; |
| 60 | 199 | | long? egressBytesTransferred = default; |
| 60 | 200 | | long? ingressBytesTransferred = default; |
| 60 | 201 | | SubResource peer = default; |
| 60 | 202 | | bool? enableBgp = default; |
| 60 | 203 | | bool? useLocalAzureIpAddress = default; |
| 60 | 204 | | bool? usePolicyBasedTrafficSelectors = default; |
| 60 | 205 | | IList<IpsecPolicy> ipsecPolicies = default; |
| 60 | 206 | | IList<TrafficSelectorPolicy> trafficSelectorPolicies = default; |
| 60 | 207 | | string resourceGuid = default; |
| 60 | 208 | | ProvisioningState? provisioningState = default; |
| 60 | 209 | | bool? expressRouteGatewayBypass = default; |
| 840 | 210 | | foreach (var property in element.EnumerateObject()) |
| | 211 | | { |
| 360 | 212 | | if (property.NameEquals("etag")) |
| | 213 | | { |
| 60 | 214 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 215 | | { |
| | 216 | | continue; |
| | 217 | | } |
| 60 | 218 | | etag = property.Value.GetString(); |
| 60 | 219 | | continue; |
| | 220 | | } |
| 300 | 221 | | if (property.NameEquals("id")) |
| | 222 | | { |
| 60 | 223 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 224 | | { |
| | 225 | | continue; |
| | 226 | | } |
| 60 | 227 | | id = property.Value.GetString(); |
| 60 | 228 | | continue; |
| | 229 | | } |
| 240 | 230 | | if (property.NameEquals("name")) |
| | 231 | | { |
| 60 | 232 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 233 | | { |
| | 234 | | continue; |
| | 235 | | } |
| 60 | 236 | | name = property.Value.GetString(); |
| 60 | 237 | | continue; |
| | 238 | | } |
| 180 | 239 | | if (property.NameEquals("type")) |
| | 240 | | { |
| 60 | 241 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 242 | | { |
| | 243 | | continue; |
| | 244 | | } |
| 60 | 245 | | type = property.Value.GetString(); |
| 60 | 246 | | continue; |
| | 247 | | } |
| 120 | 248 | | if (property.NameEquals("location")) |
| | 249 | | { |
| 60 | 250 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 251 | | { |
| | 252 | | continue; |
| | 253 | | } |
| 60 | 254 | | location = property.Value.GetString(); |
| 60 | 255 | | continue; |
| | 256 | | } |
| 60 | 257 | | if (property.NameEquals("tags")) |
| | 258 | | { |
| 0 | 259 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 260 | | { |
| | 261 | | continue; |
| | 262 | | } |
| 0 | 263 | | Dictionary<string, string> dictionary = new Dictionary<string, string>(); |
| 0 | 264 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 265 | | { |
| 0 | 266 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 267 | | { |
| 0 | 268 | | dictionary.Add(property0.Name, null); |
| | 269 | | } |
| | 270 | | else |
| | 271 | | { |
| 0 | 272 | | dictionary.Add(property0.Name, property0.Value.GetString()); |
| | 273 | | } |
| | 274 | | } |
| 0 | 275 | | tags = dictionary; |
| 0 | 276 | | continue; |
| | 277 | | } |
| 60 | 278 | | if (property.NameEquals("properties")) |
| | 279 | | { |
| 2352 | 280 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 281 | | { |
| 1116 | 282 | | if (property0.NameEquals("authorizationKey")) |
| | 283 | | { |
| 0 | 284 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 285 | | { |
| | 286 | | continue; |
| | 287 | | } |
| 0 | 288 | | authorizationKey = property0.Value.GetString(); |
| 0 | 289 | | continue; |
| | 290 | | } |
| 1116 | 291 | | if (property0.NameEquals("virtualNetworkGateway1")) |
| | 292 | | { |
| 60 | 293 | | virtualNetworkGateway1 = VirtualNetworkGateway.DeserializeVirtualNetworkGateway(property0.Va |
| 60 | 294 | | continue; |
| | 295 | | } |
| 1056 | 296 | | if (property0.NameEquals("virtualNetworkGateway2")) |
| | 297 | | { |
| 0 | 298 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 299 | | { |
| | 300 | | continue; |
| | 301 | | } |
| 0 | 302 | | virtualNetworkGateway2 = VirtualNetworkGateway.DeserializeVirtualNetworkGateway(property0.Va |
| 0 | 303 | | continue; |
| | 304 | | } |
| 1056 | 305 | | if (property0.NameEquals("localNetworkGateway2")) |
| | 306 | | { |
| 60 | 307 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 308 | | { |
| | 309 | | continue; |
| | 310 | | } |
| 60 | 311 | | localNetworkGateway2 = LocalNetworkGateway.DeserializeLocalNetworkGateway(property0.Value); |
| 60 | 312 | | continue; |
| | 313 | | } |
| 996 | 314 | | if (property0.NameEquals("connectionType")) |
| | 315 | | { |
| 60 | 316 | | connectionType = new VirtualNetworkGatewayConnectionType(property0.Value.GetString()); |
| 60 | 317 | | continue; |
| | 318 | | } |
| 936 | 319 | | if (property0.NameEquals("connectionProtocol")) |
| | 320 | | { |
| 60 | 321 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 322 | | { |
| | 323 | | continue; |
| | 324 | | } |
| 60 | 325 | | connectionProtocol = new VirtualNetworkGatewayConnectionProtocol(property0.Value.GetString() |
| 60 | 326 | | continue; |
| | 327 | | } |
| 876 | 328 | | if (property0.NameEquals("routingWeight")) |
| | 329 | | { |
| 60 | 330 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 331 | | { |
| | 332 | | continue; |
| | 333 | | } |
| 60 | 334 | | routingWeight = property0.Value.GetInt32(); |
| 60 | 335 | | continue; |
| | 336 | | } |
| 816 | 337 | | if (property0.NameEquals("dpdTimeoutSeconds")) |
| | 338 | | { |
| 60 | 339 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 340 | | { |
| | 341 | | continue; |
| | 342 | | } |
| 60 | 343 | | dpdTimeoutSeconds = property0.Value.GetInt32(); |
| 60 | 344 | | continue; |
| | 345 | | } |
| 756 | 346 | | if (property0.NameEquals("sharedKey")) |
| | 347 | | { |
| 48 | 348 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 349 | | { |
| | 350 | | continue; |
| | 351 | | } |
| 48 | 352 | | sharedKey = property0.Value.GetString(); |
| 48 | 353 | | continue; |
| | 354 | | } |
| 708 | 355 | | if (property0.NameEquals("connectionStatus")) |
| | 356 | | { |
| 48 | 357 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 358 | | { |
| | 359 | | continue; |
| | 360 | | } |
| 48 | 361 | | connectionStatus = new VirtualNetworkGatewayConnectionStatus(property0.Value.GetString()); |
| 48 | 362 | | continue; |
| | 363 | | } |
| 660 | 364 | | if (property0.NameEquals("tunnelConnectionStatus")) |
| | 365 | | { |
| 0 | 366 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 367 | | { |
| | 368 | | continue; |
| | 369 | | } |
| 0 | 370 | | List<TunnelConnectionHealth> array = new List<TunnelConnectionHealth>(); |
| 0 | 371 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 372 | | { |
| 0 | 373 | | if (item.ValueKind == JsonValueKind.Null) |
| | 374 | | { |
| 0 | 375 | | array.Add(null); |
| | 376 | | } |
| | 377 | | else |
| | 378 | | { |
| 0 | 379 | | array.Add(TunnelConnectionHealth.DeserializeTunnelConnectionHealth(item)); |
| | 380 | | } |
| | 381 | | } |
| 0 | 382 | | tunnelConnectionStatus = array; |
| 0 | 383 | | continue; |
| | 384 | | } |
| 660 | 385 | | if (property0.NameEquals("egressBytesTransferred")) |
| | 386 | | { |
| 60 | 387 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 388 | | { |
| | 389 | | continue; |
| | 390 | | } |
| 60 | 391 | | egressBytesTransferred = property0.Value.GetInt64(); |
| 60 | 392 | | continue; |
| | 393 | | } |
| 600 | 394 | | if (property0.NameEquals("ingressBytesTransferred")) |
| | 395 | | { |
| 60 | 396 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 397 | | { |
| | 398 | | continue; |
| | 399 | | } |
| 60 | 400 | | ingressBytesTransferred = property0.Value.GetInt64(); |
| 60 | 401 | | continue; |
| | 402 | | } |
| 540 | 403 | | if (property0.NameEquals("peer")) |
| | 404 | | { |
| 0 | 405 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 406 | | { |
| | 407 | | continue; |
| | 408 | | } |
| 0 | 409 | | peer = SubResource.DeserializeSubResource(property0.Value); |
| 0 | 410 | | continue; |
| | 411 | | } |
| 540 | 412 | | if (property0.NameEquals("enableBgp")) |
| | 413 | | { |
| 60 | 414 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 415 | | { |
| | 416 | | continue; |
| | 417 | | } |
| 60 | 418 | | enableBgp = property0.Value.GetBoolean(); |
| 60 | 419 | | continue; |
| | 420 | | } |
| 480 | 421 | | if (property0.NameEquals("useLocalAzureIpAddress")) |
| | 422 | | { |
| 60 | 423 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 424 | | { |
| | 425 | | continue; |
| | 426 | | } |
| 60 | 427 | | useLocalAzureIpAddress = property0.Value.GetBoolean(); |
| 60 | 428 | | continue; |
| | 429 | | } |
| 420 | 430 | | if (property0.NameEquals("usePolicyBasedTrafficSelectors")) |
| | 431 | | { |
| 60 | 432 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 433 | | { |
| | 434 | | continue; |
| | 435 | | } |
| 60 | 436 | | usePolicyBasedTrafficSelectors = property0.Value.GetBoolean(); |
| 60 | 437 | | continue; |
| | 438 | | } |
| 360 | 439 | | if (property0.NameEquals("ipsecPolicies")) |
| | 440 | | { |
| 60 | 441 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 442 | | { |
| | 443 | | continue; |
| | 444 | | } |
| 60 | 445 | | List<IpsecPolicy> array = new List<IpsecPolicy>(); |
| 152 | 446 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 447 | | { |
| 16 | 448 | | if (item.ValueKind == JsonValueKind.Null) |
| | 449 | | { |
| 0 | 450 | | array.Add(null); |
| | 451 | | } |
| | 452 | | else |
| | 453 | | { |
| 16 | 454 | | array.Add(IpsecPolicy.DeserializeIpsecPolicy(item)); |
| | 455 | | } |
| | 456 | | } |
| 60 | 457 | | ipsecPolicies = array; |
| 60 | 458 | | continue; |
| | 459 | | } |
| 300 | 460 | | if (property0.NameEquals("trafficSelectorPolicies")) |
| | 461 | | { |
| 60 | 462 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 463 | | { |
| | 464 | | continue; |
| | 465 | | } |
| 60 | 466 | | List<TrafficSelectorPolicy> array = new List<TrafficSelectorPolicy>(); |
| 0 | 467 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 468 | | { |
| 0 | 469 | | if (item.ValueKind == JsonValueKind.Null) |
| | 470 | | { |
| 0 | 471 | | array.Add(null); |
| | 472 | | } |
| | 473 | | else |
| | 474 | | { |
| 0 | 475 | | array.Add(TrafficSelectorPolicy.DeserializeTrafficSelectorPolicy(item)); |
| | 476 | | } |
| | 477 | | } |
| 60 | 478 | | trafficSelectorPolicies = array; |
| 60 | 479 | | continue; |
| | 480 | | } |
| 240 | 481 | | if (property0.NameEquals("resourceGuid")) |
| | 482 | | { |
| 60 | 483 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 484 | | { |
| | 485 | | continue; |
| | 486 | | } |
| 60 | 487 | | resourceGuid = property0.Value.GetString(); |
| 60 | 488 | | continue; |
| | 489 | | } |
| 180 | 490 | | if (property0.NameEquals("provisioningState")) |
| | 491 | | { |
| 60 | 492 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 493 | | { |
| | 494 | | continue; |
| | 495 | | } |
| 60 | 496 | | provisioningState = new ProvisioningState(property0.Value.GetString()); |
| 60 | 497 | | continue; |
| | 498 | | } |
| 120 | 499 | | if (property0.NameEquals("expressRouteGatewayBypass")) |
| | 500 | | { |
| 60 | 501 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 502 | | { |
| | 503 | | continue; |
| | 504 | | } |
| 60 | 505 | | expressRouteGatewayBypass = property0.Value.GetBoolean(); |
| | 506 | | continue; |
| | 507 | | } |
| | 508 | | } |
| | 509 | | continue; |
| | 510 | | } |
| | 511 | | } |
| 60 | 512 | | return new VirtualNetworkGatewayConnection(id, name, type, location, tags, etag, authorizationKey, virtualNe |
| | 513 | | } |
| | 514 | | } |
| | 515 | | } |