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