< Summary

Class:Microsoft.Azure.KeyVault.Models.DeletedSecretBundle
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\DeletedSecretBundle.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedSecretBundle.cs
Covered lines:5
Uncovered lines:8
Coverable lines:13
Total lines:115
Line coverage:38.4% (5 of 13)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_RecoveryId()-100%100%
get_ScheduledPurgeDate()-100%100%
get_DeletedDate()-100%100%
.ctor()-100%100%
.ctor(...)-100%100%
get_RecoveryIdentifier()-0%0%
.ctor()-100%100%
.ctor(...)-0%100%
get_RecoveryId()-100%100%
get_ScheduledPurgeDate()-100%100%
get_DeletedDate()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\DeletedSecretBundle.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Threading.Tasks;
 5
 6namespace Microsoft.Azure.KeyVault.Models
 7{
 8    public partial class DeletedSecretBundle
 9    {
 10        /// <summary>
 11        /// The identifier of the deleted secret object. This is used to recover the secret.
 12        /// </summary>
 13        public DeletedSecretIdentifier RecoveryIdentifier
 14        {
 15            get
 16            {
 017                if (!string.IsNullOrWhiteSpace(RecoveryId))
 018                    return new DeletedSecretIdentifier(RecoveryId);
 19                else
 020                    return null;
 21            }
 22        }
 23    }
 24}

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedSecretBundle.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 Microsoft.Rest.Serialization;
 15    using Newtonsoft.Json;
 16    using System.Collections;
 17    using System.Collections.Generic;
 18    using System.Linq;
 19
 20    /// <summary>
 21    /// A Deleted Secret consisting of its previous id, attributes and its
 22    /// tags, as well as information on when it will be purged.
 23    /// </summary>
 24    public partial class DeletedSecretBundle : SecretBundle
 25    {
 26        /// <summary>
 27        /// Initializes a new instance of the DeletedSecretBundle class.
 28        /// </summary>
 1829        public DeletedSecretBundle()
 30        {
 31            CustomInit();
 1832        }
 33
 34        /// <summary>
 35        /// Initializes a new instance of the DeletedSecretBundle class.
 36        /// </summary>
 37        /// <param name="value">The secret value.</param>
 38        /// <param name="id">The secret id.</param>
 39        /// <param name="contentType">The content type of the secret.</param>
 40        /// <param name="attributes">The secret management attributes.</param>
 41        /// <param name="tags">Application specific metadata in the form of
 42        /// key-value pairs.</param>
 43        /// <param name="kid">If this is a secret backing a KV certificate,
 44        /// then this field specifies the corresponding key backing the KV
 45        /// certificate.</param>
 46        /// <param name="managed">True if the secret's lifetime is managed by
 47        /// key vault. If this is a secret backing a certificate, then managed
 48        /// will be true.</param>
 49        /// <param name="recoveryId">The url of the recovery object, used to
 50        /// identify and recover the deleted secret.</param>
 51        /// <param name="scheduledPurgeDate">The time when the secret is
 52        /// scheduled to be purged, in UTC</param>
 53        /// <param name="deletedDate">The time when the secret was deleted, in
 54        /// UTC</param>
 55        public DeletedSecretBundle(string value = default(string), string id = default(string), string contentType = def
 056            : base(value, id, contentType, attributes, tags, kid, managed)
 57        {
 058            RecoveryId = recoveryId;
 059            ScheduledPurgeDate = scheduledPurgeDate;
 060            DeletedDate = deletedDate;
 61            CustomInit();
 062        }
 63
 64        /// <summary>
 65        /// An initialization method that performs custom operations like setting defaults
 66        /// </summary>
 67        partial void CustomInit();
 68
 69        /// <summary>
 70        /// Gets or sets the url of the recovery object, used to identify and
 71        /// recover the deleted secret.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "recoveryId")]
 2074        public string RecoveryId { get; set; }
 75
 76        /// <summary>
 77        /// Gets the time when the secret is scheduled to be purged, in UTC
 78        /// </summary>
 79        [JsonConverter(typeof(UnixTimeJsonConverter))]
 80        [JsonProperty(PropertyName = "scheduledPurgeDate")]
 3681        public System.DateTime? ScheduledPurgeDate { get; private set; }
 82
 83        /// <summary>
 84        /// Gets the time when the secret was deleted, in UTC
 85        /// </summary>
 86        [JsonConverter(typeof(UnixTimeJsonConverter))]
 87        [JsonProperty(PropertyName = "deletedDate")]
 3688        public System.DateTime? DeletedDate { get; private set; }
 89
 90    }
 91}