Delen via


ComputePolicies interface

Interface representing a ComputePolicies.

Methods

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, ComputePoliciesCreateOrUpdateOptionalParams)

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

delete(string, string, string, ComputePoliciesDeleteOptionalParams)

Deletes the specified compute policy from the specified Data Lake Analytics account

get(string, string, string, ComputePoliciesGetOptionalParams)

Gets the specified Data Lake Analytics compute policy.

listByAccount(string, string, ComputePoliciesListByAccountOptionalParams)

Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies

update(string, string, string, ComputePoliciesUpdateOptionalParams)

Updates the specified compute policy.

Method Details

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, ComputePoliciesCreateOrUpdateOptionalParams)

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

function createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: CreateOrUpdateComputePolicyParameters, options?: ComputePoliciesCreateOrUpdateOptionalParams): Promise<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 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.

options
ComputePoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<ComputePolicy>

delete(string, string, string, ComputePoliciesDeleteOptionalParams)

Deletes the specified compute policy from the specified Data Lake Analytics account

function delete(resourceGroupName: string, accountName: string, computePolicyName: string, options?: ComputePoliciesDeleteOptionalParams): Promise<void>

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 delete.

options
ComputePoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, ComputePoliciesGetOptionalParams)

Gets the specified Data Lake Analytics compute policy.

function get(resourceGroupName: string, accountName: string, computePolicyName: string, options?: ComputePoliciesGetOptionalParams): Promise<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 retrieve.

options
ComputePoliciesGetOptionalParams

The options parameters.

Returns

Promise<ComputePolicy>

listByAccount(string, string, ComputePoliciesListByAccountOptionalParams)

Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies

function listByAccount(resourceGroupName: string, accountName: string, options?: ComputePoliciesListByAccountOptionalParams): PagedAsyncIterableIterator<ComputePolicy, ComputePolicy[], PageSettings>

Parameters

resourceGroupName

string

The name of the Azure resource group.

accountName

string

The name of the Data Lake Analytics account.

options
ComputePoliciesListByAccountOptionalParams

The options parameters.

Returns

update(string, string, string, ComputePoliciesUpdateOptionalParams)

Updates the specified compute policy.

function update(resourceGroupName: string, accountName: string, computePolicyName: string, options?: ComputePoliciesUpdateOptionalParams): Promise<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.

options
ComputePoliciesUpdateOptionalParams

The options parameters.

Returns

Promise<ComputePolicy>