Sprog

ArmSqlModelFactory.LongTermRetentionBackupData Method

Definition

Initializes a new instance of LongTermRetentionBackupData.

public static Azure.ResourceManager.Sql.LongTermRetentionBackupData LongTermRetentionBackupData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string serverName = default, DateTimeOffset? serverCreateOn = default, string databaseName = default, DateTimeOffset? databaseDeletedOn = default, DateTimeOffset? backupOn = default, DateTimeOffset? backupExpireOn = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? backupStorageRedundancy = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default, bool? isBackupImmutable = default, Azure.ResourceManager.Sql.Models.TimeBasedImmutability? timeBasedImmutability = default, Azure.ResourceManager.Sql.Models.TimeBasedImmutabilityMode? timeBasedImmutabilityMode = default, Azure.ResourceManager.Sql.Models.SetLegalHoldImmutability? legalHoldImmutability = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier? backupStorageAccessTier = default);
static member LongTermRetentionBackupData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy> * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy> * Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutability> * Nullable<Azure.ResourceManager.Sql.Models.TimeBasedImmutabilityMode> * Nullable<Azure.ResourceManager.Sql.Models.SetLegalHoldImmutability> * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageAccessTier> -> Azure.ResourceManager.Sql.LongTermRetentionBackupData
Public Shared Function LongTermRetentionBackupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional serverName As String = Nothing, Optional serverCreateOn As Nullable(Of DateTimeOffset) = Nothing, Optional databaseName As String = Nothing, Optional databaseDeletedOn As Nullable(Of DateTimeOffset) = Nothing, Optional backupOn As Nullable(Of DateTimeOffset) = Nothing, Optional backupExpireOn As Nullable(Of DateTimeOffset) = Nothing, Optional backupStorageRedundancy As Nullable(Of SqlBackupStorageRedundancy) = Nothing, Optional requestedBackupStorageRedundancy As Nullable(Of SqlBackupStorageRedundancy) = Nothing, Optional isBackupImmutable As Nullable(Of Boolean) = Nothing, Optional timeBasedImmutability As Nullable(Of TimeBasedImmutability) = Nothing, Optional timeBasedImmutabilityMode As Nullable(Of TimeBasedImmutabilityMode) = Nothing, Optional legalHoldImmutability As Nullable(Of SetLegalHoldImmutability) = Nothing, Optional backupStorageAccessTier As Nullable(Of SqlBackupStorageAccessTier) = Nothing) As LongTermRetentionBackupData

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.

serverName
String

The server name that the backup database belong to.

serverCreateOn
Nullable<DateTimeOffset>

The create time of the server.

databaseName
String

The name of the database the backup belong to.

databaseDeletedOn
Nullable<DateTimeOffset>

The delete time of the database.

backupOn
Nullable<DateTimeOffset>

The time the backup was taken.

backupExpireOn
Nullable<DateTimeOffset>

The time the long term retention backup will expire.

backupStorageRedundancy
Nullable<SqlBackupStorageRedundancy>

The storage redundancy type of the backup.

requestedBackupStorageRedundancy
Nullable<SqlBackupStorageRedundancy>

The storage redundancy type of the backup.

isBackupImmutable
Nullable<Boolean>

The setting whether the LTR backup is immutable.

timeBasedImmutability
Nullable<TimeBasedImmutability>

The setting for whether or not time-based immutability is enabled for the LTR backup. When time-based immutability is enabled and locked, the backup cannot be deleted until BackupExpirationTime.

timeBasedImmutabilityMode
Nullable<TimeBasedImmutabilityMode>

The time-based immutability mode. Only applicable if time-based immutability is enabled.

legalHoldImmutability
Nullable<SetLegalHoldImmutability>

The setting for whether LegalHold is enabled or disabled on the LTR backup. When LegalHold is enabled, the backup cannot be deleted until the LegalHold is removed.

backupStorageAccessTier
Nullable<SqlBackupStorageAccessTier>

The BackupStorageAccessTier for the LTR backup.

Returns

A new LongTermRetentionBackupData instance for mocking.

Applies to