AuthenticationTokenSettings Class
- java.
lang. Object - com.
azure. compute. batch. models. AuthenticationTokenSettings
- com.
Implements
public final class AuthenticationTokenSettings
implements JsonSerializable<AuthenticationTokenSettings>
The settings for an authentication token that the Task can use to perform Batch service operations.
Constructor Summary
| Constructor | Description |
|---|---|
| AuthenticationTokenSettings() |
Creates an instance of Authentication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Authentication |
fromJson(JsonReader jsonReader)
Reads an instance of Authentication |
|
List<Batch |
getAccess()
Get the access property: The Batch resources to which the token grants access. |
|
Authentication |
setAccess(List<BatchAccessScope> access)
Set the access property: The Batch resources to which the token grants access. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AuthenticationTokenSettings
public AuthenticationTokenSettings()
Creates an instance of AuthenticationTokenSettings class.
Method Details
fromJson
public static AuthenticationTokenSettings fromJson(JsonReader jsonReader)
Reads an instance of AuthenticationTokenSettings from the JsonReader.
Parameters:
Returns:
Throws:
getAccess
public List<BatchAccessScope> getAccess()
Get the access property: The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.
Returns:
setAccess
public AuthenticationTokenSettings setAccess(List<BatchAccessScope> access)
Set the access property: The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.
Parameters:
Returns: