C# Class Microsoft.Azure.Commands.Sql.Database.Services.AzureSqlDatabaseAdapter

Adapter for database operations
Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
GetDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel
GetDatabaseExpanded Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded
ListDatabaseActivity IEnumerable
ListDatabases ICollection
ListDatabasesExpanded ICollection
UpsertDatabase Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

Public Methods

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

Constructs a database adapter

CreateDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModel

Converts the response from the service to a powershell database object

CreateExpandedDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModelExpanded

Converts the response from the service to a powershell database object

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

RemoveDatabase ( string resourceGroupName, string serverName, string databaseName ) : void

Deletes a database

Private Methods

Method Description
GetDatabase ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModel

Gets an Azure Sql Database by name.

GetDatabaseExpanded ( string resourceGroupName, string serverName, string databaseName ) : AzureSqlDatabaseModelExpanded

Gets an Azure Sql Database by name with additional information.

ListDatabaseActivity ( string resourceGroupName, string serverName, string elasticPoolName, string databaseName, System.Guid operationId ) : IEnumerable
ListDatabases ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Databases.

ListDatabasesExpanded ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Databases with additional information.

UpsertDatabase ( string resourceGroup, string serverName, AzureSqlDatabaseModel model ) : AzureSqlDatabaseModel

Creates or updates an Azure Sql Database.

Method Details

AzureSqlDatabaseAdapter() public method

Constructs a database adapter
public AzureSqlDatabaseAdapter ( Microsoft.Azure.Common.Authentication.Models.AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

CreateDatabaseModelFromResponse() public static method

Converts the response from the service to a powershell database object
public static CreateDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModel
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Database Server
database Management The service response
return Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

CreateExpandedDatabaseModelFromResponse() public static method

Converts the response from the service to a powershell database object
public static CreateExpandedDatabaseModelFromResponse ( string resourceGroup, string serverName, Management database ) : AzureSqlDatabaseModelExpanded
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Database Server
database Management The service response
return Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded

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

RemoveDatabase() public method

Deletes a database
public RemoveDatabase ( string resourceGroupName, string serverName, string databaseName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the Azure Sql Database Server
databaseName string The name of the Azure Sql Database to delete
return void