JobRouterAdministrationClient.UpdateDistributionPolicy 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
UpdateDistributionPolicy(DistributionPolicy, RequestConditions, CancellationToken) |
Updates a distribution policy. |
UpdateDistributionPolicy(String, RequestContent, RequestConditions, RequestContext) |
[Protocol Method] Updates a distribution policy.
|
UpdateDistributionPolicy(DistributionPolicy, RequestConditions, CancellationToken)
Updates a distribution policy.
public virtual Azure.Response<Azure.Communication.JobRouter.DistributionPolicy> UpdateDistributionPolicy (Azure.Communication.JobRouter.DistributionPolicy distributionPolicy, Azure.RequestConditions requestConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDistributionPolicy : Azure.Communication.JobRouter.DistributionPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.DistributionPolicy>
override this.UpdateDistributionPolicy : Azure.Communication.JobRouter.DistributionPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.DistributionPolicy>
Public Overridable Function UpdateDistributionPolicy (distributionPolicy As DistributionPolicy, Optional requestConditions As RequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DistributionPolicy)
Parameters
- distributionPolicy
- DistributionPolicy
The distribution policy to update.
- 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
UpdateDistributionPolicy(String, RequestContent, RequestConditions, RequestContext)
[Protocol Method] Updates a distribution policy.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response UpdateDistributionPolicy (string distributionPolicyId, Azure.Core.RequestContent content, Azure.RequestConditions requestConditions = default, Azure.RequestContext context = default);
abstract member UpdateDistributionPolicy : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
override this.UpdateDistributionPolicy : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function UpdateDistributionPolicy (distributionPolicyId As String, content As RequestContent, Optional requestConditions As RequestConditions = Nothing, Optional context As RequestContext = Nothing) As Response
Parameters
- distributionPolicyId
- String
Id of a distribution 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
distributionPolicyId
or content
is null.
distributionPolicyId
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Azure SDK for .NET