unifi-client
Version:
NodeJs client for Unifi products (https://www.ui.com/)
13 lines (12 loc) • 606 B
TypeScript
import { FWGroup } from './FWGroup';
import { FWRule } from './FWRule';
import { _ObjectSubSite } from '../commons';
import { IFWGroup, IFWV4RuleRaw, IFWV6RuleRaw } from './Interfaces';
export declare class Firewall extends _ObjectSubSite {
createRule(rule: Omit<IFWV4RuleRaw, '_id' | 'site_id'> | Omit<IFWV6RuleRaw, '_id' | 'site_id'>): Promise<FWRule>;
getRule(id: string): Promise<FWRule>;
getRules(): Promise<Array<FWRule>>;
getGroup(id: string): Promise<FWGroup>;
getGroups(): Promise<Array<FWGroup>>;
createGroup(group: Omit<IFWGroup, '_id' | 'site_id'>): Promise<FWGroup>;
}