Interface WorkloadSpaces
public interface WorkloadSpaces
Resource collection API of WorkloadSpaces.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new WorkloadSpace resource.voidDeletes a workload space and its owned resources.voiddeleteById(String id) Deletes a workload space and its owned resources.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a workload space and its owned resources.voiddeleteByResourceGroup(String resourceGroupName, String spaceName) Deletes a workload space and its owned resources.Gets a workload space.com.azure.core.http.rest.Response<WorkloadSpace> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a workload space.getByResourceGroup(String resourceGroupName, String spaceName) Gets a workload space.com.azure.core.http.rest.Response<WorkloadSpace> getByResourceGroupWithResponse(String resourceGroupName, String spaceName, com.azure.core.util.Context context) Gets a workload space.com.azure.core.http.rest.PagedIterable<WorkloadSpace> list()Lists workload spaces in a subscription.com.azure.core.http.rest.PagedIterable<WorkloadSpace> list(com.azure.core.util.Context context) Lists workload spaces in a subscription.com.azure.core.http.rest.PagedIterable<WorkloadSpace> listByResourceGroup(String resourceGroupName) Lists workload spaces in a resource group.com.azure.core.http.rest.PagedIterable<WorkloadSpace> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists workload spaces in a resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<WorkloadSpace> getByResourceGroupWithResponse(String resourceGroupName, String spaceName, com.azure.core.util.Context context) Gets a workload space.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.context- The context to associate with this operation.- Returns:
- a workload space 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.
-
getByResourceGroup
Gets a workload space.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.- Returns:
- a workload space.
- 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.
-
deleteByResourceGroup
Deletes a workload space and its owned resources.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.- 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
Deletes a workload space and its owned resources.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.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.
-
listByResourceGroup
Lists workload spaces in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the response of a WorkloadSpace list operation 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<WorkloadSpace> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists workload spaces in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the response of a WorkloadSpace list operation 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<WorkloadSpace> list()Lists workload spaces in a subscription.- Returns:
- the response of a WorkloadSpace list operation as paginated response with
PagedIterable. - Throws:
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
Lists workload spaces in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the response of a WorkloadSpace list operation 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
Gets a workload space.- Parameters:
id- the resource ID.- Returns:
- a workload space 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<WorkloadSpace> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a workload space.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a workload space 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
Deletes a workload space and its owned resources.- 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
Deletes a workload space and its owned resources.- 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 WorkloadSpace resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new WorkloadSpace definition.
-