< Summary

Class:Azure.ResourceManager.Storage.Models.StorageAccount
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccount.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccount.Serialization.cs
Covered lines:193
Uncovered lines:127
Coverable lines:320
Total lines:656
Line coverage:60.3% (193 of 320)
Covered branches:121
Total branches:196
Branch coverage:61.7% (121 of 196)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-100%100%
get_Sku()-100%100%
get_Kind()-100%100%
get_Identity()-0%100%
get_ProvisioningState()-100%100%
get_PrimaryEndpoints()-100%100%
get_PrimaryLocation()-100%100%
get_StatusOfPrimary()-100%100%
get_LastGeoFailoverTime()-100%100%
get_SecondaryLocation()-100%100%
get_StatusOfSecondary()-100%100%
get_CreationTime()-100%100%
get_CustomDomain()-0%100%
get_SecondaryEndpoints()-100%100%
get_Encryption()-100%100%
get_AccessTier()-100%100%
get_AzureFilesIdentityBasedAuthentication()-0%100%
get_EnableHttpsTrafficOnly()-100%100%
get_NetworkRuleSet()-100%100%
get_IsHnsEnabled()-0%100%
get_GeoReplicationStats()-100%100%
get_FailoverInProgress()-0%100%
get_LargeFileSharesState()-100%100%
get_PrivateEndpointConnections()-100%100%
get_RoutingPreference()-0%100%
get_BlobRestoreStatus()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeStorageAccount(...)-91.36%91.67%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccount.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.Storage.Models
 12{
 13    /// <summary> The storage account. </summary>
 14    public partial class StorageAccount : TrackedResource
 15    {
 16        /// <summary> Initializes a new instance of StorageAccount. </summary>
 17        /// <param name="location"> The geo-location where the resource lives. </param>
 018        public StorageAccount(string location) : base(location)
 19        {
 020            if (location == null)
 21            {
 022                throw new ArgumentNullException(nameof(location));
 23            }
 024        }
 25
 26        /// <summary> Initializes a new instance of StorageAccount. </summary>
 27        /// <param name="id"> Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourc
 28        /// <param name="name"> The name of the resource. </param>
 29        /// <param name="type"> The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/sto
 30        /// <param name="tags"> Resource tags. </param>
 31        /// <param name="location"> The geo-location where the resource lives. </param>
 32        /// <param name="sku"> Gets the SKU. </param>
 33        /// <param name="kind"> Gets the Kind. </param>
 34        /// <param name="identity"> The identity of the resource. </param>
 35        /// <param name="provisioningState"> Gets the status of the storage account at the time the operation was called
 36        /// <param name="primaryEndpoints"> Gets the URLs that are used to perform a retrieval of a public blob, queue, 
 37        /// <param name="primaryLocation"> Gets the location of the primary data center for the storage account. </param
 38        /// <param name="statusOfPrimary"> Gets the status indicating whether the primary location of the storage accoun
 39        /// <param name="lastGeoFailoverTime"> Gets the timestamp of the most recent instance of a failover to the secon
 40        /// <param name="secondaryLocation"> Gets the location of the geo-replicated secondary for the storage account. 
 41        /// <param name="statusOfSecondary"> Gets the status indicating whether the secondary location of the storage ac
 42        /// <param name="creationTime"> Gets the creation date and time of the storage account in UTC. </param>
 43        /// <param name="customDomain"> Gets the custom domain the user assigned to this storage account. </param>
 44        /// <param name="secondaryEndpoints"> Gets the URLs that are used to perform a retrieval of a public blob, queue
 45        /// <param name="encryption"> Gets the encryption settings on the account. If unspecified, the account is unencr
 46        /// <param name="accessTier"> Required for storage accounts where kind = BlobStorage. The access tier used for b
 47        /// <param name="azureFilesIdentityBasedAuthentication"> Provides the identity based authentication settings for
 48        /// <param name="enableHttpsTrafficOnly"> Allows https traffic only to storage service if sets to true. </param>
 49        /// <param name="networkRuleSet"> Network rule set. </param>
 50        /// <param name="isHnsEnabled"> Account HierarchicalNamespace enabled if sets to true. </param>
 51        /// <param name="geoReplicationStats"> Geo Replication Stats. </param>
 52        /// <param name="failoverInProgress"> If the failover is in progress, the value will be true, otherwise, it will
 53        /// <param name="largeFileSharesState"> Allow large file shares if sets to Enabled. It cannot be disabled once i
 54        /// <param name="privateEndpointConnections"> List of private endpoint connection associated with the specified 
 55        /// <param name="routingPreference"> Maintains information about the network routing choice opted by the user fo
 56        /// <param name="blobRestoreStatus"> Blob restore status. </param>
 83657        internal StorageAccount(string id, string name, string type, IDictionary<string, string> tags, string location, 
 58        {
 83659            Sku = sku;
 83660            Kind = kind;
 83661            Identity = identity;
 83662            ProvisioningState = provisioningState;
 83663            PrimaryEndpoints = primaryEndpoints;
 83664            PrimaryLocation = primaryLocation;
 83665            StatusOfPrimary = statusOfPrimary;
 83666            LastGeoFailoverTime = lastGeoFailoverTime;
 83667            SecondaryLocation = secondaryLocation;
 83668            StatusOfSecondary = statusOfSecondary;
 83669            CreationTime = creationTime;
 83670            CustomDomain = customDomain;
 83671            SecondaryEndpoints = secondaryEndpoints;
 83672            Encryption = encryption;
 83673            AccessTier = accessTier;
 83674            AzureFilesIdentityBasedAuthentication = azureFilesIdentityBasedAuthentication;
 83675            EnableHttpsTrafficOnly = enableHttpsTrafficOnly;
 83676            NetworkRuleSet = networkRuleSet;
 83677            IsHnsEnabled = isHnsEnabled;
 83678            GeoReplicationStats = geoReplicationStats;
 83679            FailoverInProgress = failoverInProgress;
 83680            LargeFileSharesState = largeFileSharesState;
 83681            PrivateEndpointConnections = privateEndpointConnections;
 83682            RoutingPreference = routingPreference;
 83683            BlobRestoreStatus = blobRestoreStatus;
 83684        }
 85
 86        /// <summary> Gets the SKU. </summary>
 177687        public Sku Sku { get; }
 88        /// <summary> Gets the Kind. </summary>
 68089        public Kind? Kind { get; }
 90        /// <summary> The identity of the resource. </summary>
 091        public Identity Identity { get; set; }
 92        /// <summary> Gets the status of the storage account at the time the operation was called. </summary>
 17293        public ProvisioningState? ProvisioningState { get; }
 94        /// <summary> Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note 
 76895        public Endpoints PrimaryEndpoints { get; }
 96        /// <summary> Gets the location of the primary data center for the storage account. </summary>
 17297        public string PrimaryLocation { get; }
 98        /// <summary> Gets the status indicating whether the primary location of the storage account is available or una
 17299        public AccountStatus? StatusOfPrimary { get; }
 100        /// <summary> Gets the timestamp of the most recent instance of a failover to the secondary location. Only the m
 172101        public DateTimeOffset? LastGeoFailoverTime { get; }
 102        /// <summary> Gets the location of the geo-replicated secondary for the storage account. Only available if the a
 164103        public string SecondaryLocation { get; }
 104        /// <summary> Gets the status indicating whether the secondary location of the storage account is available or u
 164105        public AccountStatus? StatusOfSecondary { get; }
 106        /// <summary> Gets the creation date and time of the storage account in UTC. </summary>
 172107        public DateTimeOffset? CreationTime { get; }
 108        /// <summary> Gets the custom domain the user assigned to this storage account. </summary>
 0109        public CustomDomain CustomDomain { get; }
 110        /// <summary> Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from t
 164111        public Endpoints SecondaryEndpoints { get; }
 112        /// <summary> Gets the encryption settings on the account. If unspecified, the account is unencrypted. </summary
 316113        public Encryption Encryption { get; }
 114        /// <summary> Required for storage accounts where kind = BlobStorage. The access tier used for billing. </summar
 8115        public AccessTier? AccessTier { get; }
 116        /// <summary> Provides the identity based authentication settings for Azure Files. </summary>
 0117        public AzureFilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get; set; }
 118        /// <summary> Allows https traffic only to storage service if sets to true. </summary>
 864119        public bool? EnableHttpsTrafficOnly { get; set; }
 120        /// <summary> Network rule set. </summary>
 84121        public NetworkRuleSet NetworkRuleSet { get; }
 122        /// <summary> Account HierarchicalNamespace enabled if sets to true. </summary>
 0123        public bool? IsHnsEnabled { get; set; }
 124        /// <summary> Geo Replication Stats. </summary>
 24125        public GeoReplicationStats GeoReplicationStats { get; }
 126        /// <summary> If the failover is in progress, the value will be true, otherwise, it will be null. </summary>
 0127        public bool? FailoverInProgress { get; }
 128        /// <summary> Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. </summary>
 844129        public LargeFileSharesState? LargeFileSharesState { get; set; }
 130        /// <summary> List of private endpoint connection associated with the specified storage account. </summary>
 4131        public IList<PrivateEndpointConnection> PrivateEndpointConnections { get; }
 132        /// <summary> Maintains information about the network routing choice opted by the user for data transfer. </summ
 0133        public RoutingPreference RoutingPreference { get; set; }
 134        /// <summary> Blob restore status. </summary>
 0135        public BlobRestoreStatus BlobRestoreStatus { get; }
 136    }
 137}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccount.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;
 9using System.Collections.Generic;
 10using System.Text.Json;
 11using Azure.Core;
 12
 13namespace Azure.ResourceManager.Storage.Models
 14{
 15    public partial class StorageAccount : IUtf8JsonSerializable
 16    {
 17        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 18        {
 019            writer.WriteStartObject();
 020            if (Sku != null)
 21            {
 022                writer.WritePropertyName("sku");
 023                writer.WriteObjectValue(Sku);
 24            }
 025            if (Kind != null)
 26            {
 027                writer.WritePropertyName("kind");
 028                writer.WriteStringValue(Kind.Value.ToString());
 29            }
 030            if (Identity != null)
 31            {
 032                writer.WritePropertyName("identity");
 033                writer.WriteObjectValue(Identity);
 34            }
 035            if (Tags != null)
 36            {
 037                writer.WritePropertyName("tags");
 038                writer.WriteStartObject();
 039                foreach (var item in Tags)
 40                {
 041                    writer.WritePropertyName(item.Key);
 042                    writer.WriteStringValue(item.Value);
 43                }
 044                writer.WriteEndObject();
 45            }
 046            writer.WritePropertyName("location");
 047            writer.WriteStringValue(Location);
 048            if (Id != null)
 49            {
 050                writer.WritePropertyName("id");
 051                writer.WriteStringValue(Id);
 52            }
 053            if (Name != null)
 54            {
 055                writer.WritePropertyName("name");
 056                writer.WriteStringValue(Name);
 57            }
 058            if (Type != null)
 59            {
 060                writer.WritePropertyName("type");
 061                writer.WriteStringValue(Type);
 62            }
 063            writer.WritePropertyName("properties");
 064            writer.WriteStartObject();
 065            if (ProvisioningState != null)
 66            {
 067                writer.WritePropertyName("provisioningState");
 068                writer.WriteStringValue(ProvisioningState.Value.ToSerialString());
 69            }
 070            if (PrimaryEndpoints != null)
 71            {
 072                writer.WritePropertyName("primaryEndpoints");
 073                writer.WriteObjectValue(PrimaryEndpoints);
 74            }
 075            if (PrimaryLocation != null)
 76            {
 077                writer.WritePropertyName("primaryLocation");
 078                writer.WriteStringValue(PrimaryLocation);
 79            }
 080            if (StatusOfPrimary != null)
 81            {
 082                writer.WritePropertyName("statusOfPrimary");
 083                writer.WriteStringValue(StatusOfPrimary.Value.ToSerialString());
 84            }
 085            if (LastGeoFailoverTime != null)
 86            {
 087                writer.WritePropertyName("lastGeoFailoverTime");
 088                writer.WriteStringValue(LastGeoFailoverTime.Value, "O");
 89            }
 090            if (SecondaryLocation != null)
 91            {
 092                writer.WritePropertyName("secondaryLocation");
 093                writer.WriteStringValue(SecondaryLocation);
 94            }
 095            if (StatusOfSecondary != null)
 96            {
 097                writer.WritePropertyName("statusOfSecondary");
 098                writer.WriteStringValue(StatusOfSecondary.Value.ToSerialString());
 99            }
 0100            if (CreationTime != null)
 101            {
 0102                writer.WritePropertyName("creationTime");
 0103                writer.WriteStringValue(CreationTime.Value, "O");
 104            }
 0105            if (CustomDomain != null)
 106            {
 0107                writer.WritePropertyName("customDomain");
 0108                writer.WriteObjectValue(CustomDomain);
 109            }
 0110            if (SecondaryEndpoints != null)
 111            {
 0112                writer.WritePropertyName("secondaryEndpoints");
 0113                writer.WriteObjectValue(SecondaryEndpoints);
 114            }
 0115            if (Encryption != null)
 116            {
 0117                writer.WritePropertyName("encryption");
 0118                writer.WriteObjectValue(Encryption);
 119            }
 0120            if (AccessTier != null)
 121            {
 0122                writer.WritePropertyName("accessTier");
 0123                writer.WriteStringValue(AccessTier.Value.ToSerialString());
 124            }
 0125            if (AzureFilesIdentityBasedAuthentication != null)
 126            {
 0127                writer.WritePropertyName("azureFilesIdentityBasedAuthentication");
 0128                writer.WriteObjectValue(AzureFilesIdentityBasedAuthentication);
 129            }
 0130            if (EnableHttpsTrafficOnly != null)
 131            {
 0132                writer.WritePropertyName("supportsHttpsTrafficOnly");
 0133                writer.WriteBooleanValue(EnableHttpsTrafficOnly.Value);
 134            }
 0135            if (NetworkRuleSet != null)
 136            {
 0137                writer.WritePropertyName("networkAcls");
 0138                writer.WriteObjectValue(NetworkRuleSet);
 139            }
 0140            if (IsHnsEnabled != null)
 141            {
 0142                writer.WritePropertyName("isHnsEnabled");
 0143                writer.WriteBooleanValue(IsHnsEnabled.Value);
 144            }
 0145            if (GeoReplicationStats != null)
 146            {
 0147                writer.WritePropertyName("geoReplicationStats");
 0148                writer.WriteObjectValue(GeoReplicationStats);
 149            }
 0150            if (FailoverInProgress != null)
 151            {
 0152                writer.WritePropertyName("failoverInProgress");
 0153                writer.WriteBooleanValue(FailoverInProgress.Value);
 154            }
 0155            if (LargeFileSharesState != null)
 156            {
 0157                writer.WritePropertyName("largeFileSharesState");
 0158                writer.WriteStringValue(LargeFileSharesState.Value.ToString());
 159            }
 0160            if (PrivateEndpointConnections != null)
 161            {
 0162                writer.WritePropertyName("privateEndpointConnections");
 0163                writer.WriteStartArray();
 0164                foreach (var item in PrivateEndpointConnections)
 165                {
 0166                    writer.WriteObjectValue(item);
 167                }
 0168                writer.WriteEndArray();
 169            }
 0170            if (RoutingPreference != null)
 171            {
 0172                writer.WritePropertyName("routingPreference");
 0173                writer.WriteObjectValue(RoutingPreference);
 174            }
 0175            if (BlobRestoreStatus != null)
 176            {
 0177                writer.WritePropertyName("blobRestoreStatus");
 0178                writer.WriteObjectValue(BlobRestoreStatus);
 179            }
 0180            writer.WriteEndObject();
 0181            writer.WriteEndObject();
 0182        }
 183
 184        internal static StorageAccount DeserializeStorageAccount(JsonElement element)
 185        {
 836186            Sku sku = default;
 836187            Kind? kind = default;
 836188            Identity identity = default;
 836189            IDictionary<string, string> tags = default;
 836190            string location = default;
 836191            string id = default;
 836192            string name = default;
 836193            string type = default;
 836194            ProvisioningState? provisioningState = default;
 836195            Endpoints primaryEndpoints = default;
 836196            string primaryLocation = default;
 836197            AccountStatus? statusOfPrimary = default;
 836198            DateTimeOffset? lastGeoFailoverTime = default;
 836199            string secondaryLocation = default;
 836200            AccountStatus? statusOfSecondary = default;
 836201            DateTimeOffset? creationTime = default;
 836202            CustomDomain customDomain = default;
 836203            Endpoints secondaryEndpoints = default;
 836204            Encryption encryption = default;
 836205            AccessTier? accessTier = default;
 836206            AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default;
 836207            bool? supportsHttpsTrafficOnly = default;
 836208            NetworkRuleSet networkAcls = default;
 836209            bool? isHnsEnabled = default;
 836210            GeoReplicationStats geoReplicationStats = default;
 836211            bool? failoverInProgress = default;
 836212            LargeFileSharesState? largeFileSharesState = default;
 836213            IList<PrivateEndpointConnection> privateEndpointConnections = default;
 836214            RoutingPreference routingPreference = default;
 836215            BlobRestoreStatus blobRestoreStatus = default;
 15096216            foreach (var property in element.EnumerateObject())
 217            {
 6712218                if (property.NameEquals("sku"))
 219                {
 836220                    if (property.Value.ValueKind == JsonValueKind.Null)
 221                    {
 222                        continue;
 223                    }
 836224                    sku = Sku.DeserializeSku(property.Value);
 836225                    continue;
 226                }
 5876227                if (property.NameEquals("kind"))
 228                {
 836229                    if (property.Value.ValueKind == JsonValueKind.Null)
 230                    {
 231                        continue;
 232                    }
 836233                    kind = new Kind(property.Value.GetString());
 836234                    continue;
 235                }
 5040236                if (property.NameEquals("identity"))
 237                {
 24238                    if (property.Value.ValueKind == JsonValueKind.Null)
 239                    {
 240                        continue;
 241                    }
 24242                    identity = Identity.DeserializeIdentity(property.Value);
 24243                    continue;
 244                }
 5016245                if (property.NameEquals("tags"))
 246                {
 836247                    if (property.Value.ValueKind == JsonValueKind.Null)
 248                    {
 249                        continue;
 250                    }
 836251                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 3520252                    foreach (var property0 in property.Value.EnumerateObject())
 253                    {
 924254                        if (property0.Value.ValueKind == JsonValueKind.Null)
 255                        {
 0256                            dictionary.Add(property0.Name, null);
 257                        }
 258                        else
 259                        {
 924260                            dictionary.Add(property0.Name, property0.Value.GetString());
 261                        }
 262                    }
 836263                    tags = dictionary;
 836264                    continue;
 265                }
 4180266                if (property.NameEquals("location"))
 267                {
 836268                    location = property.Value.GetString();
 836269                    continue;
 270                }
 3344271                if (property.NameEquals("id"))
 272                {
 836273                    if (property.Value.ValueKind == JsonValueKind.Null)
 274                    {
 275                        continue;
 276                    }
 836277                    id = property.Value.GetString();
 836278                    continue;
 279                }
 2508280                if (property.NameEquals("name"))
 281                {
 836282                    if (property.Value.ValueKind == JsonValueKind.Null)
 283                    {
 284                        continue;
 285                    }
 836286                    name = property.Value.GetString();
 836287                    continue;
 288                }
 1672289                if (property.NameEquals("type"))
 290                {
 836291                    if (property.Value.ValueKind == JsonValueKind.Null)
 292                    {
 293                        continue;
 294                    }
 836295                    type = property.Value.GetString();
 836296                    continue;
 297                }
 836298                if (property.NameEquals("properties"))
 299                {
 19816300                    foreach (var property0 in property.Value.EnumerateObject())
 301                    {
 9072302                        if (property0.NameEquals("provisioningState"))
 303                        {
 836304                            if (property0.Value.ValueKind == JsonValueKind.Null)
 305                            {
 306                                continue;
 307                            }
 836308                            provisioningState = property0.Value.GetString().ToProvisioningState();
 836309                            continue;
 310                        }
 8236311                        if (property0.NameEquals("primaryEndpoints"))
 312                        {
 836313                            if (property0.Value.ValueKind == JsonValueKind.Null)
 314                            {
 315                                continue;
 316                            }
 836317                            primaryEndpoints = Endpoints.DeserializeEndpoints(property0.Value);
 836318                            continue;
 319                        }
 7400320                        if (property0.NameEquals("primaryLocation"))
 321                        {
 836322                            if (property0.Value.ValueKind == JsonValueKind.Null)
 323                            {
 324                                continue;
 325                            }
 836326                            primaryLocation = property0.Value.GetString();
 836327                            continue;
 328                        }
 6564329                        if (property0.NameEquals("statusOfPrimary"))
 330                        {
 836331                            if (property0.Value.ValueKind == JsonValueKind.Null)
 332                            {
 333                                continue;
 334                            }
 836335                            statusOfPrimary = property0.Value.GetString().ToAccountStatus();
 836336                            continue;
 337                        }
 5728338                        if (property0.NameEquals("lastGeoFailoverTime"))
 339                        {
 12340                            if (property0.Value.ValueKind == JsonValueKind.Null)
 341                            {
 342                                continue;
 343                            }
 12344                            lastGeoFailoverTime = property0.Value.GetDateTimeOffset("O");
 12345                            continue;
 346                        }
 5716347                        if (property0.NameEquals("secondaryLocation"))
 348                        {
 472349                            if (property0.Value.ValueKind == JsonValueKind.Null)
 350                            {
 351                                continue;
 352                            }
 472353                            secondaryLocation = property0.Value.GetString();
 472354                            continue;
 355                        }
 5244356                        if (property0.NameEquals("statusOfSecondary"))
 357                        {
 472358                            if (property0.Value.ValueKind == JsonValueKind.Null)
 359                            {
 360                                continue;
 361                            }
 472362                            statusOfSecondary = property0.Value.GetString().ToAccountStatus();
 472363                            continue;
 364                        }
 4772365                        if (property0.NameEquals("creationTime"))
 366                        {
 836367                            if (property0.Value.ValueKind == JsonValueKind.Null)
 368                            {
 369                                continue;
 370                            }
 836371                            creationTime = property0.Value.GetDateTimeOffset("O");
 836372                            continue;
 373                        }
 3936374                        if (property0.NameEquals("customDomain"))
 375                        {
 0376                            if (property0.Value.ValueKind == JsonValueKind.Null)
 377                            {
 378                                continue;
 379                            }
 0380                            customDomain = CustomDomain.DeserializeCustomDomain(property0.Value);
 0381                            continue;
 382                        }
 3936383                        if (property0.NameEquals("secondaryEndpoints"))
 384                        {
 160385                            if (property0.Value.ValueKind == JsonValueKind.Null)
 386                            {
 387                                continue;
 388                            }
 160389                            secondaryEndpoints = Endpoints.DeserializeEndpoints(property0.Value);
 160390                            continue;
 391                        }
 3776392                        if (property0.NameEquals("encryption"))
 393                        {
 836394                            if (property0.Value.ValueKind == JsonValueKind.Null)
 395                            {
 396                                continue;
 397                            }
 836398                            encryption = Encryption.DeserializeEncryption(property0.Value);
 836399                            continue;
 400                        }
 2940401                        if (property0.NameEquals("accessTier"))
 402                        {
 348403                            if (property0.Value.ValueKind == JsonValueKind.Null)
 404                            {
 405                                continue;
 406                            }
 348407                            accessTier = property0.Value.GetString().ToAccessTier();
 348408                            continue;
 409                        }
 2592410                        if (property0.NameEquals("azureFilesIdentityBasedAuthentication"))
 411                        {
 4412                            if (property0.Value.ValueKind == JsonValueKind.Null)
 413                            {
 414                                continue;
 415                            }
 4416                            azureFilesIdentityBasedAuthentication = AzureFilesIdentityBasedAuthentication.DeserializeAzu
 4417                            continue;
 418                        }
 2588419                        if (property0.NameEquals("supportsHttpsTrafficOnly"))
 420                        {
 836421                            if (property0.Value.ValueKind == JsonValueKind.Null)
 422                            {
 423                                continue;
 424                            }
 836425                            supportsHttpsTrafficOnly = property0.Value.GetBoolean();
 836426                            continue;
 427                        }
 1752428                        if (property0.NameEquals("networkAcls"))
 429                        {
 836430                            if (property0.Value.ValueKind == JsonValueKind.Null)
 431                            {
 432                                continue;
 433                            }
 836434                            networkAcls = NetworkRuleSet.DeserializeNetworkRuleSet(property0.Value);
 836435                            continue;
 436                        }
 916437                        if (property0.NameEquals("isHnsEnabled"))
 438                        {
 36439                            if (property0.Value.ValueKind == JsonValueKind.Null)
 440                            {
 441                                continue;
 442                            }
 36443                            isHnsEnabled = property0.Value.GetBoolean();
 36444                            continue;
 445                        }
 880446                        if (property0.NameEquals("geoReplicationStats"))
 447                        {
 4448                            if (property0.Value.ValueKind == JsonValueKind.Null)
 449                            {
 450                                continue;
 451                            }
 4452                            geoReplicationStats = GeoReplicationStats.DeserializeGeoReplicationStats(property0.Value);
 4453                            continue;
 454                        }
 876455                        if (property0.NameEquals("failoverInProgress"))
 456                        {
 0457                            if (property0.Value.ValueKind == JsonValueKind.Null)
 458                            {
 459                                continue;
 460                            }
 0461                            failoverInProgress = property0.Value.GetBoolean();
 0462                            continue;
 463                        }
 876464                        if (property0.NameEquals("largeFileSharesState"))
 465                        {
 36466                            if (property0.Value.ValueKind == JsonValueKind.Null)
 467                            {
 468                                continue;
 469                            }
 36470                            largeFileSharesState = new LargeFileSharesState(property0.Value.GetString());
 36471                            continue;
 472                        }
 840473                        if (property0.NameEquals("privateEndpointConnections"))
 474                        {
 836475                            if (property0.Value.ValueKind == JsonValueKind.Null)
 476                            {
 477                                continue;
 478                            }
 836479                            List<PrivateEndpointConnection> array = new List<PrivateEndpointConnection>();
 0480                            foreach (var item in property0.Value.EnumerateArray())
 481                            {
 0482                                if (item.ValueKind == JsonValueKind.Null)
 483                                {
 0484                                    array.Add(null);
 485                                }
 486                                else
 487                                {
 0488                                    array.Add(PrivateEndpointConnection.DeserializePrivateEndpointConnection(item));
 489                                }
 490                            }
 836491                            privateEndpointConnections = array;
 836492                            continue;
 493                        }
 4494                        if (property0.NameEquals("routingPreference"))
 495                        {
 4496                            if (property0.Value.ValueKind == JsonValueKind.Null)
 497                            {
 498                                continue;
 499                            }
 4500                            routingPreference = RoutingPreference.DeserializeRoutingPreference(property0.Value);
 4501                            continue;
 502                        }
 0503                        if (property0.NameEquals("blobRestoreStatus"))
 504                        {
 0505                            if (property0.Value.ValueKind == JsonValueKind.Null)
 506                            {
 507                                continue;
 508                            }
 0509                            blobRestoreStatus = BlobRestoreStatus.DeserializeBlobRestoreStatus(property0.Value);
 510                            continue;
 511                        }
 512                    }
 513                    continue;
 514                }
 515            }
 836516            return new StorageAccount(id, name, type, tags, location, sku, kind, identity, provisioningState, primaryEnd
 517        }
 518    }
 519}