Share via


ArmSqlModelFactory.LongTermRetentionPolicyData Method

Definition

Initializes a new instance of LongTermRetentionPolicyData.

public static Azure.ResourceManager.Sql.LongTermRetentionPolicyData LongTermRetentionPolicyData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Sql.Models.TimeBasedImmutability? timeBasedImmutability = default, Azure.ResourceManager.Sql.Models.TimeBasedImmutabilityMode? timeBasedImmutabilityMode = default, string weeklyRetention = default, string monthlyRetention = default, string yearlyRetention = default, int? weekOfYear = default);
static member LongTermRetentionPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutability> * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutabilityMode> * string * string * string * Nullable<int> -> Azure.ResourceManager.Sql.LongTermRetentionPolicyData
Public Shared Function LongTermRetentionPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional timeBasedImmutability As Nullable(Of TimeBasedImmutability) = Nothing, Optional timeBasedImmutabilityMode As Nullable(Of TimeBasedImmutabilityMode) = Nothing, Optional weeklyRetention As String = Nothing, Optional monthlyRetention As String = Nothing, Optional yearlyRetention As String = Nothing, Optional weekOfYear As Nullable(Of Integer) = Nothing) As LongTermRetentionPolicyData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

timeBasedImmutability
Nullable<TimeBasedImmutability>

The setting for whether to enable time-based immutability for future backups. When set, future backups will have TimeBasedImmutability enabled.

timeBasedImmutabilityMode
Nullable<TimeBasedImmutabilityMode>

The setting for time-based immutability mode for future backup (Value can be either Locked or UnLocked. Only effective if TimeBasedImmutability is enabled). Caution: Immutability of LTR backup cannot be removed if TimeBasedImmutabilityMode is Locked.

weeklyRetention
String

The weekly retention policy for an LTR backup in an ISO 8601 format.

monthlyRetention
String

The monthly retention policy for an LTR backup in an ISO 8601 format.

yearlyRetention
String

The yearly retention policy for an LTR backup in an ISO 8601 format.

weekOfYear
Nullable<Int32>

The week of year to take the yearly backup in an ISO 8601 format.

Returns

A new LongTermRetentionPolicyData instance for mocking.

Applies to