C# Class Microsoft.Azure.Commands.Sql.Backup.Services.AzureSqlDatabaseBackupAdapter

Adapter for database backup operations
Mostrar archivo Open project: Azure/azure-powershell

Private Properties

Property Type Description
GetBackupLongTermRetentionVault Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlServerBackupLongTermRetentionVaultModel
GetDatabaseBackupLongTermRetentionPolicy Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel
GetDatabaseGeoBackupPolicy Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel
GetDeletedDatabaseBackup Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDeletedDatabaseBackupModel
GetGeoBackup Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupModel
ListDeletedDatabaseBackups ICollection
ListGeoBackups ICollection
ListRestorePoints IEnumerable
RestoreDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel
SetBackupLongTermRetentionVault Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlServerBackupLongTermRetentionVaultModel
SetDatabaseBackupLongTermRetentionPolicy Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel
SetDatabaseGeoBackupPolicy Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel

Public Methods

Method Description
AzureSqlDatabaseBackupAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models

Constructs a database backup adapter

GetDatabase ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModel

Gets a SQL database by name

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

Private Methods

Method Description
GetBackupLongTermRetentionVault ( string resourceGroup, string serverName ) : AzureSqlServerBackupLongTermRetentionVaultModel

Get a backup LongTermRetention vault for a given Azure SQL Server

GetDatabaseBackupLongTermRetentionPolicy ( string resourceGroup, string serverName, string databaseName ) : AzureSqlDatabaseBackupLongTermRetentionPolicyModel

Get a backup LongTermRetention policy for a Azure SQL Database

GetDatabaseGeoBackupPolicy ( string resourceGroup, string serverName, string databaseName ) : AzureSqlDatabaseGeoBackupPolicyModel

Get a geo backup policy for a Azure SQL Database

GetDeletedDatabaseBackup ( string resourceGroup, string serverName, string databaseName ) : AzureSqlDeletedDatabaseBackupModel

Get a restorable deleted databases for a given Sql Azure Database.

GetGeoBackup ( string resourceGroup, string serverName, string databaseName ) : AzureSqlDatabaseGeoBackupModel

Get a recoverable databases (geo backup) for a given Sql Azure Database.

ListDeletedDatabaseBackups ( string resourceGroup, string serverName ) : ICollection

Lists the restorable deleted databases for a given Sql Azure Server.

ListGeoBackups ( string resourceGroup, string serverName ) : ICollection

Lists the recoverable databases (geo backups) for a given Sql Azure Server.

ListRestorePoints ( string resourceGroup, string serverName, string databaseName ) : IEnumerable

Lists the restore points for a given Sql Azure Database.

RestoreDatabase ( string resourceGroup, System.DateTime restorePointInTime, string resourceId, AzureSqlDatabaseModel model ) : AzureSqlDatabaseModel

Restore a given Sql Azure Database

SetBackupLongTermRetentionVault ( string resourceGroup, string serverName, AzureSqlServerBackupLongTermRetentionVaultModel model ) : AzureSqlServerBackupLongTermRetentionVaultModel

Create or update a backup LongTermRetention vault for a given Azure SQL Server

SetDatabaseBackupLongTermRetentionPolicy ( string resourceGroup, string serverName, string databaseName, AzureSqlDatabaseBackupLongTermRetentionPolicyModel model ) : AzureSqlDatabaseBackupLongTermRetentionPolicyModel

Create or update a backup LongTermRetention policy for a Azure SQL Database

SetDatabaseGeoBackupPolicy ( string resourceGroup, string serverName, string databaseName, AzureSqlDatabaseGeoBackupPolicyModel model ) : AzureSqlDatabaseGeoBackupPolicyModel

Create or update a geo backup policy for a Azure SQL Database

Method Details

AzureSqlDatabaseBackupAdapter() public method

Constructs a database backup adapter
public AzureSqlDatabaseBackupAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

GetDatabase() public method

Gets a SQL database by name
public GetDatabase ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModel
resourceGroupName string The resource group the database is in
serverName string The name of the server
databaseName string The name of the database
return Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

GetServerLocation() public method

Gets the Location of the server.
public GetServerLocation ( string resourceGroupName, string serverName ) : string
resourceGroupName string The resource group the server is in
serverName string The name of the server
return string