HubRouteTablesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:hub_route_tables> attribute.

Inheritance
builtins.object
HubRouteTablesOperations

Constructor

HubRouteTablesOperations(*args, **kwargs)

Methods

begin_create_or_update

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

begin_delete

Deletes a RouteTable.

get

Retrieves the details of a RouteTable.

list

Retrieves the details of all RouteTables.

begin_create_or_update

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

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

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.

route_table_name
Required
str

The name of the RouteTable. Required.

route_table_parameters
Required

Parameters supplied to create or update RouteTable. Is either a HubRouteTable type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a RouteTable.

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

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the RouteTable. Required.

virtual_hub_name
Required
str

The name of the VirtualHub. Required.

route_table_name
Required
str

The name of the RouteTable. 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 RouteTable.

get(resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any) -> HubRouteTable

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.

route_table_name
Required
str

The name of the RouteTable. Required.

Returns

Type Description

HubRouteTable or the result of cls(response)

Exceptions

Type Description

list

Retrieves the details of all RouteTables.

list(resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> Iterable[HubRouteTable]

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.

Returns

Type Description

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