ArmSqlModelFactory.ManagedInstanceLongTermRetentionPolicyData Method

Definition

Initializes a new instance of ManagedInstanceLongTermRetentionPolicyData.

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

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

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 ManagedInstanceLongTermRetentionPolicyData instance for mocking.

Applies to