Interface UsagesClient
public interface UsagesClient
An instance of this class provides access to all the operations defined in UsagesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable<UsageInner> Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.com.azure.core.http.rest.PagedIterable<UsageInner> Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.com.azure.core.http.rest.PagedFlux<UsageInner> Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.
-
Method Details
-
listAsync
Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.- Parameters:
location- The name of Azure region.- Returns:
- the List Usages operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.- Parameters:
location- The name of Azure region.- Returns:
- the List Usages operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<UsageInner> list(String location, com.azure.core.util.Context context) Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.- Parameters:
location- The name of Azure region.context- The context to associate with this operation.- Returns:
- the List Usages operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-