1 import type { GatewayIpModel } from '../gateways/GatewayIpModel';
2 import type { GatewayModel } from './GatewayModel';
4 export const queryVPNGateways = () => ({
5 url: 'vpn/v1/business/gateways',
9 export const createVPNGateway = (data: GatewayModel) => ({
10 url: 'vpn/v1/business/gateways',
15 export const addIpInVPNGateway = (data: GatewayIpModel) => ({
16 url: 'vpn/v1/business/gateways/ip',
21 export const deleteVPNGateway = (ids: readonly string[]) => ({
22 url: 'vpn/v1/business/gateways',
29 export const renameVPNGateway = (currentName: string, newName: string) => ({
30 url: 'vpn/v1/business/gateways',
33 CurrentName: currentName,
38 export const updateVPNGatewayUsers = (currentName: string, features: number, userIds?: readonly string[] | null) => ({
39 url: 'vpn/v1/business/gateways',
42 CurrentName: currentName,
45 UserIds: userIds ?? null,
49 export const queryDeletedDedicatedIPs = () => ({
50 url: 'vpn/v1/business/gateways/deleted-dedicated-ips',