EvaluationsClient.CreateOrReplaceScheduleAsync 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
CreateOrReplaceScheduleAsync(String, EvaluationSchedule, CancellationToken) |
Create or replace operation template. |
CreateOrReplaceScheduleAsync(String, RequestContent, RequestContext) |
[Protocol Method] Create or replace operation template.
|
CreateOrReplaceScheduleAsync(String, EvaluationSchedule, CancellationToken)
- Source:
- EvaluationsClient.cs
Create or replace operation template.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.EvaluationSchedule>> CreateOrReplaceScheduleAsync (string name, Azure.AI.Projects.EvaluationSchedule resource, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrReplaceScheduleAsync : string * Azure.AI.Projects.EvaluationSchedule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.EvaluationSchedule>>
override this.CreateOrReplaceScheduleAsync : string * Azure.AI.Projects.EvaluationSchedule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.EvaluationSchedule>>
Public Overridable Function CreateOrReplaceScheduleAsync (name As String, resource As EvaluationSchedule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EvaluationSchedule))
Parameters
- name
- String
Name of the schedule, which also serves as the unique identifier for the evaluation.
- resource
- EvaluationSchedule
The resource instance.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
name
or resource
is null.
name
is an empty string, and was expected to be non-empty.
Applies to
CreateOrReplaceScheduleAsync(String, RequestContent, RequestContext)
- Source:
- EvaluationsClient.cs
[Protocol Method] Create or replace operation template.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler CreateOrReplaceScheduleAsync(String, EvaluationSchedule, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrReplaceScheduleAsync (string name, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateOrReplaceScheduleAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateOrReplaceScheduleAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateOrReplaceScheduleAsync (name As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- name
- String
Name of the schedule, which also serves as the unique identifier for the evaluation.
- content
- RequestContent
The content to send as the body of the request.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
name
or content
is null.
name
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Azure SDK for .NET