| | 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 user Account for RDP or SSH access on a Compute Node. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ComputeNodeUser |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ComputeNodeUser class. |
| | 23 | | /// </summary> |
| 100 | 24 | | public ComputeNodeUser() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 100 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ComputeNodeUser class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="name">The user name of the Account.</param> |
| | 33 | | /// <param name="isAdmin">Whether the Account should be an |
| | 34 | | /// administrator on the Compute Node.</param> |
| | 35 | | /// <param name="expiryTime">The time at which the Account should |
| | 36 | | /// expire.</param> |
| | 37 | | /// <param name="password">The password of the Account.</param> |
| | 38 | | /// <param name="sshPublicKey">The SSH public key that can be used for |
| | 39 | | /// remote login to the Compute Node.</param> |
| 0 | 40 | | public ComputeNodeUser(string name, bool? isAdmin = default(bool?), System.DateTime? expiryTime = default(System |
| | 41 | | { |
| 0 | 42 | | Name = name; |
| 0 | 43 | | IsAdmin = isAdmin; |
| 0 | 44 | | ExpiryTime = expiryTime; |
| 0 | 45 | | Password = password; |
| 0 | 46 | | SshPublicKey = sshPublicKey; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets the user name of the Account. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "name")] |
| 200 | 59 | | public string Name { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets whether the Account should be an administrator on the |
| | 63 | | /// Compute Node. |
| | 64 | | /// </summary> |
| | 65 | | /// <remarks> |
| | 66 | | /// The default value is false. |
| | 67 | | /// </remarks> |
| | 68 | | [JsonProperty(PropertyName = "isAdmin")] |
| 200 | 69 | | public bool? IsAdmin { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the time at which the Account should expire. |
| | 73 | | /// </summary> |
| | 74 | | /// <remarks> |
| | 75 | | /// If omitted, the default is 1 day from the current time. For Linux |
| | 76 | | /// Compute Nodes, the expiryTime has a precision up to a day. |
| | 77 | | /// </remarks> |
| | 78 | | [JsonProperty(PropertyName = "expiryTime")] |
| 200 | 79 | | public System.DateTime? ExpiryTime { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets the password of the Account. |
| | 83 | | /// </summary> |
| | 84 | | /// <remarks> |
| | 85 | | /// The password is required for Windows Compute Nodes (those created |
| | 86 | | /// with 'cloudServiceConfiguration', or created with |
| | 87 | | /// 'virtualMachineConfiguration' using a Windows Image reference). For |
| | 88 | | /// Linux Compute Nodes, the password can optionally be specified along |
| | 89 | | /// with the sshPublicKey property. |
| | 90 | | /// </remarks> |
| | 91 | | [JsonProperty(PropertyName = "password")] |
| 200 | 92 | | public string Password { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets the SSH public key that can be used for remote login |
| | 96 | | /// to the Compute Node. |
| | 97 | | /// </summary> |
| | 98 | | /// <remarks> |
| | 99 | | /// The public key should be compatible with OpenSSH encoding and |
| | 100 | | /// should be base 64 encoded. This property can be specified only for |
| | 101 | | /// Linux Compute Nodes. If this is specified for a Windows Compute |
| | 102 | | /// Node, then the Batch service rejects the request; if you are |
| | 103 | | /// calling the REST API directly, the HTTP status code is 400 (Bad |
| | 104 | | /// Request). |
| | 105 | | /// </remarks> |
| | 106 | | [JsonProperty(PropertyName = "sshPublicKey")] |
| 200 | 107 | | public string SshPublicKey { get; set; } |
| | 108 | |
|
| | 109 | | } |
| | 110 | | } |