ComputePolicies Interface

public interface ComputePolicies

An instance of this class provides access to all the operations defined in ComputePolicies.

Method Summary

Modifier and Type Method and Description
ComputePolicy createOrUpdate(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

Observable<ComputePolicy> createOrUpdateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

ServiceFuture<ComputePolicy> createOrUpdateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters, final ServiceCallback<ComputePolicy> serviceCallback)

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.

Observable<ServiceResponse<ComputePolicy>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

void delete(String resourceGroupName, String accountName, String computePolicyName)

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

Observable<Void> deleteAsync(String resourceGroupName, String accountName, String computePolicyName)

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

ServiceFuture<Void> deleteAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback<Void> serviceCallback)

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

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

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

ComputePolicy get(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

Observable<ComputePolicy> getAsync(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

ServiceFuture<ComputePolicy> getAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback<ComputePolicy> serviceCallback)

Gets the specified Data Lake Analytics compute policy.

Observable<ServiceResponse<ComputePolicy>> getWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

PagedList<ComputePolicy> listByAccount(final String resourceGroupName, final String accountName)

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

Observable<Page<ComputePolicy>> listByAccountAsync(final String resourceGroupName, final String accountName)

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

ServiceFuture<List<ComputePolicy>> listByAccountAsync(final String resourceGroupName, final String accountName, final ListOperationCallback<ComputePolicy> serviceCallback)

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

PagedList<ComputePolicy> listByAccountNext(final String nextPageLink)

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

Observable<Page<ComputePolicy>> listByAccountNextAsync(final String nextPageLink)

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

ServiceFuture<List<ComputePolicy>> listByAccountNextAsync(final String nextPageLink, final ServiceFuture<List<ComputePolicy>> serviceFuture, final ListOperationCallback<ComputePolicy> serviceCallback)

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

Observable<ServiceResponse<Page<ComputePolicy>>> listByAccountNextWithServiceResponseAsync(final String nextPageLink)

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

Observable<ServiceResponse<Page<ComputePolicy>>> listByAccountWithServiceResponseAsync(final String resourceGroupName, final String accountName)

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

ComputePolicy update(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

ComputePolicy update(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

Observable<ComputePolicy> updateAsync(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

Observable<ComputePolicy> updateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

ServiceFuture<ComputePolicy> updateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters, final ServiceCallback<ComputePolicy> serviceCallback)

Updates the specified compute policy.

ServiceFuture<ComputePolicy> updateAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback<ComputePolicy> serviceCallback)

Updates the specified compute policy.

Observable<ServiceResponse<ComputePolicy>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

Observable<ServiceResponse<ComputePolicy>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

Method Details

createOrUpdate

public ComputePolicy createOrUpdate(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to add or replace the compute policy.
computePolicyName - The name of the compute policy to create or update.
parameters - 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.

Returns:

the ComputePolicy object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createOrUpdateAsync

public Observable createOrUpdateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to add or replace the compute policy.
computePolicyName - The name of the compute policy to create or update.
parameters - 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.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback)

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.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to add or replace the compute policy.
computePolicyName - The name of the compute policy to create or update.
parameters - 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.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateWithServiceResponseAsync

public Observable<>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicyCreateOrUpdateParameters parameters)

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.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to add or replace the compute policy.
computePolicyName - The name of the compute policy to create or update.
parameters - 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.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String accountName, String computePolicyName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to delete the compute policy.
computePolicyName - The name of the compute policy to delete.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String accountName, String computePolicyName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to delete the compute policy.
computePolicyName - The name of the compute policy to delete.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback serviceCallback)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to delete the compute policy.
computePolicyName - The name of the compute policy to delete.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable<>> deleteWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to delete the compute policy.
computePolicyName - The name of the compute policy to delete.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public ComputePolicy get(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policy.
computePolicyName - The name of the compute policy to retrieve.

Returns:

the ComputePolicy object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getAsync

public Observable getAsync(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policy.
computePolicyName - The name of the compute policy to retrieve.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback serviceCallback)

Gets the specified Data Lake Analytics compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policy.
computePolicyName - The name of the compute policy to retrieve.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

Gets the specified Data Lake Analytics compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policy.
computePolicyName - The name of the compute policy to retrieve.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccount

public PagedList listByAccount(final String resourceGroupName, final String accountName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policies.

Returns:

the PagedList<ComputePolicy> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listByAccountAsync

public Observable<>> listByAccountAsync(final String resourceGroupName, final String accountName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policies.

Returns:

the observable to the PagedList<ComputePolicy> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccountAsync

public ServiceFuture<>> listByAccountAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policies.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccountNext

public PagedList listByAccountNext(final String nextPageLink)

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

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<ComputePolicy> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listByAccountNextAsync

public Observable<>> listByAccountNextAsync(final String nextPageLink)

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

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<ComputePolicy> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccountNextAsync

public ServiceFuture<>> listByAccountNextAsync(final String nextPageLink, final ServiceFuture<>> serviceFuture, final ListOperationCallback serviceCallback)

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

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccountNextWithServiceResponseAsync

public Observable<><>>> listByAccountNextWithServiceResponseAsync(final String nextPageLink)

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

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<ComputePolicy> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAccountWithServiceResponseAsync

public Observable<><>>> listByAccountWithServiceResponseAsync(final String resourceGroupName, final String accountName)

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

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account from which to get the compute policies.

Returns:

the observable to the PagedList<ComputePolicy> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public ComputePolicy update(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.

Returns:

the ComputePolicy object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

update

public ComputePolicy update(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.
parameters - Parameters supplied to update the compute policy.

Returns:

the ComputePolicy object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public Observable updateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.
parameters - Parameters supplied to update the compute policy.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters, final ServiceCallback serviceCallback)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.
parameters - Parameters supplied to update the compute policy.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String accountName, String computePolicyName, final ServiceCallback serviceCallback)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String computePolicyName, ComputePolicy parameters)

Updates the specified compute policy.

Parameters:

resourceGroupName - The name of the Azure resource group that contains the Data Lake Analytics account.
accountName - The name of the Data Lake Analytics account to which to update the compute policy.
computePolicyName - The name of the compute policy to update.
parameters - Parameters supplied to update the compute policy.

Returns:

the observable to the ComputePolicy object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to