Package com.azure.compute.batch.models
Class AutoUserSpecification
java.lang.Object
com.azure.compute.batch.models.AutoUserSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoUserSpecification>
public final class AutoUserSpecification
extends Object
implements com.azure.json.JsonSerializable<AutoUserSpecification>
Specifies the options for the auto user that runs an Azure Batch Task.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoUserSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoUserSpecification from the JsonReader.Get the elevationLevel property: The elevation level of the auto user.getScope()Get the scope property: The scope for the auto user.setElevationLevel(ElevationLevel elevationLevel) Set the elevationLevel property: The elevation level of the auto user.setScope(AutoUserScope scope) Set the scope property: The scope for the auto user.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
AutoUserSpecification
public AutoUserSpecification()Creates an instance of AutoUserSpecification class.
-
-
Method Details
-
getScope
Get the scope property: The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks.- Returns:
- the scope value.
-
setScope
Set the scope property: The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks.- Parameters:
scope- the scope value to set.- Returns:
- the AutoUserSpecification object itself.
-
getElevationLevel
Get the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.- Returns:
- the elevationLevel value.
-
setElevationLevel
Set the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.- Parameters:
elevationLevel- the elevationLevel value to set.- Returns:
- the AutoUserSpecification object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutoUserSpecification>- Throws:
IOException
-
fromJson
public static AutoUserSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AutoUserSpecification from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AutoUserSpecification 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 AutoUserSpecification.
-