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.objectGalleryImageVersionsOperations
Constructor
GalleryImageVersionsOperations(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
| 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: azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersion, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersion]
Parameters
- gallery_name
- str
The name of the Shared Image Gallery in which the Image Definition resides.
- gallery_image_name
- str
The name of the gallery Image Definition in which the Image Version is to be created.
- gallery_image_version_name
- 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:.
- gallery_image_version
- GalleryImageVersion
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
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) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- gallery_name
- str
The name of the Shared Image Gallery in which the Image Definition resides.
- gallery_image_name
- str
The name of the gallery Image Definition in which the Image Version resides.
- 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
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: azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersionUpdate, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersion]
Parameters
- gallery_name
- str
The name of the Shared Image Gallery in which the Image Definition resides.
- gallery_image_name
- str
The name of the gallery Image Definition in which the Image Version is to be updated.
- gallery_image_version_name
- 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:.
- gallery_image_version
- GalleryImageVersionUpdate
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
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: Optional[Union[str, azure.mgmt.compute.v2019_07_01.models._compute_management_client_enums.ReplicationStatusTypes]] = None, **kwargs: Any) -> azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersion
Parameters
- gallery_name
- str
The name of the Shared Image Gallery in which the Image Definition resides.
- gallery_image_name
- str
The name of the gallery Image Definition in which the Image Version resides.
- expand
- str or ReplicationStatusTypes
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
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) -> AsyncIterable[azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageVersionList]
Parameters
- gallery_name
- str
The name of the Shared Image Gallery in which the Image Definition resides.
- gallery_image_name
- str
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
Attributes
models
models = <module 'azure.mgmt.compute.v2019_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2019_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for