Evaluators.GetVersionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetVersionsAsync(String, Nullable<ListVersionsRequestType>, Nullable<Int32>, CancellationToken) |
List all versions of the given evaluator. |
| GetVersionsAsync(String, String, Nullable<Int32>, RequestOptions) |
[Protocol Method] List all versions of the given evaluator
|
GetVersionsAsync(String, Nullable<ListVersionsRequestType>, Nullable<Int32>, CancellationToken)
- Source:
- Evaluators.cs
List all versions of the given evaluator.
public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.EvaluatorVersion> GetVersionsAsync(string name, Azure.AI.Projects.ListVersionsRequestType? type = default, int? limit = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVersionsAsync : string * Nullable<Azure.AI.Projects.ListVersionsRequestType> * Nullable<int> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.EvaluatorVersion>
override this.GetVersionsAsync : string * Nullable<Azure.AI.Projects.ListVersionsRequestType> * Nullable<int> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.EvaluatorVersion>
Public Overridable Function GetVersionsAsync (name As String, Optional type As Nullable(Of ListVersionsRequestType) = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of EvaluatorVersion)
Parameters
- name
- String
The name of the resource.
Filter evaluators by type. Possible values: 'all', 'custom', 'builtin'.
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
GetVersionsAsync(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.AsyncCollectionResult GetVersionsAsync(string name, string type, int? limit, System.ClientModel.Primitives.RequestOptions options);
abstract member GetVersionsAsync : string * string * Nullable<int> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
override this.GetVersionsAsync : string * string * Nullable<int> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
Public Overridable Function GetVersionsAsync (name As String, type As String, limit As Nullable(Of Integer), options As RequestOptions) As AsyncCollectionResult
Parameters
- name
- String
The name of the resource.
- type
- String
Filter evaluators by type. Possible values: 'all', 'custom', 'builtin'.
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.