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

Adapter for database operations
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

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

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

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
Résultat Microsoft.Azure.Commands.Common.Authentication.Models

CreateDatabaseModelFromResponse() public static méthode

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
Résultat Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

CreateExpandedDatabaseModelFromResponse() public static méthode

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
Résultat Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded

GetServerLocation() public méthode

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

RemoveDatabase() public méthode

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