GalleryImageVersionsOperations Class

GalleryImageVersionsOperations 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.object
GalleryImageVersionsOperations

Constructor

GalleryImageVersionsOperations(client, config, serializer, deserializer) -> None

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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.

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: azure.mgmt.compute.v2019_12_01.models._models_py3.GalleryImageVersion, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.GalleryImageVersion')]

Parameters

resource_group_name
str
Required

The name of the resource group.

gallery_name
str
Required

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

gallery_image_name
str
Required

The name of the gallery Image Definition in which the Image Version is to be created.

gallery_image_version_name
str
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: <MajorVersion>.:code:.:code:.

gallery_image_version
GalleryImageVersion
Required

Parameters supplied to the create or update gallery Image Version operation.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

Delete a gallery Image Version.

begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[NoneType]

Parameters

resource_group_name
str
Required

The name of the resource group.

gallery_name
str
Required

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

gallery_image_name
str
Required

The name of the gallery Image Definition in which the Image Version resides.

gallery_image_version_name
str
Required

The name of the gallery Image Version to be deleted.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: azure.mgmt.compute.v2019_12_01.models._models_py3.GalleryImageVersionUpdate, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.GalleryImageVersion')]

Parameters

resource_group_name
str
Required

The name of the resource group.

gallery_name
str
Required

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

gallery_image_name
str
Required

The name of the gallery Image Definition in which the Image Version is to be updated.

gallery_image_version_name
str
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: <MajorVersion>.:code:.:code:.

gallery_image_version
GalleryImageVersionUpdate
Required

Parameters supplied to the update gallery Image Version operation.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: typing.Union[str, _ForwardRef('_models.ReplicationStatusTypes'), NoneType] = None, **kwargs: typing.Any) -> azure.mgmt.compute.v2019_12_01.models._models_py3.GalleryImageVersion

Parameters

resource_group_name
str
Required

The name of the resource group.

gallery_name
str
Required

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

gallery_image_name
str
Required

The name of the gallery Image Definition in which the Image Version resides.

gallery_image_version_name
str
Required

The name of the gallery Image Version to be retrieved.

expand
str or ReplicationStatusTypes
default value: None

The expand expression to apply on the operation.

cls
callable

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

Returns

GalleryImageVersion, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.GalleryImageVersionList')]

Parameters

resource_group_name
str
Required

The name of the resource group.

gallery_name
str
Required

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

gallery_image_name
str
Required

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

cls
callable

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

Returns

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

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

Attributes

models

models = <module 'azure.mgmt.compute.v2019_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2019_12_01\\models\\__init__.py'>