Workspaces class

Class representing a Workspaces.

Constructors

Workspaces(BatchAIManagementClientContext)

Create a Workspaces.

Methods

beginCreate(string, string, WorkspaceCreateParameters, RequestOptionsBase)

Creates a Workspace.

beginDeleteMethod(string, string, RequestOptionsBase)

Deletes a Workspace.

create(string, string, WorkspaceCreateParameters, RequestOptionsBase)

Creates a Workspace.

deleteMethod(string, string, RequestOptionsBase)

Deletes a Workspace.

get(string, string, RequestOptionsBase)

Gets information about a Workspace.

get(string, string, RequestOptionsBase, ServiceCallback<Workspace>)
get(string, string, ServiceCallback<Workspace>)
list(ServiceCallback<WorkspaceListResult>)
list(WorkspacesListOptionalParams)

Gets a list of Workspaces associated with the given subscription.

list(WorkspacesListOptionalParams, ServiceCallback<WorkspaceListResult>)
listByResourceGroup(string, ServiceCallback<WorkspaceListResult>)
listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams)

Gets a list of Workspaces within the specified resource group.

listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams, ServiceCallback<WorkspaceListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

Gets a list of Workspaces within the specified resource group.

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)
listByResourceGroupNext(string, ServiceCallback<WorkspaceListResult>)
listNext(string, RequestOptionsBase)

Gets a list of Workspaces associated with the given subscription.

listNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)
listNext(string, ServiceCallback<WorkspaceListResult>)
update(string, string, ServiceCallback<Workspace>)
update(string, string, WorkspacesUpdateOptionalParams)

Updates properties of a Workspace.

update(string, string, WorkspacesUpdateOptionalParams, ServiceCallback<Workspace>)

Constructor Details

Workspaces(BatchAIManagementClientContext)

Create a Workspaces.

new Workspaces(client: BatchAIManagementClientContext)

Parameters

client
BatchAIManagementClientContext

Reference to the service client.

Method Details

beginCreate(string, string, WorkspaceCreateParameters, RequestOptionsBase)

Creates a Workspace.

function beginCreate(resourceGroupName: string, workspaceName: string, parameters: WorkspaceCreateParameters, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

parameters
WorkspaceCreateParameters

Workspace creation parameters.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

beginDeleteMethod(string, string, RequestOptionsBase)

Deletes a Workspace.

function beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

create(string, string, WorkspaceCreateParameters, RequestOptionsBase)

Creates a Workspace.

function create(resourceGroupName: string, workspaceName: string, parameters: WorkspaceCreateParameters, options?: RequestOptionsBase): Promise<WorkspacesCreateResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

parameters
WorkspaceCreateParameters

Workspace creation parameters.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WorkspacesCreateResponse>

deleteMethod(string, string, RequestOptionsBase)

Deletes a Workspace.

function deleteMethod(resourceGroupName: string, workspaceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

get(string, string, RequestOptionsBase)

Gets information about a Workspace.

function get(resourceGroupName: string, workspaceName: string, options?: RequestOptionsBase): Promise<WorkspacesGetResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WorkspacesGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<Workspace>)

function get(resourceGroupName: string, workspaceName: string, options: RequestOptionsBase, callback: ServiceCallback<Workspace>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Workspace>

The callback

get(string, string, ServiceCallback<Workspace>)

function get(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<Workspace>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

callback

ServiceCallback<Workspace>

The callback

list(ServiceCallback<WorkspaceListResult>)

function list(callback: ServiceCallback<WorkspaceListResult>)

Parameters

callback

ServiceCallback<WorkspaceListResult>

The callback

list(WorkspacesListOptionalParams)

Gets a list of Workspaces associated with the given subscription.

function list(options?: WorkspacesListOptionalParams): Promise<WorkspacesListResponse>

Parameters

options
WorkspacesListOptionalParams

The optional parameters

Returns

Promise<Models.WorkspacesListResponse>

list(WorkspacesListOptionalParams, ServiceCallback<WorkspaceListResult>)

function list(options: WorkspacesListOptionalParams, callback: ServiceCallback<WorkspaceListResult>)

Parameters

options
WorkspacesListOptionalParams

The optional parameters

callback

ServiceCallback<WorkspaceListResult>

The callback

listByResourceGroup(string, ServiceCallback<WorkspaceListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<WorkspaceListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

callback

ServiceCallback<WorkspaceListResult>

The callback

listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams)

Gets a list of Workspaces within the specified resource group.

function listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): Promise<WorkspacesListByResourceGroupResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

options
WorkspacesListByResourceGroupOptionalParams

The optional parameters

Returns

Promise<Models.WorkspacesListByResourceGroupResponse>

listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams, ServiceCallback<WorkspaceListResult>)

function listByResourceGroup(resourceGroupName: string, options: WorkspacesListByResourceGroupOptionalParams, callback: ServiceCallback<WorkspaceListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

options
WorkspacesListByResourceGroupOptionalParams

The optional parameters

callback

ServiceCallback<WorkspaceListResult>

The callback

listByResourceGroupNext(string, RequestOptionsBase)

Gets a list of Workspaces within the specified resource group.

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WorkspacesListByResourceGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WorkspacesListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WorkspaceListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WorkspaceListResult>

The callback

listByResourceGroupNext(string, ServiceCallback<WorkspaceListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<WorkspaceListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WorkspaceListResult>

The callback

listNext(string, RequestOptionsBase)

Gets a list of Workspaces associated with the given subscription.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WorkspacesListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WorkspacesListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WorkspaceListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WorkspaceListResult>

The callback

listNext(string, ServiceCallback<WorkspaceListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<WorkspaceListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WorkspaceListResult>

The callback

update(string, string, ServiceCallback<Workspace>)

function update(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<Workspace>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

callback

ServiceCallback<Workspace>

The callback

update(string, string, WorkspacesUpdateOptionalParams)

Updates properties of a Workspace.

function update(resourceGroupName: string, workspaceName: string, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
WorkspacesUpdateOptionalParams

The optional parameters

Returns

Promise<Models.WorkspacesUpdateResponse>

update(string, string, WorkspacesUpdateOptionalParams, ServiceCallback<Workspace>)

function update(resourceGroupName: string, workspaceName: string, options: WorkspacesUpdateOptionalParams, callback: ServiceCallback<Workspace>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
WorkspacesUpdateOptionalParams

The optional parameters

callback

ServiceCallback<Workspace>

The callback