| | 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 | |
|
| | 11 | | namespace 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> |
| 8 | 26 | | public CertificateIssuerSetParameters() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 8 | 29 | | } |
| | 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> |
| 0 | 41 | | public CertificateIssuerSetParameters(string provider, IssuerCredentials credentials = default(IssuerCredentials |
| | 42 | | { |
| 0 | 43 | | Provider = provider; |
| 0 | 44 | | Credentials = credentials; |
| 0 | 45 | | OrganizationDetails = organizationDetails; |
| 0 | 46 | | Attributes = attributes; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 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")] |
| 16 | 59 | | 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")] |
| 16 | 65 | | 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")] |
| 16 | 71 | | public OrganizationDetails OrganizationDetails { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets attributes of the issuer object. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "attributes")] |
| 16 | 77 | | 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 | | { |
| 0 | 87 | | if (Provider == null) |
| | 88 | | { |
| 0 | 89 | | throw new ValidationException(ValidationRules.CannotBeNull, "Provider"); |
| | 90 | | } |
| 0 | 91 | | } |
| | 92 | | } |
| | 93 | | } |