Share via


Evaluators.GetVersions Method

Definition

Overloads

Name Description
GetVersions(String, Nullable<ListVersionsRequestType>, Nullable<Int32>, CancellationToken)

List all versions of the given evaluator.

GetVersions(String, String, Nullable<Int32>, RequestOptions)

[Protocol Method] List all versions of the given evaluator

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

GetVersions(String, Nullable<ListVersionsRequestType>, Nullable<Int32>, CancellationToken)

Source:
Evaluators.cs

List all versions of the given evaluator.

public virtual System.ClientModel.CollectionResult<Azure.AI.Projects.EvaluatorVersion> GetVersions(string name, Azure.AI.Projects.ListVersionsRequestType? type = default, int? limit = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVersions : string * Nullable<Azure.AI.Projects.ListVersionsRequestType> * Nullable<int> * System.Threading.CancellationToken -> System.ClientModel.CollectionResult<Azure.AI.Projects.EvaluatorVersion>
override this.GetVersions : string * Nullable<Azure.AI.Projects.ListVersionsRequestType> * Nullable<int> * System.Threading.CancellationToken -> System.ClientModel.CollectionResult<Azure.AI.Projects.EvaluatorVersion>
Public Overridable Function GetVersions (name As String, Optional type As Nullable(Of ListVersionsRequestType) = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As CollectionResult(Of EvaluatorVersion)

Parameters

name
String

The name of the resource.

type
Nullable<ListVersionsRequestType>

Filter evaluators by type. Possible values: 'all', 'custom', 'builtin'.

limit
Nullable<Int32>

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

cancellationToken
CancellationToken

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

Returns

Exceptions

name is null.

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

Service returned a non-success status code.

Applies to

GetVersions(String, String, Nullable<Int32>, RequestOptions)

Source:
Evaluators.cs

[Protocol Method] List all versions of the given evaluator

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.Primitives.CollectionResult GetVersions(string name, string type, int? limit, System.ClientModel.Primitives.RequestOptions options);
abstract member GetVersions : string * string * Nullable<int> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.CollectionResult
override this.GetVersions : string * string * Nullable<int> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.CollectionResult
Public Overridable Function GetVersions (name As String, type As String, limit As Nullable(Of Integer), options As RequestOptions) As CollectionResult

Parameters

name
String

The name of the resource.

type
String

Filter evaluators by type. Possible values: 'all', 'custom', 'builtin'.

limit
Nullable<Int32>

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

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

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

Service returned a non-success status code.

Applies to