Lingua

AIProjectModels.GetModelCredentialsAsync Method

Definition

Overloads

Name Description
GetModelCredentialsAsync(String, String, BinaryContent, RequestOptions)

[Protocol Method] Retrieves temporary credentials for accessing the storage backing the specified model version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetModelCredentialsAsync(String, String, ModelCredentialRequest, CancellationToken)

Retrieves temporary credentials for accessing the storage backing the specified model version.

GetModelCredentialsAsync(String, String, BinaryContent, RequestOptions)

Source:
AIProjectModels.cs

[Protocol Method] Retrieves temporary credentials for accessing the storage backing the specified model version.

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

GetModelCredentialsAsync(String, String, ModelCredentialRequest, CancellationToken)

Source:
AIProjectModels.cs

Retrieves temporary credentials for accessing the storage backing the specified model version.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.DatasetCredential>> GetModelCredentialsAsync(string name, string version, Azure.AI.Projects.ModelCredentialRequest credentialRequest, System.Threading.CancellationToken cancellationToken = default);
abstract member GetModelCredentialsAsync : string * string * Azure.AI.Projects.ModelCredentialRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.DatasetCredential>>
override this.GetModelCredentialsAsync : string * string * Azure.AI.Projects.ModelCredentialRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.DatasetCredential>>
Public Overridable Function GetModelCredentialsAsync (name As String, version As String, credentialRequest As ModelCredentialRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of DatasetCredential))

Parameters

name
String

Name of the model.

version
String

Version of the model.

credentialRequest
ModelCredentialRequest

The credential request request body.

cancellationToken
CancellationToken

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

Returns

Exceptions

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