GalleryImageVersionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:gallery_image_versions> attribute.
- Inheritance
-
builtins.objectGalleryImageVersionsOperations
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.
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) -> LROPoller[_models.GalleryImageVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery in which the Image Definition resides. Required. |
gallery_image_name
Required
|
The name of the gallery Image Definition in which the Image Version is to be created. Required. |
gallery_image_version_name
Required
|
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:
|
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 LROPoller that returns either GalleryImageVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Delete a gallery Image Version.
begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery in which the Image Definition resides. Required. |
gallery_image_name
Required
|
The name of the gallery Image Definition in which the Image Version resides. Required. |
gallery_image_version_name
Required
|
The name of the gallery Image Version to be deleted. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a gallery Image Version.
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) -> LROPoller[_models.GalleryImageVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery in which the Image Definition resides. Required. |
gallery_image_name
Required
|
The name of the gallery Image Definition in which the Image Version is to be updated. Required. |
gallery_image_version_name
Required
|
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:
|
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 LROPoller that returns either GalleryImageVersion or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Retrieves information about a gallery Image Version.
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
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery in which the Image Definition resides. Required. |
gallery_image_name
Required
|
The name of the gallery Image Definition in which the Image Version resides. Required. |
gallery_image_version_name
Required
|
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_by_gallery_image
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) -> Iterable[GalleryImageVersion]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery in which the Image Definition resides. Required. |
gallery_image_name
Required
|
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.v2019_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2019_07_01\\models\\__init__.py'>
Azure SDK for Python