Compartilhar via


ArmSqlModelFactory.LongTermRetentionPolicyData Method

Definition

Overloads

LongTermRetentionPolicyData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<Boolean>, Nullable<SqlBackupStorageAccessTier>, String, String, String, Nullable<Int32>)

Initializes a new instance of LongTermRetentionPolicyData.

LongTermRetentionPolicyData(ResourceIdentifier, String, ResourceType, SystemData, String, String, String, Nullable<Int32>)

LongTermRetentionPolicyData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<Boolean>, Nullable<SqlBackupStorageAccessTier>, String, String, String, Nullable<Int32>)

Source:
ArmSqlModelFactory.cs

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, bool? makeBackupsImmutable = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier? backupStorageAccessTier = 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<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier> * 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 makeBackupsImmutable As Nullable(Of Boolean) = Nothing, Optional backupStorageAccessTier As Nullable(Of SqlBackupStorageAccessTier) = 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.

makeBackupsImmutable
Nullable<Boolean>

The setting whether to make LTR backups immutable.

backupStorageAccessTier
Nullable<SqlBackupStorageAccessTier>

The BackupStorageAccessTier for the LTR backups.

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

LongTermRetentionPolicyData(ResourceIdentifier, String, ResourceType, SystemData, String, String, String, Nullable<Int32>)

Source:
ArmSqlModelFactory.cs
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, 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 * 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 weeklyRetention As String = Nothing, Optional monthlyRetention As String = Nothing, Optional yearlyRetention As String = Nothing, Optional weekOfYear As Nullable(Of Integer) = Nothing) As LongTermRetentionPolicyData

Parameters

name
String
resourceType
ResourceType
systemData
SystemData
weeklyRetention
String
monthlyRetention
String
yearlyRetention
String
weekOfYear
Nullable<Int32>

Returns

Applies to