你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmSqlModelFactory.LongTermRetentionPolicyData 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.
Overloads
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
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- 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.
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