UNPKG

armpit

Version:

Another resource manager programming interface toolkit.

30 lines 1.14 kB
import type { NetworkSecurityGroup, SecurityRule } from "@azure/arm-network"; import { CallableClassBase } from "./tsUtils.js"; import type { AzCliInvokers } from "./azCliUtils.js"; interface AzNsgToolsContext { groupName?: string; location?: string; subscriptionId?: string | null; } export interface SecurityRuleDescriptor extends Omit<SecurityRule, "etag" | "type" | "provisioningState"> { direction: "Inbound" | "Outbound"; priority: number; access: "Allow" | "Deny"; protocol: "Tcp" | "Udp" | "Icmp" | "Esp" | "*" | "Ah"; } interface AzNsgUpsertOptions { rules?: SecurityRuleDescriptor[]; deleteUnknownRules?: boolean; groupName?: string; location?: string; } export interface AzNsgTools { (name: string, options?: AzNsgUpsertOptions): Promise<NetworkSecurityGroup>; } export declare class AzNsgTools extends CallableClassBase implements AzNsgTools { #private; constructor(invokers: AzCliInvokers, context: AzNsgToolsContext); protected fnImpl(name: string, options?: AzNsgUpsertOptions): Promise<NetworkSecurityGroup>; } export {}; //# sourceMappingURL=azNsgTools.d.ts.map