SoftDeletedResourceOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:soft_deleted_resource> attribute.
- Inheritance
-
builtins.objectSoftDeletedResourceOperations
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
|
The name of the resource group. Required. |
gallery_name
Required
|
The name of the Gallery in which the soft-deleted resources resides. Required. |
artifact_type
Required
|
The type of the artifact to be listed, such as gallery image version. Required. |
artifact_name
Required
|
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'>
Azure SDK for Python