AutoUserSpecification Class
- java.
lang. Object - com.
azure. compute. batch. models. AutoUserSpecification
- com.
Implements
public final class AutoUserSpecification
implements JsonSerializable<AutoUserSpecification>
Specifies the options for the auto user that runs an Azure Batch Task.
Constructor Summary
| Constructor | Description |
|---|---|
| AutoUserSpecification() |
Creates an instance of Auto |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
|
Elevation |
getElevationLevel()
Get the elevation |
|
Auto |
getScope()
Get the scope property: The scope for the auto user. |
|
Auto |
setElevationLevel(ElevationLevel elevationLevel)
Set the elevation |
|
Auto |
setScope(AutoUserScope scope)
Set the scope property: The scope for the auto user. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AutoUserSpecification
public AutoUserSpecification()
Creates an instance of AutoUserSpecification class.
Method Details
fromJson
public static AutoUserSpecification fromJson(JsonReader jsonReader)
Reads an instance of AutoUserSpecification from the JsonReader.
Parameters:
Returns:
Throws:
getElevationLevel
public ElevationLevel getElevationLevel()
Get the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.
Returns:
getScope
public AutoUserScope 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:
setElevationLevel
public AutoUserSpecification setElevationLevel(ElevationLevel elevationLevel)
Set the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.
Parameters:
Returns:
setScope
public AutoUserSpecification setScope(AutoUserScope scope)
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:
Returns: