Interface AscUsages


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.azure.core.http.rest.PagedIterable<ResourceUsage> list​(String location)
      Gets the quantity used and quota limit for resources.
      com.azure.core.http.rest.PagedIterable<ResourceUsage> list​(String location, com.azure.core.util.Context context)
      Gets the quantity used and quota limit for resources.
    • Method Detail

      • list

        com.azure.core.http.rest.PagedIterable<ResourceUsage> list​(String location)
        Gets the quantity used and quota limit for resources.
        Parameters:
        location - The name of the region to query for usage information.
        Returns:
        the quantity used and quota limit for resources 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<ResourceUsage> list​(String location,
                                                                   com.azure.core.util.Context context)
        Gets the quantity used and quota limit for resources.
        Parameters:
        location - The name of the region to query for usage information.
        context - The context to associate with this operation.
        Returns:
        the quantity used and quota limit for resources 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.