Interface ComputePoliciesClient


public interface ComputePoliciesClient
An instance of this class provides access to all the operations defined in ComputePoliciesClient.
  • Method Details

    • listByAccount

      com.azure.core.http.rest.PagedIterable<ComputePolicyInner> listByAccount(String resourceGroupName, 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.
      accountName - The name of the Data Lake Analytics account.
      Returns:
      the list of compute policies in the account as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByAccount

      com.azure.core.http.rest.PagedIterable<ComputePolicyInner> listByAccount(String resourceGroupName, String accountName, com.azure.core.util.Context context)
      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.
      accountName - The name of the Data Lake Analytics account.
      context - The context to associate with this operation.
      Returns:
      the list of compute policies in the account as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ComputePolicyInner> createOrUpdateWithResponse(String resourceGroupName, String accountName, String computePolicyName, CreateOrUpdateComputePolicyParameters parameters, com.azure.core.util.Context context)
      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.
      accountName - The name of the Data Lake Analytics account.
      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.
      context - The context to associate with this operation.
      Returns:
      data Lake Analytics compute policy information along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      ComputePolicyInner createOrUpdate(String resourceGroupName, String accountName, String computePolicyName, CreateOrUpdateComputePolicyParameters 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.
      accountName - The name of the Data Lake Analytics account.
      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:
      data Lake Analytics compute policy information.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<ComputePolicyInner> getWithResponse(String resourceGroupName, String accountName, String computePolicyName, com.azure.core.util.Context context)
      Gets the specified Data Lake Analytics compute policy.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to retrieve.
      context - The context to associate with this operation.
      Returns:
      the specified Data Lake Analytics compute policy along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      ComputePolicyInner get(String resourceGroupName, String accountName, String computePolicyName)
      Gets the specified Data Lake Analytics compute policy.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to retrieve.
      Returns:
      the specified Data Lake Analytics compute policy.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<ComputePolicyInner> updateWithResponse(String resourceGroupName, String accountName, String computePolicyName, UpdateComputePolicyParameters parameters, com.azure.core.util.Context context)
      Updates the specified compute policy.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to update.
      parameters - Parameters supplied to update the compute policy.
      context - The context to associate with this operation.
      Returns:
      data Lake Analytics compute policy information along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      ComputePolicyInner update(String resourceGroupName, String accountName, String computePolicyName)
      Updates the specified compute policy.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to update.
      Returns:
      data Lake Analytics compute policy information.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String computePolicyName, com.azure.core.util.Context context)
      Deletes the specified compute policy from the specified Data Lake Analytics account.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to delete.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      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.
      accountName - The name of the Data Lake Analytics account.
      computePolicyName - The name of the compute policy to delete.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.