Compartir a través de


MachineLearningRegistryCodeVersionResource.CreateOrGetStartPendingUploadAsync Method

Definition

Generate a storage location and credential for the client to upload a code asset to.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload
  • Operation Id: RegistryCodeVersions_CreateOrGetStartPendingUpload
  • Default Api Version: 2024-04-01
  • Resource: MachineLearningRegistryCodeVersionResource
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))

Parameters

body
PendingUploadRequestDto

Pending upload request object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

body is null.

Applies to