< Summary

Class:Azure.ResourceManager.Storage.Models.StorageAccountRegenerateKeyParameters
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountRegenerateKeyParameters.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountRegenerateKeyParameters.Serialization.cs
Covered lines:10
Uncovered lines:1
Coverable lines:11
Total lines:53
Line coverage:90.9% (10 of 11)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-80%50%
get_KeyName()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountRegenerateKeyParameters.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;
 9
 10namespace Azure.ResourceManager.Storage.Models
 11{
 12    /// <summary> The parameters used to regenerate the storage account key. </summary>
 13    public partial class StorageAccountRegenerateKeyParameters
 14    {
 15        /// <summary> Initializes a new instance of StorageAccountRegenerateKeyParameters. </summary>
 16        /// <param name="keyName"> The name of storage keys that want to be regenerated, possible values are key1, key2,
 417        public StorageAccountRegenerateKeyParameters(string keyName)
 18        {
 419            if (keyName == null)
 20            {
 021                throw new ArgumentNullException(nameof(keyName));
 22            }
 23
 424            KeyName = keyName;
 425        }
 26
 27        /// <summary> The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, kerb2
 428        public string KeyName { get; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountRegenerateKeyParameters.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 StorageAccountRegenerateKeyParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 417            writer.WriteStartObject();
 418            writer.WritePropertyName("keyName");
 419            writer.WriteStringValue(KeyName);
 420            writer.WriteEndObject();
 421        }
 22    }
 23}