ProjectEvaluators.StartPendingUploadAsync 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 |
|---|---|
| StartPendingUploadAsync(String, String, PendingUploadConfiguration, Nullable<FoundryFeaturesOptInKeys>, CancellationToken) |
Start a new or get an existing pending upload of an evaluator for a specific version. |
| StartPendingUploadAsync(String, String, BinaryContent, String, RequestOptions) |
[Protocol Method] Start a new or get an existing pending upload of an evaluator for a specific version.
|
StartPendingUploadAsync(String, String, PendingUploadConfiguration, Nullable<FoundryFeaturesOptInKeys>, CancellationToken)
- Source:
- ProjectEvaluators.cs
Start a new or get an existing pending upload of an evaluator for a specific version.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>> StartPendingUploadAsync(string name, string version, Azure.AI.Projects.PendingUploadConfiguration pendingUploadRequest, Azure.AI.Projects.FoundryFeaturesOptInKeys? foundryFeatures = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartPendingUploadAsync : string * string * Azure.AI.Projects.PendingUploadConfiguration * Nullable<Azure.AI.Projects.FoundryFeaturesOptInKeys> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>>
override this.StartPendingUploadAsync : string * string * Azure.AI.Projects.PendingUploadConfiguration * Nullable<Azure.AI.Projects.FoundryFeaturesOptInKeys> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.PendingUploadResult>>
Public Overridable Function StartPendingUploadAsync (name As String, version As String, pendingUploadRequest As PendingUploadConfiguration, Optional foundryFeatures As Nullable(Of FoundryFeaturesOptInKeys) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of PendingUploadResult))
Parameters
- name
- String
- version
- String
The specific version id of the EvaluatorVersion to operate on.
- pendingUploadRequest
- PendingUploadConfiguration
The pending upload 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 pendingUploadRequest 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
StartPendingUploadAsync(String, String, BinaryContent, String, RequestOptions)
- Source:
- ProjectEvaluators.cs
[Protocol Method] Start a new or get an existing pending upload of an evaluator for a specific 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> StartPendingUploadAsync(string name, string version, System.ClientModel.BinaryContent content, string foundryFeatures = default, System.ClientModel.Primitives.RequestOptions options = default);
abstract member StartPendingUploadAsync : string * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.StartPendingUploadAsync : string * string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function StartPendingUploadAsync (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.