SoftDeletedResourceOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:soft_deleted_resource> attribute.

Inheritance
builtins.object
SoftDeletedResourceOperations

Constructor

SoftDeletedResourceOperations(*args, **kwargs)

Methods

list_by_artifact_name

List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image.

list_by_artifact_name

List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image.

list_by_artifact_name(resource_group_name: str, gallery_name: str, artifact_type: str, artifact_name: str, **kwargs: Any) -> Iterable[GallerySoftDeletedResource]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

gallery_name
Required
str

The name of the Gallery in which the soft-deleted resources resides. Required.

artifact_type
Required
str

The type of the artifact to be listed, such as gallery image version. Required.

artifact_name
Required
str

The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. Required.

Returns

Type Description

An iterator like instance of either GallerySoftDeletedResource 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'>