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.

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. 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 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
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 LROPoller that returns either None 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, **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.

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