< Summary

Class:Microsoft.Azure.KeyVault.Models.DeletedCertificateItem
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\DeletedCertificateItem.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedCertificateItem.cs
Covered lines:7
Uncovered lines:6
Coverable lines:13
Total lines:105
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\DeletedCertificateItem.cs

#LineLine coverage
 1namespace Microsoft.Azure.KeyVault.Models
 2{
 3    public partial class DeletedCertificateItem
 4    {
 5        /// <summary>
 6        /// The identifier of the deleted secret object. This is used to recover the secret.
 7        /// </summary>
 8        public DeletedCertificateIdentifier RecoveryIdentifier
 9        {
 10            get
 11            {
 612                if ( !string.IsNullOrWhiteSpace( RecoveryId ) )
 613                    return new DeletedCertificateIdentifier( RecoveryId );
 14                else
 015                    return null;
 16            }
 17        }
 18    }
 19}

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedCertificateItem.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 certificate item containing metadata about the deleted
 22    /// certificate.
 23    /// </summary>
 24    public partial class DeletedCertificateItem : CertificateItem
 25    {
 26        /// <summary>
 27        /// Initializes a new instance of the DeletedCertificateItem class.
 28        /// </summary>
 329        public DeletedCertificateItem()
 30        {
 31            CustomInit();
 332        }
 33
 34        /// <summary>
 35        /// Initializes a new instance of the DeletedCertificateItem class.
 36        /// </summary>
 37        /// <param name="id">Certificate identifier.</param>
 38        /// <param name="attributes">The certificate management
 39        /// attributes.</param>
 40        /// <param name="tags">Application specific metadata in the form of
 41        /// key-value pairs.</param>
 42        /// <param name="x509Thumbprint">Thumbprint of the certificate.</param>
 43        /// <param name="recoveryId">The url of the recovery object, used to
 44        /// identify and recover the deleted certificate.</param>
 45        /// <param name="scheduledPurgeDate">The time when the certificate is
 46        /// scheduled to be purged, in UTC</param>
 47        /// <param name="deletedDate">The time when the certificate was
 48        /// deleted, in UTC</param>
 49        public DeletedCertificateItem(string id = default(string), CertificateAttributes attributes = default(Certificat
 050            : base(id, attributes, tags, x509Thumbprint)
 51        {
 052            RecoveryId = recoveryId;
 053            ScheduledPurgeDate = scheduledPurgeDate;
 054            DeletedDate = deletedDate;
 55            CustomInit();
 056        }
 57
 58        /// <summary>
 59        /// An initialization method that performs custom operations like setting defaults
 60        /// </summary>
 61        partial void CustomInit();
 62
 63        /// <summary>
 64        /// Gets or sets the url of the recovery object, used to identify and
 65        /// recover the deleted certificate.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "recoveryId")]
 1568        public string RecoveryId { get; set; }
 69
 70        /// <summary>
 71        /// Gets the time when the certificate is scheduled to be purged, in
 72        /// UTC
 73        /// </summary>
 74        [JsonConverter(typeof(UnixTimeJsonConverter))]
 75        [JsonProperty(PropertyName = "scheduledPurgeDate")]
 976        public System.DateTime? ScheduledPurgeDate { get; private set; }
 77
 78        /// <summary>
 79        /// Gets the time when the certificate was deleted, in UTC
 80        /// </summary>
 81        [JsonConverter(typeof(UnixTimeJsonConverter))]
 82        [JsonProperty(PropertyName = "deletedDate")]
 983        public System.DateTime? DeletedDate { get; private set; }
 84
 85    }
 86}