Exemplo n.º 1
0
 /// <summary>
 /// Updates a database recommended action.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='advisorName'>
 /// The name of the Database Advisor.
 /// </param>
 /// <param name='recommendedActionName'>
 /// The name of Database Recommended Action.
 /// </param>
 /// <param name='parameters'>
 /// The requested recommended action resource state.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RecommendedAction> UpdateAsync(this IDatabaseRecommendedActionsOperations operations, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName, RecommendedAction parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, advisorName, recommendedActionName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets list of Database Recommended Actions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='advisorName'>
 /// The name of the Database Advisor.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <RecommendedAction> > ListByDatabaseAdvisorAsync(this IDatabaseRecommendedActionsOperations operations, string resourceGroupName, string serverName, string databaseName, string advisorName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDatabaseAdvisorWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, advisorName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets list of Database Recommended Actions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='advisorName'>
 /// The name of the Database Advisor.
 /// </param>
 public static IList <RecommendedAction> ListByDatabaseAdvisor(this IDatabaseRecommendedActionsOperations operations, string resourceGroupName, string serverName, string databaseName, string advisorName)
 {
     return(operations.ListByDatabaseAdvisorAsync(resourceGroupName, serverName, databaseName, advisorName).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Updates a database recommended action.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='advisorName'>
 /// The name of the Database Advisor.
 /// </param>
 /// <param name='recommendedActionName'>
 /// The name of Database Recommended Action.
 /// </param>
 /// <param name='parameters'>
 /// The requested recommended action resource state.
 /// </param>
 public static RecommendedAction Update(this IDatabaseRecommendedActionsOperations operations, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName, RecommendedAction parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, serverName, databaseName, advisorName, recommendedActionName, parameters).GetAwaiter().GetResult());
 }