SharedGalleryImageVersionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:shared_gallery_image_versions> attribute.

Inheritance
builtins.object
SharedGalleryImageVersionsOperations

Constructor

SharedGalleryImageVersionsOperations(*args, **kwargs)

Methods

get

Get a shared gallery image version by subscription id or tenant id.

list

List shared gallery image versions by subscription id or tenant id.

get

Get a shared gallery image version by subscription id or tenant id.

async get(location: str, gallery_unique_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) -> SharedGalleryImageVersion

Parameters

Name Description
location
Required
str

Resource location. Required.

gallery_unique_name
Required
str

The unique name of the Shared Gallery. Required.

gallery_image_name
Required
str

The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. 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.

Returns

Type Description

SharedGalleryImageVersion or the result of cls(response)

Exceptions

Type Description

list

List shared gallery image versions by subscription id or tenant id.

list(location: str, gallery_unique_name: str, gallery_image_name: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) -> AsyncIterable[SharedGalleryImageVersion]

Parameters

Name Description
location
Required
str

Resource location. Required.

gallery_unique_name
Required
str

The unique name of the Shared Gallery. Required.

gallery_image_name
Required
str

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

Keyword-Only Parameters

Name Description
shared_to

The query parameter to decide what shared galleries to fetch when doing listing operations. "tenant" Default value is None.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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