Workspaces Interface

public interface Workspaces

Resource collection API of Workspaces.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Workspace resource.

abstract void delete(String resourceGroupName, String workspaceName, Context context)

Deletes the workspace.

abstract void deleteById(String id)

Deletes the workspace.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes the workspace.

abstract void deleteByResourceGroup(String resourceGroupName, String workspaceName)

Deletes the workspace.

abstract Workspace getById(String id)

Gets the workspace.

abstract Response<Workspace> getByIdWithResponse(String id, Context context)

Gets the workspace.

abstract Workspace getByResourceGroup(String resourceGroupName, String workspaceName)

Gets the workspace.

abstract Response<Workspace> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, Context context)

Gets the workspace.

abstract PagedIterable<Workspace> list()

Gets all the workspaces within a subscription.

abstract PagedIterable<Workspace> list(Context context)

Gets all the workspaces within a subscription.

abstract PagedIterable<Workspace> listByResourceGroup(String resourceGroupName)

Gets all the workspaces within a resource group.

abstract PagedIterable<Workspace> listByResourceGroup(String resourceGroupName, Context context)

Gets all the workspaces within a resource group.

Method Details

define

public abstract 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.

delete

public abstract void delete(String resourceGroupName, String workspaceName, 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.

deleteById

public abstract void deleteById(String id)

Deletes the workspace.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes the workspace.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

deleteByResourceGroup

public abstract void deleteByResourceGroup(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.

getById

public abstract Workspace getById(String id)

Gets the workspace.

Parameters:

id - the resource ID.

Returns:

the workspace along with Response<T>.

getByIdWithResponse

public abstract Response<Workspace> getByIdWithResponse(String id, Context context)

Gets the workspace.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the workspace along with Response<T>.

getByResourceGroup

public abstract Workspace 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.

getByResourceGroupWithResponse

public abstract Response<Workspace> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, 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<T>.

list

public abstract PagedIterable<Workspace> list()

Gets all the workspaces within a subscription.

Returns:

all the workspaces within a subscription as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Workspace> list(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<T>.

listByResourceGroup

public abstract PagedIterable<Workspace> 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<T>.

listByResourceGroup

public abstract PagedIterable<Workspace> listByResourceGroup(String resourceGroupName, 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<T>.

Applies to