ApplicationOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

BatchManagementClient's

<xref:application> attribute.

Inheritance
builtins.object
ApplicationOperations

Constructor

ApplicationOperations(*args, **kwargs)

Methods

create

Adds an application to the specified Batch account.

delete

Deletes an application.

get

Gets information about the specified application.

list

Lists all of the applications in the specified account.

update

Updates settings for the specified application.

create

Adds an application to the specified Batch account.

create(resource_group_name: str, account_name: str, application_name: str, parameters: _models.Application | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Application

Parameters

Name Description
resource_group_name
Required
str

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

account_name
Required
str

The name of the Batch account. Required.

application_name
Required
str

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

parameters
Required

The parameters for the request. Is either a Application type or a IO[bytes] type. Default value is None.

Returns

Type Description

Application or the result of cls(response)

Exceptions

Type Description

delete

Deletes an application.

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

Parameters

Name Description
resource_group_name
Required
str

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

account_name
Required
str

The name of the Batch account. Required.

application_name
Required
str

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

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets information about the specified application.

get(resource_group_name: str, account_name: str, application_name: str, **kwargs: Any) -> Application

Parameters

Name Description
resource_group_name
Required
str

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

account_name
Required
str

The name of the Batch account. Required.

application_name
Required
str

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

Returns

Type Description

Application or the result of cls(response)

Exceptions

Type Description

list

Lists all of the applications in the specified account.

list(resource_group_name: str, account_name: str, maxresults: int | None = None, **kwargs: Any) -> Iterable[Application]

Parameters

Name Description
resource_group_name
Required
str

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

account_name
Required
str

The name of the Batch account. Required.

maxresults
Required
int

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

Returns

Type Description

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

Exceptions

Type Description

update

Updates settings for the specified application.

update(resource_group_name: str, account_name: str, application_name: str, parameters: _models.Application, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Application

Parameters

Name Description
resource_group_name
Required
str

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

account_name
Required
str

The name of the Batch account. Required.

application_name
Required
str

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

parameters
Required

The parameters for the request. Is either a Application type or a IO[bytes] type. Required.

Returns

Type Description

Application or the result of cls(response)

Exceptions

Type Description

Attributes

models

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