< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\SecretAttributes.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 Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The secret management attributes.
 18    /// </summary>
 19    public partial class SecretAttributes : Attributes
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the SecretAttributes class.
 23        /// </summary>
 15824        public SecretAttributes()
 25        {
 26            CustomInit();
 15827        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the SecretAttributes class.
 31        /// </summary>
 32        /// <param name="enabled">Determines whether the object is
 33        /// enabled.</param>
 34        /// <param name="notBefore">Not before date in UTC.</param>
 35        /// <param name="expires">Expiry date in UTC.</param>
 36        /// <param name="created">Creation time in UTC.</param>
 37        /// <param name="updated">Last updated time in UTC.</param>
 38        /// <param name="recoveryLevel">Reflects the deletion recovery level
 39        /// currently in effect for secrets in the current vault. If it
 40        /// contains 'Purgeable', the secret can be permanently deleted by a
 41        /// privileged user; otherwise, only the system can purge the secret,
 42        /// at the end of the retention interval. Possible values include:
 43        /// 'Purgeable', 'Recoverable+Purgeable', 'Recoverable',
 44        /// 'Recoverable+ProtectedSubscription'</param>
 45        public SecretAttributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), 
 046            : base(enabled, notBefore, expires, created, updated)
 47        {
 048            RecoveryLevel = recoveryLevel;
 49            CustomInit();
 050        }
 51
 52        /// <summary>
 53        /// An initialization method that performs custom operations like setting defaults
 54        /// </summary>
 55        partial void CustomInit();
 56
 57        /// <summary>
 58        /// Gets reflects the deletion recovery level currently in effect for
 59        /// secrets in the current vault. If it contains 'Purgeable', the
 60        /// secret can be permanently deleted by a privileged user; otherwise,
 61        /// only the system can purge the secret, at the end of the retention
 62        /// interval. Possible values include: 'Purgeable',
 63        /// 'Recoverable+Purgeable', 'Recoverable',
 64        /// 'Recoverable+ProtectedSubscription'
 65        /// </summary>
 66        [JsonProperty(PropertyName = "recoveryLevel")]
 15867        public string RecoveryLevel { get; private set; }
 68
 69    }
 70}