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>
listByLocation
(String location) Lists the current usages and limits in this location for the provided subscription.com.azure.core.http.rest.PagedIterable<UsageInner>
listByLocation
(String location, com.azure.core.util.Context context) Lists the current usages and limits in this location for the provided subscription.
-
Method Details
-
listByLocation
Lists the current usages and limits in this location for the provided subscription.- Parameters:
location
- The Azure region.- Returns:
- list of Core Usages 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.
-
listByLocation
com.azure.core.http.rest.PagedIterable<UsageInner> listByLocation(String location, com.azure.core.util.Context context) Lists the current usages and limits in this location for the provided subscription.- Parameters:
location
- The Azure region.context
- The context to associate with this operation.- Returns:
- list of Core Usages 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.
-