Interface Usages
public interface Usages
Resource collection API of Usages.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable
<Usage> Gets, for the specified location, the current resource usage information as well as the limits under the subscription.com.azure.core.http.rest.PagedIterable
<Usage> Gets, for the specified location, the current resource usage information as well as the limits under the subscription.
-
Method Details
-
list
Gets, for the specified location, the current resource usage information as well as the limits under the subscription.- Parameters:
location
- The location for which resource usage is queried.- Returns:
- the paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<Usage> list(String location, com.azure.core.util.Context context) Gets, for the specified location, the current resource usage information as well as the limits under the subscription.- Parameters:
location
- The location for which resource usage is queried.context
- The context to associate with this operation.- Returns:
- the paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-