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

This class is responsible for all the REST communication with the audit REST endpoints
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
GetCurrentSqlClient Microsoft.Azure.Management.Sql.SqlManagementClient

Public Methods

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

Creates a communicator for Azure SQL Databases

CreateCopy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseCreateOrUpdateParameters parameters ) : Management.Sql.Models.DatabaseCreateOrUpdateResponse

Creates a copy of a Azure SQL Database

FailoverLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void

Fails over a Replication Link without data loss

FailoverLinkAllowDataLoss ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void

Fails over a Replication Link with data loss

GetLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : Management.Sql.Models.ReplicationLink

Gets the Azure SQL Database

ListLinks ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : IList

Lists Azure SQL Databases

RemoveLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void

Deletes a Replication Link

Private Methods

Method Description
GetCurrentSqlClient ( String clientRequestId ) : Microsoft.Azure.Management.Sql.SqlManagementClient

Retrieve the SQL Management client for the currently selected subscription, adding the session and request id tracing headers for the current cmdlet invocation.

Method Details

AzureSqlDatabaseReplicationCommunicator() public method

Creates a communicator for Azure SQL Databases
public AzureSqlDatabaseReplicationCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication

CreateCopy() public method

Creates a copy of a Azure SQL Database
public CreateCopy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseCreateOrUpdateParameters parameters ) : Management.Sql.Models.DatabaseCreateOrUpdateResponse
resourceGroupName string
serverName string
databaseName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.DatabaseCreateOrUpdateParameters
return Management.Sql.Models.DatabaseCreateOrUpdateResponse

FailoverLink() public method

Fails over a Replication Link without data loss
public FailoverLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void
resourceGroupName string
serverName string
databaseName string
linkId System.Guid
clientRequestId string
return void

FailoverLinkAllowDataLoss() public method

Fails over a Replication Link with data loss
public FailoverLinkAllowDataLoss ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void
resourceGroupName string
serverName string
databaseName string
linkId System.Guid
clientRequestId string
return void

GetLink() public method

Gets the Azure SQL Database
public GetLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : Management.Sql.Models.ReplicationLink
resourceGroupName string
serverName string
databaseName string
linkId System.Guid
clientRequestId string
return Management.Sql.Models.ReplicationLink

ListLinks() public method

Lists Azure SQL Databases
public ListLinks ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : IList
resourceGroupName string
serverName string
databaseName string
clientRequestId string
return IList

RemoveLink() public method

Deletes a Replication Link
public RemoveLink ( string resourceGroupName, string serverName, string databaseName, System.Guid linkId, string clientRequestId ) : void
resourceGroupName string
serverName string
databaseName string
linkId System.Guid
clientRequestId string
return void