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> List network usages for a subscription.com.azure.core.http.rest.PagedIterable<UsageInner> List network usages for a subscription.com.azure.core.http.rest.PagedFlux<UsageInner> List network usages for a subscription.
-
Method Details
-
listAsync
List network usages for a subscription.- Parameters:
location- The location where resource usage is queried.- Returns:
- the list usages operation response as paginated response with
PagedFlux. - 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
List network usages for a subscription.- Parameters:
location- The location where resource usage is queried.- Returns:
- the list usages operation response 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<UsageInner> list(String location, com.azure.core.util.Context context) List network usages for a subscription.- Parameters:
location- The location where resource usage is queried.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.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.
-