EvaluationRules.CreateOrUpdate 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 |
|---|---|
| CreateOrUpdate(String, EvaluationRule, CancellationToken) |
Create or update an evaluation rule. |
| CreateOrUpdate(String, BinaryContent, RequestOptions) |
[Protocol Method] Create or update an evaluation rule.
|
CreateOrUpdate(String, EvaluationRule, CancellationToken)
- Source:
- EvaluationRules.cs
Create or update an evaluation rule.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule> CreateOrUpdate(string id, Azure.AI.Projects.EvaluationRule evaluationRule, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : string * Azure.AI.Projects.EvaluationRule * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>
override this.CreateOrUpdate : string * Azure.AI.Projects.EvaluationRule * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>
Public Overridable Function CreateOrUpdate (id As String, evaluationRule As EvaluationRule, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of EvaluationRule)
Parameters
- id
- String
Unique identifier for the evaluation rule.
- evaluationRule
- EvaluationRule
Evaluation rule resource.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
id or evaluationRule is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
CreateOrUpdate(String, BinaryContent, RequestOptions)
- Source:
- EvaluationRules.cs
[Protocol Method] Create or update an evaluation rule.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult CreateOrUpdate(string id, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateOrUpdate : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.CreateOrUpdate : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function CreateOrUpdate (id As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As ClientResult
Parameters
- id
- String
Unique identifier for the evaluation rule.
- content
- BinaryContent
The content to send as the body of the request.
- 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
id or content is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.