GalleriesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:galleries> attribute.
- Inheritance
-
builtins.objectGalleriesOperations
Constructor
GalleriesOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a Shared Image Gallery. |
begin_delete |
Delete a Shared Image Gallery. |
begin_update |
Update a Shared Image Gallery. |
get |
Retrieves information about a Shared Image Gallery. |
list |
List galleries under a subscription. |
list_by_resource_group |
List galleries under a resource group. |
begin_create_or_update
Create or update a Shared Image Gallery.
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery: _models.Gallery, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Gallery]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. Required. |
gallery
Required
|
Parameters supplied to the create or update Shared Image Gallery operation. Is either a Gallery type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either Gallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Delete a Shared Image Gallery.
begin_delete(resource_group_name: str, gallery_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery to be deleted. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a Shared Image Gallery.
begin_update(resource_group_name: str, gallery_name: str, gallery: _models.GalleryUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Gallery]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. Required. |
gallery
Required
|
Parameters supplied to the update Shared Image Gallery operation. Is either a GalleryUpdate type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either Gallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Retrieves information about a Shared Image Gallery.
get(resource_group_name: str, gallery_name: str, *, select: str | SelectPermissions | None = None, **kwargs: Any) -> Gallery
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Shared Image Gallery. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
select
|
The select expression to apply on the operation. "Permissions" Default value is None. |
Returns
Type | Description |
---|---|
Gallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List galleries under a subscription.
list(**kwargs: Any) -> Iterable[Gallery]
Returns
Type | Description |
---|---|
An iterator like instance of either Gallery or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_resource_group
List galleries under a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[Gallery]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either Gallery 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