Language

ArmSqlModelFactory.ManagedInstanceLongTermRetentionPolicyData Method

Definition

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, Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier? backupStorageAccessTier = 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 ManagedInstanceLongTermRetentionPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier> * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutability> * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutabilityMode> * 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 backupStorageAccessTier As Nullable(Of SqlBackupStorageAccessTier) = 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 ManagedInstanceLongTermRetentionPolicyData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

backupStorageAccessTier
Nullable<SqlBackupStorageAccessTier>

The BackupStorageAccessTier for the LTR backups.

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

Applies to