GalleriesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:galleries> attribute.

Inheritance
builtins.object
GalleriesOperations

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.

async begin_create_or_update(resource_group_name: str, gallery_name: str, gallery: _models.Gallery, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.Gallery]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

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 AsyncLROPoller that returns either Gallery or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete a Shared Image Gallery.

async begin_delete(resource_group_name: str, gallery_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Shared Image Gallery to be deleted. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Update a Shared Image Gallery.

async begin_update(resource_group_name: str, gallery_name: str, gallery: _models.GalleryUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.Gallery]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

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 AsyncLROPoller that returns either Gallery or the result of cls(response)

Exceptions

Type Description

get

Retrieves information about a Shared Image Gallery.

async get(resource_group_name: str, gallery_name: str, *, select: str | SelectPermissions | None = None, expand: str | GalleryExpandParams | None = None, **kwargs: Any) -> Gallery

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

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.

expand

The expand query option to apply on the operation. "SharingProfile/Groups" 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) -> AsyncIterable[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) -> AsyncIterable[Gallery]

Parameters

Name Description
resource_group_name
Required
str

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.v2022_01_03.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2022_01_03\\models\\__init__.py'>