Package com.azure.compute.batch.models
Class LinuxUserConfiguration
java.lang.Object
com.azure.compute.batch.models.LinuxUserConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinuxUserConfiguration>
public final class LinuxUserConfiguration
extends Object
implements com.azure.json.JsonSerializable<LinuxUserConfiguration>
Properties used to create a user Account on a Linux Compute Node.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LinuxUserConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinuxUserConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LinuxUserConfiguration from the JsonReader.getGid()
Get the gid property: The group ID for the user Account.Get the sshPrivateKey property: The SSH private key for the user Account.getUid()
Get the uid property: The user ID of the user Account.Set the gid property: The group ID for the user Account.setSshPrivateKey
(String sshPrivateKey) Set the sshPrivateKey property: The SSH private key for the user Account.Set the uid property: The user ID of the user Account.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LinuxUserConfiguration
public LinuxUserConfiguration()Creates an instance of LinuxUserConfiguration class.
-
-
Method Details
-
getUid
Get the uid property: The user ID of the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.- Returns:
- the uid value.
-
setUid
Set the uid property: The user ID of the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.- Parameters:
uid
- the uid value to set.- Returns:
- the LinuxUserConfiguration object itself.
-
getGid
Get the gid property: The group ID for the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.- Returns:
- the gid value.
-
setGid
Set the gid property: The group ID for the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.- Parameters:
gid
- the gid value to set.- Returns:
- the LinuxUserConfiguration object itself.
-
getSshPrivateKey
Get the sshPrivateKey property: The SSH private key for the user Account. The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between Compute 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 Compute Nodes (no modification of the user's .ssh directory is done).- Returns:
- the sshPrivateKey value.
-
setSshPrivateKey
Set the sshPrivateKey property: The SSH private key for the user Account. The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between Compute 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 Compute Nodes (no modification of the user's .ssh directory is done).- Parameters:
sshPrivateKey
- the sshPrivateKey value to set.- Returns:
- the LinuxUserConfiguration object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<LinuxUserConfiguration>
- Throws:
IOException
-
fromJson
public static LinuxUserConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LinuxUserConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of LinuxUserConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the LinuxUserConfiguration.
-