Пример #1
0
def add_adla_firewall_rule(client, account_name, firewall_rule_name,
                           start_ip_address, end_ip_address,
                           resource_group_name):
    from azure.mgmt.datalake.analytics.account.models import FirewallRule
    create_params = FirewallRule(start_ip_address, end_ip_address)
    return client.create_or_update(resource_group_name, account_name,
                                   firewall_rule_name, create_params)
Пример #2
0
def add_adla_firewall_rule(client,
                           account_name,
                           firewall_rule_name,
                           start_ip_address,
                           end_ip_address,
                           resource_group_name):
    create_params = FirewallRule(start_ip_address, end_ip_address)
    return client.create_or_update(resource_group_name,
                                   account_name,
                                   firewall_rule_name,
                                   create_params)