SoftDeletePolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains information about the soft deletion policy of the gallery.
public class SoftDeletePolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.SoftDeletePolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.SoftDeletePolicy>
type SoftDeletePolicy = class
interface IJsonModel<SoftDeletePolicy>
interface IPersistableModel<SoftDeletePolicy>
Public Class SoftDeletePolicy
Implements IJsonModel(Of SoftDeletePolicy), IPersistableModel(Of SoftDeletePolicy)
- Inheritance
-
SoftDeletePolicy
- Implements
Constructors
| Name | Description |
|---|---|
| SoftDeletePolicy() |
Initializes a new instance of SoftDeletePolicy. |
Properties
| Name | Description |
|---|---|
| GracePeriodInDays |
The grace period in days for a simulated hard-deleted resource. During this period the gallery image version is unusable but can still be recovered if required. After this period elapses, the gallery image version is permanently (hard) deleted. |
| IsSoftDeleteEnabled |
Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. |
| RetentionPeriodInDays |
The retention period in days for a soft-deleted resource. After this period elapses, the soft-deleted gallery image version transitions to a simulated hard-deleted state. |