AIProjectRoutines.CreateOrUpdateAsync Method

Definition

Create or update a routine.

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

Parameters

name
String

The unique name of the routine.

options
ProjectsRoutineOptions

The options for routine.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or options is null.

name is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to