你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkInterfaceTapConfigurationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:network_interface_tap_configurations> attribute.

Constructor

NetworkInterfaceTapConfigurationsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a Tap configuration in the specified NetworkInterface.

begin_delete

Deletes the specified tap configuration from the NetworkInterface.

get

Get the specified tap configuration on a network interface.

list

Get all Tap configurations in a network interface.

begin_create_or_update

Creates or updates a Tap configuration in the specified NetworkInterface.

begin_create_or_update(resource_group_name: str, network_interface_name: str, tap_configuration_name: str, tap_configuration_parameters: _models.NetworkInterfaceTapConfiguration, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.NetworkInterfaceTapConfiguration]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_interface_name
Required
str

The name of the network interface. Required.

tap_configuration_name
Required
str

The name of the tap configuration. Required.

tap_configuration_parameters
Required

Parameters supplied to the create or update tap configuration operation. Is either a NetworkInterfaceTapConfiguration type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either NetworkInterfaceTapConfiguration or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified tap configuration from the NetworkInterface.

begin_delete(resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_interface_name
Required
str

The name of the network interface. Required.

tap_configuration_name
Required
str

The name of the tap configuration. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Get the specified tap configuration on a network interface.

get(resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any) -> NetworkInterfaceTapConfiguration

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_interface_name
Required
str

The name of the network interface. Required.

tap_configuration_name
Required
str

The name of the tap configuration. Required.

Returns

Type Description

NetworkInterfaceTapConfiguration or the result of cls(response)

Exceptions

Type Description

list

Get all Tap configurations in a network interface.

list(resource_group_name: str, network_interface_name: str, **kwargs: Any) -> Iterable[NetworkInterfaceTapConfiguration]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_interface_name
Required
str

The name of the network interface. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv167\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>