-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NodeUpdateUserParameter.cs
90 lines (82 loc) · 3.5 KB
/
NodeUpdateUserParameter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Batch.Protocol.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// The set of changes to be made to a user Account on a Compute Node.
/// </summary>
public partial class NodeUpdateUserParameter
{
/// <summary>
/// Initializes a new instance of the NodeUpdateUserParameter class.
/// </summary>
public NodeUpdateUserParameter()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the NodeUpdateUserParameter class.
/// </summary>
/// <param name="password">The password of the Account.</param>
/// <param name="expiryTime">The time at which the Account should
/// expire.</param>
/// <param name="sshPublicKey">The SSH public key that can be used for
/// remote login to the Compute Node.</param>
public NodeUpdateUserParameter(string password = default(string), System.DateTime? expiryTime = default(System.DateTime?), string sshPublicKey = default(string))
{
Password = password;
ExpiryTime = expiryTime;
SshPublicKey = sshPublicKey;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the password of the Account.
/// </summary>
/// <remarks>
/// The password is required for Windows Compute Nodes (those created
/// with 'cloudServiceConfiguration', or created with
/// 'virtualMachineConfiguration' using a Windows Image reference). For
/// Linux Compute Nodes, the password can optionally be specified along
/// with the sshPublicKey property. If omitted, any existing password
/// is removed.
/// </remarks>
[JsonProperty(PropertyName = "password")]
public string Password { get; set; }
/// <summary>
/// Gets or sets the time at which the Account should expire.
/// </summary>
/// <remarks>
/// If omitted, the default is 1 day from the current time. For Linux
/// Compute Nodes, the expiryTime has a precision up to a day.
/// </remarks>
[JsonProperty(PropertyName = "expiryTime")]
public System.DateTime? ExpiryTime { get; set; }
/// <summary>
/// Gets or sets the SSH public key that can be used for remote login
/// to the Compute Node.
/// </summary>
/// <remarks>
/// The public key should be compatible with OpenSSH encoding and
/// should be base 64 encoded. This property can be specified only for
/// Linux Compute Nodes. If this is specified for a Windows Compute
/// Node, then the Batch service rejects the request; if you are
/// calling the REST API directly, the HTTP status code is 400 (Bad
/// Request). If omitted, any existing SSH public key is removed.
/// </remarks>
[JsonProperty(PropertyName = "sshPublicKey")]
public string SshPublicKey { get; set; }
}
}