ArmStorageModelFactory.RestorePolicy Method
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.
Initializes a new instance of RestorePolicy.
public static Azure.ResourceManager.Storage.Models.RestorePolicy RestorePolicy (bool isEnabled = false, int? days = default, DateTimeOffset? lastEnabledOn = default, DateTimeOffset? minRestoreOn = default);
static member RestorePolicy : bool * Nullable<int> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Storage.Models.RestorePolicy
Public Shared Function RestorePolicy (Optional isEnabled As Boolean = false, Optional days As Nullable(Of Integer) = Nothing, Optional lastEnabledOn As Nullable(Of DateTimeOffset) = Nothing, Optional minRestoreOn As Nullable(Of DateTimeOffset) = Nothing) As RestorePolicy
Parameters
- isEnabled
- Boolean
Blob restore is enabled if set to true.
how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- lastEnabledOn
- Nullable<DateTimeOffset>
Deprecated in favor of minRestoreTime property.
- minRestoreOn
- Nullable<DateTimeOffset>
Returns the minimum date and time that the restore can be started.
Returns
A new RestorePolicy instance for mocking.