Interface ComputePolicies


public interface ComputePolicies
Resource collection API of ComputePolicies.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new ComputePolicy resource.
    void
    delete(String resourceGroupName, String accountName, String computePolicyName)
    Deletes the specified compute policy from the specified Data Lake Analytics account.
    void
    Deletes the specified compute policy from the specified Data Lake Analytics account.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes the specified compute policy from the specified Data Lake Analytics account.
    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.
    get(String resourceGroupName, String accountName, String computePolicyName)
    Gets the specified Data Lake Analytics compute policy.
    Gets the specified Data Lake Analytics compute policy.
    com.azure.core.http.rest.Response<ComputePolicy>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets the specified Data Lake Analytics compute policy.
    com.azure.core.http.rest.Response<ComputePolicy>
    getWithResponse(String resourceGroupName, String accountName, String computePolicyName, com.azure.core.util.Context context)
    Gets the specified Data Lake Analytics compute policy.
    com.azure.core.http.rest.PagedIterable<ComputePolicy>
    listByAccount(String resourceGroupName, String accountName)
    Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account.
    com.azure.core.http.rest.PagedIterable<ComputePolicy>
    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.
  • Method Details

    • listByAccount

      com.azure.core.http.rest.PagedIterable<ComputePolicy> 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<ComputePolicy> 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ComputePolicy> 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

      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.
      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.
    • 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.
    • getById

      ComputePolicy getById(String id)
      Gets the specified Data Lake Analytics compute policy.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<ComputePolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the specified Data Lake Analytics compute policy.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Deletes the specified compute policy from the specified Data Lake Analytics account.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes the specified compute policy from the specified Data Lake Analytics account.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new ComputePolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ComputePolicy definition.