Interface WorkspacesClient


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

    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<WorkspaceInner> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
      Gets the 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 workspace along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName)
      Gets the workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      the workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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 workspaceName)
      Deletes the workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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 workspaceName, com.azure.core.util.Context context)
      Deletes the 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 SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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)
      Deletes the 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.
      ErrorInfoException - 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, com.azure.core.util.Context context)
      Deletes the 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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<WorkspaceInner>,WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters)
      Creates a new workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - Parameters supplied to the create or update a workspace.
      Returns:
      the SyncPoller for polling of information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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<WorkspaceInner>,WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters, com.azure.core.util.Context context)
      Creates a new workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - Parameters supplied to the create or update a workspace.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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 parameters)
      Creates a new workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - Parameters supplied to the create or update a workspace.
      Returns:
      information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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 parameters, com.azure.core.util.Context context)
      Creates a new workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - Parameters supplied to the create or update a workspace.
      context - The context to associate with this operation.
      Returns:
      information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkspaceInner>,WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName, WorkspaceUpdate parameters)
      Updates a workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - The update to the workspace.
      Returns:
      the SyncPoller for polling of information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WorkspaceInner>,WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName, WorkspaceUpdate parameters, com.azure.core.util.Context context)
      Updates a workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - The update to the workspace.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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, WorkspaceUpdate parameters)
      Updates a workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - The update to the workspace.
      Returns:
      information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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, WorkspaceUpdate parameters, com.azure.core.util.Context context)
      Updates a workspace.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      parameters - The update to the workspace.
      context - The context to associate with this operation.
      Returns:
      information about workspace.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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)
      Gets all the workspaces within a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      all the workspaces within a resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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)
      Gets all the workspaces within 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:
      all the workspaces within a resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - 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()
      Gets all the workspaces within a subscription.
      Returns:
      all the workspaces within a subscription as paginated response with PagedIterable.
      Throws:
      ErrorInfoException - 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)
      Gets all the workspaces within a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all the workspaces within a subscription as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ErrorInfoException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.