Workspaces class
表示工作区的类。
构造函数
| Workspaces(Batch |
创建工作区。 |
方法
构造函数详细信息
Workspaces(BatchAIManagementClientContext)
创建工作区。
new Workspaces(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
可选参数
返回
Promise<WorkspacesCreateResponse>
承诺<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
可选参数
返回
Promise<WorkspacesGetResponse>
承诺<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
回调
get(string, string, ServiceCallback<Workspace>)
function get(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<Workspace>)
参数
- resourceGroupName
-
string
资源所属的资源组的名称。
- workspaceName
-
string
工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。
- callback
回调
list(ServiceCallback<WorkspaceListResult>)
function list(callback: ServiceCallback<WorkspaceListResult>)
参数
- callback
回调
list(WorkspacesListOptionalParams)
获取与给定订阅关联的工作区的列表。
function list(options?: WorkspacesListOptionalParams): Promise<WorkspacesListResponse>
参数
- options
- WorkspacesListOptionalParams
可选参数
返回
Promise<WorkspacesListResponse>
承诺<Models.WorkspacesListResponse>
list(WorkspacesListOptionalParams, ServiceCallback<WorkspaceListResult>)
function list(options: WorkspacesListOptionalParams, callback: ServiceCallback<WorkspaceListResult>)
参数
- options
- WorkspacesListOptionalParams
可选参数
- callback
回调
listByResourceGroup(string, ServiceCallback<WorkspaceListResult>)
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<WorkspaceListResult>)
参数
- resourceGroupName
-
string
资源所属的资源组的名称。
- callback
回调
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
资源所属的资源组的名称。
可选参数
- callback
回调
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
可选参数
- callback
回调
listByResourceGroupNext(string, ServiceCallback<WorkspaceListResult>)
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<WorkspaceListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
listNext(string, RequestOptionsBase)
获取与给定订阅关联的工作区的列表。
function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WorkspacesListNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
Promise<WorkspacesListNextResponse>
Promise<Models.WorkspacesListNext响应>
listNext(string, RequestOptionsBase, ServiceCallback<WorkspaceListResult>)
function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WorkspaceListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
- callback
回调
listNext(string, ServiceCallback<WorkspaceListResult>)
function listNext(nextPageLink: string, callback: ServiceCallback<WorkspaceListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
update(string, string, ServiceCallback<Workspace>)
function update(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<Workspace>)
参数
- resourceGroupName
-
string
资源所属的资源组的名称。
- workspaceName
-
string
工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。
- callback
回调
update(string, string, WorkspacesUpdateOptionalParams)
更新工作区的属性。
function update(resourceGroupName: string, workspaceName: string, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>
参数
- resourceGroupName
-
string
资源所属的资源组的名称。
- workspaceName
-
string
工作区的名称。 工作区名称只能包含字母数字字符和短划线(-)和下划线(_)的组合。 名称长度必须为 1 到 64 个字符。
- options
- WorkspacesUpdateOptionalParams
可选参数
返回
Promise<WorkspacesUpdateResponse>
承诺<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
回调