Interface NetAppResourceUsages
public interface NetAppResourceUsages
Resource collection API of NetAppResourceUsages.
-
Method Summary
Modifier and TypeMethodDescriptionGet specific type of usage Get current subscription usage of the specific type.com.azure.core.http.rest.Response
<UsageResult> getWithResponse
(String location, String usageType, com.azure.core.util.Context context) Get specific type of usage Get current subscription usage of the specific type.com.azure.core.http.rest.PagedIterable
<UsageResult> Get usages Get current subscription usages.com.azure.core.http.rest.PagedIterable
<UsageResult> Get usages Get current subscription usages.
-
Method Details
-
list
Get usages Get current subscription usages.- Parameters:
location
- The name of the Azure region.- Returns:
- current subscription 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.
-
list
com.azure.core.http.rest.PagedIterable<UsageResult> list(String location, com.azure.core.util.Context context) Get usages Get current subscription usages.- Parameters:
location
- The name of the Azure region.context
- The context to associate with this operation.- Returns:
- current subscription 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.
-
getWithResponse
com.azure.core.http.rest.Response<UsageResult> getWithResponse(String location, String usageType, com.azure.core.util.Context context) Get specific type of usage Get current subscription usage of the specific type.- Parameters:
location
- The name of the Azure region.usageType
- The type of usage.context
- The context to associate with this operation.- Returns:
- current subscription usage of the specific type along with
Response
. - 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.
-
get
Get specific type of usage Get current subscription usage of the specific type.- Parameters:
location
- The name of the Azure region.usageType
- The type of usage.- Returns:
- current subscription usage of the specific type.
- 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.
-