GalleriesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:galleries> attribute.

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
str

The name of the resource group. The name is case insensitive. Required.

gallery_name
Required
str

The name of the Shared Image Gallery. Required.

gallery
Required
Gallery or <xref:JSON> or IO[bytes]

Parameters supplied to the create or update Shared Image Gallery operation. Is one of the following types: Gallery, JSON, IO[bytes] Required.

Returns

Type Description

An instance of LROPoller that returns Gallery. The Gallery is compatible with MutableMapping

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
str

The name of the resource group. The name is case insensitive. Required.

gallery_name
Required
str

The name of the Shared Image Gallery. Required.

Returns

Type Description

An instance of LROPoller that returns None

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
str

The name of the resource group. The name is case insensitive. Required.

gallery_name
Required
str

The name of the Shared Image Gallery. Required.

gallery
Required
GalleryUpdate or <xref:JSON> or IO[bytes]

Parameters supplied to the update Shared Image Gallery operation. Is one of the following types: GalleryUpdate, JSON, IO[bytes] Required.

Returns

Type Description

An instance of LROPoller that returns Gallery. The Gallery is compatible with MutableMapping

Exceptions

Type Description

get

Retrieves information about a Shared Image Gallery.

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. The name is case insensitive. 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.

Default value: None
expand

The expand query option to apply on the operation. "SharingProfile/Groups" Default value is None.

Default value: None

Returns

Type Description

Gallery. The Gallery is compatible with MutableMapping

Exceptions

Type Description

list

List galleries under a subscription.

list(**kwargs: Any) -> ItemPaged[Gallery]

Returns

Type Description

An iterator like instance of Gallery

Exceptions

Type Description

list_by_resource_group

List galleries under a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[Gallery]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of Gallery

Exceptions

Type Description