Condividi tramite


ManagedDatabaseSchemasOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:managed_database_schemas> attribute.

Constructor

ManagedDatabaseSchemasOperations(*args, **kwargs)

Methods

get

Get managed database schema.

list_by_database

List managed database schemas.

get

Get managed database schema.

async get(resource_group_name: str, managed_instance_name: str, database_name: str, schema_name: str, **kwargs: Any) -> DatabaseSchema

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

database_name
Required
str

The name of the database. Required.

schema_name
Required
str

The name of the schema. Required.

Returns

Type Description

DatabaseSchema or the result of cls(response)

Exceptions

Type Description

list_by_database

List managed database schemas.

list_by_database(resource_group_name: str, managed_instance_name: str, database_name: str, filter: str | None = None, **kwargs: Any) -> AsyncItemPaged[DatabaseSchema]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

database_name
Required
str

The name of the database. Required.

filter
str

An OData filter expression that filters elements in the collection. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of either DatabaseSchema 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'>