GalleryApplicationVersionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:gallery_application_versions> attribute.
- Inheritance
-
builtins.objectGalleryApplicationVersionsOperations
Constructor
GalleryApplicationVersionsOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a gallery Application Version. |
begin_delete |
Delete a gallery Application Version. |
begin_update |
Update a gallery Application Version. |
get |
Retrieves information about a gallery Application Version. |
list_by_gallery_application |
List gallery Application Versions in a gallery Application Definition. |
begin_create_or_update
Create or update a gallery Application Version.
async begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: _models.GalleryApplicationVersion, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.GalleryApplicationVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Application Gallery in which the Application Definition resides. Required. |
gallery_application_name
Required
|
The name of the gallery Application Definition in which the Application Version is to be created. Required. |
gallery_application_version_name
Required
|
The name of the gallery Application Version to be
created. Needs to follow semantic version name pattern: The allowed characters are digit and
period. Digits must be within the range of a 32-bit integer. Format:
|
gallery_application_version
Required
|
Parameters supplied to the create or update gallery Application Version operation. Is either a GalleryApplicationVersion type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Delete a gallery Application Version.
async begin_delete(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Application Gallery in which the Application Definition resides. Required. |
gallery_application_name
Required
|
The name of the gallery Application Definition in which the Application Version resides. Required. |
gallery_application_version_name
Required
|
The name of the gallery Application Version to be deleted. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a gallery Application Version.
async begin_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: _models.GalleryApplicationVersionUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.GalleryApplicationVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Application Gallery in which the Application Definition resides. Required. |
gallery_application_name
Required
|
The name of the gallery Application Definition in which the Application Version is to be updated. Required. |
gallery_application_version_name
Required
|
The name of the gallery Application Version to be
updated. Needs to follow semantic version name pattern: The allowed characters are digit and
period. Digits must be within the range of a 32-bit integer. Format:
|
gallery_application_version
Required
|
Parameters supplied to the update gallery Application Version operation. Is either a GalleryApplicationVersionUpdate type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Retrieves information about a gallery Application Version.
async get(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, *, expand: str | ReplicationStatusTypes | None = None, **kwargs: Any) -> GalleryApplicationVersion
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Application Gallery in which the Application Definition resides. Required. |
gallery_application_name
Required
|
The name of the gallery Application Definition in which the Application Version resides. Required. |
gallery_application_version_name
Required
|
The name of the gallery Application Version to be retrieved. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
The expand expression to apply on the operation. "ReplicationStatus" Default value is None. |
Returns
Type | Description |
---|---|
GalleryApplicationVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_gallery_application
List gallery Application Versions in a gallery Application Definition.
list_by_gallery_application(resource_group_name: str, gallery_name: str, gallery_application_name: str, **kwargs: Any) -> AsyncIterable[GalleryApplicationVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Application Gallery in which the Application Definition resides. Required. |
gallery_application_name
Required
|
The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either GalleryApplicationVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2021_07_01\\models\\__init__.py'>
Azure SDK for Python