Condividi tramite


ManagedInstanceDtcsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:managed_instance_dtcs> attribute.

Constructor

ManagedInstanceDtcsOperations(*args, **kwargs)

Methods

begin_create_or_update

Updates managed instance DTC settings.

get

Gets managed instance DTC settings.

list_by_managed_instance

Gets a list of managed instance DTC settings.

begin_create_or_update

Updates managed instance DTC settings.

async begin_create_or_update(resource_group_name: str, managed_instance_name: str, dtc_name: str | _models.DtcName, parameters: _models.ManagedInstanceDtc, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedInstanceDtc]

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.

dtc_name
Required

The name of the managed instance DTC. "current" Required.

parameters
Required

Managed instance DTC settings. Is either a ManagedInstanceDtc type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either ManagedInstanceDtc or the result of cls(response)

Exceptions

Type Description

get

Gets managed instance DTC settings.

async get(resource_group_name: str, managed_instance_name: str, dtc_name: str | DtcName, **kwargs: Any) -> ManagedInstanceDtc

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.

dtc_name
Required

The name of the managed instance DTC. "current" Required.

Returns

Type Description

ManagedInstanceDtc or the result of cls(response)

Exceptions

Type Description

list_by_managed_instance

Gets a list of managed instance DTC settings.

list_by_managed_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedInstanceDtc]

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.

Returns

Type Description

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