ComputePolicies class
Class representing a ComputePolicies.
Constructors
Compute |
Create a ComputePolicies. |
Methods
Constructor Details
ComputePolicies(DataLakeAnalyticsAccountManagementClientContext)
Create a ComputePolicies.
new ComputePolicies(client: DataLakeAnalyticsAccountManagementClientContext)
Parameters
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
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
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<ComputePoliciesGetResponse>
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
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
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<ComputePoliciesListByAccountResponse>
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
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
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
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
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.
The optional parameters
Returns
Promise<ComputePoliciesUpdateResponse>
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.
The optional parameters
- callback
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
The callback