< Summary

Class:Microsoft.Azure.KeyVault.Models.StorageAccountRegenerteKeyParameters
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\StorageAccountRegenerteKeyParameters.cs
Covered lines:3
Uncovered lines:6
Coverable lines:9
Total lines:67
Line coverage:33.3% (3 of 9)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_KeyName()-100%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\StorageAccountRegenerteKeyParameters.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.KeyVault.Models
 12{
 13    using Microsoft.Rest;
 14    using Newtonsoft.Json;
 15    using System.Linq;
 16
 17    /// <summary>
 18    /// The storage account key regenerate parameters.
 19    /// </summary>
 20    public partial class StorageAccountRegenerteKeyParameters
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the
 24        /// StorageAccountRegenerteKeyParameters class.
 25        /// </summary>
 226        public StorageAccountRegenerteKeyParameters()
 27        {
 28            CustomInit();
 229        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the
 33        /// StorageAccountRegenerteKeyParameters class.
 34        /// </summary>
 35        /// <param name="keyName">The storage account key name.</param>
 036        public StorageAccountRegenerteKeyParameters(string keyName)
 37        {
 038            KeyName = keyName;
 39            CustomInit();
 040        }
 41
 42        /// <summary>
 43        /// An initialization method that performs custom operations like setting defaults
 44        /// </summary>
 45        partial void CustomInit();
 46
 47        /// <summary>
 48        /// Gets or sets the storage account key name.
 49        /// </summary>
 50        [JsonProperty(PropertyName = "keyName")]
 451        public string KeyName { get; set; }
 52
 53        /// <summary>
 54        /// Validate the object.
 55        /// </summary>
 56        /// <exception cref="ValidationException">
 57        /// Thrown if validation fails
 58        /// </exception>
 59        public virtual void Validate()
 60        {
 061            if (KeyName == null)
 62            {
 063                throw new ValidationException(ValidationRules.CannotBeNull, "KeyName");
 64            }
 065        }
 66    }
 67}