| | 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 | | /// Properties used to create a user Account on a Linux Compute Node. |
| | 18 | | /// </summary> |
| | 19 | | public partial class LinuxUserConfiguration |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the LinuxUserConfiguration class. |
| | 23 | | /// </summary> |
| 2338 | 24 | | public LinuxUserConfiguration() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2338 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the LinuxUserConfiguration class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="uid">The user ID of the user Account.</param> |
| | 33 | | /// <param name="gid">The group ID for the user Account.</param> |
| | 34 | | /// <param name="sshPrivateKey">The SSH private key for the user |
| | 35 | | /// Account.</param> |
| 0 | 36 | | public LinuxUserConfiguration(int? uid = default(int?), int? gid = default(int?), string sshPrivateKey = default |
| | 37 | | { |
| 0 | 38 | | Uid = uid; |
| 0 | 39 | | Gid = gid; |
| 0 | 40 | | SshPrivateKey = sshPrivateKey; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets the user ID of the user Account. |
| | 51 | | /// </summary> |
| | 52 | | /// <remarks> |
| | 53 | | /// The uid and gid properties must be specified together or not at |
| | 54 | | /// all. If not specified the underlying operating system picks the |
| | 55 | | /// uid. |
| | 56 | | /// </remarks> |
| | 57 | | [JsonProperty(PropertyName = "uid")] |
| 5395 | 58 | | public int? Uid { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets the group ID for the user Account. |
| | 62 | | /// </summary> |
| | 63 | | /// <remarks> |
| | 64 | | /// The uid and gid properties must be specified together or not at |
| | 65 | | /// all. If not specified the underlying operating system picks the |
| | 66 | | /// gid. |
| | 67 | | /// </remarks> |
| | 68 | | [JsonProperty(PropertyName = "gid")] |
| 5373 | 69 | | public int? Gid { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the SSH private key for the user Account. |
| | 73 | | /// </summary> |
| | 74 | | /// <remarks> |
| | 75 | | /// The private key must not be password protected. The private key is |
| | 76 | | /// used to automatically configure asymmetric-key based authentication |
| | 77 | | /// for SSH between Compute Nodes in a Linux Pool when the Pool's |
| | 78 | | /// enableInterNodeCommunication property is true (it is ignored if |
| | 79 | | /// enableInterNodeCommunication is false). It does this by placing the |
| | 80 | | /// key pair into the user's .ssh directory. If not specified, |
| | 81 | | /// password-less SSH is not configured between Compute Nodes (no |
| | 82 | | /// modification of the user's .ssh directory is done). |
| | 83 | | /// </remarks> |
| | 84 | | [JsonProperty(PropertyName = "sshPrivateKey")] |
| 5336 | 85 | | public string SshPrivateKey { get; set; } |
| | 86 | |
|
| | 87 | | } |
| | 88 | | } |