Interface SqlPoolWorkloadGroups
public interface SqlPoolWorkloadGroups
Resource collection API of SqlPoolWorkloadGroups.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new WorkloadGroup resource.void
delete
(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) Remove workload groupvoid
delete
(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, com.azure.core.util.Context context) Remove workload groupvoid
deleteById
(String id) Remove workload groupvoid
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Remove workload groupSql pool's workload groupSql pool's workload groupcom.azure.core.http.rest.Response<WorkloadGroup>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Sql pool's workload groupcom.azure.core.http.rest.Response<WorkloadGroup>
getWithResponse
(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, com.azure.core.util.Context context) Sql pool's workload groupcom.azure.core.http.rest.PagedIterable<WorkloadGroup>
Sql pool's workload groupscom.azure.core.http.rest.PagedIterable<WorkloadGroup>
list
(String resourceGroupName, String workspaceName, String sqlPoolName, com.azure.core.util.Context context) Sql pool's workload groups
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<WorkloadGroup> getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, com.azure.core.util.Context context) Sql pool's workload groupGet a Sql pool's workload group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.workloadGroupName
- The name of the workload group.context
- The context to associate with this operation.- Returns:
- a Sql pool's 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
WorkloadGroup get(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) Sql pool's workload groupGet a Sql pool's workload group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.workloadGroupName
- The name of the workload group.- Returns:
- a Sql pool's 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.
-
delete
void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) Remove workload groupRemove Sql pool's workload group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.workloadGroupName
- The name of the 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.
-
delete
void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, com.azure.core.util.Context context) Remove workload groupRemove Sql pool's workload group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.workloadGroupName
- The name of the workload group.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.
-
list
com.azure.core.http.rest.PagedIterable<WorkloadGroup> list(String resourceGroupName, String workspaceName, String sqlPoolName) Sql pool's workload groupsGet list of Sql pool's workload groups.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.- Returns:
- list of Sql pool's 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.
-
list
com.azure.core.http.rest.PagedIterable<WorkloadGroup> list(String resourceGroupName, String workspaceName, String sqlPoolName, com.azure.core.util.Context context) Sql pool's workload groupsGet list of Sql pool's workload groups.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.context
- The context to associate with this operation.- Returns:
- list of Sql pool's 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.
-
getById
Sql pool's workload groupGet a Sql pool's workload group.
- Parameters:
id
- the resource ID.- Returns:
- a Sql pool's 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<WorkloadGroup> getByIdWithResponse(String id, com.azure.core.util.Context context) Sql pool's workload groupGet a Sql pool's workload group.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a Sql pool's 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.
-
deleteById
Remove workload groupRemove Sql pool's workload group.
- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Remove workload groupRemove Sql pool's workload group.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new WorkloadGroup resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new WorkloadGroup definition.
-