< Summary

Class:Azure.ResourceManager.Storage.Models.StorageAccountUpdateParameters
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountUpdateParameters.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountUpdateParameters.Serialization.cs
Covered lines:45
Uncovered lines:29
Coverable lines:74
Total lines:164
Line coverage:60.8% (45 of 74)
Covered branches:21
Total branches:26
Branch coverage:80.7% (21 of 26)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Sku()-100%100%
get_Tags()-100%100%
get_Identity()-0%100%
get_Kind()-100%100%
get_CustomDomain()-100%100%
get_Encryption()-100%100%
get_AccessTier()-0%100%
get_AzureFilesIdentityBasedAuthentication()-0%100%
get_EnableHttpsTrafficOnly()-100%100%
get_NetworkRuleSet()-100%100%
get_LargeFileSharesState()-0%100%
get_RoutingPreference()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-78.26%80.77%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountUpdateParameters.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Storage.Models
 11{
 12    /// <summary> The parameters that can be provided when updating the storage account properties. </summary>
 13    public partial class StorageAccountUpdateParameters
 14    {
 15        /// <summary> Initializes a new instance of StorageAccountUpdateParameters. </summary>
 5216        public StorageAccountUpdateParameters()
 17        {
 5218        }
 19
 20        /// <summary> Initializes a new instance of StorageAccountUpdateParameters. </summary>
 21        /// <param name="sku"> Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Prem
 22        /// <param name="tags"> Gets or sets a list of key value pairs that describe the resource. These tags can be use
 23        /// <param name="identity"> The identity of the resource. </param>
 24        /// <param name="kind"> Optional. Indicates the type of storage account. Currently only StorageV2 value supporte
 25        /// <param name="customDomain"> Custom domain assigned to the storage account by the user. Name is the CNAME sou
 26        /// <param name="encryption"> Provides the encryption settings on the account. The default setting is unencrypte
 27        /// <param name="accessTier"> Required for storage accounts where kind = BlobStorage. The access tier used for b
 28        /// <param name="azureFilesIdentityBasedAuthentication"> Provides the identity based authentication settings for
 29        /// <param name="enableHttpsTrafficOnly"> Allows https traffic only to storage service if sets to true. </param>
 30        /// <param name="networkRuleSet"> Network rule set. </param>
 31        /// <param name="largeFileSharesState"> Allow large file shares if sets to Enabled. It cannot be disabled once i
 32        /// <param name="routingPreference"> Maintains information about the network routing choice opted by the user fo
 033        internal StorageAccountUpdateParameters(Sku sku, IDictionary<string, string> tags, Identity identity, Kind? kind
 34        {
 035            Sku = sku;
 036            Tags = tags;
 037            Identity = identity;
 038            Kind = kind;
 039            CustomDomain = customDomain;
 040            Encryption = encryption;
 041            AccessTier = accessTier;
 042            AzureFilesIdentityBasedAuthentication = azureFilesIdentityBasedAuthentication;
 043            EnableHttpsTrafficOnly = enableHttpsTrafficOnly;
 044            NetworkRuleSet = networkRuleSet;
 045            LargeFileSharesState = largeFileSharesState;
 046            RoutingPreference = routingPreference;
 047        }
 48
 49        /// <summary> Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS o
 9250        public Sku Sku { get; set; }
 51        /// <summary> Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewi
 11252        public IDictionary<string, string> Tags { get; set; }
 53        /// <summary> The identity of the resource. </summary>
 054        public Identity Identity { get; set; }
 55        /// <summary> Optional. Indicates the type of storage account. Currently only StorageV2 value supported by serve
 6856        public Kind? Kind { get; set; }
 57        /// <summary> Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one cust
 6858        public CustomDomain CustomDomain { get; set; }
 59        /// <summary> Provides the encryption settings on the account. The default setting is unencrypted. </summary>
 9260        public Encryption Encryption { get; set; }
 61        /// <summary> Required for storage accounts where kind = BlobStorage. The access tier used for billing. </summar
 062        public AccessTier? AccessTier { get; set; }
 63        /// <summary> Provides the identity based authentication settings for Azure Files. </summary>
 064        public AzureFilesIdentityBasedAuthentication AzureFilesIdentityBasedAuthentication { get; set; }
 65        /// <summary> Allows https traffic only to storage service if sets to true. </summary>
 8466        public bool? EnableHttpsTrafficOnly { get; set; }
 67        /// <summary> Network rule set. </summary>
 7668        public NetworkRuleSet NetworkRuleSet { get; set; }
 69        /// <summary> Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. </summary>
 070        public LargeFileSharesState? LargeFileSharesState { get; set; }
 71        /// <summary> Maintains information about the network routing choice opted by the user for data transfer. </summ
 072        public RoutingPreference RoutingPreference { get; set; }
 73    }
 74}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountUpdateParameters.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Storage.Models
 12{
 13    public partial class StorageAccountUpdateParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 6017            writer.WriteStartObject();
 6018            if (Sku != null)
 19            {
 2020                writer.WritePropertyName("sku");
 2021                writer.WriteObjectValue(Sku);
 22            }
 6023            if (Tags != null)
 24            {
 1625                writer.WritePropertyName("tags");
 1626                writer.WriteStartObject();
 12827                foreach (var item in Tags)
 28                {
 4829                    writer.WritePropertyName(item.Key);
 4830                    writer.WriteStringValue(item.Value);
 31                }
 1632                writer.WriteEndObject();
 33            }
 6034            if (Identity != null)
 35            {
 036                writer.WritePropertyName("identity");
 037                writer.WriteObjectValue(Identity);
 38            }
 6039            if (Kind != null)
 40            {
 441                writer.WritePropertyName("kind");
 442                writer.WriteStringValue(Kind.Value.ToString());
 43            }
 6044            writer.WritePropertyName("properties");
 6045            writer.WriteStartObject();
 6046            if (CustomDomain != null)
 47            {
 448                writer.WritePropertyName("customDomain");
 449                writer.WriteObjectValue(CustomDomain);
 50            }
 6051            if (Encryption != null)
 52            {
 1653                writer.WritePropertyName("encryption");
 1654                writer.WriteObjectValue(Encryption);
 55            }
 6056            if (AccessTier != null)
 57            {
 058                writer.WritePropertyName("accessTier");
 059                writer.WriteStringValue(AccessTier.Value.ToSerialString());
 60            }
 6061            if (AzureFilesIdentityBasedAuthentication != null)
 62            {
 063                writer.WritePropertyName("azureFilesIdentityBasedAuthentication");
 064                writer.WriteObjectValue(AzureFilesIdentityBasedAuthentication);
 65            }
 6066            if (EnableHttpsTrafficOnly != null)
 67            {
 1268                writer.WritePropertyName("supportsHttpsTrafficOnly");
 1269                writer.WriteBooleanValue(EnableHttpsTrafficOnly.Value);
 70            }
 6071            if (NetworkRuleSet != null)
 72            {
 873                writer.WritePropertyName("networkAcls");
 874                writer.WriteObjectValue(NetworkRuleSet);
 75            }
 6076            if (LargeFileSharesState != null)
 77            {
 078                writer.WritePropertyName("largeFileSharesState");
 079                writer.WriteStringValue(LargeFileSharesState.Value.ToString());
 80            }
 6081            if (RoutingPreference != null)
 82            {
 083                writer.WritePropertyName("routingPreference");
 084                writer.WriteObjectValue(RoutingPreference);
 85            }
 6086            writer.WriteEndObject();
 6087            writer.WriteEndObject();
 6088        }
 89    }
 90}