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.

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.

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

The name of the Azure region. 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>.<MinorVersion>.<Patch>. Required.

Returns

Type Description

SharedGalleryImageVersion. The SharedGalleryImageVersion is compatible with MutableMapping

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) -> ItemPaged[SharedGalleryImageVersion]

Parameters

Name Description
location
Required
str

The name of the Azure region. 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.

Default value: None

Returns

Type Description

An iterator like instance of SharedGalleryImageVersion

Exceptions

Type Description