SharedGalleriesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:shared_galleries> attribute.
- Inheritance
-
builtins.objectSharedGalleriesOperations
Constructor
SharedGalleriesOperations(*args, **kwargs)
Methods
get |
Get a shared gallery by subscription id or tenant id. |
list |
List shared galleries by subscription id or tenant id. |
get
Get a shared gallery by subscription id or tenant id.
get(location: str, gallery_unique_name: str, **kwargs: Any) -> SharedGallery
Parameters
Name | Description |
---|---|
location
Required
|
Resource location. Required. |
gallery_unique_name
Required
|
The unique name of the Shared Gallery. Required. |
Returns
Type | Description |
---|---|
SharedGallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List shared galleries by subscription id or tenant id.
list(location: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) -> Iterable[SharedGallery]
Parameters
Name | Description |
---|---|
location
Required
|
Resource location. 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 SharedGallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2024_03_03.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2024_03_03\\models\\__init__.py'>
Azure SDK for Python