< Summary

Class:Microsoft.Azure.KeyVault.Models.CertificateOperation
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\CertificateOperation.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\CertificateOperation.cs
Covered lines:9
Uncovered lines:16
Coverable lines:25
Total lines:150
Line coverage:36% (9 of 25)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Id()-100%100%
get_IssuerParameters()-100%100%
get_Csr()-100%100%
get_CancellationRequested()-100%100%
get_Status()-100%100%
get_StatusDetails()-100%100%
get_Error()-100%100%
get_Target()-100%100%
get_RequestId()-100%100%
.ctor()-100%100%
.ctor(...)-100%100%
get_CertificateOperationIdentifier()-66.67%50%
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-100%100%
get_IssuerParameters()-100%100%
get_Csr()-0%100%
get_CancellationRequested()-100%100%
get_Status()-100%100%
get_StatusDetails()-0%100%
get_Error()-0%100%
get_Target()-100%100%
get_RequestId()-0%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5namespace Microsoft.Azure.KeyVault.Models
 6{
 7    public partial class CertificateOperation
 8    {
 9        /// <summary>
 10        /// The certificate operation identifier
 11        /// </summary>
 12        public CertificateOperationIdentifier CertificateOperationIdentifier
 13        {
 14            get
 15            {
 1216                if (!string.IsNullOrWhiteSpace(Id))
 1217                    return new CertificateOperationIdentifier(Id);
 18                else
 019                    return null;
 20            }
 21        }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\CertificateOperation.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    /// A certificate operation is returned in case of asynchronous requests.
 18    /// </summary>
 19    public partial class CertificateOperation
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the CertificateOperation class.
 23        /// </summary>
 1224        public CertificateOperation()
 25        {
 26            CustomInit();
 1227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the CertificateOperation class.
 31        /// </summary>
 32        /// <param name="id">The certificate id.</param>
 33        /// <param name="issuerParameters">Parameters for the issuer of the
 34        /// X509 component of a certificate.</param>
 35        /// <param name="csr">The certificate signing request (CSR) that is
 36        /// being used in the certificate operation.</param>
 37        /// <param name="cancellationRequested">Indicates if cancellation was
 38        /// requested on the certificate operation.</param>
 39        /// <param name="status">Status of the certificate operation.</param>
 40        /// <param name="statusDetails">The status details of the certificate
 41        /// operation.</param>
 42        /// <param name="error">Error encountered, if any, during the
 43        /// certificate operation.</param>
 44        /// <param name="target">Location which contains the result of the
 45        /// certificate operation.</param>
 46        /// <param name="requestId">Identifier for the certificate
 47        /// operation.</param>
 048        public CertificateOperation(string id = default(string), IssuerParameters issuerParameters = default(IssuerParam
 49        {
 050            Id = id;
 051            IssuerParameters = issuerParameters;
 052            Csr = csr;
 053            CancellationRequested = cancellationRequested;
 054            Status = status;
 055            StatusDetails = statusDetails;
 056            Error = error;
 057            Target = target;
 058            RequestId = requestId;
 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 the certificate id.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "id")]
 2471        public string Id { get; private set; }
 72
 73        /// <summary>
 74        /// Gets or sets parameters for the issuer of the X509 component of a
 75        /// certificate.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "issuer")]
 2478        public IssuerParameters IssuerParameters { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets the certificate signing request (CSR) that is being
 82        /// used in the certificate operation.
 83        /// </summary>
 84        [JsonProperty(PropertyName = "csr")]
 085        public byte[] Csr { get; set; }
 86
 87        /// <summary>
 88        /// Gets or sets indicates if cancellation was requested on the
 89        /// certificate operation.
 90        /// </summary>
 91        [JsonProperty(PropertyName = "cancellation_requested")]
 1692        public bool? CancellationRequested { get; set; }
 93
 94        /// <summary>
 95        /// Gets or sets status of the certificate operation.
 96        /// </summary>
 97        [JsonProperty(PropertyName = "status")]
 2198        public string Status { get; set; }
 99
 100        /// <summary>
 101        /// Gets or sets the status details of the certificate operation.
 102        /// </summary>
 103        [JsonProperty(PropertyName = "status_details")]
 0104        public string StatusDetails { get; set; }
 105
 106        /// <summary>
 107        /// Gets or sets error encountered, if any, during the certificate
 108        /// operation.
 109        /// </summary>
 110        [JsonProperty(PropertyName = "error")]
 0111        public Error Error { get; set; }
 112
 113        /// <summary>
 114        /// Gets or sets location which contains the result of the certificate
 115        /// operation.
 116        /// </summary>
 117        [JsonProperty(PropertyName = "target")]
 6118        public string Target { get; set; }
 119
 120        /// <summary>
 121        /// Gets or sets identifier for the certificate operation.
 122        /// </summary>
 123        [JsonProperty(PropertyName = "request_id")]
 0124        public string RequestId { get; set; }
 125
 126    }
 127}