AIProjectModels.GetModelVersionsAsync 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 |
|---|---|
| GetModelVersionsAsync(String, RequestOptions) |
[Protocol Method] List all versions of the given ModelVersion
|
| GetModelVersionsAsync(String, CancellationToken) |
List all versions of the given ModelVersion. |
GetModelVersionsAsync(String, RequestOptions)
- Source:
- AIProjectModels.cs
[Protocol Method] List all versions of the given ModelVersion
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetModelVersionsAsync(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member GetModelVersionsAsync : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
override this.GetModelVersionsAsync : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
Public Overridable Function GetModelVersionsAsync (name As String, options As RequestOptions) As AsyncCollectionResult
Parameters
- name
- String
The name of the resource.
- 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
GetModelVersionsAsync(String, CancellationToken)
- Source:
- AIProjectModels.cs
List all versions of the given ModelVersion.
public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.ModelVersion> GetModelVersionsAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetModelVersionsAsync : string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.ModelVersion>
override this.GetModelVersionsAsync : string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.ModelVersion>
Public Overridable Function GetModelVersionsAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of ModelVersion)
Parameters
- name
- String
The name of the resource.
- 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.