FirewallRulesOperations Class

FirewallRulesOperations operations.

Inheritance
builtins.object
FirewallRulesOperations

Constructor

FirewallRulesOperations(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

api_version

Client Api Version. Constant value: "2016-11-01".

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, account_name, firewall_rule_name, start_ip_address, end_ip_address, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Store account.

firewall_rule_name
str
Required

The name of the firewall rule to create or update.

start_ip_address
str
Required

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

end_ip_address
str
Required

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

FirewallRule or ClientRawResponse if raw=true

Return type

Exceptions

delete

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

delete(resource_group_name, account_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Store account.

firewall_rule_name
str
Required

The name of the firewall rule to delete.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

get

Gets the specified Data Lake Store firewall rule.

get(resource_group_name, account_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Store account.

firewall_rule_name
str
Required

The name of the firewall rule to retrieve.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

FirewallRule or ClientRawResponse if raw=true

Return type

Exceptions

list_by_account

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

list_by_account(resource_group_name, account_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Store account.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of FirewallRule

Return type

Exceptions

update

Updates the specified firewall rule.

update(resource_group_name, account_name, firewall_rule_name, start_ip_address=None, end_ip_address=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Store account.

firewall_rule_name
str
Required

The name of the firewall rule to update.

start_ip_address
str
default value: None

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

end_ip_address
str
default value: None

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

FirewallRule or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

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