C# Class Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Services.AzureSqlServerCommunicationLinkAdapter

Adapter for Server communication link operations
Show file Open project: Azure/azure-powershell

Private Properties

Property Type Description
CreateServerCommunicationLinkModelFromResponse Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel
GetServerCommunicationLink Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel
ListServerCommunicationLinks ICollection
UpsertServerCommunicationLink Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel

Public Methods

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

Constructs an adapter

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

RemoveServerCommunicationLink ( string resourceGroupName, string serverName, string communicationLinkName ) : void

Deletes a Server communication link

Private Methods

Method Description
CreateServerCommunicationLinkModelFromResponse ( string resourceGroup, string serverName, Management link ) : AzureSqlServerCommunicationLinkModel

Converts the response from the service to a powershell database object

GetServerCommunicationLink ( string resourceGroupName, string serverName, string communicationLinkName ) : AzureSqlServerCommunicationLinkModel

Gets a Azure Sql Server communication link by name.

ListServerCommunicationLinks ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Server communication links.

UpsertServerCommunicationLink ( AzureSqlServerCommunicationLinkModel model ) : AzureSqlServerCommunicationLinkModel

Creates or updates a Azure Sql Server communication link.

Method Details

AzureSqlServerCommunicationLinkAdapter() public method

Constructs an adapter
public AzureSqlServerCommunicationLinkAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

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

RemoveServerCommunicationLink() public method

Deletes a Server communication link
public RemoveServerCommunicationLink ( string resourceGroupName, string serverName, string communicationLinkName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the Azure Sql Database Server
communicationLinkName string The name of the Azure Sql server communication link to delete
return void