HubVirtualNetworkConnectionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:hub_virtual_network_connections> attribute.
- Inheritance
-
builtins.objectHubVirtualNetworkConnectionsOperations
Constructor
HubVirtualNetworkConnectionsOperations(*args, **kwargs)
Methods
begin_create_or_update |
Creates a hub virtual network connection if it doesn't exist else updates the existing one. |
begin_delete |
Deletes a HubVirtualNetworkConnection. |
get |
Retrieves the details of a HubVirtualNetworkConnection. |
list |
Retrieves the details of all HubVirtualNetworkConnections. |
begin_create_or_update
Creates a hub virtual network connection if it doesn't exist else updates the existing one.
begin_create_or_update(resource_group_name: str, virtual_hub_name: str, connection_name: str, hub_virtual_network_connection_parameters: _models.HubVirtualNetworkConnection, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.HubVirtualNetworkConnection]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the HubVirtualNetworkConnection. Required. |
virtual_hub_name
Required
|
The name of the VirtualHub. Required. |
connection_name
Required
|
The name of the HubVirtualNetworkConnection. Required. |
hub_virtual_network_connection_parameters
Required
|
Parameters supplied to create or update a hub virtual network connection. Is either a HubVirtualNetworkConnection type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either HubVirtualNetworkConnection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a HubVirtualNetworkConnection.
begin_delete(resource_group_name: str, virtual_hub_name: str, connection_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the VirtualHub. Required. |
virtual_hub_name
Required
|
The name of the VirtualHub. Required. |
connection_name
Required
|
The name of the HubVirtualNetworkConnection. 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 HubVirtualNetworkConnection.
get(resource_group_name: str, virtual_hub_name: str, connection_name: str, **kwargs: Any) -> HubVirtualNetworkConnection
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the VirtualHub. Required. |
virtual_hub_name
Required
|
The name of the VirtualHub. Required. |
connection_name
Required
|
The name of the vpn connection. Required. |
Returns
Type | Description |
---|---|
HubVirtualNetworkConnection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Retrieves the details of all HubVirtualNetworkConnections.
list(resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> Iterable[HubVirtualNetworkConnection]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the VirtualHub. Required. |
virtual_hub_name
Required
|
The name of the VirtualHub. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either HubVirtualNetworkConnection 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'>
Azure SDK for Python