Share via


DatasetsOperations.PendingUploadAsync Method

Definition

Overloads

PendingUploadAsync(String, String, PendingUploadConfiguration, CancellationToken)

Start a new or get an existing pending upload of a dataset for a specific version.

PendingUploadAsync(String, String, BinaryContent, RequestOptions)

[Protocol Method] Start a new or get an existing pending upload of a dataset for a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

PendingUploadAsync(String, String, PendingUploadConfiguration, CancellationToken)

Source:
DatasetsOperations.cs

Start a new or get an existing pending upload of a dataset for a specific version.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>> PendingUploadAsync(string name, string version, Azure.AI.Projects.PendingUploadConfiguration configuration, System.Threading.CancellationToken cancellationToken = default);
abstract member PendingUploadAsync : string * string * Azure.AI.Projects.PendingUploadConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>>
override this.PendingUploadAsync : string * string * Azure.AI.Projects.PendingUploadConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>>
Public Overridable Function PendingUploadAsync (name As String, version As String, configuration As PendingUploadConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of PendingUploadResult))

Parameters

name
String

The name of the resource.

version
String

The specific version id of the DatasetVersion to operate on.

configuration
PendingUploadConfiguration

The pending upload request parameters.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

name, version or configuration is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

PendingUploadAsync(String, String, BinaryContent, RequestOptions)

Source:
DatasetsOperations.cs

[Protocol Method] Start a new or get an existing pending upload of a dataset for a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> PendingUploadAsync(string name, string version, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member PendingUploadAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.PendingUploadAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function PendingUploadAsync (name As String, version As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

name
String

The name of the resource.

version
String

The specific version id of the DatasetVersion to operate on.

content
BinaryContent

The content to send as the body of the request.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

name, version or content is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to