| | 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.Batch.Protocol.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// A Certificate that can be installed on Compute Nodes and can be used to |
| | 18 | | /// authenticate operations on the machine. |
| | 19 | | /// </summary> |
| | 20 | | public partial class Certificate |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the Certificate class. |
| | 24 | | /// </summary> |
| 1000 | 25 | | public Certificate() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 1000 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the Certificate class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="thumbprint">The X.509 thumbprint of the Certificate. |
| | 34 | | /// This is a sequence of up to 40 hex digits.</param> |
| | 35 | | /// <param name="thumbprintAlgorithm">The algorithm used to derive the |
| | 36 | | /// thumbprint.</param> |
| | 37 | | /// <param name="url">The URL of the Certificate.</param> |
| | 38 | | /// <param name="state">The current state of the Certificate.</param> |
| | 39 | | /// <param name="stateTransitionTime">The time at which the Certificate |
| | 40 | | /// entered its current state.</param> |
| | 41 | | /// <param name="previousState">The previous state of the |
| | 42 | | /// Certificate.</param> |
| | 43 | | /// <param name="previousStateTransitionTime">The time at which the |
| | 44 | | /// Certificate entered its previous state.</param> |
| | 45 | | /// <param name="publicData">The public part of the Certificate as a |
| | 46 | | /// base-64 encoded .cer file.</param> |
| | 47 | | /// <param name="deleteCertificateError">The error that occurred on the |
| | 48 | | /// last attempt to delete this Certificate.</param> |
| 1 | 49 | | public Certificate(string thumbprint = default(string), string thumbprintAlgorithm = default(string), string url |
| | 50 | | { |
| 1 | 51 | | Thumbprint = thumbprint; |
| 1 | 52 | | ThumbprintAlgorithm = thumbprintAlgorithm; |
| 1 | 53 | | Url = url; |
| 1 | 54 | | State = state; |
| 1 | 55 | | StateTransitionTime = stateTransitionTime; |
| 1 | 56 | | PreviousState = previousState; |
| 1 | 57 | | PreviousStateTransitionTime = previousStateTransitionTime; |
| 1 | 58 | | PublicData = publicData; |
| 1 | 59 | | DeleteCertificateError = deleteCertificateError; |
| | 60 | | CustomInit(); |
| 1 | 61 | | } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// An initialization method that performs custom operations like setting defaults |
| | 65 | | /// </summary> |
| | 66 | | partial void CustomInit(); |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets the X.509 thumbprint of the Certificate. This is a |
| | 70 | | /// sequence of up to 40 hex digits. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "thumbprint")] |
| 2491 | 73 | | public string Thumbprint { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the algorithm used to derive the thumbprint. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "thumbprintAlgorithm")] |
| 2511 | 79 | | public string ThumbprintAlgorithm { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets the URL of the Certificate. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "url")] |
| 2523 | 85 | | public string Url { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets the current state of the Certificate. |
| | 89 | | /// </summary> |
| | 90 | | /// <remarks> |
| | 91 | | /// Possible values include: 'active', 'deleting', 'deleteFailed' |
| | 92 | | /// </remarks> |
| | 93 | | [JsonProperty(PropertyName = "state")] |
| 2504 | 94 | | public CertificateState? State { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets the time at which the Certificate entered its current |
| | 98 | | /// state. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "stateTransitionTime")] |
| 2489 | 101 | | public System.DateTime? StateTransitionTime { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets the previous state of the Certificate. |
| | 105 | | /// </summary> |
| | 106 | | /// <remarks> |
| | 107 | | /// This property is not set if the Certificate is in its initial |
| | 108 | | /// active state. Possible values include: 'active', 'deleting', |
| | 109 | | /// 'deleteFailed' |
| | 110 | | /// </remarks> |
| | 111 | | [JsonProperty(PropertyName = "previousState")] |
| 2498 | 112 | | public CertificateState? PreviousState { get; set; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets the time at which the Certificate entered its previous |
| | 116 | | /// state. |
| | 117 | | /// </summary> |
| | 118 | | /// <remarks> |
| | 119 | | /// This property is not set if the Certificate is in its initial |
| | 120 | | /// Active state. |
| | 121 | | /// </remarks> |
| | 122 | | [JsonProperty(PropertyName = "previousStateTransitionTime")] |
| 2500 | 123 | | public System.DateTime? PreviousStateTransitionTime { get; set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// Gets or sets the public part of the Certificate as a base-64 |
| | 127 | | /// encoded .cer file. |
| | 128 | | /// </summary> |
| | 129 | | [JsonProperty(PropertyName = "publicData")] |
| 2496 | 130 | | public string PublicData { get; set; } |
| | 131 | |
|
| | 132 | | /// <summary> |
| | 133 | | /// Gets or sets the error that occurred on the last attempt to delete |
| | 134 | | /// this Certificate. |
| | 135 | | /// </summary> |
| | 136 | | /// <remarks> |
| | 137 | | /// This property is set only if the Certificate is in the DeleteFailed |
| | 138 | | /// state. |
| | 139 | | /// </remarks> |
| | 140 | | [JsonProperty(PropertyName = "deleteCertificateError")] |
| 2504 | 141 | | public DeleteCertificateError DeleteCertificateError { get; set; } |
| | 142 | |
|
| | 143 | | } |
| | 144 | | } |