C# Class Microsoft.Azure.Commands.Sql.ReplicationLink.Services.AzureSqlDatabaseReplicationAdapter

Adapter for database operations
Datei anzeigen Open project: Azure/azure-powershell

Private Properties

Property Type Description
CheckPartnerResourceGroupValid void
CopyDatabase Microsoft.Azure.Commands.Sql.Replication.Model.AzureSqlDatabaseCopyModel
CreateDatabaseCopyModelFromDatabaseCreateOrUpdateResponse Microsoft.Azure.Commands.Sql.Replication.Model.AzureSqlDatabaseCopyModel
CreateLink Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel
CreateReplicationLinkModelFromReplicationLinkResponse Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel
FailoverLink Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel
GetDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel
GetLink Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel
GetLink Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel
GetServerLocation string
ListLinks ICollection
RemoveLink void

Public Methods

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

Constructs a database adapter

Private Methods

Method Description
CheckPartnerResourceGroupValid ( string partnerResourceGroupName ) : void
CopyDatabase ( string copyResourceGroup, string copyServerName, AzureSqlDatabaseCopyModel model ) : AzureSqlDatabaseCopyModel

Creates an Azure SQL Database Copy

CreateDatabaseCopyModelFromDatabaseCreateOrUpdateResponse ( string copyResourceGroupName, string copyServerName, string copyDatabaseName, string resourceGroupName, string serverName, string databaseName, Management response ) : AzureSqlDatabaseCopyModel

Converts the response from the service to a powershell DatabaseCopy object

CreateLink ( string resourceGroupName, string serverName, AzureReplicationLinkModel model ) : AzureReplicationLinkModel

Creates an Azure SQL Database Secondary

CreateReplicationLinkModelFromReplicationLinkResponse ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName, Management resp ) : AzureReplicationLinkModel

Converts the response from the service to a powershell Secondary Link object

FailoverLink ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName, bool allowDataLoss ) : AzureReplicationLinkModel

Finds and removes the Secondary Link by the secondary resource group and Azure SQL Server

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

Gets an Azure SQL Database by name

GetLink ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName, System.Guid linkId ) : AzureReplicationLinkModel

Gets the Secondary Link by linkId

GetLink ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName, string partnerServerName ) : AzureReplicationLinkModel

Gets the Secondary Link by the secondary resource group and Azure SQL Server

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the Azure SQL Server

ListLinks ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName ) : ICollection

Lists Azure SQL Database Secondaries for the specified primary for the specified partner resource group

RemoveLink ( string resourceGroupName, string serverName, string databaseName, string partnerResourceGroupName, string partnerServerName ) : void

Finds and removes the Secondary Link by the secondary resource group and Azure SQL Server

Method Details

AzureSqlDatabaseReplicationAdapter() public method

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