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

MachineLearningCodeVersionResource.CreateOrGetStartPendingUploadAsync 方法

定义

为客户端生成存储位置和凭据,以便将代码资产上传到其中。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/code/{name}/versions/{version}/startPendingUpload
  • 操作IdCodeVersions_CreateOrGetStartPendingUpload
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto>> CreateOrGetStartPendingUploadAsync (Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrGetStartPendingUploadAsync : Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto>>
override this.CreateOrGetStartPendingUploadAsync : Azure.ResourceManager.MachineLearning.Models.PendingUploadRequestDto * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MachineLearning.Models.PendingUploadResponseDto>>
Public Overridable Function CreateOrGetStartPendingUploadAsync (body As PendingUploadRequestDto, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PendingUploadResponseDto))

参数

body
PendingUploadRequestDto

挂起的上传请求对象。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

body 为 null。

适用于