Class LocalUserInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.storage.fluent.models.LocalUserInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class LocalUserInner
extends com.azure.core.management.ProxyResource
The local user associated with the storage accounts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user.Get the extendedGroups property: Supplementary group membership.static LocalUserInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LocalUserInner from the JsonReader.groupId()Get the groupId property: An identifier for associating a group of users.Get the hasSharedKey property: Indicates whether shared key exists.Get the hasSshKey property: Indicates whether ssh key exists.Get the hasSshPassword property: Indicates whether ssh password exists.Get the homeDirectory property: Optional, local user home directory.id()Get the id property: Fully qualified resource Id for the resource.Get the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.name()Get the name property: The name of the resource.Get the permissionScopes property: The permission scopes of the local user.sid()Get the sid property: A unique Security Identifier that is generated by the server.Get the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.com.azure.core.management.SystemDataGet the systemData property: Metadata pertaining to creation and last modification of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.userId()Get the userId property: A unique Identifier that is generated by the server.voidvalidate()Validates the instance.withAllowAclAuthorization(Boolean allowAclAuthorization) Set the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user.withExtendedGroups(List<Integer> extendedGroups) Set the extendedGroups property: Supplementary group membership.withGroupId(Integer groupId) Set the groupId property: An identifier for associating a group of users.withHasSharedKey(Boolean hasSharedKey) Set the hasSharedKey property: Indicates whether shared key exists.withHasSshKey(Boolean hasSshKey) Set the hasSshKey property: Indicates whether ssh key exists.withHasSshPassword(Boolean hasSshPassword) Set the hasSshPassword property: Indicates whether ssh password exists.withHomeDirectory(String homeDirectory) Set the homeDirectory property: Optional, local user home directory.withIsNFSv3Enabled(Boolean isNFSv3Enabled) Set the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.withPermissionScopes(List<PermissionScope> permissionScopes) Set the permissionScopes property: The permission scopes of the local user.withSshAuthorizedKeys(List<SshPublicKey> sshAuthorizedKeys) Set the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LocalUserInner
public LocalUserInner()Creates an instance of LocalUserInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
permissionScopes
Get the permissionScopes property: The permission scopes of the local user.- Returns:
- the permissionScopes value.
-
withPermissionScopes
Set the permissionScopes property: The permission scopes of the local user.- Parameters:
permissionScopes- the permissionScopes value to set.- Returns:
- the LocalUserInner object itself.
-
homeDirectory
Get the homeDirectory property: Optional, local user home directory.- Returns:
- the homeDirectory value.
-
withHomeDirectory
Set the homeDirectory property: Optional, local user home directory.- Parameters:
homeDirectory- the homeDirectory value to set.- Returns:
- the LocalUserInner object itself.
-
sshAuthorizedKeys
Get the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.- Returns:
- the sshAuthorizedKeys value.
-
withSshAuthorizedKeys
Set the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.- Parameters:
sshAuthorizedKeys- the sshAuthorizedKeys value to set.- Returns:
- the LocalUserInner object itself.
-
sid
Get the sid property: A unique Security Identifier that is generated by the server.- Returns:
- the sid value.
-
hasSshKey
Get the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.- Returns:
- the hasSshKey value.
-
withHasSshKey
Set the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.- Parameters:
hasSshKey- the hasSshKey value to set.- Returns:
- the LocalUserInner object itself.
-
hasSshPassword
Get the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH password.- Returns:
- the hasSshPassword value.
-
withHasSshPassword
Set the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH password.- Parameters:
hasSshPassword- the hasSshPassword value to set.- Returns:
- the LocalUserInner object itself.
-
userId
Get the userId property: A unique Identifier that is generated by the server.- Returns:
- the userId value.
-
groupId
Get the groupId property: An identifier for associating a group of users.- Returns:
- the groupId value.
-
withGroupId
Set the groupId property: An identifier for associating a group of users.- Parameters:
groupId- the groupId value to set.- Returns:
- the LocalUserInner object itself.
-
allowAclAuthorization
Get the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.- Returns:
- the allowAclAuthorization value.
-
withAllowAclAuthorization
Set the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.- Parameters:
allowAclAuthorization- the allowAclAuthorization value to set.- Returns:
- the LocalUserInner object itself.
-
extendedGroups
-
withExtendedGroups
Set the extendedGroups property: Supplementary group membership. Only applicable for local users enabled for NFSv3 access.- Parameters:
extendedGroups- the extendedGroups value to set.- Returns:
- the LocalUserInner object itself.
-
isNFSv3Enabled
Get the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.- Returns:
- the isNFSv3Enabled value.
-
withIsNFSv3Enabled
Set the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.- Parameters:
isNFSv3Enabled- the isNFSv3Enabled value to set.- Returns:
- the LocalUserInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of LocalUserInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LocalUserInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the LocalUserInner.
-