BatchApplicationPackageReference Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchApplicationPackageReference
- com.
Implements
public final class BatchApplicationPackageReference
implements JsonSerializable<BatchApplicationPackageReference>
A reference to an Package to be deployed to Compute Nodes.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchApplicationPackageReference(String applicationId) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| String |
getApplicationId()
Get the application |
| String |
getVersion()
Get the version property: The version of the application to deploy. |
|
Batch |
setVersion(String version)
Set the version property: The version of the application to deploy. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchApplicationPackageReference
public BatchApplicationPackageReference(String applicationId)
Creates an instance of BatchApplicationPackageReference class.
Parameters:
Method Details
fromJson
public static BatchApplicationPackageReference fromJson(JsonReader jsonReader)
Reads an instance of BatchApplicationPackageReference from the JsonReader.
Parameters:
Returns:
Throws:
getApplicationId
public String getApplicationId()
Get the applicationId property: The ID of the application to deploy. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).
Returns:
getVersion
public String getVersion()
Get the version property: The version of the application to deploy. If omitted, the default version is deployed. If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error.
Returns:
setVersion
public BatchApplicationPackageReference setVersion(String version)
Set the version property: The version of the application to deploy. If omitted, the default version is deployed. If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error.
Parameters:
Returns: