FirewallRulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

DataLakeStoreAccountManagementClient's

<xref:firewall_rules> attribute.

Inheritance
builtins.object
FirewallRulesOperations

Constructor

FirewallRulesOperations(*args, **kwargs)

Methods

create_or_update

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

delete

Deletes the specified firewall rule from the specified Data Lake Store account.

get

Gets the specified Data Lake Store firewall rule.

list_by_account

Lists the Data Lake Store firewall rules within the specified Data Lake Store account.

update

Updates the specified firewall rule.

create_or_update

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

create_or_update(resource_group_name: str, account_name: str, firewall_rule_name: str, parameters: _models.CreateOrUpdateFirewallRuleParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FirewallRule

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.

firewall_rule_name
Required
str

The name of the firewall rule to create or update. Required.

parameters
Required

Parameters supplied to create or update the firewall rule. Is either a CreateOrUpdateFirewallRuleParameters 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

FirewallRule or the result of cls(response)

Exceptions

Type Description

delete

Deletes the specified firewall rule from the specified Data Lake Store account.

delete(resource_group_name: str, account_name: str, firewall_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.

firewall_rule_name
Required
str

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

get(resource_group_name: str, account_name: str, firewall_rule_name: str, **kwargs: Any) -> FirewallRule

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.

firewall_rule_name
Required
str

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

FirewallRule or the result of cls(response)

Exceptions

Type Description

list_by_account

Lists the Data Lake Store firewall rules within the specified Data Lake Store account.

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

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 FirewallRule or the result of cls(response)

Exceptions

Type Description

update

Updates the specified firewall rule.

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

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.

firewall_rule_name
Required
str

The name of the firewall rule to update. Required.

parameters
Required

Parameters supplied to update the firewall rule. Is either a UpdateFirewallRuleParameters 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

FirewallRule 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'>