Interface SubscriptionUsagesClient


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

      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<SubscriptionUsageInner> listByLocationAsync​(String locationName)
        Gets all subscription usage metrics in a given location.
        Parameters:
        locationName - The name of the region where the resource is located.
        Returns:
        all subscription usage metrics in a given location.
        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<SubscriptionUsageInner> listByLocation​(String locationName)
        Gets all subscription usage metrics in a given location.
        Parameters:
        locationName - The name of the region where the resource is located.
        Returns:
        all subscription usage metrics in a given location.
        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<SubscriptionUsageInner> listByLocation​(String locationName,
                                                                                      com.azure.core.util.Context context)
        Gets all subscription usage metrics in a given location.
        Parameters:
        locationName - The name of the region where the resource is located.
        context - The context to associate with this operation.
        Returns:
        all subscription usage metrics in a given location.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<SubscriptionUsageInner>> getWithResponseAsync​(String locationName,
                                                                                             String usageName)
        Gets a subscription usage metric.
        Parameters:
        locationName - The name of the region where the resource is located.
        usageName - Name of usage metric to return.
        Returns:
        a subscription usage metric.
        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.
      • getAsync

        Mono<SubscriptionUsageInner> getAsync​(String locationName,
                                              String usageName)
        Gets a subscription usage metric.
        Parameters:
        locationName - The name of the region where the resource is located.
        usageName - Name of usage metric to return.
        Returns:
        a subscription usage metric.
        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

        SubscriptionUsageInner get​(String locationName,
                                   String usageName)
        Gets a subscription usage metric.
        Parameters:
        locationName - The name of the region where the resource is located.
        usageName - Name of usage metric to return.
        Returns:
        a subscription usage metric.
        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<SubscriptionUsageInner> getWithResponse​(String locationName,
                                                                                  String usageName,
                                                                                  com.azure.core.util.Context context)
        Gets a subscription usage metric.
        Parameters:
        locationName - The name of the region where the resource is located.
        usageName - Name of usage metric to return.
        context - The context to associate with this operation.
        Returns:
        a subscription usage metric.
        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.