UsagesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:usages> attribute.

Inheritance
builtins.object
UsagesOperations

Constructor

UsagesOperations(*args, **kwargs)

Methods

list

Get usages for the requested subscription.

list

Get usages for the requested subscription.

list(location: str, filter: str | None = None, **kwargs: Any) -> Iterable[Usage]

Parameters

Name Description
location
Required
str

Resource location. Required.

filter
Required
str

An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names). Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Usage or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cognitiveservices.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\cognitiveservices\\models\\__init__.py'>