< Summary

Class:Microsoft.Azure.KeyVault.Models.CertificateIssuerSetParameters
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\CertificateIssuerSetParameters.cs
Covered lines:6
Uncovered lines:9
Coverable lines:15
Total lines:93
Line coverage:40% (6 of 15)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Provider()-100%100%
get_Credentials()-100%100%
get_OrganizationDetails()-100%100%
get_Attributes()-100%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\CertificateIssuerSetParameters.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 Newtonsoft.Json;
 15    using System.Linq;
 16
 17    /// <summary>
 18    /// The certificate issuer set parameters.
 19    /// </summary>
 20    public partial class CertificateIssuerSetParameters
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the CertificateIssuerSetParameters
 24        /// class.
 25        /// </summary>
 826        public CertificateIssuerSetParameters()
 27        {
 28            CustomInit();
 829        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the CertificateIssuerSetParameters
 33        /// class.
 34        /// </summary>
 35        /// <param name="provider">The issuer provider.</param>
 36        /// <param name="credentials">The credentials to be used for the
 37        /// issuer.</param>
 38        /// <param name="organizationDetails">Details of the organization as
 39        /// provided to the issuer.</param>
 40        /// <param name="attributes">Attributes of the issuer object.</param>
 041        public CertificateIssuerSetParameters(string provider, IssuerCredentials credentials = default(IssuerCredentials
 42        {
 043            Provider = provider;
 044            Credentials = credentials;
 045            OrganizationDetails = organizationDetails;
 046            Attributes = attributes;
 47            CustomInit();
 048        }
 49
 50        /// <summary>
 51        /// An initialization method that performs custom operations like setting defaults
 52        /// </summary>
 53        partial void CustomInit();
 54
 55        /// <summary>
 56        /// Gets or sets the issuer provider.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "provider")]
 1659        public string Provider { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets the credentials to be used for the issuer.
 63        /// </summary>
 64        [JsonProperty(PropertyName = "credentials")]
 1665        public IssuerCredentials Credentials { get; set; }
 66
 67        /// <summary>
 68        /// Gets or sets details of the organization as provided to the issuer.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "org_details")]
 1671        public OrganizationDetails OrganizationDetails { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets attributes of the issuer object.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "attributes")]
 1677        public IssuerAttributes Attributes { get; set; }
 78
 79        /// <summary>
 80        /// Validate the object.
 81        /// </summary>
 82        /// <exception cref="ValidationException">
 83        /// Thrown if validation fails
 84        /// </exception>
 85        public virtual void Validate()
 86        {
 087            if (Provider == null)
 88            {
 089                throw new ValidationException(ValidationRules.CannotBeNull, "Provider");
 90            }
 091        }
 92    }
 93}