Condividi tramite


CapabilitiesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:capabilities> attribute.

Constructor

CapabilitiesOperations(*args, **kwargs)

Methods

list_by_location

Gets the subscription capabilities available for the specified location.

list_by_location

Gets the subscription capabilities available for the specified location.

async list_by_location(location_name: str, include: str | CapabilityGroup | None = None, **kwargs: Any) -> LocationCapabilities

Parameters

Name Description
location_name
Required
str

The location name whose capabilities are retrieved. Required.

include

If specified, restricts the response to only include the selected item. Known values are: "supportedEditions", "supportedElasticPoolEditions", "supportedManagedInstanceVersions", "supportedInstancePoolEditions", and "supportedManagedInstanceEditions". Default value is None.

Default value: None

Returns

Type Description

LocationCapabilities 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'>