WorkloadClassifiers interface
Interface representing a WorkloadClassifiers.
Methods
begin |
Creates or updates a workload classifier. |
begin |
Creates or updates a workload classifier. |
begin |
Deletes a workload classifier. |
begin |
Deletes a workload classifier. |
get(string, string, string, string, string, Workload |
Gets a workload classifier |
list |
Gets the list of workload classifiers for a workload group |
Method Details
beginCreateOrUpdate(string, string, string, string, string, WorkloadClassifier, WorkloadClassifiersCreateOrUpdateOptionalParams)
Creates or updates a workload classifier.
function beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: WorkloadClassifiersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WorkloadClassifier>, WorkloadClassifier>>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifier from.
- workloadClassifierName
-
string
The name of the workload classifier to create/update.
- parameters
- WorkloadClassifier
The properties of the workload classifier.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<WorkloadClassifier>, WorkloadClassifier>>
beginCreateOrUpdateAndWait(string, string, string, string, string, WorkloadClassifier, WorkloadClassifiersCreateOrUpdateOptionalParams)
Creates or updates a workload classifier.
function beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: WorkloadClassifiersCreateOrUpdateOptionalParams): Promise<WorkloadClassifier>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifier from.
- workloadClassifierName
-
string
The name of the workload classifier to create/update.
- parameters
- WorkloadClassifier
The properties of the workload classifier.
The options parameters.
Returns
Promise<WorkloadClassifier>
beginDelete(string, string, string, string, string, WorkloadClassifiersDeleteOptionalParams)
Deletes a workload classifier.
function beginDelete(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifier from.
- workloadClassifierName
-
string
The name of the workload classifier to delete.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, string, string, WorkloadClassifiersDeleteOptionalParams)
Deletes a workload classifier.
function beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifier from.
- workloadClassifierName
-
string
The name of the workload classifier to delete.
The options parameters.
Returns
Promise<void>
get(string, string, string, string, string, WorkloadClassifiersGetOptionalParams)
Gets a workload classifier
function get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersGetOptionalParams): Promise<WorkloadClassifier>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifier from.
- workloadClassifierName
-
string
The name of the workload classifier.
The options parameters.
Returns
Promise<WorkloadClassifier>
listByWorkloadGroup(string, string, string, string, WorkloadClassifiersListByWorkloadGroupOptionalParams)
Gets the list of workload classifiers for a workload group
function listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: WorkloadClassifiersListByWorkloadGroupOptionalParams): PagedAsyncIterableIterator<WorkloadClassifier, WorkloadClassifier[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName
-
string
The name of the server.
- databaseName
-
string
The name of the database.
- workloadGroupName
-
string
The name of the workload group from which to receive the classifiers from.
The options parameters.