/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallRule, FirewallRulesListByServerOptionalParams, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, FirewallRulesDeleteOptionalParams, FirewallRuleList, FirewallRulesReplaceOptionalParams, FirewallRulesReplaceResponse } from "../models"; /// /** Interface representing a FirewallRules. */ export interface FirewallRules { /** * Gets a list of firewall rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer( resourceGroupName: string, serverName: string, options?: FirewallRulesListByServerOptionalParams ): PagedAsyncIterableIterator; /** * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesGetOptionalParams ): Promise; /** * Creates or updates a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param parameters The required parameters for creating or updating a firewall rule. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams ): Promise; /** * Deletes a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ delete( resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams ): Promise; /** * Replaces all firewall rules on the server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters A list of server firewall rules. * @param options The options parameters. */ replace( resourceGroupName: string, serverName: string, parameters: FirewallRuleList, options?: FirewallRulesReplaceOptionalParams ): Promise; }