| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A reference to a Certificate to be installed on Compute Nodes in a |
| | 20 | | /// Pool. |
| | 21 | | /// </summary> |
| | 22 | | public partial class CertificateReference |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the CertificateReference class. |
| | 26 | | /// </summary> |
| 5609 | 27 | | public CertificateReference() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 5609 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the CertificateReference class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="thumbprint">The thumbprint of the Certificate.</param> |
| | 36 | | /// <param name="thumbprintAlgorithm">The algorithm with which the |
| | 37 | | /// thumbprint is associated. This must be sha1.</param> |
| | 38 | | /// <param name="storeLocation">The location of the Certificate store |
| | 39 | | /// on the Compute Node into which to install the Certificate.</param> |
| | 40 | | /// <param name="storeName">The name of the Certificate store on the |
| | 41 | | /// Compute Node into which to install the Certificate.</param> |
| | 42 | | /// <param name="visibility">Which user Accounts on the Compute Node |
| | 43 | | /// should have access to the private data of the Certificate.</param> |
| 1 | 44 | | public CertificateReference(string thumbprint, string thumbprintAlgorithm, CertificateStoreLocation? storeLocati |
| | 45 | | { |
| 1 | 46 | | Thumbprint = thumbprint; |
| 1 | 47 | | ThumbprintAlgorithm = thumbprintAlgorithm; |
| 1 | 48 | | StoreLocation = storeLocation; |
| 1 | 49 | | StoreName = storeName; |
| 1 | 50 | | Visibility = visibility; |
| | 51 | | CustomInit(); |
| 1 | 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 thumbprint of the Certificate. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "thumbprint")] |
| 15998 | 63 | | public string Thumbprint { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the algorithm with which the thumbprint is associated. |
| | 67 | | /// This must be sha1. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "thumbprintAlgorithm")] |
| 16103 | 70 | | public string ThumbprintAlgorithm { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the location of the Certificate store on the Compute |
| | 74 | | /// Node into which to install the Certificate. |
| | 75 | | /// </summary> |
| | 76 | | /// <remarks> |
| | 77 | | /// The default value is currentuser. This property is applicable only |
| | 78 | | /// for Pools configured with Windows Compute Nodes (that is, created |
| | 79 | | /// with cloudServiceConfiguration, or with virtualMachineConfiguration |
| | 80 | | /// using a Windows Image reference). For Linux Compute Nodes, the |
| | 81 | | /// Certificates are stored in a directory inside the Task working |
| | 82 | | /// directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is |
| | 83 | | /// supplied to the Task to query for this location. For Certificates |
| | 84 | | /// with visibility of 'remoteUser', a 'certs' directory is created in |
| | 85 | | /// the user's home directory (e.g., /home/{user-name}/certs) and |
| | 86 | | /// Certificates are placed in that directory. Possible values include: |
| | 87 | | /// 'currentUser', 'localMachine' |
| | 88 | | /// </remarks> |
| | 89 | | [JsonProperty(PropertyName = "storeLocation")] |
| 16076 | 90 | | public CertificateStoreLocation? StoreLocation { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets the name of the Certificate store on the Compute Node |
| | 94 | | /// into which to install the Certificate. |
| | 95 | | /// </summary> |
| | 96 | | /// <remarks> |
| | 97 | | /// This property is applicable only for Pools configured with Windows |
| | 98 | | /// Compute Nodes (that is, created with cloudServiceConfiguration, or |
| | 99 | | /// with virtualMachineConfiguration using a Windows Image reference). |
| | 100 | | /// Common store names include: My, Root, CA, Trust, Disallowed, |
| | 101 | | /// TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any |
| | 102 | | /// custom store name can also be used. The default value is My. |
| | 103 | | /// </remarks> |
| | 104 | | [JsonProperty(PropertyName = "storeName")] |
| 16030 | 105 | | public string StoreName { get; set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets or sets which user Accounts on the Compute Node should have |
| | 109 | | /// access to the private data of the Certificate. |
| | 110 | | /// </summary> |
| | 111 | | /// <remarks> |
| | 112 | | /// You can specify more than one visibility in this collection. The |
| | 113 | | /// default is all Accounts. |
| | 114 | | /// </remarks> |
| | 115 | | [JsonProperty(PropertyName = "visibility")] |
| 20781 | 116 | | public IList<CertificateVisibility> Visibility { get; set; } |
| | 117 | |
|
| | 118 | | } |
| | 119 | | } |