/// <summary> /// Create Or Update workload classifier /// </summary> /// <remarks> /// Create Or Update workload classifier for a Sql pool's workload group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='workloadGroupName'> /// The name of the workload group. /// </param> /// <param name='workloadClassifierName'> /// The name of the workload classifier. /// </param> /// <param name='parameters'> /// The properties of the workload classifier. /// </param> public static WorkloadClassifier BeginCreateOrUpdate(this ISqlPoolWorkloadClassifierOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Create Or Update workload classifier /// </summary> /// <remarks> /// Create Or Update workload classifier for a Sql pool's workload group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='workloadGroupName'> /// The name of the workload group. /// </param> /// <param name='workloadClassifierName'> /// The name of the workload classifier. /// </param> /// <param name='parameters'> /// The properties of the workload classifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WorkloadClassifier> BeginCreateOrUpdateAsync(this ISqlPoolWorkloadClassifierOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a workload classifier. /// </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='workloadGroupName'> /// The name of the workload group from which to receive the classifier from. /// </param> /// <param name='workloadClassifierName'> /// The name of the workload classifier to create/update. /// </param> /// <param name='parameters'> /// The properties of the workload classifier. /// </param> public static WorkloadClassifier BeginCreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult()); }