C# Class Microsoft.Azure.Commands.Sql.Service.AzureSqlDatabaseIndexRecommendationCommunicator

This class is responsible for all the REST communication with the server upgrade REST endpoints
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство Type Description
GetCurrentSqlClient Microsoft.Azure.Management.Sql.SqlManagementClient

Méthodes publiques

Méthode Description
AzureSqlDatabaseIndexRecommendationCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication

Creates a communicator for Azure Sql Databases

ListRecommendedIndexes ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : List

List all recommended indexes. If database name is null get recommendations for all databases on server.

UpdateRecommendedIndexState ( string resourceGroupName, string serverName, string databaseName, string schema, string table, string recommendedIndexName, string state, string clientRequestId ) : void

Update recommended index state

Private Methods

Méthode Description
GetCurrentSqlClient ( String clientRequestId ) : Microsoft.Azure.Management.Sql.SqlManagementClient

Retrieve the SQL Management client for the currently selected subscription, adding the session and request id tracing headers for the current cmdlet invocation.

Method Details

AzureSqlDatabaseIndexRecommendationCommunicator() public méthode

Creates a communicator for Azure Sql Databases
public AzureSqlDatabaseIndexRecommendationCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
Résultat Microsoft.Azure.Commands.Common.Authentication

ListRecommendedIndexes() public méthode

List all recommended indexes. If database name is null get recommendations for all databases on server.
public ListRecommendedIndexes ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : List
resourceGroupName string Resource group
serverName string Server name
databaseName string Database name
clientRequestId string Request id
Résultat List

UpdateRecommendedIndexState() public méthode

Update recommended index state
public UpdateRecommendedIndexState ( string resourceGroupName, string serverName, string databaseName, string schema, string table, string recommendedIndexName, string state, string clientRequestId ) : void
resourceGroupName string Resource group
serverName string Server name
databaseName string Database name
schema string Schema name
table string Table name
recommendedIndexName string Recommended index
state string State
clientRequestId string Request id
Résultat void