Partilhar via


VirtualHubBgpConnectionOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:virtual_hub_bgp_connection> attribute.

Inheritance
builtins.object
VirtualHubBgpConnectionOperations

Constructor

VirtualHubBgpConnectionOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection.

begin_delete

Deletes a VirtualHubBgpConnection.

get

Retrieves the details of a Virtual Hub Bgp Connection.

begin_create_or_update

Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection.

begin_create_or_update(resource_group_name: str, virtual_hub_name: str, connection_name: str, parameters: _models.BgpConnection, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.BgpConnection]

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VirtualHub. Required.

virtual_hub_name
Required
str

The name of the VirtualHub. Required.

connection_name
Required
str

The name of the connection. Required.

parameters
Required

Parameters of Bgp connection. Is either a BgpConnection type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a VirtualHubBgpConnection.

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

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VirtualHubBgpConnection. Required.

virtual_hub_name
Required
str

The name of the VirtualHub. Required.

connection_name
Required
str

The name of the connection. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Retrieves the details of a Virtual Hub Bgp Connection.

get(resource_group_name: str, virtual_hub_name: str, connection_name: str, **kwargs: Any) -> BgpConnection

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VirtualHub. Required.

virtual_hub_name
Required
str

The name of the VirtualHub. Required.

connection_name
Required
str

The name of the connection. Required.

Returns

Type Description

BgpConnection or the result of cls(response)

Exceptions

Type Description

Attributes

models

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