C# Класс Microsoft.Azure.Commands.Sql.ReplicationLink.Services.AzureSqlDatabaseReplicationCommunicator

This class is responsible for all the REST communication with the audit REST endpoints
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetCurrentSqlClient Microsoft.Azure.Management.Sql.SqlManagementClient

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

AzureSqlDatabaseReplicationCommunicator() публичный Метод

Creates a communicator for Azure SQL Databases
public AzureSqlDatabaseReplicationCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
Результат Microsoft.Azure.Commands.Common.Authentication

CreateCopy() публичный Метод

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
Результат Management.Sql.Models.DatabaseCreateOrUpdateResponse

FailoverLink() публичный Метод

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
Результат void

FailoverLinkAllowDataLoss() публичный Метод

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
Результат void

GetLink() публичный Метод

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
Результат Management.Sql.Models.ReplicationLink

ListLinks() публичный Метод

Lists Azure SQL Databases
public ListLinks ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : IList
resourceGroupName string
serverName string
databaseName string
clientRequestId string
Результат IList

RemoveLink() публичный Метод

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
Результат void