Language

AIProjectModels.CreateModelVersionRequest Method

Definition

Overloads

Name Description
CreateModelVersionRequest(String, String, ModelVersion, CancellationToken)

Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header for polling the operation status.

CreateModelVersionRequest(String, String, BinaryContent, RequestOptions)

[Protocol Method] Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header for polling the operation status.

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

CreateModelVersionRequest(String, String, ModelVersion, CancellationToken)

Source:
AIProjectModels.cs

Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header for polling the operation status.

public virtual System.ClientModel.ClientResult<Azure.AI.Projects.CreateAsyncResponse> CreateModelVersionRequest(string name, string version, Azure.AI.Projects.ModelVersion modelVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateModelVersionRequest : string * string * Azure.AI.Projects.ModelVersion * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.CreateAsyncResponse>
override this.CreateModelVersionRequest : string * string * Azure.AI.Projects.ModelVersion * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.CreateAsyncResponse>
Public Overridable Function CreateModelVersionRequest (name As String, version As String, modelVersion As ModelVersion, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of CreateAsyncResponse)

Parameters

name
String

Name of the model.

version
String

Version of the model.

modelVersion
ModelVersion

Model version to create.

cancellationToken
CancellationToken

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

Returns

Exceptions

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

CreateModelVersionRequest(String, String, BinaryContent, RequestOptions)

Source:
AIProjectModels.cs

[Protocol Method] Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header for polling the operation status.

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