Condividi tramite


SubscriptionUsagesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:subscription_usages> attribute.

Constructor

SubscriptionUsagesOperations(*args, **kwargs)

Methods

get

Gets a subscription usage metric.

list_by_location

Gets all subscription usage metrics in a given location.

get

Gets a subscription usage metric.

async get(location_name: str, usage_name: str, **kwargs: Any) -> SubscriptionUsage

Parameters

Name Description
location_name
Required
str

The name of the region where the resource is located. Required.

usage_name
Required
str

Name of usage metric to return. Required.

Returns

Type Description

SubscriptionUsage or the result of cls(response)

Exceptions

Type Description

list_by_location

Gets all subscription usage metrics in a given location.

list_by_location(location_name: str, **kwargs: Any) -> AsyncItemPaged[SubscriptionUsage]

Parameters

Name Description
location_name
Required
str

The name of the region where the resource is located. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.sql.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv268\\Lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>