AutoUserSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. AutoUserSpecification
- com.
Implements
public final class AutoUserSpecification
implements JsonSerializable<AutoUserSpecification>
Specifies the parameters for the auto user that runs a task on the Batch service.
Constructor Summary
| Constructor | Description |
|---|---|
| AutoUserSpecification() |
Creates an instance of Auto |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Elevation |
elevationLevel()
Get the elevation |
|
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
|
Auto |
scope()
Get the scope property: The default value is Pool. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Auto |
withElevationLevel(ElevationLevel elevationLevel)
Set the elevation |
|
Auto |
withScope(AutoUserScope scope)
Set the scope property: The default value is Pool. |
Methods inherited from java.lang.Object
Constructor Details
AutoUserSpecification
public AutoUserSpecification()
Creates an instance of AutoUserSpecification class.
Method Details
elevationLevel
public ElevationLevel elevationLevel()
Get the elevationLevel property: The default value is nonAdmin.
Returns:
fromJson
public static AutoUserSpecification fromJson(JsonReader jsonReader)
Reads an instance of AutoUserSpecification from the JsonReader.
Parameters:
Returns:
Throws:
scope
public AutoUserScope scope()
Get the scope property: 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 start tasks.
Returns:
toJson
validate
public void validate()
Validates the instance.
withElevationLevel
public AutoUserSpecification withElevationLevel(ElevationLevel elevationLevel)
Set the elevationLevel property: The default value is nonAdmin.
Parameters:
Returns:
withScope
public AutoUserSpecification withScope(AutoUserScope scope)
Set the scope property: 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 start tasks.
Parameters:
Returns: