Delen via


ComputePolicies class

Class representing a ComputePolicies.

Constructors

ComputePolicies(DataLakeAnalyticsAccountManagementClientContext)

Create a ComputePolicies.

Methods

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, RequestOptionsBase)

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

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, RequestOptionsBase, ServiceCallback<ComputePolicy>)
createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, ServiceCallback<ComputePolicy>)
deleteMethod(string, string, string, RequestOptionsBase)

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

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

Gets the specified Data Lake Analytics compute policy.

get(string, string, string, RequestOptionsBase, ServiceCallback<ComputePolicy>)
get(string, string, string, ServiceCallback<ComputePolicy>)
listByAccount(string, string, RequestOptionsBase)

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

listByAccount(string, string, RequestOptionsBase, ServiceCallback<ComputePolicyListResult>)
listByAccount(string, string, ServiceCallback<ComputePolicyListResult>)
listByAccountNext(string, RequestOptionsBase)

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

listByAccountNext(string, RequestOptionsBase, ServiceCallback<ComputePolicyListResult>)
listByAccountNext(string, ServiceCallback<ComputePolicyListResult>)
update(string, string, string, ComputePoliciesUpdateOptionalParams)

Updates the specified compute policy.

update(string, string, string, ComputePoliciesUpdateOptionalParams, ServiceCallback<ComputePolicy>)
update(string, string, string, ServiceCallback<ComputePolicy>)

Constructor Details

ComputePolicies(DataLakeAnalyticsAccountManagementClientContext)

Create a ComputePolicies.

new ComputePolicies(client: DataLakeAnalyticsAccountManagementClientContext)

Parameters

client
DataLakeAnalyticsAccountManagementClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, RequestOptionsBase)

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?: RequestOptionsBase): Promise<ComputePoliciesCreateOrUpdateResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComputePoliciesCreateOrUpdateResponse>

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, RequestOptionsBase, ServiceCallback<ComputePolicy>)

function createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: CreateOrUpdateComputePolicyParameters, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ComputePolicy>

The callback

createOrUpdate(string, string, string, CreateOrUpdateComputePolicyParameters, ServiceCallback<ComputePolicy>)

function createOrUpdate(resourceGroupName: string, accountName: string, computePolicyName: string, parameters: CreateOrUpdateComputePolicyParameters, callback: ServiceCallback<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.

callback

ServiceCallback<ComputePolicy>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

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

function deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, options?: RequestOptionsBase): Promise<RestResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, accountName: string, computePolicyName: string, callback: ServiceCallback<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.

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

Gets the specified Data Lake Analytics compute policy.

function get(resourceGroupName: string, accountName: string, computePolicyName: string, options?: RequestOptionsBase): Promise<ComputePoliciesGetResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComputePoliciesGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<ComputePolicy>)

function get(resourceGroupName: string, accountName: string, computePolicyName: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ComputePolicy>

The callback

get(string, string, string, ServiceCallback<ComputePolicy>)

function get(resourceGroupName: string, accountName: string, computePolicyName: string, callback: ServiceCallback<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.

callback

ServiceCallback<ComputePolicy>

The callback

listByAccount(string, string, RequestOptionsBase)

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?: RequestOptionsBase): Promise<ComputePoliciesListByAccountResponse>

Parameters

resourceGroupName

string

The name of the Azure resource group.

accountName

string

The name of the Data Lake Analytics account.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComputePoliciesListByAccountResponse>

listByAccount(string, string, RequestOptionsBase, ServiceCallback<ComputePolicyListResult>)

function listByAccount(resourceGroupName: string, accountName: string, options: RequestOptionsBase, callback: ServiceCallback<ComputePolicyListResult>)

Parameters

resourceGroupName

string

The name of the Azure resource group.

accountName

string

The name of the Data Lake Analytics account.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ComputePolicyListResult>

The callback

listByAccount(string, string, ServiceCallback<ComputePolicyListResult>)

function listByAccount(resourceGroupName: string, accountName: string, callback: ServiceCallback<ComputePolicyListResult>)

Parameters

resourceGroupName

string

The name of the Azure resource group.

accountName

string

The name of the Data Lake Analytics account.

callback

ServiceCallback<ComputePolicyListResult>

The callback

listByAccountNext(string, RequestOptionsBase)

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

function listByAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComputePoliciesListByAccountNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComputePoliciesListByAccountNextResponse>

listByAccountNext(string, RequestOptionsBase, ServiceCallback<ComputePolicyListResult>)

function listByAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ComputePolicyListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ComputePolicyListResult>

The callback

listByAccountNext(string, ServiceCallback<ComputePolicyListResult>)

function listByAccountNext(nextPageLink: string, callback: ServiceCallback<ComputePolicyListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<ComputePolicyListResult>

The callback

update(string, string, string, ComputePoliciesUpdateOptionalParams)

Updates the specified compute policy.

function update(resourceGroupName: string, accountName: string, computePolicyName: string, options?: ComputePoliciesUpdateOptionalParams): Promise<ComputePoliciesUpdateResponse>

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 optional parameters

Returns

Promise<Models.ComputePoliciesUpdateResponse>

update(string, string, string, ComputePoliciesUpdateOptionalParams, ServiceCallback<ComputePolicy>)

function update(resourceGroupName: string, accountName: string, computePolicyName: string, options: ComputePoliciesUpdateOptionalParams, callback: ServiceCallback<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 optional parameters

callback

ServiceCallback<ComputePolicy>

The callback

update(string, string, string, ServiceCallback<ComputePolicy>)

function update(resourceGroupName: string, accountName: string, computePolicyName: string, callback: ServiceCallback<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.

callback

ServiceCallback<ComputePolicy>

The callback