< Summary

Class:Microsoft.Azure.KeyVault.Models.DeletedSecretItem
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\DeletedSecretItem.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedSecretItem.cs
Covered lines:7
Uncovered lines:6
Coverable lines:13
Total lines:111
Line coverage:53.8% (7 of 13)
Covered branches:1
Total branches:2
Branch coverage:50% (1 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()-66.67%50%
.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\DeletedSecretItem.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 DeletedSecretItem
 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            {
 617                if (!string.IsNullOrWhiteSpace(RecoveryId))
 618                    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\DeletedSecretItem.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    /// The deleted secret item containing metadata about the deleted secret.
 22    /// </summary>
 23    public partial class DeletedSecretItem : SecretItem
 24    {
 25        /// <summary>
 26        /// Initializes a new instance of the DeletedSecretItem class.
 27        /// </summary>
 328        public DeletedSecretItem()
 29        {
 30            CustomInit();
 331        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the DeletedSecretItem class.
 35        /// </summary>
 36        /// <param name="id">Secret identifier.</param>
 37        /// <param name="attributes">The secret management attributes.</param>
 38        /// <param name="tags">Application specific metadata in the form of
 39        /// key-value pairs.</param>
 40        /// <param name="contentType">Type of the secret value such as a
 41        /// password.</param>
 42        /// <param name="managed">True if the secret's lifetime is managed by
 43        /// key vault. If this is a key backing a certificate, then managed
 44        /// will be true.</param>
 45        /// <param name="recoveryId">The url of the recovery object, used to
 46        /// identify and recover the deleted secret.</param>
 47        /// <param name="scheduledPurgeDate">The time when the secret is
 48        /// scheduled to be purged, in UTC</param>
 49        /// <param name="deletedDate">The time when the secret was deleted, in
 50        /// UTC</param>
 51        public DeletedSecretItem(string id = default(string), SecretAttributes attributes = default(SecretAttributes), I
 052            : base(id, attributes, tags, contentType, managed)
 53        {
 054            RecoveryId = recoveryId;
 055            ScheduledPurgeDate = scheduledPurgeDate;
 056            DeletedDate = deletedDate;
 57            CustomInit();
 058        }
 59
 60        /// <summary>
 61        /// An initialization method that performs custom operations like setting defaults
 62        /// </summary>
 63        partial void CustomInit();
 64
 65        /// <summary>
 66        /// Gets or sets the url of the recovery object, used to identify and
 67        /// recover the deleted secret.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "recoveryId")]
 1570        public string RecoveryId { get; set; }
 71
 72        /// <summary>
 73        /// Gets the time when the secret is scheduled to be purged, in UTC
 74        /// </summary>
 75        [JsonConverter(typeof(UnixTimeJsonConverter))]
 76        [JsonProperty(PropertyName = "scheduledPurgeDate")]
 977        public System.DateTime? ScheduledPurgeDate { get; private set; }
 78
 79        /// <summary>
 80        /// Gets the time when the secret was deleted, in UTC
 81        /// </summary>
 82        [JsonConverter(typeof(UnixTimeJsonConverter))]
 83        [JsonProperty(PropertyName = "deletedDate")]
 984        public System.DateTime? DeletedDate { get; private set; }
 85
 86    }
 87}