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

    • list

      com.azure.core.http.rest.PagedIterable<QuotaResource> list(String location)
      Lists all the available quota per region per subscription.
      Parameters:
      location - The name of Azure region.
      Returns:
      list of quota bucket objects 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.
    • list

      com.azure.core.http.rest.PagedIterable<QuotaResource> list(String location, com.azure.core.util.Context context)
      Lists all the available quota per region per subscription.
      Parameters:
      location - The name of Azure region.
      context - The context to associate with this operation.
      Returns:
      list of quota bucket objects 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<QuotaResource> getWithResponse(String location, String quotaBucketName, com.azure.core.util.Context context)
      Get the available quota for a quota bucket per region per subscription.
      Parameters:
      location - The name of Azure region.
      quotaBucketName - Quota Bucket name.
      context - The context to associate with this operation.
      Returns:
      the available quota for a quota bucket per region per subscription 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

      QuotaResource get(String location, String quotaBucketName)
      Get the available quota for a quota bucket per region per subscription.
      Parameters:
      location - The name of Azure region.
      quotaBucketName - Quota Bucket name.
      Returns:
      the available quota for a quota bucket per region per subscription.
      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.
    • checkAvailabilityWithResponse

      com.azure.core.http.rest.Response<CheckQuotaAvailabilityResponse> checkAvailabilityWithResponse(String location, String quotaBucketName, QuotaBucketRequest quotaBucketRequest, com.azure.core.util.Context context)
      Check Quota Availability on quota bucket per region per subscription.
      Parameters:
      location - The name of Azure region.
      quotaBucketName - Quota Bucket name.
      quotaBucketRequest - Quota Bucket Request data.
      context - The context to associate with this operation.
      Returns:
      check quota availability response object 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.
    • checkAvailability

      CheckQuotaAvailabilityResponse checkAvailability(String location, String quotaBucketName, QuotaBucketRequest quotaBucketRequest)
      Check Quota Availability on quota bucket per region per subscription.
      Parameters:
      location - The name of Azure region.
      quotaBucketName - Quota Bucket name.
      quotaBucketRequest - Quota Bucket Request data.
      Returns:
      check quota availability response object.
      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.