UsagesClient Interface

public interface UsagesClient

An instance of this class provides access to all the operations defined in UsagesClient.

Method Summary

Modifier and Type Method and Description
abstract CurrentUsagesBaseInner get(String resourceName, String scope)

Get the current usage of a resource.

abstract UsagesGetResponse getWithResponse(String resourceName, String scope, Context context)

Get the current usage of a resource.

abstract PagedIterable<CurrentUsagesBaseInner> list(String scope)

Get a list of current usage for all resources for the scope specified.

abstract PagedIterable<CurrentUsagesBaseInner> list(String scope, Context context)

Get a list of current usage for all resources for the scope specified.

Method Details

get

public abstract CurrentUsagesBaseInner get(String resourceName, String scope)

Get the current usage of a resource.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

the current usage of a resource.

getWithResponse

public abstract UsagesGetResponse getWithResponse(String resourceName, String scope, Context context)

Get the current usage of a resource.

Parameters:

resourceName - Resource name for a given resource provider. For example:
  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

the current usage of a resource.

list

public abstract PagedIterable<CurrentUsagesBaseInner> list(String scope)

Get a list of current usage for all resources for the scope specified.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of current usage for all resources for the scope specified as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<CurrentUsagesBaseInner> list(String scope, Context context)

Get a list of current usage for all resources for the scope specified.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

a list of current usage for all resources for the scope specified as paginated response with PagedIterable<T>.

Applies to