Compartilhar via


BatchApplicationPackageReference Class

Definition

A reference to an Package to be deployed to Compute Nodes.

public class BatchApplicationPackageReference : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.BatchApplicationPackageReference>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.BatchApplicationPackageReference>
type BatchApplicationPackageReference = class
    interface IJsonModel<BatchApplicationPackageReference>
    interface IPersistableModel<BatchApplicationPackageReference>
Public Class BatchApplicationPackageReference
Implements IJsonModel(Of BatchApplicationPackageReference), IPersistableModel(Of BatchApplicationPackageReference)
Inheritance
BatchApplicationPackageReference
Implements

Constructors

BatchApplicationPackageReference(String)

Initializes a new instance of BatchApplicationPackageReference.

Properties

ApplicationId

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}).

Version

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.

Explicit Interface Implementations

IJsonModel<BatchApplicationPackageReference>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<BatchApplicationPackageReference>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchApplicationPackageReference>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchApplicationPackageReference>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<BatchApplicationPackageReference>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to