Share via


Evaluators.CreateVersion Method

Definition

Overloads

Name Description
CreateVersion(String, EvaluatorVersion, CancellationToken)

Create a new EvaluatorVersion with auto incremented version id.

CreateVersion(String, BinaryContent, RequestOptions)

[Protocol Method] Create a new EvaluatorVersion with auto incremented version id

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

CreateVersion(String, EvaluatorVersion, CancellationToken)

Source:
Evaluators.cs

Create a new EvaluatorVersion with auto incremented version id.

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

Parameters

name
String

The name of the resource.

evaluatorVersion
EvaluatorVersion

Evaluator resource.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or evaluatorVersion is null.

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

Service returned a non-success status code.

Applies to

CreateVersion(String, BinaryContent, RequestOptions)

Source:
Evaluators.cs

[Protocol Method] Create a new EvaluatorVersion with auto incremented version id

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

Parameters

name
String

The name of the resource.

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 or content is null.

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

Service returned a non-success status code.

Applies to