C# Class Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Services.AzureSqlServerDisasterRecoveryConfigurationAdapter

Adapter for Server Disaster Recovery Configuration operations
Show file Open project: Azure/azure-powershell

Private Properties

Property Type Description
CreateServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
FailoverServerDisasterRecoveryConfiguration void
GetServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
ListServerDisasterRecoveryConfigurationActivity IEnumerable
ListServerDisasterRecoveryConfigurations ICollection

Public Methods

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

Constructs a Server Disaster Recovery Configuration adapter

CreateServerDisasterRecoveryConfigurationModelFromResponse ( string resourceGroup, string serverName, Management serverDisasterRecoveryConfiguration ) : AzureSqlServerDisasterRecoveryConfigurationModel

Converts the response from the service to a powershell Server Disaster Recovery Configuration object

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

RemoveServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : void

Deletes a Server Disaster Recovery Configuration

Private Methods

Method Description
CreateServerDisasterRecoveryConfiguration ( string resourceGroup, string serverName, string partnerServerId, AzureSqlServerDisasterRecoveryConfigurationModel model ) : AzureSqlServerDisasterRecoveryConfigurationModel

Creates an Azure Sql Server Disaster Recovery Configuration.

FailoverServerDisasterRecoveryConfiguration ( string resourceGroup, string serverName, AzureSqlServerDisasterRecoveryConfigurationModel model, bool allowDataLoss ) : void

Starts failover for an Azure Sql Server Disaster Recovery Configuration.

GetServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : AzureSqlServerDisasterRecoveryConfigurationModel

Gets an Azure Sql Server Disaster Recovery Configuration by name.

ListServerDisasterRecoveryConfigurationActivity ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName, System.Guid operationId ) : IEnumerable
ListServerDisasterRecoveryConfigurations ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Server DisasterRecoveryConfigurations.

Method Details

AzureSqlServerDisasterRecoveryConfigurationAdapter() public method

Constructs a Server Disaster Recovery Configuration adapter
public AzureSqlServerDisasterRecoveryConfigurationAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

CreateServerDisasterRecoveryConfigurationModelFromResponse() public static method

Converts the response from the service to a powershell Server Disaster Recovery Configuration object
public static CreateServerDisasterRecoveryConfigurationModelFromResponse ( string resourceGroup, string serverName, Management serverDisasterRecoveryConfiguration ) : AzureSqlServerDisasterRecoveryConfigurationModel
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Server
serverDisasterRecoveryConfiguration Management The service response
return Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel

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

RemoveServerDisasterRecoveryConfiguration() public method

Deletes a Server Disaster Recovery Configuration
public RemoveServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the Azure Sql Server
serverDisasterRecoveryConfigurationName string The name of the Azure Sql Server Disaster Recovery Configuration to delete
return void