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.

async 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 type. Default value is None.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

Returns

Type Description

Application or the result of cls(response)

Exceptions

Type Description

delete

Deletes an application.

async 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.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets information about the specified application.

async 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.

Keyword-Only Parameters

Name Description
cls

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

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) -> AsyncIterable[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.

Keyword-Only Parameters

Name Description
cls

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

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.

async 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 type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

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'>