Share via


AIProjectDatasetsOperations.PendingUpload Method

Definition

Overloads

PendingUpload(String, String, PendingUploadConfiguration, CancellationToken)

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

PendingUpload(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.

PendingUpload(String, String, PendingUploadConfiguration, CancellationToken)

Source:
AIProjectDatasetsOperations.cs

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

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

PendingUpload(String, String, BinaryContent, RequestOptions)

Source:
AIProjectDatasetsOperations.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.ClientModel.ClientResult PendingUpload(string name, string version, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member PendingUpload : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.PendingUpload : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function PendingUpload (name As String, version As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As 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