Interface WorkspacesClient


  • public interface WorkspacesClient
    An instance of this class provides access to all the operations defined in WorkspacesClient.
    • Method Detail

      • getByResourceGroup

        WorkspaceInner 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<WorkspaceInner> 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.
      • createOrUpdate

        WorkspaceInner createOrUpdate​(String resourceGroupName,
                                      String workspaceName,
                                      WorkspaceInner workspace)
        Create or update a workspace.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        workspace - Object containing Workspace definitions.
        Returns:
        represents a Workspace definition.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<WorkspaceInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                     String workspaceName,
                                                                                     WorkspaceInner workspace,
                                                                                     com.azure.core.util.Context context)
        Create or update a workspace.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        workspace - Object containing Workspace definitions.
        context - The context to associate with this operation.
        Returns:
        represents a Workspace definition.
        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)
        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.
      • update

        WorkspaceInner update​(String resourceGroupName,
                              String workspaceName)
        Update a workspace.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        Returns:
        represents a Workspace definition.
        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.
      • updateWithResponse

        com.azure.core.http.rest.Response<WorkspaceInner> updateWithResponse​(String resourceGroupName,
                                                                             String workspaceName,
                                                                             WorkspacePatch workspace,
                                                                             com.azure.core.util.Context context)
        Update a workspace.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        workspace - Object containing Workspace definitions.
        context - The context to associate with this operation.
        Returns:
        represents a Workspace definition.
        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<WorkspaceInner> 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<WorkspaceInner> 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<WorkspaceInner> 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<WorkspaceInner> 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.