你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Workspaces class

表示工作区的类。

构造函数

Workspaces(BatchAIManagementClientContext)

创建工作区。

方法

beginCreate(string, string, WorkspaceCreateParameters, RequestOptionsBase)

创建工作区。

beginDeleteMethod(string, string, RequestOptionsBase)

删除工作区。

create(string, string, WorkspaceCreateParameters, RequestOptionsBase)

创建工作区。

deleteMethod(string, string, RequestOptionsBase)

删除工作区。

get(string, string, RequestOptionsBase)

获取有关工作区的信息。

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

获取与给定订阅关联的工作区的列表。

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

获取指定资源组中的工作区列表。

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

获取指定资源组中的工作区列表。

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

获取与给定订阅关联的工作区的列表。

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

更新工作区的属性。

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

构造函数详细信息

Workspaces(BatchAIManagementClientContext)

创建工作区。

new Workspaces(client: BatchAIManagementClientContext)

参数

client
BatchAIManagementClientContext

对服务客户端的引用。

方法详细信息

beginCreate(string, string, WorkspaceCreateParameters, RequestOptionsBase)

创建工作区。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

parameters
WorkspaceCreateParameters

工作区创建参数。

options
RequestOptionsBase

可选参数

返回

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

承诺<msRestAzure.LROPoller>

beginDeleteMethod(string, string, RequestOptionsBase)

删除工作区。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
RequestOptionsBase

可选参数

返回

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

承诺<msRestAzure.LROPoller>

create(string, string, WorkspaceCreateParameters, RequestOptionsBase)

创建工作区。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

parameters
WorkspaceCreateParameters

工作区创建参数。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WorkspacesCreateResponse>

deleteMethod(string, string, RequestOptionsBase)

删除工作区。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

get(string, string, RequestOptionsBase)

获取有关工作区的信息。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
RequestOptionsBase

可选参数

返回

承诺<Models.WorkspacesGetResponse>

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

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Workspace>

回调

get(string, string, ServiceCallback<Workspace>)

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

callback

ServiceCallback<Workspace>

回调

list(ServiceCallback<WorkspaceListResult>)

function list(callback: ServiceCallback<WorkspaceListResult>)

参数

list(WorkspacesListOptionalParams)

获取与给定订阅关联的工作区的列表。

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

参数

options
WorkspacesListOptionalParams

可选参数

返回

承诺<Models.WorkspacesListResponse>

list(WorkspacesListOptionalParams, ServiceCallback<WorkspaceListResult>)

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

参数

options
WorkspacesListOptionalParams

可选参数

listByResourceGroup(string, ServiceCallback<WorkspaceListResult>)

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

参数

resourceGroupName

string

资源所属的资源组的名称。

listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams)

获取指定资源组中的工作区列表。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

返回

承诺<Models.WorkspacesListByResourceGroupResponse>

listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams, ServiceCallback<WorkspaceListResult>)

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

参数

resourceGroupName

string

资源所属的资源组的名称。

listByResourceGroupNext(string, RequestOptionsBase)

获取指定资源组中的工作区列表。

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

Promise<Models.WorkspacesListByResourceGroupNext响应>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listByResourceGroupNext(string, ServiceCallback<WorkspaceListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

listNext(string, RequestOptionsBase)

获取与给定订阅关联的工作区的列表。

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

Promise<Models.WorkspacesListNext响应>

listNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listNext(string, ServiceCallback<WorkspaceListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

update(string, string, ServiceCallback<Workspace>)

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

callback

ServiceCallback<Workspace>

回调

update(string, string, WorkspacesUpdateOptionalParams)

更新工作区的属性。

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
WorkspacesUpdateOptionalParams

可选参数

返回

承诺<Models.WorkspacesUpdateResponse>

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

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

参数

resourceGroupName

string

资源所属的资源组的名称。

workspaceName

string

工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。

options
WorkspacesUpdateOptionalParams

可选参数

callback

ServiceCallback<Workspace>

回调