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.objectApplicationPackageOperations
Constructor
ApplicationPackageOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
|
| create |
Creates an application package record. The record contains a storageUrl where the package
should be uploaded to. Once it is uploaded the |
| 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
- 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
- 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
- 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
- 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
- maxresults
- int
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'>
Feedback
Submit and view feedback for