Interface Workspaces
-
public interface WorkspacesResource collection API of Workspaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Workspace.DefinitionStages.Blankdefine(String name)Begins definition for a new Workspace resource.voiddeleteById(String id)Remove a workspace.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context)Remove a workspace.voiddeleteByResourceGroup(String resourceGroupName, String workspaceName)Remove a workspace.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)Remove a workspace.WorkspacegetById(String id)Get a workspace.com.azure.core.http.rest.Response<Workspace>getByIdWithResponse(String id, com.azure.core.util.Context context)Get a workspace.WorkspacegetByResourceGroup(String resourceGroupName, String workspaceName)Get a workspace.com.azure.core.http.rest.Response<Workspace>getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)Get a workspace.com.azure.core.http.rest.PagedIterable<Workspace>list()List workspaces in subscription.com.azure.core.http.rest.PagedIterable<Workspace>list(com.azure.core.util.Context context)List workspaces in subscription.com.azure.core.http.rest.PagedIterable<Workspace>listByResourceGroup(String resourceGroupName)List workspaces.com.azure.core.http.rest.PagedIterable<Workspace>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)List workspaces.
-
-
-
Method Detail
-
getByResourceGroup
Workspace getByResourceGroup(String resourceGroupName, String workspaceName)
Get a workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- Returns:
- a workspace.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Workspace> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Get a workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.context- The context to associate with this operation.- Returns:
- a workspace.
- 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
void deleteByResourceGroup(String resourceGroupName, String workspaceName)
Remove a workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Remove a workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.context- The context to associate with this operation.- Returns:
- the 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Workspace> listByResourceGroup(String resourceGroupName)
List workspaces.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- workspaceList.
- 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<Workspace> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List workspaces.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- workspaceList.
- 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<Workspace> list()
List workspaces in subscription.- Returns:
- workspaceList.
- 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
com.azure.core.http.rest.PagedIterable<Workspace> list(com.azure.core.util.Context context)
List workspaces in subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- workspaceList.
- 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
Workspace getById(String id)
Get a workspace.- Parameters:
id- the resource ID.- Returns:
- a workspace.
- 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<Workspace> getByIdWithResponse(String id, com.azure.core.util.Context context)
Get a workspace.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a workspace.
- 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
void deleteById(String id)
Remove a workspace.- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Remove a workspace.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- the 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.
-
define
Workspace.DefinitionStages.Blank define(String name)
Begins definition for a new Workspace resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new Workspace definition.
-
-