Condividi tramite


ComputePoliciesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

CreateOrUpdateAsync(IComputePoliciesOperations, String, String, String, ComputePolicyCreateOrUpdateParameters, CancellationToken)

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies

CreateOrUpdateAsync(IComputePoliciesOperations, String, String, String, CreateOrUpdateComputePolicyParameters, CancellationToken)

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies

CreateOrUpdateAsync(IComputePoliciesOperations, String, String, String, ComputePolicyCreateOrUpdateParameters, CancellationToken)

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy> CreateOrUpdateAsync (this Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicyCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations * string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicyCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IComputePoliciesOperations, resourceGroupName As String, accountName As String, computePolicyName As String, parameters As ComputePolicyCreateOrUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputePolicy)

Parameters

operations
IComputePoliciesOperations

The operations group for this extension method.

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 add or replace the compute policy.

computePolicyName
String

The name of the compute policy to create or update.

parameters
ComputePolicyCreateOrUpdateParameters

Parameters supplied to create or update the compute policy. The max degree of parallelism per job property, min priority per job property, or both must be present.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to

CreateOrUpdateAsync(IComputePoliciesOperations, String, String, String, CreateOrUpdateComputePolicyParameters, CancellationToken)

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy> CreateOrUpdateAsync (this Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations * string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IComputePoliciesOperations, resourceGroupName As String, accountName As String, computePolicyName As String, parameters As CreateOrUpdateComputePolicyParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputePolicy)

Parameters

operations
IComputePoliciesOperations

The operations group for this extension method.

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 create or update.

parameters
CreateOrUpdateComputePolicyParameters

Parameters supplied to create or update the compute policy. The max degree of parallelism per job property, min priority per job property, or both must be present.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to