LinuxUserConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. LinuxUserConfiguration
- com.
Implements
public final class LinuxUserConfiguration
implements JsonSerializable<LinuxUserConfiguration>
Properties used to create a user account on a Linux node.
Constructor Summary
| Constructor | Description |
|---|---|
| LinuxUserConfiguration() |
Creates an instance of Linux |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Linux |
fromJson(JsonReader jsonReader)
Reads an instance of Linux |
| Integer |
gid()
Get the gid property: The uid and gid properties must be specified together or not at all. |
| String |
sshPrivateKey()
Get the ssh |
|
Json |
toJson(JsonWriter jsonWriter) |
| Integer |
uid()
Get the uid property: The uid and gid properties must be specified together or not at all. |
| void |
validate()
Validates the instance. |
|
Linux |
withGid(Integer gid)
Set the gid property: The uid and gid properties must be specified together or not at all. |
|
Linux |
withSshPrivateKey(String sshPrivateKey)
Set the ssh |
|
Linux |
withUid(Integer uid)
Set the uid property: The uid and gid properties must be specified together or not at all. |
Methods inherited from java.lang.Object
Constructor Details
LinuxUserConfiguration
public LinuxUserConfiguration()
Creates an instance of LinuxUserConfiguration class.
Method Details
fromJson
public static LinuxUserConfiguration fromJson(JsonReader jsonReader)
Reads an instance of LinuxUserConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
gid
public Integer gid()
Get the gid property: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.
Returns:
sshPrivateKey
public String sshPrivateKey()
Get the sshPrivateKey property: The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).
Returns:
toJson
uid
public Integer uid()
Get the uid property: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.
Returns:
validate
public void validate()
Validates the instance.
withGid
public LinuxUserConfiguration withGid(Integer gid)
Set the gid property: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.
Parameters:
Returns:
withSshPrivateKey
public LinuxUserConfiguration withSshPrivateKey(String sshPrivateKey)
Set the sshPrivateKey property: The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).
Parameters:
Returns:
withUid
public LinuxUserConfiguration withUid(Integer uid)
Set the uid property: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.
Parameters:
Returns: