ApplicationPackageOperations Class

ApplicationPackageOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
ApplicationPackageOperations

Constructor

ApplicationPackageOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

activate

Activates the specified application package. This should be done after the ApplicationPackage was created and uploaded. This needs to be done before an ApplicationPackage can be used on Pools or Tasks.

create

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the ApplicationPackage needs to be activated using ApplicationPackageActive before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

delete

Deletes an application package record and its associated binary file.

get

Gets information about the specified application package.

list

Lists all of the application packages in the specified application.

activate

Activates the specified application package. This should be done after the ApplicationPackage was created and uploaded. This needs to be done before an ApplicationPackage can be used on Pools or Tasks.

async activate(resource_group_name: str, account_name: str, application_name: str, version_name: str, parameters: azure.mgmt.batch.models._models_py3.ActivateApplicationPackageParameters, **kwargs: Any) -> azure.mgmt.batch.models._models_py3.ApplicationPackage

Parameters

resource_group_name
str
Required

The name of the resource group that contains the Batch account.

account_name
str
Required

The name of the Batch account.

application_name
str
Required

The name of the application. This must be unique within the account.

version_name
str
Required

The version of the application.

parameters
ActivateApplicationPackageParameters
Required

The parameters for the request.

cls
callable

A custom type or function that will be passed the direct response

Returns

ApplicationPackage, or the result of cls(response)

Return type

Exceptions

create

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the ApplicationPackage needs to be activated using ApplicationPackageActive before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

async create(resource_group_name: str, account_name: str, application_name: str, version_name: str, parameters: Optional[azure.mgmt.batch.models._models_py3.ApplicationPackage] = None, **kwargs: Any) -> azure.mgmt.batch.models._models_py3.ApplicationPackage

Parameters

resource_group_name
str
Required

The name of the resource group that contains the Batch account.

account_name
str
Required

The name of the Batch account.

application_name
str
Required

The name of the application. This must be unique within the account.

version_name
str
Required

The version of the application.

parameters
ApplicationPackage
Required

The parameters for the request. Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

ApplicationPackage, or the result of cls(response)

Return type

Exceptions

delete

Deletes an application package record and its associated binary file.

async delete(resource_group_name: str, account_name: str, application_name: str, version_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group that contains the Batch account.

account_name
str
Required

The name of the Batch account.

application_name
str
Required

The name of the application. This must be unique within the account.

version_name
str
Required

The version of the application.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets information about the specified application package.

async get(resource_group_name: str, account_name: str, application_name: str, version_name: str, **kwargs: Any) -> azure.mgmt.batch.models._models_py3.ApplicationPackage

Parameters

resource_group_name
str
Required

The name of the resource group that contains the Batch account.

account_name
str
Required

The name of the Batch account.

application_name
str
Required

The name of the application. This must be unique within the account.

version_name
str
Required

The version of the application.

cls
callable

A custom type or function that will be passed the direct response

Returns

ApplicationPackage, or the result of cls(response)

Return type

Exceptions

list

Lists all of the application packages in the specified application.

list(resource_group_name: str, account_name: str, application_name: str, maxresults: Optional[int] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.batch.models._models_py3.ListApplicationPackagesResult]

Parameters

resource_group_name
str
Required

The name of the resource group that contains the Batch account.

account_name
str
Required

The name of the Batch account.

application_name
str
Required

The name of the application. This must be unique within the account.

maxresults
int
Required

The maximum number of items to return in the response. Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ListApplicationPackagesResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.batch.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\batch\\models\\__init__.py'>