| | | 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 CertificateAddParameter |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the CertificateAddParameter class. |
| | | 24 | | /// </summary> |
| | 210 | 25 | | public CertificateAddParameter() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 210 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the CertificateAddParameter 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 (it may include spaces |
| | | 35 | | /// but these are removed).</param> |
| | | 36 | | /// <param name="thumbprintAlgorithm">The algorithm used to derive the |
| | | 37 | | /// thumbprint. This must be sha1.</param> |
| | | 38 | | /// <param name="data">The base64-encoded contents of the Certificate. |
| | | 39 | | /// The maximum size is 10KB.</param> |
| | | 40 | | /// <param name="certificateFormat">The format of the Certificate |
| | | 41 | | /// data.</param> |
| | | 42 | | /// <param name="password">The password to access the Certificate's |
| | | 43 | | /// private key.</param> |
| | 0 | 44 | | public CertificateAddParameter(string thumbprint, string thumbprintAlgorithm, string data, CertificateFormat? ce |
| | | 45 | | { |
| | 0 | 46 | | Thumbprint = thumbprint; |
| | 0 | 47 | | ThumbprintAlgorithm = thumbprintAlgorithm; |
| | 0 | 48 | | Data = data; |
| | 0 | 49 | | CertificateFormat = certificateFormat; |
| | 0 | 50 | | Password = password; |
| | | 51 | | CustomInit(); |
| | 0 | 52 | | } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | | 56 | | /// </summary> |
| | | 57 | | partial void CustomInit(); |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets or sets the X.509 thumbprint of the Certificate. This is a |
| | | 61 | | /// sequence of up to 40 hex digits (it may include spaces but these |
| | | 62 | | /// are removed). |
| | | 63 | | /// </summary> |
| | | 64 | | [JsonProperty(PropertyName = "thumbprint")] |
| | 370 | 65 | | public string Thumbprint { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets the algorithm used to derive the thumbprint. This must |
| | | 69 | | /// be sha1. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "thumbprintAlgorithm")] |
| | 360 | 72 | | public string ThumbprintAlgorithm { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets or sets the base64-encoded contents of the Certificate. The |
| | | 76 | | /// maximum size is 10KB. |
| | | 77 | | /// </summary> |
| | | 78 | | [JsonProperty(PropertyName = "data")] |
| | 367 | 79 | | public string Data { get; set; } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// Gets or sets the format of the Certificate data. |
| | | 83 | | /// </summary> |
| | | 84 | | /// <remarks> |
| | | 85 | | /// Possible values include: 'pfx', 'cer' |
| | | 86 | | /// </remarks> |
| | | 87 | | [JsonProperty(PropertyName = "certificateFormat")] |
| | 371 | 88 | | public CertificateFormat? CertificateFormat { get; set; } |
| | | 89 | | |
| | | 90 | | /// <summary> |
| | | 91 | | /// Gets or sets the password to access the Certificate's private key. |
| | | 92 | | /// </summary> |
| | | 93 | | /// <remarks> |
| | | 94 | | /// This must be omitted if the Certificate format is cer. |
| | | 95 | | /// </remarks> |
| | | 96 | | [JsonProperty(PropertyName = "password")] |
| | 355 | 97 | | public string Password { get; set; } |
| | | 98 | | |
| | | 99 | | } |
| | | 100 | | } |