C# Class Microsoft.Azure.Commands.Sql.ElasticPool.Services.AzureSqlElasticPoolAdapter

Adapter for ElasticPool operations
Mostrar archivo Open project: Azure/azure-powershell

Private Properties

Property Type Description
CreateActivityModelFromResponse Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel
CreateDatabaseActivityModelFromResponse Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel
CreateElasticPoolModelFromResponse Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel
GetElasticPool Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel
GetElasticPoolActivity IList
ListElasticPoolDatabaseActivity IList
ListElasticPoolDatabases ICollection
ListElasticPools ICollection
UpsertElasticPool Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel

Public Methods

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

Constructs a database adapter

GetElasticPoolDatabase ( string resourceGroupName, string serverName, string poolName, string databaseName ) : AzureSqlDatabaseModel

Gets a database in an elastic pool

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

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

Deletes a database

Private Methods

Method Description
CreateActivityModelFromResponse ( Microsoft.Azure.Management.Sql.Models.ElasticPoolActivity model ) : AzureSqlElasticPoolActivityModel

Converts a ElascitPoolAcitivy model to the powershell model.

CreateDatabaseActivityModelFromResponse ( Microsoft.Azure.Management.Sql.Models.ElasticPoolDatabaseActivity model ) : AzureSqlDatabaseActivityModel

Converts a model received from the server to a powershell model

CreateElasticPoolModelFromResponse ( string resourceGroup, string serverName, Management pool ) : AzureSqlElasticPoolModel

Converts the response from the service to a powershell database object

GetElasticPool ( string resourceGroupName, string serverName, string poolName ) : AzureSqlElasticPoolModel

Gets an Azure Sql Database ElasticPool by name.

GetElasticPoolActivity ( string resourceGroupName, string serverName, string poolName ) : IList

Gets a list of Elastic Pool Activity

ListElasticPoolDatabaseActivity ( string resourceGroupName, string serverName, string poolName ) : IList

Gets a list of Elastic Pool Database Activity

ListElasticPoolDatabases ( string resourceGroupName, string serverName, string poolName ) : ICollection

Gets a list of Azure Sql Databases in an ElasticPool.

ListElasticPools ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Databases ElasticPool.

UpsertElasticPool ( AzureSqlElasticPoolModel model ) : AzureSqlElasticPoolModel

Creates or updates an Azure Sql Database ElasticPool.

Method Details

AzureSqlElasticPoolAdapter() public method

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

GetElasticPoolDatabase() public method

Gets a database in an elastic pool
public GetElasticPoolDatabase ( string resourceGroupName, string serverName, string poolName, string databaseName ) : AzureSqlDatabaseModel
resourceGroupName string The name of the resource group
serverName string The name of the Azure Sql Database Server
poolName string The name of the Azure Sql Database ElasticPool
databaseName string The name of the database
return Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel

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

RemoveElasticPool() public method

Deletes a database
public RemoveElasticPool ( 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