GalleryImageVersionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:gallery_image_versions> attribute.

Inheritance
builtins.object
GalleryImageVersionsOperations

Constructor

GalleryImageVersionsOperations(*args, **kwargs)

Methods

begin_create_or_update

Create or update a gallery image version.

begin_delete

Delete a gallery image version.

begin_update

Update a gallery image version.

get

Retrieves information about a gallery image version.

list_by_gallery_image

List gallery image versions in a gallery image definition.

begin_create_or_update

Create or update a gallery image version.

async begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: _models.GalleryImageVersion, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.GalleryImageVersion]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery in which the Image Definition resides. Required.

gallery_image_name
Required
str

The name of the gallery image definition in which the Image Version is to be created. Required.

gallery_image_version_name
Required
str

The name of the gallery image 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: <MajorVersion>.:code:.:code:. Required.

gallery_image_version
Required

Parameters supplied to the create or update gallery image version operation. Is either a GalleryImageVersion type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete a gallery image version.

async begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery in which the Image Definition resides. Required.

gallery_image_name
Required
str

The name of the gallery image definition in which the Image Version resides. Required.

gallery_image_version_name
Required
str

The name of the gallery image 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 image version.

async begin_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: _models.GalleryImageVersionUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.GalleryImageVersion]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery in which the Image Definition resides. Required.

gallery_image_name
Required
str

The name of the gallery image definition in which the Image Version is to be updated. Required.

gallery_image_version_name
Required
str

The name of the gallery image 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: <MajorVersion>.:code:.:code:. Required.

gallery_image_version
Required

Parameters supplied to the update gallery image version operation. Is either a GalleryImageVersionUpdate type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response)

Exceptions

Type Description

get

Retrieves information about a gallery image version.

async get(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, *, expand: str | ReplicationStatusTypes | None = None, **kwargs: Any) -> GalleryImageVersion

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery in which the Image Definition resides. Required.

gallery_image_name
Required
str

The name of the gallery image definition in which the Image Version resides. Required.

gallery_image_version_name
Required
str

The name of the gallery image 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

GalleryImageVersion or the result of cls(response)

Exceptions

Type Description

List gallery image versions in a gallery image definition.

list_by_gallery_image(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) -> AsyncIterable[GalleryImageVersion]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery in which the Image Definition resides. Required.

gallery_image_name
Required
str

The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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