Interface WorkloadGroupsClient
public interface WorkloadGroupsClient
An instance of this class provides access to all the operations defined in WorkloadGroupsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters, com.azure.core.util.Context context) Creates or updates a workload group.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.beginDelete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.beginDelete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Deletes a workload group.beginDeleteAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.createOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.createOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters, com.azure.core.util.Context context) Creates or updates a workload group.createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.voidDeletes a workload group.voiddelete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Deletes a workload group.deleteAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.Gets a workload group.getAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Gets a workload group.com.azure.core.http.rest.Response<WorkloadGroupInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Gets a workload group.Mono<com.azure.core.http.rest.Response<WorkloadGroupInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Gets a workload group.com.azure.core.http.rest.PagedIterable<WorkloadGroupInner> listByDatabase(String resourceGroupName, String serverName, String databaseName) Gets the list of workload groups.com.azure.core.http.rest.PagedIterable<WorkloadGroupInner> listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets the list of workload groups.com.azure.core.http.rest.PagedFlux<WorkloadGroupInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) Gets the list of workload groups.
-
Method Details
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<WorkloadGroupInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) Gets the list of workload groups.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- the list of workload groups as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<WorkloadGroupInner> listByDatabase(String resourceGroupName, String serverName, String databaseName) Gets the list of workload groups.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- the list of workload groups as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<WorkloadGroupInner> listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets the list of workload groups.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- the list of workload groups as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<WorkloadGroupInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Gets a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.- Returns:
- a workload group along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<WorkloadGroupInner> getAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Gets a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.- Returns:
- a workload group on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<WorkloadGroupInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Gets a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.context- The context to associate with this operation.- Returns:
- a workload group along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
WorkloadGroupInner get(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Gets a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.- Returns:
- a workload group.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.- Returns:
- workload group operations for a data warehouse along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.- Returns:
- the
PollerFluxfor polling of workload group operations for a data warehouse. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.- Returns:
- the
SyncPollerfor polling of workload group operations for a data warehouse. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkloadGroupInner>, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters, com.azure.core.util.Context context) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of workload group operations for a data warehouse. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<WorkloadGroupInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.- Returns:
- workload group operations for a data warehouse on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
WorkloadGroupInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.- Returns:
- workload group operations for a data warehouse.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
WorkloadGroupInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, WorkloadGroupInner parameters, com.azure.core.util.Context context) Creates or updates a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group.parameters- The requested workload group state.context- The context to associate with this operation.- Returns:
- workload group operations for a data warehouse.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String databaseName, String workloadGroupName, com.azure.core.util.Context context) Deletes a workload group.- Parameters:
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.serverName- The name of the server.databaseName- The name of the database.workloadGroupName- The name of the workload group to delete.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-