/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { RequestType } from 'vscode-languageclient'; import * as azdata from 'azdata'; // ------------------------------- < Resource Events > ------------------------------------ export namespace CreateFirewallRuleRequest { export const type = new RequestType('resource/createFirewallRule'); } export namespace HandleFirewallRuleRequest { export const type = new RequestType('resource/handleFirewallRule'); } // Firewall rule interfaces export interface CreateFirewallRuleParams { account: azdata.Account; serverName: string; startIpAddress: string; endIpAddress: string; securityTokenMappings: {}; } interface CreateFirewallRuleResponse { result: boolean; errorMessage: string; } export interface HandleFirewallRuleParams { errorCode: number; errorMessage: string; connectionTypeId: string; } interface HandleFirewallRuleResponse { result: boolean; ipAddress: string; }