VirtualNetworkRulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

DataLakeStoreAccountManagementClient's

<xref:virtual_network_rules> attribute.

Inheritance
builtins.object
VirtualNetworkRulesOperations

Constructor

VirtualNetworkRulesOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates the specified virtual network rule. During update, the virtual network rule with the specified name will be replaced with this new virtual network rule.

delete

Deletes the specified virtual network rule from the specified Data Lake Store account.

get

Gets the specified Data Lake Store virtual network rule.

list_by_account

Lists the Data Lake Store virtual network rules within the specified Data Lake Store account.

update

Updates the specified virtual network rule.

create_or_update

Creates or updates the specified virtual network rule. During update, the virtual network rule with the specified name will be replaced with this new virtual network rule.

create_or_update(resource_group_name: str, account_name: str, virtual_network_rule_name: str, parameters: _models.CreateOrUpdateVirtualNetworkRuleParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.VirtualNetworkRule

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Store account. Required.

virtual_network_rule_name
Required
str

The name of the virtual network rule to create or update. Required.

parameters
Required

Parameters supplied to create or update the virtual network rule. Is either a CreateOrUpdateVirtualNetworkRuleParameters type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

Returns

Type Description

VirtualNetworkRule or the result of cls(response)

Exceptions

Type Description

delete

Deletes the specified virtual network rule from the specified Data Lake Store account.

delete(resource_group_name: str, account_name: str, virtual_network_rule_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Store account. Required.

virtual_network_rule_name
Required
str

The name of the virtual network rule to delete. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the specified Data Lake Store virtual network rule.

get(resource_group_name: str, account_name: str, virtual_network_rule_name: str, **kwargs: Any) -> VirtualNetworkRule

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Store account. Required.

virtual_network_rule_name
Required
str

The name of the virtual network rule to retrieve. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

VirtualNetworkRule or the result of cls(response)

Exceptions

Type Description

list_by_account

Lists the Data Lake Store virtual network rules within the specified Data Lake Store account.

list_by_account(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[VirtualNetworkRule]

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Store account. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

update

Updates the specified virtual network rule.

update(resource_group_name: str, account_name: str, virtual_network_rule_name: str, parameters: _models.UpdateVirtualNetworkRuleParameters | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.VirtualNetworkRule

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Store account. Required.

virtual_network_rule_name
Required
str

The name of the virtual network rule to update. Required.

parameters
Required

Parameters supplied to update the virtual network rule. Is either a UpdateVirtualNetworkRuleParameters type or a IO type. Default value is None.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

Returns

Type Description

VirtualNetworkRule or the result of cls(response)

Exceptions

Type Description

Attributes

models

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