/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { SimplePollerLike, OperationState } from "@azure/core-lro";
import {
WorkloadClassifier,
WorkloadClassifiersListByWorkloadGroupOptionalParams,
WorkloadClassifiersGetOptionalParams,
WorkloadClassifiersGetResponse,
WorkloadClassifiersCreateOrUpdateOptionalParams,
WorkloadClassifiersCreateOrUpdateResponse,
WorkloadClassifiersDeleteOptionalParams
} from "../models";
///
/** Interface representing a WorkloadClassifiers. */
export interface WorkloadClassifiers {
/**
* Gets the list of workload classifiers for a workload group
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifiers from.
* @param options The options parameters.
*/
listByWorkloadGroup(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
options?: WorkloadClassifiersListByWorkloadGroupOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a workload classifier
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifier from.
* @param workloadClassifierName The name of the workload classifier.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
workloadClassifierName: string,
options?: WorkloadClassifiersGetOptionalParams
): Promise;
/**
* Creates or updates a workload classifier.
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifier from.
* @param workloadClassifierName The name of the workload classifier to create/update.
* @param parameters The properties of the workload classifier.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
workloadClassifierName: string,
parameters: WorkloadClassifier,
options?: WorkloadClassifiersCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
WorkloadClassifiersCreateOrUpdateResponse
>
>;
/**
* Creates or updates a workload classifier.
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifier from.
* @param workloadClassifierName The name of the workload classifier to create/update.
* @param parameters The properties of the workload classifier.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
workloadClassifierName: string,
parameters: WorkloadClassifier,
options?: WorkloadClassifiersCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a workload classifier.
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifier from.
* @param workloadClassifierName The name of the workload classifier to delete.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
workloadClassifierName: string,
options?: WorkloadClassifiersDeleteOptionalParams
): Promise, void>>;
/**
* Deletes a workload classifier.
* @param 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 serverName The name of the server.
* @param databaseName The name of the database.
* @param workloadGroupName The name of the workload group from which to receive the classifier from.
* @param workloadClassifierName The name of the workload classifier to delete.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
workloadGroupName: string,
workloadClassifierName: string,
options?: WorkloadClassifiersDeleteOptionalParams
): Promise;
}