Interface NetAppResourceUsagesClient


public interface NetAppResourceUsagesClient
An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String location, String usageType)
    Get specific type of usage Get current subscription usage of the specific type.
    com.azure.core.http.rest.Response<UsageResultInner>
    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<UsageResultInner>
    list(String location)
    Get usages Get current subscription usages.
    com.azure.core.http.rest.PagedIterable<UsageResultInner>
    list(String location, com.azure.core.util.Context context)
    Get usages Get current subscription usages.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<UsageResultInner> list(String location)
      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<UsageResultInner> 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<UsageResultInner> 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

      UsageResultInner get(String location, String usageType)
      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.