SharedGalleryImagesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:shared_gallery_images> attribute.
- Inheritance
-
builtins.objectSharedGalleryImagesOperations
Constructor
SharedGalleryImagesOperations(*args, **kwargs)
Methods
get |
Get a shared gallery image by subscription id or tenant id. |
list |
List shared gallery images by subscription id or tenant id. |
get
Get a shared gallery image by subscription id or tenant id.
get(location: str, gallery_unique_name: str, gallery_image_name: str, **kwargs: Any) -> SharedGalleryImage
Parameters
Name | Description |
---|---|
location
Required
|
Resource location. Required. |
gallery_unique_name
Required
|
The unique name of the Shared Gallery. Required. |
gallery_image_name
Required
|
The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. Required. |
Returns
Type | Description |
---|---|
SharedGalleryImage or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List shared gallery images by subscription id or tenant id.
list(location: str, gallery_unique_name: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) -> Iterable[SharedGalleryImage]
Parameters
Name | Description |
---|---|
location
Required
|
Resource location. Required. |
gallery_unique_name
Required
|
The unique name of the Shared Gallery. 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 SharedGalleryImage 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'>
Azure SDK for Python