次の方法で共有


EvaluationsClient.CreateOrReplaceSchedule Method

Definition

Overloads

CreateOrReplaceSchedule(String, EvaluationSchedule, CancellationToken)

Create or replace operation template.

CreateOrReplaceSchedule(String, RequestContent, RequestContext)

[Protocol Method] Create or replace operation template.

CreateOrReplaceSchedule(String, EvaluationSchedule, CancellationToken)

Source:
EvaluationsClient.cs

Create or replace operation template.

public virtual Azure.Response<Azure.AI.Projects.EvaluationSchedule> CreateOrReplaceSchedule (string name, Azure.AI.Projects.EvaluationSchedule resource, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrReplaceSchedule : string * Azure.AI.Projects.EvaluationSchedule * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.EvaluationSchedule>
override this.CreateOrReplaceSchedule : string * Azure.AI.Projects.EvaluationSchedule * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.EvaluationSchedule>
Public Overridable Function CreateOrReplaceSchedule (name As String, resource As EvaluationSchedule, Optional cancellationToken As CancellationToken = Nothing) As 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

CreateOrReplaceSchedule(String, RequestContent, RequestContext)

Source:
EvaluationsClient.cs

[Protocol Method] Create or replace operation template.

public virtual Azure.Response CreateOrReplaceSchedule (string name, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateOrReplaceSchedule : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateOrReplaceSchedule : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateOrReplaceSchedule (name As String, content As RequestContent, Optional context As RequestContext = Nothing) As 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