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

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

Private Properties

Свойство Type Description
GetCurrentSqlClient Microsoft.Azure.Management.Sql.SqlManagementClient

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CreateCopy() public méthode

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
Résultat Management.Sql.Models.DatabaseCreateOrUpdateResponse

FailoverLink() public méthode

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
Résultat void

FailoverLinkAllowDataLoss() public méthode

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
Résultat void

GetLink() public méthode

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
Résultat Management.Sql.Models.ReplicationLink

ListLinks() public méthode

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

RemoveLink() public méthode

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
Résultat void