| | 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; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using System.Text.Json; |
| | 11 | | using Azure.Core; |
| | 12 | |
|
| | 13 | | namespace Azure.ResourceManager.Storage.Models |
| | 14 | | { |
| | 15 | | public partial class StorageAccount : IUtf8JsonSerializable |
| | 16 | | { |
| | 17 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 18 | | { |
| 0 | 19 | | writer.WriteStartObject(); |
| 0 | 20 | | if (Sku != null) |
| | 21 | | { |
| 0 | 22 | | writer.WritePropertyName("sku"); |
| 0 | 23 | | writer.WriteObjectValue(Sku); |
| | 24 | | } |
| 0 | 25 | | if (Kind != null) |
| | 26 | | { |
| 0 | 27 | | writer.WritePropertyName("kind"); |
| 0 | 28 | | writer.WriteStringValue(Kind.Value.ToString()); |
| | 29 | | } |
| 0 | 30 | | if (Identity != null) |
| | 31 | | { |
| 0 | 32 | | writer.WritePropertyName("identity"); |
| 0 | 33 | | writer.WriteObjectValue(Identity); |
| | 34 | | } |
| 0 | 35 | | if (Tags != null) |
| | 36 | | { |
| 0 | 37 | | writer.WritePropertyName("tags"); |
| 0 | 38 | | writer.WriteStartObject(); |
| 0 | 39 | | foreach (var item in Tags) |
| | 40 | | { |
| 0 | 41 | | writer.WritePropertyName(item.Key); |
| 0 | 42 | | writer.WriteStringValue(item.Value); |
| | 43 | | } |
| 0 | 44 | | writer.WriteEndObject(); |
| | 45 | | } |
| 0 | 46 | | writer.WritePropertyName("location"); |
| 0 | 47 | | writer.WriteStringValue(Location); |
| 0 | 48 | | if (Id != null) |
| | 49 | | { |
| 0 | 50 | | writer.WritePropertyName("id"); |
| 0 | 51 | | writer.WriteStringValue(Id); |
| | 52 | | } |
| 0 | 53 | | if (Name != null) |
| | 54 | | { |
| 0 | 55 | | writer.WritePropertyName("name"); |
| 0 | 56 | | writer.WriteStringValue(Name); |
| | 57 | | } |
| 0 | 58 | | if (Type != null) |
| | 59 | | { |
| 0 | 60 | | writer.WritePropertyName("type"); |
| 0 | 61 | | writer.WriteStringValue(Type); |
| | 62 | | } |
| 0 | 63 | | writer.WritePropertyName("properties"); |
| 0 | 64 | | writer.WriteStartObject(); |
| 0 | 65 | | if (ProvisioningState != null) |
| | 66 | | { |
| 0 | 67 | | writer.WritePropertyName("provisioningState"); |
| 0 | 68 | | writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); |
| | 69 | | } |
| 0 | 70 | | if (PrimaryEndpoints != null) |
| | 71 | | { |
| 0 | 72 | | writer.WritePropertyName("primaryEndpoints"); |
| 0 | 73 | | writer.WriteObjectValue(PrimaryEndpoints); |
| | 74 | | } |
| 0 | 75 | | if (PrimaryLocation != null) |
| | 76 | | { |
| 0 | 77 | | writer.WritePropertyName("primaryLocation"); |
| 0 | 78 | | writer.WriteStringValue(PrimaryLocation); |
| | 79 | | } |
| 0 | 80 | | if (StatusOfPrimary != null) |
| | 81 | | { |
| 0 | 82 | | writer.WritePropertyName("statusOfPrimary"); |
| 0 | 83 | | writer.WriteStringValue(StatusOfPrimary.Value.ToSerialString()); |
| | 84 | | } |
| 0 | 85 | | if (LastGeoFailoverTime != null) |
| | 86 | | { |
| 0 | 87 | | writer.WritePropertyName("lastGeoFailoverTime"); |
| 0 | 88 | | writer.WriteStringValue(LastGeoFailoverTime.Value, "O"); |
| | 89 | | } |
| 0 | 90 | | if (SecondaryLocation != null) |
| | 91 | | { |
| 0 | 92 | | writer.WritePropertyName("secondaryLocation"); |
| 0 | 93 | | writer.WriteStringValue(SecondaryLocation); |
| | 94 | | } |
| 0 | 95 | | if (StatusOfSecondary != null) |
| | 96 | | { |
| 0 | 97 | | writer.WritePropertyName("statusOfSecondary"); |
| 0 | 98 | | writer.WriteStringValue(StatusOfSecondary.Value.ToSerialString()); |
| | 99 | | } |
| 0 | 100 | | if (CreationTime != null) |
| | 101 | | { |
| 0 | 102 | | writer.WritePropertyName("creationTime"); |
| 0 | 103 | | writer.WriteStringValue(CreationTime.Value, "O"); |
| | 104 | | } |
| 0 | 105 | | if (CustomDomain != null) |
| | 106 | | { |
| 0 | 107 | | writer.WritePropertyName("customDomain"); |
| 0 | 108 | | writer.WriteObjectValue(CustomDomain); |
| | 109 | | } |
| 0 | 110 | | if (SecondaryEndpoints != null) |
| | 111 | | { |
| 0 | 112 | | writer.WritePropertyName("secondaryEndpoints"); |
| 0 | 113 | | writer.WriteObjectValue(SecondaryEndpoints); |
| | 114 | | } |
| 0 | 115 | | if (Encryption != null) |
| | 116 | | { |
| 0 | 117 | | writer.WritePropertyName("encryption"); |
| 0 | 118 | | writer.WriteObjectValue(Encryption); |
| | 119 | | } |
| 0 | 120 | | if (AccessTier != null) |
| | 121 | | { |
| 0 | 122 | | writer.WritePropertyName("accessTier"); |
| 0 | 123 | | writer.WriteStringValue(AccessTier.Value.ToSerialString()); |
| | 124 | | } |
| 0 | 125 | | if (AzureFilesIdentityBasedAuthentication != null) |
| | 126 | | { |
| 0 | 127 | | writer.WritePropertyName("azureFilesIdentityBasedAuthentication"); |
| 0 | 128 | | writer.WriteObjectValue(AzureFilesIdentityBasedAuthentication); |
| | 129 | | } |
| 0 | 130 | | if (EnableHttpsTrafficOnly != null) |
| | 131 | | { |
| 0 | 132 | | writer.WritePropertyName("supportsHttpsTrafficOnly"); |
| 0 | 133 | | writer.WriteBooleanValue(EnableHttpsTrafficOnly.Value); |
| | 134 | | } |
| 0 | 135 | | if (NetworkRuleSet != null) |
| | 136 | | { |
| 0 | 137 | | writer.WritePropertyName("networkAcls"); |
| 0 | 138 | | writer.WriteObjectValue(NetworkRuleSet); |
| | 139 | | } |
| 0 | 140 | | if (IsHnsEnabled != null) |
| | 141 | | { |
| 0 | 142 | | writer.WritePropertyName("isHnsEnabled"); |
| 0 | 143 | | writer.WriteBooleanValue(IsHnsEnabled.Value); |
| | 144 | | } |
| 0 | 145 | | if (GeoReplicationStats != null) |
| | 146 | | { |
| 0 | 147 | | writer.WritePropertyName("geoReplicationStats"); |
| 0 | 148 | | writer.WriteObjectValue(GeoReplicationStats); |
| | 149 | | } |
| 0 | 150 | | if (FailoverInProgress != null) |
| | 151 | | { |
| 0 | 152 | | writer.WritePropertyName("failoverInProgress"); |
| 0 | 153 | | writer.WriteBooleanValue(FailoverInProgress.Value); |
| | 154 | | } |
| 0 | 155 | | if (LargeFileSharesState != null) |
| | 156 | | { |
| 0 | 157 | | writer.WritePropertyName("largeFileSharesState"); |
| 0 | 158 | | writer.WriteStringValue(LargeFileSharesState.Value.ToString()); |
| | 159 | | } |
| 0 | 160 | | if (PrivateEndpointConnections != null) |
| | 161 | | { |
| 0 | 162 | | writer.WritePropertyName("privateEndpointConnections"); |
| 0 | 163 | | writer.WriteStartArray(); |
| 0 | 164 | | foreach (var item in PrivateEndpointConnections) |
| | 165 | | { |
| 0 | 166 | | writer.WriteObjectValue(item); |
| | 167 | | } |
| 0 | 168 | | writer.WriteEndArray(); |
| | 169 | | } |
| 0 | 170 | | if (RoutingPreference != null) |
| | 171 | | { |
| 0 | 172 | | writer.WritePropertyName("routingPreference"); |
| 0 | 173 | | writer.WriteObjectValue(RoutingPreference); |
| | 174 | | } |
| 0 | 175 | | if (BlobRestoreStatus != null) |
| | 176 | | { |
| 0 | 177 | | writer.WritePropertyName("blobRestoreStatus"); |
| 0 | 178 | | writer.WriteObjectValue(BlobRestoreStatus); |
| | 179 | | } |
| 0 | 180 | | writer.WriteEndObject(); |
| 0 | 181 | | writer.WriteEndObject(); |
| 0 | 182 | | } |
| | 183 | |
|
| | 184 | | internal static StorageAccount DeserializeStorageAccount(JsonElement element) |
| | 185 | | { |
| 836 | 186 | | Sku sku = default; |
| 836 | 187 | | Kind? kind = default; |
| 836 | 188 | | Identity identity = default; |
| 836 | 189 | | IDictionary<string, string> tags = default; |
| 836 | 190 | | string location = default; |
| 836 | 191 | | string id = default; |
| 836 | 192 | | string name = default; |
| 836 | 193 | | string type = default; |
| 836 | 194 | | ProvisioningState? provisioningState = default; |
| 836 | 195 | | Endpoints primaryEndpoints = default; |
| 836 | 196 | | string primaryLocation = default; |
| 836 | 197 | | AccountStatus? statusOfPrimary = default; |
| 836 | 198 | | DateTimeOffset? lastGeoFailoverTime = default; |
| 836 | 199 | | string secondaryLocation = default; |
| 836 | 200 | | AccountStatus? statusOfSecondary = default; |
| 836 | 201 | | DateTimeOffset? creationTime = default; |
| 836 | 202 | | CustomDomain customDomain = default; |
| 836 | 203 | | Endpoints secondaryEndpoints = default; |
| 836 | 204 | | Encryption encryption = default; |
| 836 | 205 | | AccessTier? accessTier = default; |
| 836 | 206 | | AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default; |
| 836 | 207 | | bool? supportsHttpsTrafficOnly = default; |
| 836 | 208 | | NetworkRuleSet networkAcls = default; |
| 836 | 209 | | bool? isHnsEnabled = default; |
| 836 | 210 | | GeoReplicationStats geoReplicationStats = default; |
| 836 | 211 | | bool? failoverInProgress = default; |
| 836 | 212 | | LargeFileSharesState? largeFileSharesState = default; |
| 836 | 213 | | IList<PrivateEndpointConnection> privateEndpointConnections = default; |
| 836 | 214 | | RoutingPreference routingPreference = default; |
| 836 | 215 | | BlobRestoreStatus blobRestoreStatus = default; |
| 15096 | 216 | | foreach (var property in element.EnumerateObject()) |
| | 217 | | { |
| 6712 | 218 | | if (property.NameEquals("sku")) |
| | 219 | | { |
| 836 | 220 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 221 | | { |
| | 222 | | continue; |
| | 223 | | } |
| 836 | 224 | | sku = Sku.DeserializeSku(property.Value); |
| 836 | 225 | | continue; |
| | 226 | | } |
| 5876 | 227 | | if (property.NameEquals("kind")) |
| | 228 | | { |
| 836 | 229 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 230 | | { |
| | 231 | | continue; |
| | 232 | | } |
| 836 | 233 | | kind = new Kind(property.Value.GetString()); |
| 836 | 234 | | continue; |
| | 235 | | } |
| 5040 | 236 | | if (property.NameEquals("identity")) |
| | 237 | | { |
| 24 | 238 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 239 | | { |
| | 240 | | continue; |
| | 241 | | } |
| 24 | 242 | | identity = Identity.DeserializeIdentity(property.Value); |
| 24 | 243 | | continue; |
| | 244 | | } |
| 5016 | 245 | | if (property.NameEquals("tags")) |
| | 246 | | { |
| 836 | 247 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 248 | | { |
| | 249 | | continue; |
| | 250 | | } |
| 836 | 251 | | Dictionary<string, string> dictionary = new Dictionary<string, string>(); |
| 3520 | 252 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 253 | | { |
| 924 | 254 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 255 | | { |
| 0 | 256 | | dictionary.Add(property0.Name, null); |
| | 257 | | } |
| | 258 | | else |
| | 259 | | { |
| 924 | 260 | | dictionary.Add(property0.Name, property0.Value.GetString()); |
| | 261 | | } |
| | 262 | | } |
| 836 | 263 | | tags = dictionary; |
| 836 | 264 | | continue; |
| | 265 | | } |
| 4180 | 266 | | if (property.NameEquals("location")) |
| | 267 | | { |
| 836 | 268 | | location = property.Value.GetString(); |
| 836 | 269 | | continue; |
| | 270 | | } |
| 3344 | 271 | | if (property.NameEquals("id")) |
| | 272 | | { |
| 836 | 273 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 274 | | { |
| | 275 | | continue; |
| | 276 | | } |
| 836 | 277 | | id = property.Value.GetString(); |
| 836 | 278 | | continue; |
| | 279 | | } |
| 2508 | 280 | | if (property.NameEquals("name")) |
| | 281 | | { |
| 836 | 282 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 283 | | { |
| | 284 | | continue; |
| | 285 | | } |
| 836 | 286 | | name = property.Value.GetString(); |
| 836 | 287 | | continue; |
| | 288 | | } |
| 1672 | 289 | | if (property.NameEquals("type")) |
| | 290 | | { |
| 836 | 291 | | if (property.Value.ValueKind == JsonValueKind.Null) |
| | 292 | | { |
| | 293 | | continue; |
| | 294 | | } |
| 836 | 295 | | type = property.Value.GetString(); |
| 836 | 296 | | continue; |
| | 297 | | } |
| 836 | 298 | | if (property.NameEquals("properties")) |
| | 299 | | { |
| 19816 | 300 | | foreach (var property0 in property.Value.EnumerateObject()) |
| | 301 | | { |
| 9072 | 302 | | if (property0.NameEquals("provisioningState")) |
| | 303 | | { |
| 836 | 304 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 305 | | { |
| | 306 | | continue; |
| | 307 | | } |
| 836 | 308 | | provisioningState = property0.Value.GetString().ToProvisioningState(); |
| 836 | 309 | | continue; |
| | 310 | | } |
| 8236 | 311 | | if (property0.NameEquals("primaryEndpoints")) |
| | 312 | | { |
| 836 | 313 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 314 | | { |
| | 315 | | continue; |
| | 316 | | } |
| 836 | 317 | | primaryEndpoints = Endpoints.DeserializeEndpoints(property0.Value); |
| 836 | 318 | | continue; |
| | 319 | | } |
| 7400 | 320 | | if (property0.NameEquals("primaryLocation")) |
| | 321 | | { |
| 836 | 322 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 323 | | { |
| | 324 | | continue; |
| | 325 | | } |
| 836 | 326 | | primaryLocation = property0.Value.GetString(); |
| 836 | 327 | | continue; |
| | 328 | | } |
| 6564 | 329 | | if (property0.NameEquals("statusOfPrimary")) |
| | 330 | | { |
| 836 | 331 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 332 | | { |
| | 333 | | continue; |
| | 334 | | } |
| 836 | 335 | | statusOfPrimary = property0.Value.GetString().ToAccountStatus(); |
| 836 | 336 | | continue; |
| | 337 | | } |
| 5728 | 338 | | if (property0.NameEquals("lastGeoFailoverTime")) |
| | 339 | | { |
| 12 | 340 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 341 | | { |
| | 342 | | continue; |
| | 343 | | } |
| 12 | 344 | | lastGeoFailoverTime = property0.Value.GetDateTimeOffset("O"); |
| 12 | 345 | | continue; |
| | 346 | | } |
| 5716 | 347 | | if (property0.NameEquals("secondaryLocation")) |
| | 348 | | { |
| 472 | 349 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 350 | | { |
| | 351 | | continue; |
| | 352 | | } |
| 472 | 353 | | secondaryLocation = property0.Value.GetString(); |
| 472 | 354 | | continue; |
| | 355 | | } |
| 5244 | 356 | | if (property0.NameEquals("statusOfSecondary")) |
| | 357 | | { |
| 472 | 358 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 359 | | { |
| | 360 | | continue; |
| | 361 | | } |
| 472 | 362 | | statusOfSecondary = property0.Value.GetString().ToAccountStatus(); |
| 472 | 363 | | continue; |
| | 364 | | } |
| 4772 | 365 | | if (property0.NameEquals("creationTime")) |
| | 366 | | { |
| 836 | 367 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 368 | | { |
| | 369 | | continue; |
| | 370 | | } |
| 836 | 371 | | creationTime = property0.Value.GetDateTimeOffset("O"); |
| 836 | 372 | | continue; |
| | 373 | | } |
| 3936 | 374 | | if (property0.NameEquals("customDomain")) |
| | 375 | | { |
| 0 | 376 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 377 | | { |
| | 378 | | continue; |
| | 379 | | } |
| 0 | 380 | | customDomain = CustomDomain.DeserializeCustomDomain(property0.Value); |
| 0 | 381 | | continue; |
| | 382 | | } |
| 3936 | 383 | | if (property0.NameEquals("secondaryEndpoints")) |
| | 384 | | { |
| 160 | 385 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 386 | | { |
| | 387 | | continue; |
| | 388 | | } |
| 160 | 389 | | secondaryEndpoints = Endpoints.DeserializeEndpoints(property0.Value); |
| 160 | 390 | | continue; |
| | 391 | | } |
| 3776 | 392 | | if (property0.NameEquals("encryption")) |
| | 393 | | { |
| 836 | 394 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 395 | | { |
| | 396 | | continue; |
| | 397 | | } |
| 836 | 398 | | encryption = Encryption.DeserializeEncryption(property0.Value); |
| 836 | 399 | | continue; |
| | 400 | | } |
| 2940 | 401 | | if (property0.NameEquals("accessTier")) |
| | 402 | | { |
| 348 | 403 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 404 | | { |
| | 405 | | continue; |
| | 406 | | } |
| 348 | 407 | | accessTier = property0.Value.GetString().ToAccessTier(); |
| 348 | 408 | | continue; |
| | 409 | | } |
| 2592 | 410 | | if (property0.NameEquals("azureFilesIdentityBasedAuthentication")) |
| | 411 | | { |
| 4 | 412 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 413 | | { |
| | 414 | | continue; |
| | 415 | | } |
| 4 | 416 | | azureFilesIdentityBasedAuthentication = AzureFilesIdentityBasedAuthentication.DeserializeAzu |
| 4 | 417 | | continue; |
| | 418 | | } |
| 2588 | 419 | | if (property0.NameEquals("supportsHttpsTrafficOnly")) |
| | 420 | | { |
| 836 | 421 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 422 | | { |
| | 423 | | continue; |
| | 424 | | } |
| 836 | 425 | | supportsHttpsTrafficOnly = property0.Value.GetBoolean(); |
| 836 | 426 | | continue; |
| | 427 | | } |
| 1752 | 428 | | if (property0.NameEquals("networkAcls")) |
| | 429 | | { |
| 836 | 430 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 431 | | { |
| | 432 | | continue; |
| | 433 | | } |
| 836 | 434 | | networkAcls = NetworkRuleSet.DeserializeNetworkRuleSet(property0.Value); |
| 836 | 435 | | continue; |
| | 436 | | } |
| 916 | 437 | | if (property0.NameEquals("isHnsEnabled")) |
| | 438 | | { |
| 36 | 439 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 440 | | { |
| | 441 | | continue; |
| | 442 | | } |
| 36 | 443 | | isHnsEnabled = property0.Value.GetBoolean(); |
| 36 | 444 | | continue; |
| | 445 | | } |
| 880 | 446 | | if (property0.NameEquals("geoReplicationStats")) |
| | 447 | | { |
| 4 | 448 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 449 | | { |
| | 450 | | continue; |
| | 451 | | } |
| 4 | 452 | | geoReplicationStats = GeoReplicationStats.DeserializeGeoReplicationStats(property0.Value); |
| 4 | 453 | | continue; |
| | 454 | | } |
| 876 | 455 | | if (property0.NameEquals("failoverInProgress")) |
| | 456 | | { |
| 0 | 457 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 458 | | { |
| | 459 | | continue; |
| | 460 | | } |
| 0 | 461 | | failoverInProgress = property0.Value.GetBoolean(); |
| 0 | 462 | | continue; |
| | 463 | | } |
| 876 | 464 | | if (property0.NameEquals("largeFileSharesState")) |
| | 465 | | { |
| 36 | 466 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 467 | | { |
| | 468 | | continue; |
| | 469 | | } |
| 36 | 470 | | largeFileSharesState = new LargeFileSharesState(property0.Value.GetString()); |
| 36 | 471 | | continue; |
| | 472 | | } |
| 840 | 473 | | if (property0.NameEquals("privateEndpointConnections")) |
| | 474 | | { |
| 836 | 475 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 476 | | { |
| | 477 | | continue; |
| | 478 | | } |
| 836 | 479 | | List<PrivateEndpointConnection> array = new List<PrivateEndpointConnection>(); |
| 0 | 480 | | foreach (var item in property0.Value.EnumerateArray()) |
| | 481 | | { |
| 0 | 482 | | if (item.ValueKind == JsonValueKind.Null) |
| | 483 | | { |
| 0 | 484 | | array.Add(null); |
| | 485 | | } |
| | 486 | | else |
| | 487 | | { |
| 0 | 488 | | array.Add(PrivateEndpointConnection.DeserializePrivateEndpointConnection(item)); |
| | 489 | | } |
| | 490 | | } |
| 836 | 491 | | privateEndpointConnections = array; |
| 836 | 492 | | continue; |
| | 493 | | } |
| 4 | 494 | | if (property0.NameEquals("routingPreference")) |
| | 495 | | { |
| 4 | 496 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 497 | | { |
| | 498 | | continue; |
| | 499 | | } |
| 4 | 500 | | routingPreference = RoutingPreference.DeserializeRoutingPreference(property0.Value); |
| 4 | 501 | | continue; |
| | 502 | | } |
| 0 | 503 | | if (property0.NameEquals("blobRestoreStatus")) |
| | 504 | | { |
| 0 | 505 | | if (property0.Value.ValueKind == JsonValueKind.Null) |
| | 506 | | { |
| | 507 | | continue; |
| | 508 | | } |
| 0 | 509 | | blobRestoreStatus = BlobRestoreStatus.DeserializeBlobRestoreStatus(property0.Value); |
| | 510 | | continue; |
| | 511 | | } |
| | 512 | | } |
| | 513 | | continue; |
| | 514 | | } |
| | 515 | | } |
| 836 | 516 | | return new StorageAccount(id, name, type, tags, location, sku, kind, identity, provisioningState, primaryEnd |
| | 517 | | } |
| | 518 | | } |
| | 519 | | } |