VirtualNetworkLinksOperations Class

VirtualNetworkLinksOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
VirtualNetworkLinksOperations

Constructor

VirtualNetworkLinksOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create_or_update

Creates or updates a virtual network link to the specified Private DNS zone.

begin_delete

Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone.

begin_update

Updates a virtual network link to the specified Private DNS zone.

get

Gets a virtual network link to the specified Private DNS zone.

list

Lists the virtual network links to the specified Private DNS zone.

begin_create_or_update

Creates or updates a virtual network link to the specified Private DNS zone.

async begin_create_or_update(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, parameters: azure.mgmt.privatedns.models._models_py3.VirtualNetworkLink, if_match: Optional[str] = None, if_none_match: Optional[str] = None, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.privatedns.models._models_py3.VirtualNetworkLink]

Parameters

resource_group_name
str
Required

The name of the resource group.

private_zone_name
str
Required

The name of the Private DNS zone (without a terminating dot).

virtual_network_link_name
str
Required

The name of the virtual network link.

parameters
VirtualNetworkLink
Required

Parameters supplied to the CreateOrUpdate operation.

if_match
str
default value: None

The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.

if_none_match
str
default value: None

Set to '*' to allow a new virtual network link to the Private DNS zone to be created, but to prevent updating an existing link. Other values will be ignored.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

begin_delete

Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone.

async begin_delete(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, if_match: Optional[str] = None, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group.

private_zone_name
str
Required

The name of the Private DNS zone (without a terminating dot).

virtual_network_link_name
str
Required

The name of the virtual network link.

if_match
str
default value: None

The ETag of the virtual network link to the Private DNS zone. Omit this value to always delete the current zone. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

begin_update

Updates a virtual network link to the specified Private DNS zone.

async begin_update(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, parameters: azure.mgmt.privatedns.models._models_py3.VirtualNetworkLink, if_match: Optional[str] = None, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.privatedns.models._models_py3.VirtualNetworkLink]

Parameters

resource_group_name
str
Required

The name of the resource group.

private_zone_name
str
Required

The name of the Private DNS zone (without a terminating dot).

virtual_network_link_name
str
Required

The name of the virtual network link.

parameters
VirtualNetworkLink
Required

Parameters supplied to the Update operation.

if_match
str
default value: None

The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

get

Gets a virtual network link to the specified Private DNS zone.

async get(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, **kwargs) -> azure.mgmt.privatedns.models._models_py3.VirtualNetworkLink

Parameters

resource_group_name
str
Required

The name of the resource group.

private_zone_name
str
Required

The name of the Private DNS zone (without a terminating dot).

virtual_network_link_name
str
Required

The name of the virtual network link.

cls
callable

A custom type or function that will be passed the direct response

Returns

VirtualNetworkLink, or the result of cls(response)

Return type

Exceptions

list

Lists the virtual network links to the specified Private DNS zone.

list(resource_group_name: str, private_zone_name: str, top: Optional[int] = None, **kwargs) -> AsyncIterable[azure.mgmt.privatedns.models._models_py3.VirtualNetworkLinkListResult]

Parameters

resource_group_name
str
Required

The name of the resource group.

private_zone_name
str
Required

The name of the Private DNS zone (without a terminating dot).

top
int
default value: None

The maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.privatedns.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\privatedns\\models\\__init__.py'>