< Summary

Class:Microsoft.Azure.KeyVault.Models.IssuerParameters
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\IssuerParameters.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:74
Line coverage:30% (3 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Name()-100%100%
get_CertificateType()-0%100%
get_CertificateTransparency()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\IssuerParameters.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    /// Parameters for the issuer of the X509 component of a certificate.
 18    /// </summary>
 19    public partial class IssuerParameters
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the IssuerParameters class.
 23        /// </summary>
 13024        public IssuerParameters()
 25        {
 26            CustomInit();
 13027        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the IssuerParameters class.
 31        /// </summary>
 32        /// <param name="name">Name of the referenced issuer object or reserved
 33        /// names; for example, 'Self' or 'Unknown'.</param>
 34        /// <param name="certificateType">Type of certificate to be requested
 35        /// from the issuer provider.</param>
 36        /// <param name="certificateTransparency">Indicates if the certificates
 37        /// generated under this policy should be published to certificate
 38        /// transparency logs.</param>
 039        public IssuerParameters(string name = default(string), string certificateType = default(string), bool? certifica
 40        {
 041            Name = name;
 042            CertificateType = certificateType;
 043            CertificateTransparency = certificateTransparency;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets or sets name of the referenced issuer object or reserved
 54        /// names; for example, 'Self' or 'Unknown'.
 55        /// </summary>
 56        [JsonProperty(PropertyName = "name")]
 14457        public string Name { get; set; }
 58
 59        /// <summary>
 60        /// Gets or sets type of certificate to be requested from the issuer
 61        /// provider.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "cty")]
 064        public string CertificateType { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets indicates if the certificates generated under this
 68        /// policy should be published to certificate transparency logs.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "cert_transparency")]
 071        public bool? CertificateTransparency { get; set; }
 72
 73    }
 74}