ProjectEvaluators.GetCredentialsAsync Method

Definition

Overloads

Name Description
GetCredentialsAsync(String, String, EvaluatorCredentialRequest, Nullable<FoundryFeaturesOptInKeys>, CancellationToken)

Get the SAS credential to access the storage account associated with an Evaluator version.

GetCredentialsAsync(String, String, BinaryContent, String, RequestOptions)

[Protocol Method] Get the SAS credential to access the storage account associated with an Evaluator version.

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

GetCredentialsAsync(String, String, EvaluatorCredentialRequest, Nullable<FoundryFeaturesOptInKeys>, CancellationToken)

Source:
ProjectEvaluators.cs

Get the SAS credential to access the storage account associated with an Evaluator version.

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

Parameters

name
String
version
String

The specific version id of the EvaluatorVersion to operate on.

credentialRequest
EvaluatorCredentialRequest

The credential request parameters.

foundryFeatures
Nullable<FoundryFeaturesOptInKeys>

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

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

GetCredentialsAsync(String, String, BinaryContent, String, RequestOptions)

Source:
ProjectEvaluators.cs

[Protocol Method] Get the SAS credential to access the storage account associated with an Evaluator 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> GetCredentialsAsync(string name, string version, System.ClientModel.BinaryContent content, string foundryFeatures = default, System.ClientModel.Primitives.RequestOptions options = default);
abstract member GetCredentialsAsync : string * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetCredentialsAsync : string * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetCredentialsAsync (name As String, version As String, content As BinaryContent, Optional foundryFeatures As String = Nothing, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

name
String
version
String

The specific version id of the EvaluatorVersion to operate on.

content
BinaryContent

The content to send as the body of the request.

foundryFeatures
String

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

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