< Summary

Class:Microsoft.Azure.KeyVault.Models.DeletedCertificateBundle
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\DeletedCertificateBundle.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedCertificateBundle.cs
Covered lines:5
Uncovered lines:10
Coverable lines:15
Total lines:120
Line coverage:33.3% (5 of 15)
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%
Validate()-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%
Validate()-0%100%

File(s)

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

#LineLine coverage
 1
 2namespace Microsoft.Azure.KeyVault.Models
 3{
 4    public partial class DeletedCertificateBundle
 5    {
 6        /// <summary>
 7        /// The identifier of the deleted certificate object. This is used to recover the certificate.
 8        /// </summary>
 9        public DeletedCertificateIdentifier RecoveryIdentifier
 10        {
 11            get
 12            {
 013                if ( !string.IsNullOrWhiteSpace( RecoveryId ) )
 014                    return new DeletedCertificateIdentifier( RecoveryId );
 15                else
 016                    return null;
 17            }
 18        }
 19    }
 20}

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\DeletedCertificateBundle.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 Certificate 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 DeletedCertificateBundle : CertificateBundle
 25    {
 26        /// <summary>
 27        /// Initializes a new instance of the DeletedCertificateBundle class.
 28        /// </summary>
 2329        public DeletedCertificateBundle()
 30        {
 31            CustomInit();
 2332        }
 33
 34        /// <summary>
 35        /// Initializes a new instance of the DeletedCertificateBundle class.
 36        /// </summary>
 37        /// <param name="id">The certificate id.</param>
 38        /// <param name="kid">The key id.</param>
 39        /// <param name="sid">The secret id.</param>
 40        /// <param name="x509Thumbprint">Thumbprint of the certificate.</param>
 41        /// <param name="policy">The management policy.</param>
 42        /// <param name="cer">CER contents of x509 certificate.</param>
 43        /// <param name="contentType">The content type of the secret.</param>
 44        /// <param name="attributes">The certificate attributes.</param>
 45        /// <param name="tags">Application specific metadata in the form of
 46        /// key-value pairs</param>
 47        /// <param name="recoveryId">The url of the recovery object, used to
 48        /// identify and recover the deleted certificate.</param>
 49        /// <param name="scheduledPurgeDate">The time when the certificate is
 50        /// scheduled to be purged, in UTC</param>
 51        /// <param name="deletedDate">The time when the certificate was
 52        /// deleted, in UTC</param>
 53        public DeletedCertificateBundle(string id = default(string), string kid = default(string), string sid = default(
 054            : base(id, kid, sid, x509Thumbprint, policy, cer, contentType, attributes, tags)
 55        {
 056            RecoveryId = recoveryId;
 057            ScheduledPurgeDate = scheduledPurgeDate;
 058            DeletedDate = deletedDate;
 59            CustomInit();
 060        }
 61
 62        /// <summary>
 63        /// An initialization method that performs custom operations like setting defaults
 64        /// </summary>
 65        partial void CustomInit();
 66
 67        /// <summary>
 68        /// Gets or sets the url of the recovery object, used to identify and
 69        /// recover the deleted certificate.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "recoveryId")]
 1472        public string RecoveryId { get; set; }
 73
 74        /// <summary>
 75        /// Gets the time when the certificate is scheduled to be purged, in
 76        /// UTC
 77        /// </summary>
 78        [JsonConverter(typeof(UnixTimeJsonConverter))]
 79        [JsonProperty(PropertyName = "scheduledPurgeDate")]
 2480        public System.DateTime? ScheduledPurgeDate { get; private set; }
 81
 82        /// <summary>
 83        /// Gets the time when the certificate was deleted, in UTC
 84        /// </summary>
 85        [JsonConverter(typeof(UnixTimeJsonConverter))]
 86        [JsonProperty(PropertyName = "deletedDate")]
 2487        public System.DateTime? DeletedDate { get; private set; }
 88
 89        /// <summary>
 90        /// Validate the object.
 91        /// </summary>
 92        /// <exception cref="ValidationException">
 93        /// Thrown if validation fails
 94        /// </exception>
 95        public override void Validate()
 96        {
 097            base.Validate();
 098        }
 99    }
 100}