Lingua

AIProjectModels.StartModelPendingUploadAsync Method

Definition

Overloads

Name Description
StartModelPendingUploadAsync(String, String, ModelPendingUploadContent, CancellationToken)

Initiates a new pending upload or retrieves an existing one for the specified model version.

StartModelPendingUploadAsync(String, String, BinaryContent, RequestOptions)

[Protocol Method] Initiates a new pending upload or retrieves an existing one for the specified model version.

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

StartModelPendingUploadAsync(String, String, ModelPendingUploadContent, CancellationToken)

Source:
AIProjectModels.cs

Initiates a new pending upload or retrieves an existing one for the specified model version.

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

Parameters

name
String

Name of the model.

version
String

Version of the model.

pendingUploadRequest
ModelPendingUploadContent

The pending upload request request body.

cancellationToken
CancellationToken

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

Returns

Exceptions

name, version or pendingUploadRequest 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

StartModelPendingUploadAsync(String, String, BinaryContent, RequestOptions)

Source:
AIProjectModels.cs

[Protocol Method] Initiates a new pending upload or retrieves an existing one for the specified model 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> StartModelPendingUploadAsync(string name, string version, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member StartModelPendingUploadAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.StartModelPendingUploadAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function StartModelPendingUploadAsync (name As String, version As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

name
String

Name of the model.

version
String

Version of the model.

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