Share via


IComputePoliciesOperations.UpdateWithHttpMessagesAsync Method

Definition

Overloads

UpdateWithHttpMessagesAsync(String, String, String, ComputePolicy, Dictionary<String,List<String>>, CancellationToken)

Updates the specified compute policy.

UpdateWithHttpMessagesAsync(String, String, String, UpdateComputePolicyParameters, Dictionary<String,List<String>>, CancellationToken)

Updates the specified compute policy.

UpdateWithHttpMessagesAsync(String, String, String, ComputePolicy, Dictionary<String,List<String>>, CancellationToken)

Updates the specified compute policy.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>> UpdateWithHttpMessagesAsync (string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy parameters = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>>
Public Function UpdateWithHttpMessagesAsync (resourceGroupName As String, accountName As String, computePolicyName As String, Optional parameters As ComputePolicy = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ComputePolicy))

Parameters

resourceGroupName
String

The name of the Azure resource group that contains the Data Lake Analytics account.

accountName
String

The name of the Data Lake Analytics account to which to update the compute policy.

computePolicyName
String

The name of the compute policy to update.

parameters
ComputePolicy

Parameters supplied to update the compute policy.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to

UpdateWithHttpMessagesAsync(String, String, String, UpdateComputePolicyParameters, Dictionary<String,List<String>>, CancellationToken)

Updates the specified compute policy.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>> UpdateWithHttpMessagesAsync (string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.UpdateComputePolicyParameters parameters = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.UpdateComputePolicyParameters * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>>
Public Function UpdateWithHttpMessagesAsync (resourceGroupName As String, accountName As String, computePolicyName As String, Optional parameters As UpdateComputePolicyParameters = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ComputePolicy))

Parameters

resourceGroupName
String

The name of the Azure resource group.

accountName
String

The name of the Data Lake Analytics account.

computePolicyName
String

The name of the compute policy to update.

parameters
UpdateComputePolicyParameters

Parameters supplied to update the compute policy.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to