Interface VolumeQuotaRules


public interface VolumeQuotaRules
Resource collection API of VolumeQuotaRules.
  • Method Details

    • listByVolume

      com.azure.core.http.rest.PagedIterable<VolumeQuotaRule> listByVolume(String resourceGroupName, String accountName, String poolName, String volumeName)
      Get all quota rules for a volume

      List all quota rules associated with the volume.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      Returns:
      list of Volume Quota Rules 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.
    • listByVolume

      com.azure.core.http.rest.PagedIterable<VolumeQuotaRule> listByVolume(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
      Get all quota rules for a volume

      List all quota rules associated with the volume.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      context - The context to associate with this operation.
      Returns:
      list of Volume Quota Rules 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.
    • get

      VolumeQuotaRule get(String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName)
      Describe a quota rule

      Get details of the specified quota rule.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      volumeQuotaRuleName - The name of volume quota rule.
      Returns:
      details of the specified quota rule.
      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<VolumeQuotaRule> getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, com.azure.core.util.Context context)
      Describe a quota rule

      Get details of the specified quota rule.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      volumeQuotaRuleName - The name of volume quota rule.
      context - The context to associate with this operation.
      Returns:
      details of the specified quota rule 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.
    • delete

      void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName)
      Delete a quota rule

      Delete quota rule.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      volumeQuotaRuleName - The name of volume quota rule.
      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 poolName, String volumeName, String volumeQuotaRuleName, com.azure.core.util.Context context)
      Delete a quota rule

      Delete quota rule.

      Parameters:
      resourceGroupName - The name of the resource group.
      accountName - The name of the NetApp account.
      poolName - The name of the capacity pool.
      volumeName - The name of the volume.
      volumeQuotaRuleName - The name of volume quota rule.
      context - The context to associate with this operation.
      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

      VolumeQuotaRule getById(String id)
      Describe a quota rule

      Get details of the specified quota rule.

      Parameters:
      id - the resource ID.
      Returns:
      details of the specified quota rule 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<VolumeQuotaRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Describe a quota rule

      Get details of the specified quota rule.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      details of the specified quota rule 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)
      Delete a quota rule

      Delete quota rule.

      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a quota rule

      Delete quota rule.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      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 VolumeQuotaRule resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new VolumeQuotaRule definition.