次の方法で共有


JobRouterAdministrationClient.UpdateClassificationPolicyAsync Method

Definition

Overloads

UpdateClassificationPolicyAsync(ClassificationPolicy, RequestConditions, CancellationToken)

Updates classification policy.

UpdateClassificationPolicyAsync(String, RequestContent, RequestConditions, RequestContext)

[Protocol Method] Updates a classification policy.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

UpdateClassificationPolicyAsync(ClassificationPolicy, RequestConditions, CancellationToken)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

Updates classification policy.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.ClassificationPolicy>> UpdateClassificationPolicyAsync (Azure.Communication.JobRouter.ClassificationPolicy classificationPolicy, Azure.RequestConditions requestConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateClassificationPolicyAsync : Azure.Communication.JobRouter.ClassificationPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.ClassificationPolicy>>
override this.UpdateClassificationPolicyAsync : Azure.Communication.JobRouter.ClassificationPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.ClassificationPolicy>>
Public Overridable Function UpdateClassificationPolicyAsync (classificationPolicy As ClassificationPolicy, Optional requestConditions As RequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ClassificationPolicy))

Parameters

classificationPolicy
ClassificationPolicy

Classification policy to update. Uses merge-patch semantics: https://datatracker.ietf.org/doc/html/rfc7396.

requestConditions
RequestConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to

UpdateClassificationPolicyAsync(String, RequestContent, RequestConditions, RequestContext)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

[Protocol Method] Updates a classification policy.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateClassificationPolicyAsync (string classificationPolicyId, Azure.Core.RequestContent content, Azure.RequestConditions requestConditions = default, Azure.RequestContext context = default);
abstract member UpdateClassificationPolicyAsync : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateClassificationPolicyAsync : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateClassificationPolicyAsync (classificationPolicyId As String, content As RequestContent, Optional requestConditions As RequestConditions = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

classificationPolicyId
String

Id of a classification policy.

content
RequestContent

The content to send as the body of the request.

requestConditions
RequestConditions

The content to send as the request conditions 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

classificationPolicyId or content is null.

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

Service returned a non-success status code.

Applies to