| | 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 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> |
| 12 | 24 | | public CertificateOperation() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 12 | 27 | | } |
| | 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> |
| 0 | 48 | | public CertificateOperation(string id = default(string), IssuerParameters issuerParameters = default(IssuerParam |
| | 49 | | { |
| 0 | 50 | | Id = id; |
| 0 | 51 | | IssuerParameters = issuerParameters; |
| 0 | 52 | | Csr = csr; |
| 0 | 53 | | CancellationRequested = cancellationRequested; |
| 0 | 54 | | Status = status; |
| 0 | 55 | | StatusDetails = statusDetails; |
| 0 | 56 | | Error = error; |
| 0 | 57 | | Target = target; |
| 0 | 58 | | RequestId = requestId; |
| | 59 | | CustomInit(); |
| 0 | 60 | | } |
| | 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")] |
| 24 | 71 | | 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")] |
| 24 | 78 | | 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")] |
| 0 | 85 | | 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")] |
| 16 | 92 | | public bool? CancellationRequested { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets status of the certificate operation. |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "status")] |
| 21 | 98 | | 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")] |
| 0 | 104 | | 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")] |
| 0 | 111 | | 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")] |
| 6 | 118 | | public string Target { get; set; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets or sets identifier for the certificate operation. |
| | 122 | | /// </summary> |
| | 123 | | [JsonProperty(PropertyName = "request_id")] |
| 0 | 124 | | public string RequestId { get; set; } |
| | 125 | |
|
| | 126 | | } |
| | 127 | | } |