diff --git a/developer_tools/vpnserver-jsonrpc-clients/README.html b/developer_tools/vpnserver-jsonrpc-clients/README.html index 637f0c6b..2d41f959 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/README.html +++ b/developer_tools/vpnserver-jsonrpc-clients/README.html @@ -216,8 +216,8 @@ All APIs are based on the JSON-R
  • GetSpecialListener - Get Current Setting of the VPN over ICMP / VPN over DNS Function
  • GetAzureStatus - Show the current status of VPN Azure function
  • SetAzureStatus - Enable / Disable VPN Azure Function
  • -
  • GetDDnsInternetSettng - Get the Proxy Settings for Connecting to the DDNS server
  • -
  • SetDDnsInternetSettng - Set the Proxy Settings for Connecting to the DDNS server
  • +
  • GetDDnsInternetSetting - Get the Proxy Settings for Connecting to the DDNS server
  • +
  • SetDDnsInternetSetting - Set the Proxy Settings for Connecting to the DDNS server
  • SetVgsConfig - Set the VPN Gate Server Configuration
  • GetVgsConfig - Get the VPN Gate Server Configuration
  • @@ -305,7 +305,7 @@ All APIs are based on the JSON-R "ServerBuildInt_u32": 0, "ServerHostName_str": "serverhostname", "ServerType_u32": 0, - "ServerBuildDate_dt": "2020-08-01T12:24:36.123", + "ServerBuildDate_dt": "2024-08-01T12:24:36.123", "ServerFamilyName_str": "serverfamilyname", "OsType_u32": 0, "OsServicePack_u32": 0, @@ -460,9 +460,9 @@ All APIs are based on the JSON-R "Send.BroadcastCount_u64": 0, "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, - "CurrentTime_dt": "2020-08-01T12:24:36.123", + "CurrentTime_dt": "2024-08-01T12:24:36.123", "CurrentTick_u64": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", "TotalMemory_u64": 0, "UsedMemory_u64": 0, "FreeMemory_u64": 0, @@ -1136,7 +1136,7 @@ All APIs are based on the JSON-R "result": { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1283,7 +1283,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1296,7 +1296,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1309,7 +1309,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1422,9 +1422,9 @@ All APIs are based on the JSON-R "Port_u32": 0, "Online_bool": false, "LastError_u32": 0, - "StartedTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectedTime_dt": "2020-08-01T12:24:36.123", + "StartedTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectedTime_dt": "2024-08-01T12:24:36.123", "NumTry_u32": 0, "NumConnected_u32": 0, "NumFailed_u32": 0 @@ -1918,9 +1918,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1941,9 +1941,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1964,9 +1964,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -2309,7 +2309,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -2317,7 +2317,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -2325,7 +2325,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 } ] @@ -2450,7 +2450,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "ServerStr_str": "serverstr", "ServerVer_u32": 0, "ServerBuild_u32": 0, @@ -2620,9 +2620,9 @@ All APIs are based on the JSON-R "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, "SecureNATEnabled_bool": false, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0 } } @@ -2992,19 +2992,19 @@ All APIs are based on the JSON-R "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" } ] } @@ -4348,7 +4348,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -4357,7 +4357,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -4366,7 +4366,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" } @@ -4668,9 +4668,9 @@ All APIs are based on the JSON-R "ServerProductBuild_u32": 0, "ServerX_bin": "SGVsbG8gV29ybGQ=", "ClientX_bin": "SGVsbG8gV29ybGQ=", - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -5996,7 +5996,7 @@ All APIs are based on the JSON-R "Name_str": "name", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6057,9 +6057,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6247,7 +6247,7 @@ All APIs are based on the JSON-R Send.UnicastCount_u64 number (uint64) -Unicast count (Send) +Unicast bytes (Send) UsePolicy_bool @@ -6467,7 +6467,7 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6528,9 +6528,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6948,9 +6948,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -7419,11 +7419,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -7440,11 +7440,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -7461,11 +7461,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -8907,8 +8907,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -8929,8 +8929,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -8951,8 +8951,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -9117,9 +9117,9 @@ All APIs are based on the JSON-R "ServerProductName_str": "serverproductname", "ServerProductVer_u32": 0, "ServerProductBuild_u32": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -9496,8 +9496,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9506,8 +9506,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9516,8 +9516,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9663,8 +9663,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -9673,8 +9673,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -9683,8 +9683,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" } @@ -10376,8 +10376,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10391,8 +10391,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10406,8 +10406,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10527,8 +10527,8 @@ All APIs are based on the JSON-R "DhcpTable": [ { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -10536,8 +10536,8 @@ All APIs are based on the JSON-R }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -10545,8 +10545,8 @@ All APIs are based on the JSON-R }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -13090,19 +13090,19 @@ All APIs are based on the JSON-R "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -14508,15 +14508,15 @@ All APIs are based on the JSON-R
    -

    -

    "GetDDnsInternetSettng" RPC API - Get the Proxy Settings for Connecting to the DDNS server

    +

    +

    "GetDDnsInternetSetting" RPC API - Get the Proxy Settings for Connecting to the DDNS server

    Description

    Get the Proxy Settings for Connecting to the DDNS server.

    Input JSON-RPC Format

    {
       "jsonrpc": "2.0",
       "id": "rpc_call_id",
    -  "method": "GetDDnsInternetSettng",
    +  "method": "GetDDnsInternetSetting",
       "params": {}
     }
     
    @@ -14571,15 +14571,15 @@ All APIs are based on the JSON-R
    -

    -

    "SetDDnsInternetSettng" RPC API - Set the Proxy Settings for Connecting to the DDNS server

    +

    +

    "SetDDnsInternetSetting" RPC API - Set the Proxy Settings for Connecting to the DDNS server

    Description

    Set the Proxy Settings for Connecting to the DDNS server.

    Input JSON-RPC Format

    {
       "jsonrpc": "2.0",
       "id": "rpc_call_id",
    -  "method": "SetDDnsInternetSettng",
    +  "method": "SetDDnsInternetSetting",
       "params": {
         "ProxyType_u32": 0,
         "ProxyHostName_str": "proxyhostname",
    @@ -14640,8 +14640,8 @@ All APIs are based on the JSON-R
     
     
     
    -

    Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen.
    -Copyright (c) 2014-2019
    SoftEther VPN Project under the Apache License 2.0.

    +

    Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen.
    +Copyright (c) 2014-2023 SoftEther VPN Project under the Apache License 2.0.

    diff --git a/developer_tools/vpnserver-jsonrpc-clients/README.md b/developer_tools/vpnserver-jsonrpc-clients/README.md index 22866867..1ea33f9f 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/README.md +++ b/developer_tools/vpnserver-jsonrpc-clients/README.md @@ -208,8 +208,8 @@ Value | Description - [GetSpecialListener - Get Current Setting of the VPN over ICMP / VPN over DNS Function](#getspeciallistener) - [GetAzureStatus - Show the current status of VPN Azure function](#getazurestatus) - [SetAzureStatus - Enable / Disable VPN Azure Function](#setazurestatus) -- [GetDDnsInternetSettng - Get the Proxy Settings for Connecting to the DDNS server](#getddnsinternetsettng) -- [SetDDnsInternetSettng - Set the Proxy Settings for Connecting to the DDNS server](#setddnsinternetsettng) +- [GetDDnsInternetSetting - Get the Proxy Settings for Connecting to the DDNS server](#getddnsinternetsetting) +- [SetDDnsInternetSetting - Set the Proxy Settings for Connecting to the DDNS server](#setddnsinternetsetting) - [SetVgsConfig - Set the VPN Gate Server Configuration](#setvgsconfig) - [GetVgsConfig - Get the VPN Gate Server Configuration](#getvgsconfig) @@ -283,7 +283,7 @@ Get server information. This allows you to obtain the server information of the "ServerBuildInt_u32": 0, "ServerHostName_str": "serverhostname", "ServerType_u32": 0, - "ServerBuildDate_dt": "2020-08-01T12:24:36.123", + "ServerBuildDate_dt": "2024-08-01T12:24:36.123", "ServerFamilyName_str": "serverfamilyname", "OsType_u32": 0, "OsServicePack_u32": 0, @@ -368,9 +368,9 @@ Get Current Server Status. This allows you to obtain in real-time the current st "Send.BroadcastCount_u64": 0, "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, - "CurrentTime_dt": "2020-08-01T12:24:36.123", + "CurrentTime_dt": "2024-08-01T12:24:36.123", "CurrentTick_u64": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", "TotalMemory_u64": 0, "UsedMemory_u64": 0, "FreeMemory_u64": 0, @@ -768,7 +768,7 @@ Get Cluster Member Information. When the VPN Server is operating as a cluster co "result": { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -849,7 +849,7 @@ Get List of Cluster Members. Use this API when the VPN Server is operating as a { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -862,7 +862,7 @@ Get List of Cluster Members. Use this API when the VPN Server is operating as a { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -875,7 +875,7 @@ Get List of Cluster Members. Use this API when the VPN Server is operating as a { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -934,9 +934,9 @@ Get Connection Status to Cluster Controller. Use this API when the VPN Server is "Port_u32": 0, "Online_bool": false, "LastError_u32": 0, - "StartedTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectedTime_dt": "2020-08-01T12:24:36.123", + "StartedTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectedTime_dt": "2024-08-01T12:24:36.123", "NumTry_u32": 0, "NumConnected_u32": 0, "NumFailed_u32": 0 @@ -1278,9 +1278,9 @@ Get List of Virtual Hubs. Use this to get a list of existing Virtual Hubs on the "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1301,9 +1301,9 @@ Get List of Virtual Hubs. Use this to get a list of existing Virtual Hubs on the "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1324,9 +1324,9 @@ Get List of Virtual Hubs. Use this to get a list of existing Virtual Hubs on the "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1525,7 +1525,7 @@ Get List of TCP Connections Connecting to the VPN Server. Use this to get a list "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -1533,7 +1533,7 @@ Get List of TCP Connections Connecting to the VPN Server. Use this to get a list "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -1541,7 +1541,7 @@ Get List of TCP Connections Connecting to the VPN Server. Use this to get a list "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 } ] @@ -1626,7 +1626,7 @@ Get Information of TCP Connections Connecting to the VPN Server. Use this to get "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "ServerStr_str": "serverstr", "ServerVer_u32": 0, "ServerBuild_u32": 0, @@ -1736,9 +1736,9 @@ Get Current Status of Virtual Hub. Use this to get the current status of the Vir "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, "SecureNATEnabled_bool": false, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0 } } @@ -1948,19 +1948,19 @@ Get List of Trusted CA Certificates. Here you can manage the certificate authori "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" } ] } @@ -2210,7 +2210,7 @@ Name | Type | Description `NoUdpAcceleration_bool` | `boolean` | Client Option Parameters: Do not use UDP acceleration mode if the value is true `AuthType_u32` | `number` (enum) | Authentication type
    Values:
    `0`: Anonymous authentication
    `1`: SHA-0 hashed password authentication
    `2`: Plain password authentication
    `3`: Certificate authentication `Username_str` | `string` (ASCII) | User name -`HashedPassword_bin` | `string` (Base64 binary) | SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(password_ascii_string + UpperCase(username_ascii_string)). +`HashedPassword_bin` | `string` (Base64 binary) | SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(UpperCase(username_ascii_string) + password_ascii_string). `PlainPassword_str` | `string` (ASCII) | Plaintext Password. Valid only if ClientAuth_AuthType_u32 == PlainPassword (2). `ClientX_bin` | `string` (Base64 binary) | Client certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). `ClientK_bin` | `string` (Base64 binary) | Client private key of the certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). @@ -2537,7 +2537,7 @@ Name | Type | Description `NoUdpAcceleration_bool` | `boolean` | Client Option Parameters: Do not use UDP acceleration mode if the value is true `AuthType_u32` | `number` (enum) | Authentication type
    Values:
    `0`: Anonymous authentication
    `1`: SHA-0 hashed password authentication
    `2`: Plain password authentication
    `3`: Certificate authentication `Username_str` | `string` (ASCII) | User name -`HashedPassword_bin` | `string` (Base64 binary) | SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(password_ascii_string + UpperCase(username_ascii_string)). +`HashedPassword_bin` | `string` (Base64 binary) | SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(UpperCase(username_ascii_string) + password_ascii_string). `PlainPassword_str` | `string` (ASCII) | Plaintext Password. Valid only if ClientAuth_AuthType_u32 == PlainPassword (2). `ClientX_bin` | `string` (Base64 binary) | Client certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). `ClientK_bin` | `string` (Base64 binary) | Client private key of the certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). @@ -2600,7 +2600,7 @@ Get List of Cascade Connections. Use this to get a list of Cascade Connections t "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -2609,7 +2609,7 @@ Get List of Cascade Connections. Use this to get a list of Cascade Connections t "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -2618,7 +2618,7 @@ Get List of Cascade Connections. Use this to get a list of Cascade Connections t "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" } @@ -2834,9 +2834,9 @@ Get Current Cascade Connection Status. When a Cascade Connection registered on t "ServerProductBuild_u32": 0, "ServerX_bin": "SGVsbG8gV29ybGQ=", "ClientX_bin": "SGVsbG8gV29ybGQ=", - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -3566,7 +3566,7 @@ Create a user. Use this to create a new user in the security account database of "Name_str": "name", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -3629,9 +3629,9 @@ Create a user. Use this to create a new user in the security account database of "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -3779,7 +3779,7 @@ Change User Settings. Use this to change user settings that is registered on the "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -3842,9 +3842,9 @@ Change User Settings. Use this to change user settings that is registered on the "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -4004,9 +4004,9 @@ Get User Settings. Use this to get user settings information that is registered "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -4207,11 +4207,11 @@ Get List of Users. Use this to get a list of users that are registered on the se "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -4228,11 +4228,11 @@ Get List of Users. Use this to get a list of users that are registered on the se "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -4249,11 +4249,11 @@ Get List of Users. Use this to get a list of users that are registered on the se "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -4605,14 +4605,14 @@ Name | Type | Description `Name_str` | `string` (ASCII) | The group name `Realname_utf` | `string` (UTF8) | Optional real name (full name) of the group, allow using any Unicode characters `Note_utf` | `string` (UTF8) | Optional, specify a description of the group -`Recv.BroadcastBytes_u64` | `number` (uint64) | Broadcast bytes (Recv) -`Recv.BroadcastCount_u64` | `number` (uint64) | Number of broadcast packets (Recv) -`Recv.UnicastBytes_u64` | `number` (uint64) | Unicast bytes (Recv) -`Recv.UnicastCount_u64` | `number` (uint64) | Unicast count (Recv) -`Send.BroadcastBytes_u64` | `number` (uint64) | Broadcast bytes (Send) -`Send.BroadcastCount_u64` | `number` (uint64) | Number of broadcast packets (Send) +`Recv.BroadcastBytes_u64` | `number` (uint64) | Number of broadcast packets (Recv) +`Recv.BroadcastCount_u64` | `number` (uint64) | Broadcast bytes (Recv) +`Recv.UnicastBytes_u64` | `number` (uint64) | Unicast count (Recv) +`Recv.UnicastCount_u64` | `number` (uint64) | Unicast bytes (Recv) +`Send.BroadcastBytes_u64` | `number` (uint64) | Number of broadcast packets (Send) +`Send.BroadcastCount_u64` | `number` (uint64) | Broadcast bytes (Send) `Send.UnicastBytes_u64` | `number` (uint64) | Unicast bytes (Send) -`Send.UnicastCount_u64` | `number` (uint64) | Unicast count (Send) +`Send.UnicastCount_u64` | `number` (uint64) | Unicast bytes (Send) `UsePolicy_bool` | `boolean` | The flag whether to use security policy `policy:Access_bool` | `boolean` | Security policy: Allow Access. The users, which this policy value is true, have permission to make VPN connection to VPN Server. `policy:DHCPFilter_bool` | `boolean` | Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. @@ -4939,8 +4939,8 @@ Get List of Connected VPN Sessions. Use this to get a list of the sessions conne "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -4961,8 +4961,8 @@ Get List of Connected VPN Sessions. Use this to get a list of the sessions conne "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -4983,8 +4983,8 @@ Get List of Connected VPN Sessions. Use this to get a list of the sessions conne "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -5059,9 +5059,9 @@ Get Session Status. Use this to specify a session currently connected to the cur "ServerProductName_str": "serverproductname", "ServerProductVer_u32": 0, "ServerProductBuild_u32": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -5222,8 +5222,8 @@ Get the MAC Address Table Database. Use this to get the MAC address table databa "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -5232,8 +5232,8 @@ Get the MAC Address Table Database. Use this to get the MAC address table databa "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -5242,8 +5242,8 @@ Get the MAC Address Table Database. Use this to get the MAC address table databa "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -5337,8 +5337,8 @@ Get the IP Address Table Database. Use this to get the IP address table database "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -5347,8 +5347,8 @@ Get the IP Address Table Database. Use this to get the IP address table database "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -5357,8 +5357,8 @@ Get the IP Address Table Database. Use this to get the IP address table database "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" } @@ -5778,8 +5778,8 @@ Get Virtual NAT Function Session Table of SecureNAT Function. Use this to get th "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -5793,8 +5793,8 @@ Get Virtual NAT Function Session Table of SecureNAT Function. Use this to get th "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -5808,8 +5808,8 @@ Get Virtual NAT Function Session Table of SecureNAT Function. Use this to get th "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -5867,8 +5867,8 @@ Get Virtual DHCP Server Function Lease Table of SecureNAT Function. Use this to "DhcpTable": [ { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -5876,8 +5876,8 @@ Get Virtual DHCP Server Function Lease Table of SecureNAT Function. Use this to }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -5885,8 +5885,8 @@ Get Virtual DHCP Server Function Lease Table of SecureNAT Function. Use this to }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -7642,19 +7642,19 @@ Get List of Log Files. Use this to display a list of log files outputted by the "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -8642,8 +8642,8 @@ Name | Type | Description `IsConnected_bool` | `boolean` | Whether connection to VPN Azure Cloud Server is established *** - -## "GetDDnsInternetSettng" RPC API - Get the Proxy Settings for Connecting to the DDNS server + +## "GetDDnsInternetSetting" RPC API - Get the Proxy Settings for Connecting to the DDNS server ### Description Get the Proxy Settings for Connecting to the DDNS server. @@ -8652,7 +8652,7 @@ Get the Proxy Settings for Connecting to the DDNS server. { "jsonrpc": "2.0", "id": "rpc_call_id", - "method": "GetDDnsInternetSettng", + "method": "GetDDnsInternetSetting", "params": {} } ``` @@ -8683,8 +8683,8 @@ Name | Type | Description `ProxyPassword_str` | `string` (ASCII) | Proxy server password *** - -## "SetDDnsInternetSettng" RPC API - Set the Proxy Settings for Connecting to the DDNS server + +## "SetDDnsInternetSetting" RPC API - Set the Proxy Settings for Connecting to the DDNS server ### Description Set the Proxy Settings for Connecting to the DDNS server. @@ -8693,7 +8693,7 @@ Set the Proxy Settings for Connecting to the DDNS server. { "jsonrpc": "2.0", "id": "rpc_call_id", - "method": "SetDDnsInternetSettng", + "method": "SetDDnsInternetSetting", "params": { "ProxyType_u32": 0, "ProxyHostName_str": "proxyhostname", @@ -8730,6 +8730,6 @@ Name | Type | Description `ProxyPassword_str` | `string` (ASCII) | Proxy server password *** -Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen. -Copyright (c) 2014-2019 [SoftEther VPN Project](https://www.softether.org/) under the Apache License 2.0. +Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen. +Copyright (c) 2014-2023 [SoftEther VPN Project](https://www.softether.org/) under the Apache License 2.0. diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/JsonRpc.cs b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/JsonRpc.cs index 8263a325..e8764013 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/JsonRpc.cs +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/JsonRpc.cs @@ -2,10 +2,10 @@ // // JsonRpc.cs - JSON-RPC Client Utility Functions // -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project using System; using System.IO; diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpc.cs b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpc.cs index e4a0b895..d3d56c44 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpc.cs +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpc.cs @@ -2,10 +2,10 @@ // // VPNServerRpc.cs - SoftEther VPN Server's JSON-RPC Stubs // -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project using System.Threading.Tasks; using SoftEther.JsonRpc; @@ -1357,22 +1357,22 @@ namespace SoftEther.VPNServerRpc /// /// Get the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public async Task GetDDnsInternetSettngAsync() => await CallAsync("GetDDnsInternetSettng", new VpnInternetSetting()); + public async Task GetDDnsInternetSettingAsync() => await CallAsync("GetDDnsInternetSetting", new VpnInternetSetting()); /// /// Get the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public VpnInternetSetting GetDDnsInternetSettng() => GetDDnsInternetSettngAsync().Result; + public VpnInternetSetting GetDDnsInternetSetting() => GetDDnsInternetSettingAsync().Result; /// /// Set the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public async Task SetDDnsInternetSettngAsync(VpnInternetSetting input_param) => await CallAsync("SetDDnsInternetSettng", input_param); + public async Task SetDDnsInternetSettingAsync(VpnInternetSetting input_param) => await CallAsync("SetDDnsInternetSetting", input_param); /// /// Set the Proxy Settings for Connecting to the DDNS server (Sync mode). /// - public VpnInternetSetting SetDDnsInternetSettng(VpnInternetSetting input_param) => SetDDnsInternetSettngAsync(input_param).Result; + public VpnInternetSetting SetDDnsInternetSetting(VpnInternetSetting input_param) => SetDDnsInternetSettingAsync(input_param).Result; /// /// Set the VPN Gate Server Configuration (Async mode). This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpcTypes.cs b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpcTypes.cs index 27f224cf..995228b9 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpcTypes.cs +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/rpc-stubs/VPNServerRpcTypes.cs @@ -2,10 +2,10 @@ // // VPNServerRpcTypes.cs - Data Type Definition for SoftEther VPN Server JSON-RPC Stubs // -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project using System; using Newtonsoft.Json; diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/Main.cs b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/Main.cs index 1021e12b..14d01937 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/Main.cs +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/Main.cs @@ -2,10 +2,10 @@ // // Program.cs - The Main() entry point // -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project class Program { diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/VpnServerRpcTest.cs b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/VpnServerRpcTest.cs index d9ab15f3..8bb9c52a 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/VpnServerRpcTest.cs +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-csharp/sample/VpnServerRpcTest.cs @@ -5,10 +5,10 @@ // This sample code shows how to call all available RPC functions. // You can copy and paste test code to write your own C# codes. // -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project using System; using SoftEther.VPNServerRpc; @@ -255,8 +255,8 @@ class VPNRPCTest Test_GetOpenVpnSstpConfig(); Test_GetDDnsClientStatus(); - Test_SetDDnsInternetSettng(); - Test_GetDDnsInternetSettng(); + Test_SetDDnsInternetSetting(); + Test_GetDDnsInternetSetting(); Test_ChangeDDnsClientHostname(); Test_RegenerateServerCert(); @@ -3641,27 +3641,27 @@ class VPNRPCTest } /// - /// API test for 'GetDDnsInternetSettng', Get DDNS proxy configuration + /// API test for 'GetDDnsInternetSetting', Get DDNS proxy configuration /// - public void Test_GetDDnsInternetSettng() + public void Test_GetDDnsInternetSetting() { - Console.WriteLine("Begin: Test_GetDDnsInternetSettng"); + Console.WriteLine("Begin: Test_GetDDnsInternetSetting"); - VpnInternetSetting out_internet_setting = api.GetDDnsInternetSettng(); + VpnInternetSetting out_internet_setting = api.GetDDnsInternetSetting(); print_object(out_internet_setting); - Console.WriteLine("End: Test_GetDDnsInternetSettng"); + Console.WriteLine("End: Test_GetDDnsInternetSetting"); Console.WriteLine("-----"); Console.WriteLine(); } /// - /// API test for 'SetDDnsInternetSettng', Set DDNS proxy configuration + /// API test for 'SetDDnsInternetSetting', Set DDNS proxy configuration /// - public void Test_SetDDnsInternetSettng() + public void Test_SetDDnsInternetSetting() { - Console.WriteLine("Begin: Test_SetDDnsInternetSettng"); + Console.WriteLine("Begin: Test_SetDDnsInternetSetting"); VpnInternetSetting in_internet_setting = new VpnInternetSetting() { @@ -3671,11 +3671,11 @@ class VPNRPCTest ProxyUsername_str = "neko", ProxyPassword_str = "dog", }; - VpnInternetSetting out_internet_setting = api.SetDDnsInternetSettng(in_internet_setting); + VpnInternetSetting out_internet_setting = api.SetDDnsInternetSetting(in_internet_setting); print_object(out_internet_setting); - Console.WriteLine("End: Test_SetDDnsInternetSettng"); + Console.WriteLine("End: Test_SetDDnsInternetSetting"); Console.WriteLine("-----"); Console.WriteLine(); } diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/sample.js b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/sample.js index dd3db357..4cf85de6 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/sample.js +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/sample.js @@ -560,10 +560,10 @@ function Test_All() { return [4 /*yield*/, Test_GetDDnsClientStatus()]; case 157: _x.sent(); - return [4 /*yield*/, Test_SetDDnsInternetSettng()]; + return [4 /*yield*/, Test_SetDDnsInternetSetting()]; case 158: _x.sent(); - return [4 /*yield*/, Test_GetDDnsInternetSettng()]; + return [4 /*yield*/, Test_GetDDnsInternetSetting()]; case 159: _x.sent(); return [4 /*yield*/, Test_ChangeDDnsClientHostname()]; @@ -4047,19 +4047,19 @@ function Test_SetAzureStatus() { }); }); } -/** API test for 'GetDDnsInternetSettng', Get DDNS proxy configuration */ -function Test_GetDDnsInternetSettng() { +/** API test for 'GetDDnsInternetSetting', Get DDNS proxy configuration */ +function Test_GetDDnsInternetSetting() { return __awaiter(this, void 0, void 0, function () { var out_internet_setting; return __generator(this, function (_a) { switch (_a.label) { case 0: - console.log("Begin: Test_GetDDnsInternetSettng"); - return [4 /*yield*/, api.GetDDnsInternetSettng()]; + console.log("Begin: Test_GetDDnsInternetSetting"); + return [4 /*yield*/, api.GetDDnsInternetSetting()]; case 1: out_internet_setting = _a.sent(); console.log(out_internet_setting); - console.log("End: Test_GetDDnsInternetSettng"); + console.log("End: Test_GetDDnsInternetSetting"); console.log("-----"); console.log(); return [2 /*return*/]; @@ -4067,14 +4067,14 @@ function Test_GetDDnsInternetSettng() { }); }); } -/** API test for 'SetDDnsInternetSettng', Set DDNS proxy configuration */ -function Test_SetDDnsInternetSettng() { +/** API test for 'SetDDnsInternetSetting', Set DDNS proxy configuration */ +function Test_SetDDnsInternetSetting() { return __awaiter(this, void 0, void 0, function () { var in_internet_setting, out_internet_setting; return __generator(this, function (_a) { switch (_a.label) { case 0: - console.log("Begin: Test_SetDDnsInternetSettng"); + console.log("Begin: Test_SetDDnsInternetSetting"); in_internet_setting = new VPN.VpnInternetSetting({ ProxyType_u32: VPN.VpnRpcProxyType.Direct, ProxyHostName_str: "1.2.3.4", @@ -4082,11 +4082,11 @@ function Test_SetDDnsInternetSettng() { ProxyUsername_str: "neko", ProxyPassword_str: "dog" }); - return [4 /*yield*/, api.SetDDnsInternetSettng(in_internet_setting)]; + return [4 /*yield*/, api.SetDDnsInternetSetting(in_internet_setting)]; case 1: out_internet_setting = _a.sent(); console.log(out_internet_setting); - console.log("End: Test_SetDDnsInternetSettng"); + console.log("End: Test_SetDDnsInternetSetting"); console.log("-----"); console.log(); return [2 /*return*/]; diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.d.ts b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.d.ts index 6b839ce9..9ccc0ae9 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.d.ts +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.d.ts @@ -278,9 +278,9 @@ export declare class VpnServerRpc { /** Enable / Disable VPN Azure Function. Enable or disable the VPN Azure function. VPN Azure makes it easier to establish a VPN Session from your home PC to your office PC. While a VPN connection is established, you can access to any other servers on the private network of your company. You don't need a global IP address on the office PC (VPN Server). It can work behind firewalls or NATs. No network administrator's configuration required. You can use the built-in SSTP-VPN Client of Windows in your home PC. VPN Azure is a cloud VPN service operated by SoftEther Corporation. VPN Azure is free of charge and available to anyone. Visit http://www.vpnazure.net/ to see details and how-to-use instructions. The VPN Azure hostname is same to the hostname of the Dynamic DNS setting, but altering the domain suffix to "vpnazure.net". To change the hostname use the ChangeDDnsClientHostname API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */ SetAzureStatus: (in_param: VpnRpcAzureStatus) => Promise; /** Get the Proxy Settings for Connecting to the DDNS server. */ - GetDDnsInternetSettng: () => Promise; + GetDDnsInternetSetting: () => Promise; /** Set the Proxy Settings for Connecting to the DDNS server. */ - SetDDnsInternetSettng: (in_param: VpnInternetSetting) => Promise; + SetDDnsInternetSetting: (in_param: VpnInternetSetting) => Promise; /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */ SetVgsConfig: (in_param: VpnVgsConfig) => Promise; /** Get the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */ diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.js b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.js index eac8ab09..8dc8ea70 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.js +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/dist/vpnrpc.js @@ -599,12 +599,12 @@ var VpnServerRpc = /** @class */ (function () { return _this.CallAsync("SetAzureStatus", in_param); }; /** Get the Proxy Settings for Connecting to the DDNS server. */ - this.GetDDnsInternetSettng = function () { - return _this.CallAsync("GetDDnsInternetSettng", new VpnInternetSetting()); + this.GetDDnsInternetSetting = function () { + return _this.CallAsync("GetDDnsInternetSetting", new VpnInternetSetting()); }; /** Set the Proxy Settings for Connecting to the DDNS server. */ - this.SetDDnsInternetSettng = function (in_param) { - return _this.CallAsync("SetDDnsInternetSettng", in_param); + this.SetDDnsInternetSetting = function (in_param) { + return _this.CallAsync("SetDDnsInternetSetting", in_param); }; /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */ this.SetVgsConfig = function (in_param) { diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/sample.ts b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/sample.ts index ddb69314..ec8e8568 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/sample.ts +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/sample.ts @@ -2,13 +2,13 @@ // Runs on both web browsers and Node.js // // sample.ts -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // This sample code shows how to call all available RPC functions. // You can copy and paste test code to write your own web browser TypeScript / JavaScript codes. // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project // On the web browser uncomment below imports as necessary to support old browsers. // import "core-js/es6/promise"; @@ -216,8 +216,8 @@ async function Test_All(): Promise await Test_SetOpenVpnSstpConfig(); await Test_GetOpenVpnSstpConfig(); await Test_GetDDnsClientStatus(); - await Test_SetDDnsInternetSettng(); - await Test_GetDDnsInternetSettng(); + await Test_SetDDnsInternetSetting(); + await Test_GetDDnsInternetSetting(); await Test_ChangeDDnsClientHostname(); await Test_RegenerateServerCert(); await Test_MakeOpenVpnConfigFile(); @@ -2624,21 +2624,21 @@ async function Test_SetAzureStatus(): Promise console.log(); } -/** API test for 'GetDDnsInternetSettng', Get DDNS proxy configuration */ -async function Test_GetDDnsInternetSettng(): Promise +/** API test for 'GetDDnsInternetSetting', Get DDNS proxy configuration */ +async function Test_GetDDnsInternetSetting(): Promise { - console.log("Begin: Test_GetDDnsInternetSettng"); - let out_internet_setting: VPN.VpnInternetSetting = await api.GetDDnsInternetSettng(); + console.log("Begin: Test_GetDDnsInternetSetting"); + let out_internet_setting: VPN.VpnInternetSetting = await api.GetDDnsInternetSetting(); console.log(out_internet_setting); - console.log("End: Test_GetDDnsInternetSettng"); + console.log("End: Test_GetDDnsInternetSetting"); console.log("-----"); console.log(); } -/** API test for 'SetDDnsInternetSettng', Set DDNS proxy configuration */ -async function Test_SetDDnsInternetSettng(): Promise +/** API test for 'SetDDnsInternetSetting', Set DDNS proxy configuration */ +async function Test_SetDDnsInternetSetting(): Promise { - console.log("Begin: Test_SetDDnsInternetSettng"); + console.log("Begin: Test_SetDDnsInternetSetting"); let in_internet_setting: VPN.VpnInternetSetting = new VPN.VpnInternetSetting( { ProxyType_u32: VPN.VpnRpcProxyType.Direct, @@ -2647,9 +2647,9 @@ async function Test_SetDDnsInternetSettng(): Promise ProxyUsername_str: "neko", ProxyPassword_str: "dog", }); - let out_internet_setting: VPN.VpnInternetSetting = await api.SetDDnsInternetSettng(in_internet_setting); + let out_internet_setting: VPN.VpnInternetSetting = await api.SetDDnsInternetSetting(in_internet_setting); console.log(out_internet_setting); - console.log("End: Test_SetDDnsInternetSettng"); + console.log("End: Test_SetDDnsInternetSetting"); console.log("-----"); console.log(); } diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/vpnrpc.ts b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/vpnrpc.ts index 1774bbd6..552f62bf 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/vpnrpc.ts +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-nodejs-package/src/vpnrpc.ts @@ -1,10 +1,10 @@ // SoftEther VPN Server JSON-RPC Stub code for TypeScript // // vpnrpc.ts -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project // Trivial utility codes @@ -856,15 +856,15 @@ export class VpnServerRpc } /** Get the Proxy Settings for Connecting to the DDNS server. */ - public GetDDnsInternetSettng = (): Promise => + public GetDDnsInternetSetting = (): Promise => { - return this.CallAsync("GetDDnsInternetSettng", new VpnInternetSetting()); + return this.CallAsync("GetDDnsInternetSetting", new VpnInternetSetting()); } /** Set the Proxy Settings for Connecting to the DDNS server. */ - public SetDDnsInternetSettng = (in_param: VpnInternetSetting): Promise => + public SetDDnsInternetSetting = (in_param: VpnInternetSetting): Promise => { - return this.CallAsync("SetDDnsInternetSettng", in_param); + return this.CallAsync("SetDDnsInternetSetting", in_param); } /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */ diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/sample.ts b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/sample.ts index ddb69314..ec8e8568 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/sample.ts +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/sample.ts @@ -2,13 +2,13 @@ // Runs on both web browsers and Node.js // // sample.ts -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // This sample code shows how to call all available RPC functions. // You can copy and paste test code to write your own web browser TypeScript / JavaScript codes. // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project // On the web browser uncomment below imports as necessary to support old browsers. // import "core-js/es6/promise"; @@ -216,8 +216,8 @@ async function Test_All(): Promise await Test_SetOpenVpnSstpConfig(); await Test_GetOpenVpnSstpConfig(); await Test_GetDDnsClientStatus(); - await Test_SetDDnsInternetSettng(); - await Test_GetDDnsInternetSettng(); + await Test_SetDDnsInternetSetting(); + await Test_GetDDnsInternetSetting(); await Test_ChangeDDnsClientHostname(); await Test_RegenerateServerCert(); await Test_MakeOpenVpnConfigFile(); @@ -2624,21 +2624,21 @@ async function Test_SetAzureStatus(): Promise console.log(); } -/** API test for 'GetDDnsInternetSettng', Get DDNS proxy configuration */ -async function Test_GetDDnsInternetSettng(): Promise +/** API test for 'GetDDnsInternetSetting', Get DDNS proxy configuration */ +async function Test_GetDDnsInternetSetting(): Promise { - console.log("Begin: Test_GetDDnsInternetSettng"); - let out_internet_setting: VPN.VpnInternetSetting = await api.GetDDnsInternetSettng(); + console.log("Begin: Test_GetDDnsInternetSetting"); + let out_internet_setting: VPN.VpnInternetSetting = await api.GetDDnsInternetSetting(); console.log(out_internet_setting); - console.log("End: Test_GetDDnsInternetSettng"); + console.log("End: Test_GetDDnsInternetSetting"); console.log("-----"); console.log(); } -/** API test for 'SetDDnsInternetSettng', Set DDNS proxy configuration */ -async function Test_SetDDnsInternetSettng(): Promise +/** API test for 'SetDDnsInternetSetting', Set DDNS proxy configuration */ +async function Test_SetDDnsInternetSetting(): Promise { - console.log("Begin: Test_SetDDnsInternetSettng"); + console.log("Begin: Test_SetDDnsInternetSetting"); let in_internet_setting: VPN.VpnInternetSetting = new VPN.VpnInternetSetting( { ProxyType_u32: VPN.VpnRpcProxyType.Direct, @@ -2647,9 +2647,9 @@ async function Test_SetDDnsInternetSettng(): Promise ProxyUsername_str: "neko", ProxyPassword_str: "dog", }); - let out_internet_setting: VPN.VpnInternetSetting = await api.SetDDnsInternetSettng(in_internet_setting); + let out_internet_setting: VPN.VpnInternetSetting = await api.SetDDnsInternetSetting(in_internet_setting); console.log(out_internet_setting); - console.log("End: Test_SetDDnsInternetSettng"); + console.log("End: Test_SetDDnsInternetSetting"); console.log("-----"); console.log(); } diff --git a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/vpnrpc.ts b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/vpnrpc.ts index 1774bbd6..552f62bf 100644 --- a/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/vpnrpc.ts +++ b/developer_tools/vpnserver-jsonrpc-clients/vpnserver-jsonrpc-client-typescript/vpnrpc.ts @@ -1,10 +1,10 @@ // SoftEther VPN Server JSON-RPC Stub code for TypeScript // // vpnrpc.ts -// Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen +// Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen // // Licensed under the Apache License 2.0 -// Copyright (c) 2014-2019 SoftEther VPN Project +// Copyright (c) 2014-2023 SoftEther VPN Project // Trivial utility codes @@ -856,15 +856,15 @@ export class VpnServerRpc } /** Get the Proxy Settings for Connecting to the DDNS server. */ - public GetDDnsInternetSettng = (): Promise => + public GetDDnsInternetSetting = (): Promise => { - return this.CallAsync("GetDDnsInternetSettng", new VpnInternetSetting()); + return this.CallAsync("GetDDnsInternetSetting", new VpnInternetSetting()); } /** Set the Proxy Settings for Connecting to the DDNS server. */ - public SetDDnsInternetSettng = (in_param: VpnInternetSetting): Promise => + public SetDDnsInternetSetting = (in_param: VpnInternetSetting): Promise => { - return this.CallAsync("SetDDnsInternetSettng", in_param); + return this.CallAsync("SetDDnsInternetSetting", in_param); } /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */ diff --git a/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpc/VPNServerRpc.cs b/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpc/VPNServerRpc.cs index 63da0e6d..06e06658 100644 --- a/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpc/VPNServerRpc.cs +++ b/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpc/VPNServerRpc.cs @@ -1357,22 +1357,22 @@ namespace SoftEther.VPNServerRpc /// /// Get the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public async Task GetDDnsInternetSettngAsync() => await CallAsync("GetDDnsInternetSettng", new VpnInternetSetting()); + public async Task GetDDnsInternetSettingAsync() => await CallAsync("GetDDnsInternetSetting", new VpnInternetSetting()); /// /// Get the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public VpnInternetSetting GetDDnsInternetSettng() => GetDDnsInternetSettngAsync().Result; + public VpnInternetSetting GetDDnsInternetSetting() => GetDDnsInternetSettingAsync().Result; /// /// Set the Proxy Settings for Connecting to the DDNS server (Async mode). /// - public async Task SetDDnsInternetSettngAsync(VpnInternetSetting input_param) => await CallAsync("SetDDnsInternetSettng", input_param); + public async Task SetDDnsInternetSettingAsync(VpnInternetSetting input_param) => await CallAsync("SetDDnsInternetSetting", input_param); /// /// Set the Proxy Settings for Connecting to the DDNS server (Sync mode). /// - public VpnInternetSetting SetDDnsInternetSettng(VpnInternetSetting input_param) => SetDDnsInternetSettngAsync(input_param).Result; + public VpnInternetSetting SetDDnsInternetSetting(VpnInternetSetting input_param) => SetDDnsInternetSettingAsync(input_param).Result; /// /// Set the VPN Gate Server Configuration (Async mode). This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. diff --git a/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpcTest/VpnServerRpcTest.cs b/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpcTest/VpnServerRpcTest.cs index b407750f..a3fe751b 100644 --- a/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpcTest/VpnServerRpcTest.cs +++ b/developer_tools/vpnserver-jsonrpc-codegen/VpnServerRpcTest/VpnServerRpcTest.cs @@ -255,8 +255,8 @@ class VPNRPCTest Test_GetOpenVpnSstpConfig(); Test_GetDDnsClientStatus(); - Test_SetDDnsInternetSettng(); - Test_GetDDnsInternetSettng(); + Test_SetDDnsInternetSetting(); + Test_GetDDnsInternetSetting(); Test_ChangeDDnsClientHostname(); Test_RegenerateServerCert(); @@ -3641,27 +3641,27 @@ class VPNRPCTest } /// - /// API test for 'GetDDnsInternetSettng', Get DDNS proxy configuration + /// API test for 'GetDDnsInternetSetting', Get DDNS proxy configuration /// - public void Test_GetDDnsInternetSettng() + public void Test_GetDDnsInternetSetting() { - Console.WriteLine("Begin: Test_GetDDnsInternetSettng"); + Console.WriteLine("Begin: Test_GetDDnsInternetSetting"); - VpnInternetSetting out_internet_setting = api.GetDDnsInternetSettng(); + VpnInternetSetting out_internet_setting = api.GetDDnsInternetSetting(); print_object(out_internet_setting); - Console.WriteLine("End: Test_GetDDnsInternetSettng"); + Console.WriteLine("End: Test_GetDDnsInternetSetting"); Console.WriteLine("-----"); Console.WriteLine(); } /// - /// API test for 'SetDDnsInternetSettng', Set DDNS proxy configuration + /// API test for 'SetDDnsInternetSetting', Set DDNS proxy configuration /// - public void Test_SetDDnsInternetSettng() + public void Test_SetDDnsInternetSetting() { - Console.WriteLine("Begin: Test_SetDDnsInternetSettng"); + Console.WriteLine("Begin: Test_SetDDnsInternetSetting"); VpnInternetSetting in_internet_setting = new VpnInternetSetting() { @@ -3671,11 +3671,11 @@ class VPNRPCTest ProxyUsername_str = "neko", ProxyPassword_str = "dog", }; - VpnInternetSetting out_internet_setting = api.SetDDnsInternetSettng(in_internet_setting); + VpnInternetSetting out_internet_setting = api.SetDDnsInternetSetting(in_internet_setting); print_object(out_internet_setting); - Console.WriteLine("End: Test_SetDDnsInternetSettng"); + Console.WriteLine("End: Test_SetDDnsInternetSetting"); Console.WriteLine("-----"); Console.WriteLine(); } diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index b79a5cea..eeb99201 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -1636,8 +1636,8 @@ PACK *AdminDispatch(RPC *rpc, char *name, PACK *p) DECLARE_RPC("GetSpecialListener", RPC_SPECIAL_LISTENER, StGetSpecialListener, InRpcSpecialListener, OutRpcSpecialListener) DECLARE_RPC("GetAzureStatus", RPC_AZURE_STATUS, StGetAzureStatus, InRpcAzureStatus, OutRpcAzureStatus) DECLARE_RPC("SetAzureStatus", RPC_AZURE_STATUS, StSetAzureStatus, InRpcAzureStatus, OutRpcAzureStatus) - DECLARE_RPC("GetDDnsInternetSettng", INTERNET_SETTING, StGetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) - DECLARE_RPC("SetDDnsInternetSettng", INTERNET_SETTING, StSetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) + DECLARE_RPC("GetDDnsInternetSetting", INTERNET_SETTING, StGetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) + DECLARE_RPC("SetDDnsInternetSetting", INTERNET_SETTING, StSetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) // RPC function declaration: till here @@ -1823,8 +1823,8 @@ DECLARE_SC("SetSpecialListener", RPC_SPECIAL_LISTENER, ScSetSpecialListener, InR DECLARE_SC("GetSpecialListener", RPC_SPECIAL_LISTENER, ScGetSpecialListener, InRpcSpecialListener, OutRpcSpecialListener) DECLARE_SC("GetAzureStatus", RPC_AZURE_STATUS, ScGetAzureStatus, InRpcAzureStatus, OutRpcAzureStatus) DECLARE_SC("SetAzureStatus", RPC_AZURE_STATUS, ScSetAzureStatus, InRpcAzureStatus, OutRpcAzureStatus) -DECLARE_SC("GetDDnsInternetSettng", INTERNET_SETTING, ScGetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) -DECLARE_SC("SetDDnsInternetSettng", INTERNET_SETTING, ScSetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) +DECLARE_SC("GetDDnsInternetSetting", INTERNET_SETTING, ScGetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) +DECLARE_SC("SetDDnsInternetSetting", INTERNET_SETTING, ScSetDDnsInternetSetting, InRpcInternetSetting, OutRpcInternetSetting) // RPC call function declaration: till here // Setting VPN Gate Server Configuration diff --git a/src/bin/hamcore/vpnserver_api_doc.html b/src/bin/hamcore/vpnserver_api_doc.html index 1735667e..cfd3926d 100644 --- a/src/bin/hamcore/vpnserver_api_doc.html +++ b/src/bin/hamcore/vpnserver_api_doc.html @@ -216,8 +216,8 @@ All APIs are based on the JSON-R
  • GetSpecialListener - Get Current Setting of the VPN over ICMP / VPN over DNS Function
  • GetAzureStatus - Show the current status of VPN Azure function
  • SetAzureStatus - Enable / Disable VPN Azure Function
  • -
  • GetDDnsInternetSettng - Get the Proxy Settings for Connecting to the DDNS server
  • -
  • SetDDnsInternetSettng - Set the Proxy Settings for Connecting to the DDNS server
  • +
  • GetDDnsInternetSetting - Get the Proxy Settings for Connecting to the DDNS server
  • +
  • SetDDnsInternetSetting - Set the Proxy Settings for Connecting to the DDNS server
  • SetVgsConfig - Set the VPN Gate Server Configuration
  • GetVgsConfig - Get the VPN Gate Server Configuration
  • @@ -305,7 +305,7 @@ All APIs are based on the JSON-R "ServerBuildInt_u32": 0, "ServerHostName_str": "serverhostname", "ServerType_u32": 0, - "ServerBuildDate_dt": "2020-08-01T12:24:36.123", + "ServerBuildDate_dt": "2024-08-01T12:24:36.123", "ServerFamilyName_str": "serverfamilyname", "OsType_u32": 0, "OsServicePack_u32": 0, @@ -460,9 +460,9 @@ All APIs are based on the JSON-R "Send.BroadcastCount_u64": 0, "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, - "CurrentTime_dt": "2020-08-01T12:24:36.123", + "CurrentTime_dt": "2024-08-01T12:24:36.123", "CurrentTick_u64": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", "TotalMemory_u64": 0, "UsedMemory_u64": 0, "FreeMemory_u64": 0, @@ -1136,7 +1136,7 @@ All APIs are based on the JSON-R "result": { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1283,7 +1283,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1296,7 +1296,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1309,7 +1309,7 @@ All APIs are based on the JSON-R { "Id_u32": 0, "Controller_bool": false, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Ip_ip": "192.168.0.1", "Hostname_str": "hostname", "Point_u32": 0, @@ -1422,9 +1422,9 @@ All APIs are based on the JSON-R "Port_u32": 0, "Online_bool": false, "LastError_u32": 0, - "StartedTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectedTime_dt": "2020-08-01T12:24:36.123", + "StartedTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectedTime_dt": "2024-08-01T12:24:36.123", "NumTry_u32": 0, "NumConnected_u32": 0, "NumFailed_u32": 0 @@ -1918,9 +1918,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1941,9 +1941,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -1964,9 +1964,9 @@ All APIs are based on the JSON-R "NumSessions_u32": 0, "NumMacTables_u32": 0, "NumIpTables_u32": 0, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0, "IsTrafficFilled_bool": false, "Ex.Recv.BroadcastBytes_u64": 0, @@ -2309,7 +2309,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -2317,7 +2317,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 }, { @@ -2325,7 +2325,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Type_u32": 0 } ] @@ -2450,7 +2450,7 @@ All APIs are based on the JSON-R "Hostname_str": "hostname", "Ip_ip": "192.168.0.1", "Port_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "ServerStr_str": "serverstr", "ServerVer_u32": 0, "ServerBuild_u32": 0, @@ -2620,9 +2620,9 @@ All APIs are based on the JSON-R "Send.UnicastBytes_u64": 0, "Send.UnicastCount_u64": 0, "SecureNATEnabled_bool": false, - "LastCommTime_dt": "2020-08-01T12:24:36.123", - "LastLoginTime_dt": "2020-08-01T12:24:36.123", - "CreatedTime_dt": "2020-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", "NumLogin_u32": 0 } } @@ -2992,19 +2992,19 @@ All APIs are based on the JSON-R "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" }, { "Key_u32": 0, "SubjectName_utf": "subjectname", "IssuerName_utf": "issuername", - "Expires_dt": "2020-08-01T12:24:36.123" + "Expires_dt": "2024-08-01T12:24:36.123" } ] } @@ -4348,7 +4348,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -4357,7 +4357,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" }, @@ -4366,7 +4366,7 @@ All APIs are based on the JSON-R "Online_bool": false, "Connected_bool": false, "LastError_u32": 0, - "ConnectedTime_dt": "2020-08-01T12:24:36.123", + "ConnectedTime_dt": "2024-08-01T12:24:36.123", "Hostname_str": "hostname", "TargetHubName_str": "targethubname" } @@ -4668,9 +4668,9 @@ All APIs are based on the JSON-R "ServerProductBuild_u32": 0, "ServerX_bin": "SGVsbG8gV29ybGQ=", "ClientX_bin": "SGVsbG8gV29ybGQ=", - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -5996,7 +5996,7 @@ All APIs are based on the JSON-R "Name_str": "name", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6057,9 +6057,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6467,7 +6467,7 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6528,9 +6528,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -6948,9 +6948,9 @@ All APIs are based on the JSON-R "GroupName_str": "groupname", "Realname_utf": "realname", "Note_utf": "note", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "AuthType_u32": 0, "Auth_Password_str": "auth_password", "UserX_bin": "SGVsbG8gV29ybGQ=", @@ -7419,11 +7419,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -7440,11 +7440,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -7461,11 +7461,11 @@ All APIs are based on the JSON-R "Note_utf": "note", "AuthType_u32": 0, "NumLogin_u32": 0, - "LastLoginTime_dt": "2020-08-01T12:24:36.123", + "LastLoginTime_dt": "2024-08-01T12:24:36.123", "DenyAccess_bool": false, "IsTrafficFilled_bool": false, "IsExpiresFilled_bool": false, - "Expires_dt": "2020-08-01T12:24:36.123", + "Expires_dt": "2024-08-01T12:24:36.123", "Ex.Recv.BroadcastBytes_u64": 0, "Ex.Recv.BroadcastCount_u64": 0, "Ex.Recv.UnicastBytes_u64": 0, @@ -8907,8 +8907,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -8929,8 +8929,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" }, { "Name_str": "name", @@ -8951,8 +8951,8 @@ All APIs are based on the JSON-R "Client_MonitorMode_bool": false, "VLanId_u32": 0, "UniqueId_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123" + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -9117,9 +9117,9 @@ All APIs are based on the JSON-R "ServerProductName_str": "serverproductname", "ServerProductVer_u32": 0, "ServerProductBuild_u32": 0, - "StartTime_dt": "2020-08-01T12:24:36.123", - "FirstConnectionEstablisiedTime_dt": "2020-08-01T12:24:36.123", - "CurrentConnectionEstablishTime_dt": "2020-08-01T12:24:36.123", + "StartTime_dt": "2024-08-01T12:24:36.123", + "FirstConnectionEstablisiedTime_dt": "2024-08-01T12:24:36.123", + "CurrentConnectionEstablishTime_dt": "2024-08-01T12:24:36.123", "NumConnectionsEatablished_u32": 0, "HalfConnection_bool": false, "QoS_bool": false, @@ -9496,8 +9496,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9506,8 +9506,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9516,8 +9516,8 @@ All APIs are based on the JSON-R "Key_u32": 0, "SessionName_str": "sessionname", "MacAddress_bin": "SGVsbG8gV29ybGQ=", - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname", "VlanId_u32": 0 @@ -9663,8 +9663,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -9673,8 +9673,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" }, @@ -9683,8 +9683,8 @@ All APIs are based on the JSON-R "SessionName_str": "sessionname", "IpAddress_ip": "192.168.0.1", "DhcpAllocated_bool": false, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "UpdatedTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "UpdatedTime_dt": "2024-08-01T12:24:36.123", "RemoteItem_bool": false, "RemoteHostname_str": "remotehostname" } @@ -10376,8 +10376,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10391,8 +10391,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10406,8 +10406,8 @@ All APIs are based on the JSON-R "DestIp_ip": "192.168.0.1", "DestHost_str": "desthost", "DestPort_u32": 0, - "CreatedTime_dt": "2020-08-01T12:24:36.123", - "LastCommTime_dt": "2020-08-01T12:24:36.123", + "CreatedTime_dt": "2024-08-01T12:24:36.123", + "LastCommTime_dt": "2024-08-01T12:24:36.123", "SendSize_u64": 0, "RecvSize_u64": 0, "TcpStatus_u32": 0 @@ -10527,8 +10527,8 @@ All APIs are based on the JSON-R "DhcpTable": [ { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -10536,8 +10536,8 @@ All APIs are based on the JSON-R }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -10545,8 +10545,8 @@ All APIs are based on the JSON-R }, { "Id_u32": 0, - "LeasedTime_dt": "2020-08-01T12:24:36.123", - "ExpireTime_dt": "2020-08-01T12:24:36.123", + "LeasedTime_dt": "2024-08-01T12:24:36.123", + "ExpireTime_dt": "2024-08-01T12:24:36.123", "MacAddress_bin": "SGVsbG8gV29ybGQ=", "IpAddress_ip": "192.168.0.1", "Mask_u32": 0, @@ -13090,19 +13090,19 @@ All APIs are based on the JSON-R "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" }, { "ServerName_str": "servername", "FilePath_str": "filepath", "FileSize_u32": 0, - "UpdatedTime_dt": "2020-08-01T12:24:36.123" + "UpdatedTime_dt": "2024-08-01T12:24:36.123" } ] } @@ -14508,15 +14508,15 @@ All APIs are based on the JSON-R
    -

    -

    "GetDDnsInternetSettng" RPC API - Get the Proxy Settings for Connecting to the DDNS server

    +

    +

    "GetDDnsInternetSetting" RPC API - Get the Proxy Settings for Connecting to the DDNS server

    Description

    Get the Proxy Settings for Connecting to the DDNS server.

    Input JSON-RPC Format

    {
       "jsonrpc": "2.0",
       "id": "rpc_call_id",
    -  "method": "GetDDnsInternetSettng",
    +  "method": "GetDDnsInternetSetting",
       "params": {}
     }
     
    @@ -14571,15 +14571,15 @@ All APIs are based on the JSON-R
    -

    -

    "SetDDnsInternetSettng" RPC API - Set the Proxy Settings for Connecting to the DDNS server

    +

    +

    "SetDDnsInternetSetting" RPC API - Set the Proxy Settings for Connecting to the DDNS server

    Description

    Set the Proxy Settings for Connecting to the DDNS server.

    Input JSON-RPC Format

    {
       "jsonrpc": "2.0",
       "id": "rpc_call_id",
    -  "method": "SetDDnsInternetSettng",
    +  "method": "SetDDnsInternetSetting",
       "params": {
         "ProxyType_u32": 0,
         "ProxyHostName_str": "proxyhostname",
    @@ -14640,8 +14640,8 @@ All APIs are based on the JSON-R
     
     
     
    -

    Automatically generated at 2019-07-10 14:36:11 by vpnserver-jsonrpc-codegen.
    -Copyright (c) 2014-2019
    SoftEther VPN Project under the Apache License 2.0.

    +

    Automatically generated at 2023-05-10 14:43:37 by vpnserver-jsonrpc-codegen.
    +Copyright (c) 2014-2023 SoftEther VPN Project under the Apache License 2.0.

    diff --git a/src/bin/hamcore/wwwroot/admin/default/out_webpack/bundle.js b/src/bin/hamcore/wwwroot/admin/default/out_webpack/bundle.js index a2a06fdf..2fc795a2 100644 --- a/src/bin/hamcore/wwwroot/admin/default/out_webpack/bundle.js +++ b/src/bin/hamcore/wwwroot/admin/default/out_webpack/bundle.js @@ -2058,7 +2058,7 @@ eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("/* WEBPACK VAR INJECTION */(function(Buffer) {\r\n// SoftEther VPN Server JSON-RPC Stub code for TypeScript\r\n// \r\n// vpnrpc.ts\r\n// Automatically generated at 2019-05-29 18:21:39 by vpnserver-jsonrpc-codegen\r\n//\r\n// Licensed under the Apache License 2.0\r\n// Copyright (c) 2014-2019 SoftEther VPN Project\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nexports.__esModule = true;\r\n// Trivial utility codes\r\nvar is_node_js = (typeof navigator === \"undefined\") || navigator.userAgent.indexOf(\"Node.js\") !== -1 || navigator.userAgent.indexOf(\"jsdom\") !== -1;\r\nfunction is_null(obj) {\r\n return (typeof obj === \"undefined\") || (obj === null);\r\n}\r\nvar debug_mode = false;\r\n/** VPN Server RPC Stubs */\r\nvar VpnServerRpc = /** @class */ (function () {\r\n /**\r\n * Constructor of the VpnServerRpc class\r\n * @param vpnserver_hostname The hostname or IP address of the destination VPN Server. In the web browser you can specify null if you want to connect to the server itself.\r\n * @param vpnserver_port The port number of the destination VPN Server. In the web browser you can specify null if you want to connect to the server itself.\r\n * @param hubname The name of the Virtual Hub if you want to connect to the VPN Server as a Virtual Hub Admin Mode. Specify null if you want to connect to the VPN Server as the Entire VPN Server Admin Mode.\r\n * @param password Specify the administration password. This value is valid only if vpnserver_hostname is sepcified.\r\n * @param nodejs_https_client_reject_untrusted_server_cert In Node.js set this true to check the SSL server certificate on the destination VPN Server. Set this false to ignore the SSL server certification.\r\n */\r\n function VpnServerRpc(vpnserver_hostname, vpnserver_port, hubname, password, nodejs_https_client_reject_untrusted_server_cert) {\r\n var _this = this;\r\n // --- Stubs ---\r\n /** Test RPC function. Input any integer value to the IntValue_u32 field. Then the server will convert the integer to the string, and return the string in the StrValue_str field. */\r\n this.Test = function (in_param) {\r\n return _this.CallAsync(\"Test\", in_param);\r\n };\r\n /** Get server information. This allows you to obtain the server information of the currently connected VPN Server or VPN Bridge. Included in the server information are the version number, build number and build information. You can also obtain information on the current server operation mode and the information of operating system that the server is operating on. */\r\n this.GetServerInfo = function () {\r\n return _this.CallAsync(\"GetServerInfo\", new VpnRpcServerInfo());\r\n };\r\n /** Get Current Server Status. This allows you to obtain in real-time the current status of the currently connected VPN Server or VPN Bridge. You can get statistical information on data communication and the number of different kinds of objects that exist on the server. You can get information on how much memory is being used on the current computer by the OS. */\r\n this.GetServerStatus = function () {\r\n return _this.CallAsync(\"GetServerStatus\", new VpnRpcServerStatus());\r\n };\r\n /** Create New TCP Listener. This allows you to create a new TCP Listener on the server. By creating the TCP Listener the server starts listening for a connection from clients at the specified TCP/IP port number. A TCP Listener that has been created can be deleted by the DeleteListener API. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To execute this API, you must have VPN Server administrator privileges. */\r\n this.CreateListener = function (in_param) {\r\n return _this.CallAsync(\"CreateListener\", in_param);\r\n };\r\n /** Get List of TCP Listeners. This allows you to get a list of TCP listeners registered on the current server. You can obtain information on whether the various TCP listeners have a status of operating or error. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumListener = function () {\r\n return _this.CallAsync(\"EnumListener\", new VpnRpcListenerList());\r\n };\r\n /** Delete TCP Listener. This allows you to delete a TCP Listener that's registered on the server. When the TCP Listener is in a state of operation, the listener will automatically be deleted when its operation stops. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To call this API, you must have VPN Server administrator privileges. */\r\n this.DeleteListener = function (in_param) {\r\n return _this.CallAsync(\"DeleteListener\", in_param);\r\n };\r\n /** Enable / Disable TCP Listener. This starts or stops the operation of TCP Listeners registered on the current server. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnableListener = function (in_param) {\r\n return _this.CallAsync(\"EnableListener\", in_param);\r\n };\r\n /** Set VPN Server Administrator Password. This sets the VPN Server administrator password. You can specify the password as a parameter. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerPassword = function (in_param) {\r\n return _this.CallAsync(\"SetServerPassword\", in_param);\r\n };\r\n /** Set the VPN Server clustering configuration. Use this to set the VPN Server type as Standalone Server, Cluster Controller Server or Cluster Member Server. Standalone server means a VPN Server that does not belong to any cluster in its current state. When VPN Server is installed, by default it will be in standalone server mode. Unless you have particular plans to configure a cluster, we recommend the VPN Server be operated in standalone mode. A cluster controller is the central computer of all member servers of a cluster in the case where a clustering environment is made up of multiple VPN Servers. Multiple cluster members can be added to the cluster as required. A cluster requires one computer to serve this role. The other cluster member servers that are configured in the same cluster begin operation as a cluster member by connecting to the cluster controller. To call this API, you must have VPN Server administrator privileges. Also, when this API is executed, VPN Server will automatically restart. This API cannot be called on VPN Bridge. */\r\n this.SetFarmSetting = function (in_param) {\r\n return _this.CallAsync(\"SetFarmSetting\", in_param);\r\n };\r\n /** Get Clustering Configuration of Current VPN Server. You can use this to acquire the clustering configuration of the current VPN Server. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetFarmSetting = function () {\r\n return _this.CallAsync(\"GetFarmSetting\", new VpnRpcFarm());\r\n };\r\n /** Get Cluster Member Information. When the VPN Server is operating as a cluster controller, you can get information on cluster member servers on that cluster by specifying the IDs of the member servers. You can get the following information about the specified cluster member server: Server Type, Time Connection has been Established, IP Address, Host Name, Points, Public Port List, Number of Operating Virtual Hubs, First Virtual Hub, Number of Sessions and Number of TCP Connections. This API cannot be invoked on VPN Bridge. */\r\n this.GetFarmInfo = function (in_param) {\r\n return _this.CallAsync(\"GetFarmInfo\", in_param);\r\n };\r\n /** Get List of Cluster Members. Use this API when the VPN Server is operating as a cluster controller to get a list of the cluster member servers on the same cluster, including the cluster controller itself. For each member, the following information is also listed: Type, Connection Start, Host Name, Points, Number of Session, Number of TCP Connections, Number of Operating Virtual Hubs, Using Client Connection License and Using Bridge Connection License. This API cannot be invoked on VPN Bridge. */\r\n this.EnumFarmMember = function () {\r\n return _this.CallAsync(\"EnumFarmMember\", new VpnRpcEnumFarm());\r\n };\r\n /** Get Connection Status to Cluster Controller. Use this API when the VPN Server is operating as a cluster controller to get the status of connection to the cluster controller. You can get the following information: Controller IP Address, Port Number, Connection Status, Connection Start Time, First Connection Established Time, Current Connection Established Time, Number of Connection Attempts, Number of Successful Connections, Number of Failed Connections. This API cannot be invoked on VPN Bridge. */\r\n this.GetFarmConnectionStatus = function () {\r\n return _this.CallAsync(\"GetFarmConnectionStatus\", new VpnRpcFarmConnectionStatus());\r\n };\r\n /** Set SSL Certificate and Private Key of VPN Server. You can set the SSL certificate that the VPN Server provides to the connected client and the private key for that certificate. The certificate must be in X.509 format and the private key must be Base 64 encoded format. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerCert = function (in_param) {\r\n return _this.CallAsync(\"SetServerCert\", in_param);\r\n };\r\n /** Get SSL Certificate and Private Key of VPN Server. Use this to get the SSL certificate private key that the VPN Server provides to the connected client. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetServerCert = function () {\r\n return _this.CallAsync(\"GetServerCert\", new VpnRpcKeyPair());\r\n };\r\n /** Get the Encrypted Algorithm Used for VPN Communication. Use this API to get the current setting of the algorithm used for the electronic signature and encrypted for SSL connection to be used for communication between the VPN Server and the connected client and the list of algorithms that can be used on the VPN Server. */\r\n this.GetServerCipher = function () {\r\n return _this.CallAsync(\"GetServerCipher\", new VpnRpcStr());\r\n };\r\n /** Set the Encrypted Algorithm Used for VPN Communication. Use this API to set the algorithm used for the electronic signature and encrypted for SSL connections to be used for communication between the VPN Server and the connected client. By specifying the algorithm name, the specified algorithm will be used later between the VPN Client and VPN Bridge connected to this server and the data will be encrypted. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerCipher = function (in_param) {\r\n return _this.CallAsync(\"SetServerCipher\", in_param);\r\n };\r\n /** Create New Virtual Hub. Use this to create a new Virtual Hub on the VPN Server. The created Virtual Hub will begin operation immediately. When the VPN Server is operating on a cluster, this API is only valid for the cluster controller. Also, the new Virtual Hub will operate as a dynamic Virtual Hub. You can change it to a static Virtual Hub by using the SetHub API. To get a list of Virtual Hubs that are already on the VPN Server, use the EnumHub API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Servers that are operating as a VPN Bridge or cluster member. */\r\n this.CreateHub = function (in_param) {\r\n return _this.CallAsync(\"CreateHub\", in_param);\r\n };\r\n /** Set the Virtual Hub configuration. You can call this API to change the configuration of the specified Virtual Hub. You can set the Virtual Hub online or offline. You can set the maximum number of sessions that can be concurrently connected to the Virtual Hub that is currently being managed. You can set the Virtual Hub administrator password. You can set other parameters for the Virtual Hub. Before call this API, you need to obtain the latest state of the Virtual Hub by using the GetHub API. */\r\n this.SetHub = function (in_param) {\r\n return _this.CallAsync(\"SetHub\", in_param);\r\n };\r\n /** Get the Virtual Hub configuration. You can call this API to get the current configuration of the specified Virtual Hub. To change the configuration of the Virtual Hub, call the SetHub API. */\r\n this.GetHub = function (in_param) {\r\n return _this.CallAsync(\"GetHub\", in_param);\r\n };\r\n /** Get List of Virtual Hubs. Use this to get a list of existing Virtual Hubs on the VPN Server. For each Virtual Hub, you can get the following information: Virtual Hub Name, Status, Type, Number of Users, Number of Groups, Number of Sessions, Number of MAC Tables, Number of IP Tables, Number of Logins, Last Login, and Last Communication. Note that when connecting in Virtual Hub Admin Mode, if in the options of a Virtual Hub that you do not have administrator privileges for, the option Don't Enumerate this Virtual Hub for Anonymous Users is enabled then that Virtual Hub will not be enumerated. If you are connected in Server Admin Mode, then the list of all Virtual Hubs will be displayed. When connecting to and managing a non-cluster-controller cluster member of a clustering environment, only the Virtual Hub currently being hosted by that VPN Server will be displayed. When connecting to a cluster controller for administration purposes, all the Virtual Hubs will be displayed. */\r\n this.EnumHub = function () {\r\n return _this.CallAsync(\"EnumHub\", new VpnRpcEnumHub());\r\n };\r\n /** Delete Virtual Hub. Use this to delete an existing Virtual Hub on the VPN Server. If you delete the Virtual Hub, all sessions that are currently connected to the Virtual Hub will be disconnected and new sessions will be unable to connect to the Virtual Hub. Also, this will also delete all the Hub settings, user objects, group objects, certificates and Cascade Connections. Once you delete the Virtual Hub, it cannot be recovered. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Servers that are operating as a VPN Bridge or cluster member. */\r\n this.DeleteHub = function (in_param) {\r\n return _this.CallAsync(\"DeleteHub\", in_param);\r\n };\r\n /** Get Setting of RADIUS Server Used for User Authentication. Use this to get the current settings for the RADIUS server used when a user connects to the currently managed Virtual Hub using RADIUS Server Authentication Mode. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetHubRadius = function (in_param) {\r\n return _this.CallAsync(\"GetHubRadius\", in_param);\r\n };\r\n /** Set RADIUS Server to use for User Authentication. To accept users to the currently managed Virtual Hub in RADIUS server authentication mode, you can specify an external RADIUS server that confirms the user name and password. (You can specify multiple hostname by splitting with comma or semicolon.) The RADIUS server must be set to receive requests from IP addresses of this VPN Server. Also, authentication by Password Authentication Protocol (PAP) must be enabled. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetHubRadius = function (in_param) {\r\n return _this.CallAsync(\"SetHubRadius\", in_param);\r\n };\r\n /** Get List of TCP Connections Connecting to the VPN Server. Use this to get a list of TCP/IP connections that are currently connecting to the VPN Server. It does not display the TCP connections that have been established as VPN sessions. To get the list of TCP/IP connections that have been established as VPN sessions, you can use the EnumSession API. You can get the following: Connection Name, Connection Source, Connection Start and Type. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumConnection = function () {\r\n return _this.CallAsync(\"EnumConnection\", new VpnRpcEnumConnection());\r\n };\r\n /** Disconnect TCP Connections Connecting to the VPN Server. Use this to forcefully disconnect specific TCP/IP connections that are connecting to the VPN Server. To call this API, you must have VPN Server administrator privileges. */\r\n this.DisconnectConnection = function (in_param) {\r\n return _this.CallAsync(\"DisconnectConnection\", in_param);\r\n };\r\n /** Get Information of TCP Connections Connecting to the VPN Server. Use this to get detailed information of a specific TCP/IP connection that is connecting to the VPN Server. You can get the following information: Connection Name, Connection Type, Source Hostname, Source IP Address, Source Port Number (TCP), Connection Start, Server Product Name, Server Version, Server Build Number, Client Product Name, Client Version, and Client Build Number. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetConnectionInfo = function (in_param) {\r\n return _this.CallAsync(\"GetConnectionInfo\", in_param);\r\n };\r\n /** Switch Virtual Hub to Online or Offline. Use this to set the Virtual Hub to online or offline. A Virtual Hub with an offline status cannot receive VPN connections from clients. When you set the Virtual Hub offline, all sessions will be disconnected. A Virtual Hub with an offline status cannot receive VPN connections from clients. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetHubOnline = function (in_param) {\r\n return _this.CallAsync(\"SetHubOnline\", in_param);\r\n };\r\n /** Get Current Status of Virtual Hub. Use this to get the current status of the Virtual Hub currently being managed. You can get the following information: Virtual Hub Type, Number of Sessions, Number of Each Type of Object, Number of Logins, Last Login, Last Communication, and Communication Statistical Data. */\r\n this.GetHubStatus = function (in_param) {\r\n return _this.CallAsync(\"GetHubStatus\", in_param);\r\n };\r\n /** Set the logging configuration of the Virtual Hub. Use this to enable or disable a security log or packet logs of the Virtual Hub currently being managed, set the save contents of the packet log for each type of packet to be saved, and set the log file switch cycle for the security log or packet log that the currently managed Virtual Hub saves. There are the following packet types: TCP Connection Log, TCP Packet Log, DHCP Packet Log, UDP Packet Log, ICMP Packet Log, IP Packet Log, ARP Packet Log, and Ethernet Packet Log. To get the current setting, you can use the LogGet API. The log file switch cycle can be changed to switch in every second, every minute, every hour, every day, every month or not switch. To get the current setting, you can use the GetHubLog API. */\r\n this.SetHubLog = function (in_param) {\r\n return _this.CallAsync(\"SetHubLog\", in_param);\r\n };\r\n /** Get the logging configuration of the Virtual Hub. Use this to get the configuration for a security log or packet logs of the Virtual Hub currently being managed, get the setting for save contents of the packet log for each type of packet to be saved, and get the log file switch cycle for the security log or packet log that the currently managed Virtual Hub saves. To set the current setting, you can use the SetHubLog API. */\r\n this.GetHubLog = function (in_param) {\r\n return _this.CallAsync(\"GetHubLog\", in_param);\r\n };\r\n /** Add Trusted CA Certificate. Use this to add a new certificate to a list of CA certificates trusted by the currently managed Virtual Hub. The list of certificate authority certificates that are registered is used to verify certificates when a VPN Client is connected in signed certificate authentication mode. To get a list of the current certificates you can use the EnumCa API. The certificate you add must be saved in the X.509 file format. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.AddCa = function (in_param) {\r\n return _this.CallAsync(\"AddCa\", in_param);\r\n };\r\n /** Get List of Trusted CA Certificates. Here you can manage the certificate authority certificates that are trusted by this currently managed Virtual Hub. The list of certificate authority certificates that are registered is used to verify certificates when a VPN Client is connected in signed certificate authentication mode. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumCa = function (in_param) {\r\n return _this.CallAsync(\"EnumCa\", in_param);\r\n };\r\n /** Get Trusted CA Certificate. Use this to get an existing certificate from the list of CA certificates trusted by the currently managed Virtual Hub and save it as a file in X.509 format. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetCa = function (in_param) {\r\n return _this.CallAsync(\"GetCa\", in_param);\r\n };\r\n /** Delete Trusted CA Certificate. Use this to delete an existing certificate from the list of CA certificates trusted by the currently managed Virtual Hub. To get a list of the current certificates you can use the EnumCa API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteCa = function (in_param) {\r\n return _this.CallAsync(\"DeleteCa\", in_param);\r\n };\r\n /** Create New Cascade Connection. Use this to create a new Cascade Connection on the currently managed Virtual Hub. By using a Cascade Connection, you can connect this Virtual Hub by Cascade Connection to another Virtual Hub that is operating on the same or a different computer. To create a Cascade Connection, you must specify the name of the Cascade Connection, destination server and destination Virtual Hub and user name. When a new Cascade Connection is created, the type of user authentication is initially set as Anonymous Authentication and the proxy server setting and the verification options of the server certificate is not set. To change these settings and other advanced settings after a Cascade Connection has been created, use the other APIs that include the name \"Link\". [Warning About Cascade Connections] By connecting using a Cascade Connection you can create a Layer 2 bridge between multiple Virtual Hubs but if the connection is incorrectly configured, a loopback Cascade Connection could inadvertently be created. When using a Cascade Connection function please design the network topology with care. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.CreateLink = function (in_param) {\r\n return _this.CallAsync(\"CreateLink\", in_param);\r\n };\r\n /** Get the Cascade Connection Setting. Use this to get the Connection Setting of a Cascade Connection that is registered on the currently managed Virtual Hub. To change the Connection Setting contents of the Cascade Connection, use the APIs that include the name \"Link\" after creating the Cascade Connection. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetLink = function (in_param) {\r\n return _this.CallAsync(\"GetLink\", in_param);\r\n };\r\n /** Change Existing Cascade Connection. Use this to alter the setting of an existing Cascade Connection on the currently managed Virtual Hub. */\r\n this.SetLink = function (in_param) {\r\n return _this.CallAsync(\"SetLink\", in_param);\r\n };\r\n /** Get List of Cascade Connections. Use this to get a list of Cascade Connections that are registered on the currently managed Virtual Hub. By using a Cascade Connection, you can connect this Virtual Hub by Layer 2 Cascade Connection to another Virtual Hub that is operating on the same or a different computer. [Warning About Cascade Connections] By connecting using a Cascade Connection you can create a Layer 2 bridge between multiple Virtual Hubs but if the connection is incorrectly configured, a loopback Cascade Connection could inadvertently be created. When using a Cascade Connection function please design the network topology with care. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumLink = function (in_param) {\r\n return _this.CallAsync(\"EnumLink\", in_param);\r\n };\r\n /** Switch Cascade Connection to Online Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to switch that Cascade Connection to online status. The Cascade Connection that is switched to online status begins the process of connecting to the destination VPN Server in accordance with the Connection Setting. The Cascade Connection that is switched to online status will establish normal connection to the VPN Server or continue to attempt connection until it is switched to offline status. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetLinkOnline = function (in_param) {\r\n return _this.CallAsync(\"SetLinkOnline\", in_param);\r\n };\r\n /** Switch Cascade Connection to Offline Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to switch that Cascade Connection to offline status. The Cascade Connection that is switched to offline will not connect to the VPN Server until next time it is switched to the online status using the SetLinkOnline API You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetLinkOffline = function (in_param) {\r\n return _this.CallAsync(\"SetLinkOffline\", in_param);\r\n };\r\n /** Delete Cascade Connection Setting. Use this to delete a Cascade Connection that is registered on the currently managed Virtual Hub. If the specified Cascade Connection has a status of online, the connections will be automatically disconnected and then the Cascade Connection will be deleted. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DeleteLink = function (in_param) {\r\n return _this.CallAsync(\"DeleteLink\", in_param);\r\n };\r\n /** Change Name of Cascade Connection. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to change the name of that Cascade Connection. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.RenameLink = function (in_param) {\r\n return _this.CallAsync(\"RenameLink\", in_param);\r\n };\r\n /** Get Current Cascade Connection Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified and that Cascade Connection is currently online, use this to get its connection status and other information. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetLinkStatus = function (in_param) {\r\n return _this.CallAsync(\"GetLinkStatus\", in_param);\r\n };\r\n /** Add Access List Rule. Use this to add a new rule to the access list of the currently managed Virtual Hub. The access list is a set of packet file rules that are applied to packets that flow through the Virtual Hub. You can register multiple rules in an access list and you can also define an priority for each rule. All packets are checked for the conditions specified by the rules registered in the access list and based on the operation that is stipulated by the first matching rule, they either pass or are discarded. Packets that do not match any rule are implicitly allowed to pass. You can also use the access list to generate delays, jitters and packet losses. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.AddAccess = function (in_param) {\r\n return _this.CallAsync(\"AddAccess\", in_param);\r\n };\r\n /** Delete Rule from Access List. Use this to specify a packet filter rule registered on the access list of the currently managed Virtual Hub and delete it. To delete a rule, you must specify that rule's ID. You can display the ID by using the EnumAccess API. If you wish not to delete the rule but to only temporarily disable it, use the SetAccessList API to set the rule status to disable. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteAccess = function (in_param) {\r\n return _this.CallAsync(\"DeleteAccess\", in_param);\r\n };\r\n /** Get Access List Rule List. Use this to get a list of packet filter rules that are registered on access list of the currently managed Virtual Hub. The access list is a set of packet file rules that are applied to packets that flow through the Virtual Hub. You can register multiple rules in an access list and you can also define a priority for each rule. All packets are checked for the conditions specified by the rules registered in the access list and based on the operation that is stipulated by the first matching rule, they either pass or are discarded. Packets that do not match any rule are implicitly allowed to pass. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumAccess = function (in_param) {\r\n return _this.CallAsync(\"EnumAccess\", in_param);\r\n };\r\n /** Replace all access lists on a single bulk API call. This API removes all existing access list rules on the Virtual Hub, and replace them by new access list rules specified by the parameter. */\r\n this.SetAccessList = function (in_param) {\r\n return _this.CallAsync(\"SetAccessList\", in_param);\r\n };\r\n /** Create a user. Use this to create a new user in the security account database of the currently managed Virtual Hub. By creating a user, the VPN Client can connect to the Virtual Hub by using the authentication information of that user. Note that a user whose user name has been created as \"*\" (a single asterisk character) will automatically be registered as a RADIUS authentication user. For cases where there are users with \"*\" as the name, when a user, whose user name that has been provided when a client connected to a VPN Server does not match existing user names, is able to be authenticated by a RADIUS server or NT domain controller by inputting a user name and password, the authentication settings and security policy settings will follow the setting for the user \"*\". To change the user information of a user that has been created, use the SetUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.CreateUser = function (in_param) {\r\n return _this.CallAsync(\"CreateUser\", in_param);\r\n };\r\n /** Change User Settings. Use this to change user settings that is registered on the security account database of the currently managed Virtual Hub. The user settings that can be changed using this API are the three items that are specified when a new user is created using the CreateUser API: Group Name, Full Name, and Description. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.SetUser = function (in_param) {\r\n return _this.CallAsync(\"SetUser\", in_param);\r\n };\r\n /** Get User Settings. Use this to get user settings information that is registered on the security account database of the currently managed Virtual Hub. The information that you can get using this API are User Name, Full Name, Group Name, Expiration Date, Security Policy, and Auth Type, as well as parameters that are specified as auth type attributes and the statistical data of that user. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetUser = function (in_param) {\r\n return _this.CallAsync(\"GetUser\", in_param);\r\n };\r\n /** Delete a user. Use this to delete a user that is registered on the security account database of the currently managed Virtual Hub. By deleting the user, that user will no long be able to connect to the Virtual Hub. You can use the SetUser API to set the user's security policy to deny access instead of deleting a user, set the user to be temporarily denied from logging in. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteUser = function (in_param) {\r\n return _this.CallAsync(\"DeleteUser\", in_param);\r\n };\r\n /** Get List of Users. Use this to get a list of users that are registered on the security account database of the currently managed Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumUser = function (in_param) {\r\n return _this.CallAsync(\"EnumUser\", in_param);\r\n };\r\n /** Create Group. Use this to create a new group in the security account database of the currently managed Virtual Hub. You can register multiple users in a group. To register users in a group use the SetUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.CreateGroup = function (in_param) {\r\n return _this.CallAsync(\"CreateGroup\", in_param);\r\n };\r\n /** Set group settings. Use this to set group settings that is registered on the security account database of the currently managed Virtual Hub. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.SetGroup = function (in_param) {\r\n return _this.CallAsync(\"SetGroup\", in_param);\r\n };\r\n /** Get Group Setting (Sync mode). Use this to get the setting of a group that is registered on the security account database of the currently managed Virtual Hub. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetGroup = function (in_param) {\r\n return _this.CallAsync(\"GetGroup\", in_param);\r\n };\r\n /** Delete User from Group. Use this to delete a specified user from the group that is registered on the security account database of the currently managed Virtual Hub. By deleting a user from the group, that user becomes unassigned. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteGroup = function (in_param) {\r\n return _this.CallAsync(\"DeleteGroup\", in_param);\r\n };\r\n /** Get List of Groups. Use this to get a list of groups that are registered on the security account database of the currently managed Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumGroup = function (in_param) {\r\n return _this.CallAsync(\"EnumGroup\", in_param);\r\n };\r\n /** Get List of Connected VPN Sessions. Use this to get a list of the sessions connected to the Virtual Hub currently being managed. In the list of sessions, the following information will be obtained for each connection: Session Name, Session Site, User Name, Source Host Name, TCP Connection, Transfer Bytes and Transfer Packets. If the currently connected VPN Server is a cluster controller and the currently managed Virtual Hub is a static Virtual Hub, you can get an all-linked-together list of all sessions connected to that Virtual Hub on all cluster members. In all other cases, only the list of sessions that are actually connected to the currently managed VPN Server will be obtained. */\r\n this.EnumSession = function (in_param) {\r\n return _this.CallAsync(\"EnumSession\", in_param);\r\n };\r\n /** Get Session Status. Use this to specify a session currently connected to the currently managed Virtual Hub and get the session information. The session status includes the following: source host name and user name, version information, time information, number of TCP connections, communication parameters, session key, statistical information on data transferred, and other client and server information. To get the list of currently connected sessions, use the EnumSession API. */\r\n this.GetSessionStatus = function (in_param) {\r\n return _this.CallAsync(\"GetSessionStatus\", in_param);\r\n };\r\n /** Disconnect Session. Use this to specify a session currently connected to the currently managed Virtual Hub and forcefully disconnect that session using manager privileges. Note that when communication is disconnected by settings on the source client side and the automatically reconnect option is enabled, it is possible that the client will reconnect. To get the list of currently connected sessions, use the EnumSession API. */\r\n this.DeleteSession = function (in_param) {\r\n return _this.CallAsync(\"DeleteSession\", in_param);\r\n };\r\n /** Get the MAC Address Table Database. Use this to get the MAC address table database that is held by the currently managed Virtual Hub. The MAC address table database is a table that the Virtual Hub requires to perform the action of switching Ethernet frames and the Virtual Hub decides the sorting destination session of each Ethernet frame based on the MAC address table database. The MAC address database is built by the Virtual Hub automatically analyzing the contents of the communication. */\r\n this.EnumMacTable = function (in_param) {\r\n return _this.CallAsync(\"EnumMacTable\", in_param);\r\n };\r\n /** Delete MAC Address Table Entry. Use this API to operate the MAC address table database held by the currently managed Virtual Hub and delete a specified MAC address table entry from the database. To get the contents of the current MAC address table database use the EnumMacTable API. */\r\n this.DeleteMacTable = function (in_param) {\r\n return _this.CallAsync(\"DeleteMacTable\", in_param);\r\n };\r\n /** Get the IP Address Table Database. Use this to get the IP address table database that is held by the currently managed Virtual Hub. The IP address table database is a table that is automatically generated by analyzing the contents of communication so that the Virtual Hub can always know which session is using which IP address and it is frequently used by the engine that applies the Virtual Hub security policy. By specifying the session name you can get the IP address table entry that has been associated with that session. */\r\n this.EnumIpTable = function (in_param) {\r\n return _this.CallAsync(\"EnumIpTable\", in_param);\r\n };\r\n /** Delete IP Address Table Entry. Use this API to operate the IP address table database held by the currently managed Virtual Hub and delete a specified IP address table entry from the database. To get the contents of the current IP address table database use the EnumIpTable API. */\r\n this.DeleteIpTable = function (in_param) {\r\n return _this.CallAsync(\"DeleteIpTable\", in_param);\r\n };\r\n /** Set the Keep Alive Internet Connection Function. Use this to set the destination host name etc. of the Keep Alive Internet Connection Function. For network connection environments where connections will automatically be disconnected where there are periods of no communication that are longer than a set period, by using the Keep Alive Internet Connection Function, it is possible to keep alive the Internet connection by sending packets to a nominated server on the Internet at set intervals. When using this API, you can specify the following: Host Name, Port Number, Packet Send Interval, and Protocol. Packets sent to keep alive the Internet connection will have random content and personal information that could identify a computer or user is not sent. You can use the SetKeep API to enable/disable the Keep Alive Internet Connection Function. To execute this API on a VPN Server or VPN Bridge, you must have administrator privileges. */\r\n this.SetKeep = function (in_param) {\r\n return _this.CallAsync(\"SetKeep\", in_param);\r\n };\r\n /** Get the Keep Alive Internet Connection Function. Use this to get the current setting contents of the Keep Alive Internet Connection Function. In addition to the destination's Host Name, Port Number, Packet Send Interval and Protocol, you can obtain the current enabled/disabled status of the Keep Alive Internet Connection Function. */\r\n this.GetKeep = function (in_param) {\r\n return _this.CallAsync(\"GetKeep\", in_param);\r\n };\r\n /** Enable the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to enable the Virtual NAT and DHCP Server function (SecureNAT Function) on the currently managed Virtual Hub and begin its operation. Before executing this API, you must first check the setting contents of the current Virtual NAT function and DHCP Server function using the SetSecureNATOption API and GetSecureNATOption API. By enabling the SecureNAT function, you can virtually operate a NAT router (IP masquerade) and the DHCP Server function on a virtual network on the Virtual Hub. [Warning about SecureNAT Function] The SecureNAT function is recommended only for system administrators and people with a detailed knowledge of networks. If you use the SecureNAT function correctly, it is possible to achieve a safe form of remote access via a VPN. However when used in the wrong way, it can put the entire network in danger. Anyone who does not have a thorough knowledge of networks and anyone who does not have the network administrator's permission must not enable the SecureNAT function. For a detailed explanation of the SecureNAT function, please refer to the VPN Server's manual and online documentation. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnableSecureNAT = function (in_param) {\r\n return _this.CallAsync(\"EnableSecureNAT\", in_param);\r\n };\r\n /** Disable the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to disable the Virtual NAT and DHCP Server function (SecureNAT Function) on the currently managed Virtual Hub. By executing this API the Virtual NAT function immediately stops operating and the Virtual DHCP Server function deletes the DHCP lease database and stops the service. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DisableSecureNAT = function (in_param) {\r\n return _this.CallAsync(\"DisableSecureNAT\", in_param);\r\n };\r\n /** Change Settings of SecureNAT Function. Use this to change and save the virtual host network interface settings, virtual NAT function settings and virtual DHCP server settings of the Virtual NAT and DHCP Server function (SecureNAT function) on the currently managed Virtual Hub. The SecureNAT function holds one virtual network adapter on the L2 segment inside the Virtual Hub and it has been assigned a MAC address and an IP address. By doing this, another host connected to the same L2 segment is able to communicate with the SecureNAT virtual host as if it is an actual IP host existing on the network. [Warning about SecureNAT Function] The SecureNAT function is recommended only for system administrators and people with a detailed knowledge of networks. If you use the SecureNAT function correctly, it is possible to achieve a safe form of remote access via a VPN. However when used in the wrong way, it can put the entire network in danger. Anyone who does not have a thorough knowledge of networks and anyone who does not have the network administrators permission must not enable the SecureNAT function. For a detailed explanation of the SecureNAT function, please refer to the VPN Server's manual and online documentation. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetSecureNATOption = function (in_param) {\r\n return _this.CallAsync(\"SetSecureNATOption\", in_param);\r\n };\r\n /** Get Settings of SecureNAT Function. This API get the registered settings for the SecureNAT function which is set by the SetSecureNATOption API. */\r\n this.GetSecureNATOption = function (in_param) {\r\n return _this.CallAsync(\"GetSecureNATOption\", in_param);\r\n };\r\n /** Get Virtual NAT Function Session Table of SecureNAT Function. Use this to get the table of TCP and UDP sessions currently communicating via the Virtual NAT (NAT table) in cases when the Virtual NAT function is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumNAT = function (in_param) {\r\n return _this.CallAsync(\"EnumNAT\", in_param);\r\n };\r\n /** Get Virtual DHCP Server Function Lease Table of SecureNAT Function. Use this to get the lease table of IP addresses, held by the Virtual DHCP Server, that are assigned to clients in cases when the Virtual NAT function is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumDHCP = function (in_param) {\r\n return _this.CallAsync(\"EnumDHCP\", in_param);\r\n };\r\n /** Get the Operating Status of the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to get the operating status of the Virtual NAT and DHCP Server function (SecureNAT Function) when it is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetSecureNATStatus = function (in_param) {\r\n return _this.CallAsync(\"GetSecureNATStatus\", in_param);\r\n };\r\n /** Get List of Network Adapters Usable as Local Bridge. Use this to get a list of Ethernet devices (network adapters) that can be used as a bridge destination device as part of a Local Bridge connection. If possible, network connection name is displayed. You can use a device displayed here by using the AddLocalBridge API. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumEthernet = function () {\r\n return _this.CallAsync(\"EnumEthernet\", new VpnRpcEnumEth());\r\n };\r\n /** Create Local Bridge Connection. Use this to create a new Local Bridge connection on the VPN Server. By using a Local Bridge, you can configure a Layer 2 bridge connection between a Virtual Hub operating on this VPN server and a physical Ethernet Device (Network Adapter). You can create a tap device (virtual network interface) on the system and connect a bridge between Virtual Hubs (the tap device is only supported by Linux versions). It is possible to establish a bridge to an operating network adapter of your choice for the bridge destination Ethernet device (network adapter), but in high load environments, we recommend you prepare a network adapter dedicated to serve as a bridge. To call this API, you must have VPN Server administrator privileges. */\r\n this.AddLocalBridge = function (in_param) {\r\n return _this.CallAsync(\"AddLocalBridge\", in_param);\r\n };\r\n /** Delete Local Bridge Connection. Use this to delete an existing Local Bridge connection. To get a list of current Local Bridge connections use the EnumLocalBridge API. To call this API, you must have VPN Server administrator privileges. */\r\n this.DeleteLocalBridge = function (in_param) {\r\n return _this.CallAsync(\"DeleteLocalBridge\", in_param);\r\n };\r\n /** Get List of Local Bridge Connection. Use this to get a list of the currently defined Local Bridge connections. You can get the Local Bridge connection Virtual Hub name and the bridge destination Ethernet device (network adapter) name or tap device name, as well as the operating status. */\r\n this.EnumLocalBridge = function () {\r\n return _this.CallAsync(\"EnumLocalBridge\", new VpnRpcEnumLocalBridge());\r\n };\r\n /** Get whether the localbridge function is supported on the current system. */\r\n this.GetBridgeSupport = function () {\r\n return _this.CallAsync(\"GetBridgeSupport\", new VpnRpcBridgeSupport());\r\n };\r\n /** Reboot VPN Server Service. Use this to restart the VPN Server service. When you restart the VPN Server, all currently connected sessions and TCP connections will be disconnected and no new connections will be accepted until the restart process has completed. By using this API, only the VPN Server service program will be restarted and the physical computer that VPN Server is operating on does not restart. This management session will also be disconnected, so you will need to reconnect to continue management. Also, by specifying the \"IntValue\" parameter to \"1\", the contents of the configuration file (.config) held by the current VPN Server will be initialized. To call this API, you must have VPN Server administrator privileges. */\r\n this.RebootServer = function (in_param) {\r\n return _this.CallAsync(\"RebootServer\", in_param);\r\n };\r\n /** Get List of Server Functions / Capability. Use this get a list of functions and capability of the VPN Server currently connected and being managed. The function and capability of VPN Servers are different depending on the operating VPN server's edition and version. Using this API, you can find out the capability of the target VPN Server and report it. */\r\n this.GetCaps = function () {\r\n return _this.CallAsync(\"GetCaps\", new VpnCapslist());\r\n };\r\n /** Get the current configuration of the VPN Server. Use this to get a text file (.config file) that contains the current configuration contents of the VPN server. You can get the status on the VPN Server at the instant this API is executed. You can edit the configuration file by using a regular text editor. To write an edited configuration to the VPN Server, use the SetConfig API. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetConfig = function () {\r\n return _this.CallAsync(\"GetConfig\", new VpnRpcConfig());\r\n };\r\n /** Write Configuration File to VPN Server. Use this to write the configuration file to the VPN Server. By executing this API, the contents of the specified configuration file will be applied to the VPN Server and the VPN Server program will automatically restart and upon restart, operate according to the new configuration contents. Because it is difficult for an administrator to write all the contents of a configuration file, we recommend you use the GetConfig API to get the current contents of the VPN Server configuration and save it to file. You can then edit these contents in a regular text editor and then use the SetConfig API to rewrite the contents to the VPN Server. This API is for people with a detailed knowledge of the VPN Server and if an incorrectly configured configuration file is written to the VPN Server, it not only could cause errors, it could also result in the lost of the current setting data. Take special care when carrying out this action. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetConfig = function (in_param) {\r\n return _this.CallAsync(\"SetConfig\", in_param);\r\n };\r\n /** Get Virtual Hub Administration Option default values. */\r\n this.GetDefaultHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"GetDefaultHubAdminOptions\", in_param);\r\n };\r\n /** Get List of Virtual Hub Administration Options. Use this to get a list of Virtual Hub administration options that are set on the currently managed Virtual Hub. The purpose of the Virtual Hub administration options is for the VPN Server Administrator to set limits for the setting ranges when the administration of the Virtual Hub is to be trusted to each Virtual Hub administrator. Only an administrator with administration privileges for this entire VPN Server is able to add, edit and delete the Virtual Hub administration options. The Virtual Hub administrators are unable to make changes to the administration options, however they are able to view them. There is an exception however. If allow_hub_admin_change_option is set to \"1\", even Virtual Hub administrators are able to edit the administration options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.GetHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"GetHubAdminOptions\", in_param);\r\n };\r\n /** Set Values of Virtual Hub Administration Options. Use this to change the values of Virtual Hub administration options that are set on the currently managed Virtual Hub. The purpose of the Virtual Hub administration options is for the VPN Server Administrator to set limits for the setting ranges when the administration of the Virtual Hub is to be trusted to each Virtual Hub administrator. Only an administrator with administration privileges for this entire VPN Server is able to add, edit and delete the Virtual Hub administration options. The Virtual Hub administrators are unable to make changes to the administration options, however they are able to view them. There is an exception however. If allow_hub_admin_change_option is set to \"1\", even Virtual Hub administrators are able to edit the administration options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.SetHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"SetHubAdminOptions\", in_param);\r\n };\r\n /** Get List of Virtual Hub Extended Options. Use this to get a Virtual Hub Extended Options List that is set on the currently managed Virtual Hub. Virtual Hub Extended Option enables you to configure more detail settings of the Virtual Hub. By default, both VPN Server's global administrators and individual Virtual Hub's administrators can modify the Virtual Hub Extended Options. However, if the deny_hub_admin_change_ext_option is set to 1 on the Virtual Hub Admin Options, the individual Virtual Hub's administrators cannot modify the Virtual Hub Extended Options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.GetHubExtOptions = function (in_param) {\r\n return _this.CallAsync(\"GetHubExtOptions\", in_param);\r\n };\r\n /** Set a Value of Virtual Hub Extended Options. Use this to set a value in the Virtual Hub Extended Options List that is set on the currently managed Virtual Hub. Virtual Hub Extended Option enables you to configure more detail settings of the Virtual Hub. By default, both VPN Server's global administrators and individual Virtual Hub's administrators can modify the Virtual Hub Extended Options. However, if the deny_hub_admin_change_ext_option is set to 1 on the Virtual Hub Admin Options, the individual Virtual Hub's administrators cannot modify the Virtual Hub Extended Options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.SetHubExtOptions = function (in_param) {\r\n return _this.CallAsync(\"SetHubExtOptions\", in_param);\r\n };\r\n /** Define New Virtual Layer 3 Switch. Use this to define a new Virtual Layer 3 Switch on the VPN Server. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.AddL3Switch = function (in_param) {\r\n return _this.CallAsync(\"AddL3Switch\", in_param);\r\n };\r\n /** Delete Virtual Layer 3 Switch. Use this to delete an existing Virtual Layer 3 Switch that is defined on the VPN Server. When the specified Virtual Layer 3 Switch is operating, it will be automatically deleted after operation stops. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.DelL3Switch = function (in_param) {\r\n return _this.CallAsync(\"DelL3Switch\", in_param);\r\n };\r\n /** Get List of Virtual Layer 3 Switches. Use this to define a new Virtual Layer 3 Switch on the VPN Server. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.EnumL3Switch = function () {\r\n return _this.CallAsync(\"EnumL3Switch\", new VpnRpcEnumL3Sw());\r\n };\r\n /** Start Virtual Layer 3 Switch Operation. Use this to start the operation of an existing Virtual Layer 3 Switch defined on the VPN Server whose operation is currently stopped. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.StartL3Switch = function (in_param) {\r\n return _this.CallAsync(\"StartL3Switch\", in_param);\r\n };\r\n /** Stop Virtual Layer 3 Switch Operation. Use this to stop the operation of an existing Virtual Layer 3 Switch defined on the VPN Server whose operation is currently operating. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. */\r\n this.StopL3Switch = function (in_param) {\r\n return _this.CallAsync(\"StopL3Switch\", in_param);\r\n };\r\n /** Add Virtual Interface to Virtual Layer 3 Switch. Use this to add to a specified Virtual Layer 3 Switch, a virtual interface that connects to a Virtual Hub operating on the same VPN Server. You can define multiple virtual interfaces and routing tables for a single Virtual Layer 3 Switch. A virtual interface is associated to a virtual Hub and operates as a single IP host on the Virtual Hub when that Virtual Hub is operating. When multiple virtual interfaces that respectively belong to a different IP network of a different Virtual Hub are defined, IP routing will be automatically performed between these interfaces. You must define the IP network space that the virtual interface belongs to and the IP address of the interface itself. Also, you must specify the name of the Virtual Hub that the interface will connect to. You can specify a Virtual Hub that currently doesn't exist for the Virtual Hub name. The virtual interface must have one IP address in the Virtual Hub. You also must specify the subnet mask of an IP network that the IP address belongs to. Routing via the Virtual Layer 3 Switches of IP spaces of multiple virtual Hubs operates based on the IP address is specified here. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.AddL3If = function (in_param) {\r\n return _this.CallAsync(\"AddL3If\", in_param);\r\n };\r\n /** Delete Virtual Interface of Virtual Layer 3 Switch. Use this to delete a virtual interface already defined in the specified Virtual Layer 3 Switch. You can get a list of the virtual interfaces currently defined, by using the EnumL3If API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.DelL3If = function (in_param) {\r\n return _this.CallAsync(\"DelL3If\", in_param);\r\n };\r\n /** Get List of Interfaces Registered on the Virtual Layer 3 Switch. Use this to get a list of virtual interfaces when virtual interfaces have been defined on a specified Virtual Layer 3 Switch. You can define multiple virtual interfaces and routing tables for a single Virtual Layer 3 Switch. A virtual interface is associated to a virtual Hub and operates as a single IP host on the Virtual Hub when that Virtual Hub is operating. When multiple virtual interfaces that respectively belong to a different IP network of a different Virtual Hub are defined, IP routing will be automatically performed between these interfaces. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.EnumL3If = function (in_param) {\r\n return _this.CallAsync(\"EnumL3If\", in_param);\r\n };\r\n /** Add Routing Table Entry for Virtual Layer 3 Switch. Here you can add a new routing table entry to the routing table of the specified Virtual Layer 3 Switch. If the destination IP address of the IP packet does not belong to any IP network that belongs to a virtual interface, the IP routing engine of the Virtual Layer 3 Switch will reference the routing table and execute routing. You must specify the contents of the routing table entry to be added to the Virtual Layer 3 Switch. You must specify any IP address that belongs to the same IP network in the virtual interface of this Virtual Layer 3 Switch as the gateway address. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.AddL3Table = function (in_param) {\r\n return _this.CallAsync(\"AddL3Table\", in_param);\r\n };\r\n /** Delete Routing Table Entry of Virtual Layer 3 Switch. Use this to delete a routing table entry that is defined in the specified Virtual Layer 3 Switch. You can get a list of the already defined routing table entries by using the EnumL3Table API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.DelL3Table = function (in_param) {\r\n return _this.CallAsync(\"DelL3Table\", in_param);\r\n };\r\n /** Get List of Routing Tables of Virtual Layer 3 Switch. Use this to get a list of routing tables when routing tables have been defined on a specified Virtual Layer 3 Switch. If the destination IP address of the IP packet does not belong to any IP network that belongs to a virtual interface, the IP routing engine of the Virtual Layer 3 Switch will reference this routing table and execute routing. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.EnumL3Table = function (in_param) {\r\n return _this.CallAsync(\"EnumL3Table\", in_param);\r\n };\r\n /** Get List of Certificates Revocation List. Use this to get a Certificates Revocation List that is set on the currently managed Virtual Hub. By registering certificates in the Certificates Revocation List, the clients who provide these certificates will be unable to connect to this Virtual Hub using certificate authentication mode. Normally with this function, in cases where the security of a private key has been compromised or where a person holding a certificate has been stripped of their privileges, by registering that certificate as invalid on the Virtual Hub, it is possible to deny user authentication when that certificate is used by a client to connect to the Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumCrl = function (in_param) {\r\n return _this.CallAsync(\"EnumCrl\", in_param);\r\n };\r\n /** Add a Revoked Certificate. Use this to add a new revoked certificate definition in the Certificate Revocation List that is set on the currently managed Virtual Hub. Specify the contents to be registered in the Certificate Revocation List by using the parameters of this API. When a user connects to a Virtual Hub in certificate authentication mode and that certificate matches 1 or more of the contents registered in the certificates revocation list, the user is denied connection. A certificate that matches all the conditions that are defined by the parameters specified by this API will be judged as invalid. The items that can be set are as follows: Name (CN), Organization (O), Organization Unit (OU), Country (C), State (ST), Locale (L), Serial Number (hexadecimal), MD5 Digest Value (hexadecimal, 128 bit), and SHA-1 Digest Value (hexadecimal, 160 bit). For the specification of a digest value (hash value) a certificate is optionally specified depending on the circumstances. Normally when a MD5 or SHA-1 digest value is input, it is not necessary to input the other items. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.AddCrl = function (in_param) {\r\n return _this.CallAsync(\"AddCrl\", in_param);\r\n };\r\n /** Delete a Revoked Certificate. Use this to specify and delete a revoked certificate definition from the certificate revocation list that is set on the currently managed Virtual Hub. To get the list of currently registered revoked certificate definitions, use the EnumCrl API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DelCrl = function (in_param) {\r\n return _this.CallAsync(\"DelCrl\", in_param);\r\n };\r\n /** Get a Revoked Certificate. Use this to specify and get the contents of a revoked certificate definition from the Certificates Revocation List that is set on the currently managed Virtual Hub. To get the list of currently registered revoked certificate definitions, use the EnumCrl API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetCrl = function (in_param) {\r\n return _this.CallAsync(\"GetCrl\", in_param);\r\n };\r\n /** Change Existing CRL (Certificate Revocation List) Entry. Use this to alter an existing revoked certificate definition in the Certificate Revocation List that is set on the currently managed Virtual Hub. Specify the contents to be registered in the Certificate Revocation List by using the parameters of this API. When a user connects to a Virtual Hub in certificate authentication mode and that certificate matches 1 or more of the contents registered in the certificates revocation list, the user is denied connection. A certificate that matches all the conditions that are defined by the parameters specified by this API will be judged as invalid. The items that can be set are as follows: Name (CN), Organization (O), Organization Unit (OU), Country (C), State (ST), Locale (L), Serial Number (hexadecimal), MD5 Digest Value (hexadecimal, 128 bit), and SHA-1 Digest Value (hexadecimal, 160 bit). For the specification of a digest value (hash value) a certificate is optionally specified depending on the circumstances. Normally when a MD5 or SHA-1 digest value is input, it is not necessary to input the other items. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetCrl = function (in_param) {\r\n return _this.CallAsync(\"SetCrl\", in_param);\r\n };\r\n /** Add Rule to Source IP Address Limit List. Use this to add a new rule to the Source IP Address Limit List that is set on the currently managed Virtual Hub. The items set here will be used to decide whether to allow or deny connection from a VPN Client when this client attempts connection to the Virtual Hub. You can specify a client IP address, or IP address or mask to match the rule as the contents of the rule item. By specifying an IP address only, there will only be one specified computer that will match the rule, but by specifying an IP net mask address or subnet mask address, all the computers in the range of that subnet will match the rule. You can specify the priority for the rule. You can specify an integer of 1 or greater for the priority and the smaller the number, the higher the priority. To get a list of the currently registered Source IP Address Limit List, use the GetAcList API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetAcList = function (in_param) {\r\n return _this.CallAsync(\"SetAcList\", in_param);\r\n };\r\n /** Get List of Rule Items of Source IP Address Limit List. Use this to get a list of Source IP Address Limit List rules that is set on the currently managed Virtual Hub. You can allow or deny VPN connections to this Virtual Hub according to the client computer's source IP address. You can define multiple rules and set a priority for each rule. The search proceeds from the rule with the highest order or priority and based on the action of the rule that the IP address first matches, the connection from the client is either allowed or denied. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetAcList = function (in_param) {\r\n return _this.CallAsync(\"GetAcList\", in_param);\r\n };\r\n /** Get List of Log Files. Use this to display a list of log files outputted by the VPN Server that have been saved on the VPN Server computer. By specifying a log file file name displayed here and calling it using the ReadLogFile API you can download the contents of the log file. If you are connected to the VPN Server in server admin mode, you can display or download the packet logs and security logs of all Virtual Hubs and the server log of the VPN Server. When connected in Virtual Hub Admin Mode, you are able to view or download only the packet log and security log of the Virtual Hub that is the target of management. */\r\n this.EnumLogFile = function () {\r\n return _this.CallAsync(\"EnumLogFile\", new VpnRpcEnumLogFile());\r\n };\r\n /** Download a part of Log File. Use this to download the log file that is saved on the VPN Server computer. To download the log file first get the list of log files using the EnumLogFile API and then download the log file using the ReadLogFile API. If you are connected to the VPN Server in server admin mode, you can display or download the packet logs and security logs of all Virtual Hubs and the server log of the VPN Server. When connected in Virtual Hub Admin Mode, you are able to view or download only the packet log and security log of the Virtual Hub that is the target of management. */\r\n this.ReadLogFile = function (in_param) {\r\n return _this.CallAsync(\"ReadLogFile\", in_param);\r\n };\r\n /** Set syslog Send Function. Use this to set the usage of syslog send function and which syslog server to use. */\r\n this.SetSysLog = function (in_param) {\r\n return _this.CallAsync(\"SetSysLog\", in_param);\r\n };\r\n /** Get syslog Send Function. This allows you to get the current setting contents of the syslog send function. You can get the usage setting of the syslog function and the host name and port number of the syslog server to use. */\r\n this.GetSysLog = function (in_param) {\r\n return _this.CallAsync(\"GetSysLog\", in_param);\r\n };\r\n /** Set Today's Message of Virtual Hub. The message will be displayed on VPN Client UI when a user will establish a connection to the Virtual Hub. */\r\n this.SetHubMsg = function (in_param) {\r\n return _this.CallAsync(\"SetHubMsg\", in_param);\r\n };\r\n /** Get Today's Message of Virtual Hub. The message will be displayed on VPN Client UI when a user will establish a connection to the Virtual Hub. */\r\n this.GetHubMsg = function (in_param) {\r\n return _this.CallAsync(\"GetHubMsg\", in_param);\r\n };\r\n /** Raise a vital error on the VPN Server / Bridge to terminate the process forcefully. This API will raise a fatal error (memory access violation) on the VPN Server / Bridge running process in order to crash the process. As the result, VPN Server / Bridge will be terminated and restarted if it is running as a service mode. If the VPN Server is running as a user mode, the process will not automatically restarted. This API is for a situation when the VPN Server / Bridge is under a non-recoverable error or the process is in an infinite loop. This API will disconnect all VPN Sessions on the VPN Server / Bridge. All unsaved settings in the memory of VPN Server / Bridge will be lost. Before run this API, call the Flush API to try to save volatile data to the configuration file. To execute this API, you must have VPN Server / VPN Bridge administrator privileges. */\r\n this.Crash = function (in_param) {\r\n return _this.CallAsync(\"Crash\", in_param);\r\n };\r\n /** Get the message for administrators. */\r\n this.GetAdminMsg = function () {\r\n return _this.CallAsync(\"GetAdminMsg\", new VpnRpcMsg());\r\n };\r\n /** Save All Volatile Data of VPN Server / Bridge to the Configuration File. The number of configuration file bytes will be returned as the \"IntValue\" parameter. Normally, the VPN Server / VPN Bridge retains the volatile configuration data in memory. It is flushed to the disk as vpn_server.config or vpn_bridge.config periodically. The period is 300 seconds (5 minutes) by default. (The period can be altered by modifying the AutoSaveConfigSpan item in the configuration file.) The data will be saved on the timing of shutting down normally of the VPN Server / Bridge. Execute the Flush API to make the VPN Server / Bridge save the settings to the file immediately. The setting data will be stored on the disk drive of the server computer. Use the Flush API in a situation that you do not have an enough time to shut down the server process normally. To call this API, you must have VPN Server administrator privileges. To execute this API, you must have VPN Server / VPN Bridge administrator privileges. */\r\n this.Flush = function (in_param) {\r\n return _this.CallAsync(\"Flush\", in_param);\r\n };\r\n /** Enable or Disable IPsec VPN Server Function. Enable or Disable IPsec VPN Server Function on the VPN Server. If you enable this function, Virtual Hubs on the VPN Server will be able to accept Remote-Access VPN connections from L2TP-compatible PCs, Mac OS X and Smartphones, and also can accept EtherIP Site-to-Site VPN Connection. VPN Connections from Smartphones suchlike iPhone, iPad and Android, and also from native VPN Clients on Mac OS X and Windows can be accepted. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetIPsecServices = function (in_param) {\r\n return _this.CallAsync(\"SetIPsecServices\", in_param);\r\n };\r\n /** Get the Current IPsec VPN Server Settings. Get and view the current IPsec VPN Server settings on the VPN Server. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetIPsecServices = function () {\r\n return _this.CallAsync(\"GetIPsecServices\", new VpnIPsecServices());\r\n };\r\n /** Add New EtherIP / L2TPv3 over IPsec Client Setting to Accept EthreIP / L2TPv3 Client Devices. Add a new setting entry to enable the EtherIP / L2TPv3 over IPsec Server Function to accept client devices. In order to accept connections from routers by the EtherIP / L2TPv3 over IPsec Server Function, you have to define the relation table between an IPsec Phase 1 string which is presented by client devices of EtherIP / L2TPv3 over IPsec compatible router, and the designation of the destination Virtual Hub. After you add a definition entry by AddEtherIpId API, the defined connection setting to the Virtual Hub will be applied on the login-attepting session from an EtherIP / L2TPv3 over IPsec client device. The username and password in an entry must be registered on the Virtual Hub. An EtherIP / L2TPv3 client will be regarded as it connected the Virtual HUB with the identification of the above user information. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.AddEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"AddEtherIpId\", in_param);\r\n };\r\n /** Get the Current List of EtherIP / L2TPv3 Client Device Entry Definitions. This API gets and shows the list of entries to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"GetEtherIpId\", in_param);\r\n };\r\n /** Delete an EtherIP / L2TPv3 over IPsec Client Setting. This API deletes an entry to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DeleteEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"DeleteEtherIpId\", in_param);\r\n };\r\n /** Get the Current List of EtherIP / L2TPv3 Client Device Entry Definitions. This API gets and shows the list of entries to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumEtherIpId = function () {\r\n return _this.CallAsync(\"EnumEtherIpId\", new VpnRpcEnumEtherIpId());\r\n };\r\n /** Set Settings for OpenVPN Clone Server Function. The VPN Server has the clone functions of OpenVPN software products by OpenVPN Technologies, Inc. Any OpenVPN Clients can connect to this VPN Server. The manner to specify a username to connect to the Virtual Hub, and the selection rule of default Hub by using this clone server functions are same to the IPsec Server functions. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetOpenVpnSstpConfig = function (in_param) {\r\n return _this.CallAsync(\"SetOpenVpnSstpConfig\", in_param);\r\n };\r\n /** Get the Current Settings of OpenVPN Clone Server Function. Get and show the current settings of OpenVPN Clone Server Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetOpenVpnSstpConfig = function () {\r\n return _this.CallAsync(\"GetOpenVpnSstpConfig\", new VpnOpenVpnSstpConfig());\r\n };\r\n /** Show the Current Status of Dynamic DNS Function. Get and show the current status of the Dynamic DNS function. The Dynamic DNS assigns a unique and permanent DNS hostname for this VPN Server. You can use that hostname to specify this VPN Server on the settings for VPN Client and VPN Bridge. You need not to register and keep a domain name. Also, if your ISP assignes you a dynamic (not-fixed) IP address, the corresponding IP address of your Dynamic DNS hostname will be automatically changed. It enables you to keep running the VPN Server by using only a dynamic IP address. Therefore, you need not any longer to keep static global IP addresses with expenses monthly costs. [Caution] To disable the Dynamic DNS Function, modify the configuration file of VPN Server. The \"declare root\" directive has the \"declare DDnsClient\" directive. In this directive, you can switch \"bool Disable\" from false to true, and reboot the VPN Server, then the Dynamic DNS Function will be disabled. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.GetDDnsClientStatus = function () {\r\n return _this.CallAsync(\"GetDDnsClientStatus\", new VpnDDnsClientStatus());\r\n };\r\n /** Set the Dynamic DNS Hostname. You must specify the new hostname on the StrValue_str field. You can use this API to change the hostname assigned by the Dynamic DNS function. The currently assigned hostname can be showen by the GetDDnsClientStatus API. The Dynamic DNS assigns a unique and permanent DNS hostname for this VPN Server. You can use that hostname to specify this VPN Server on the settings for VPN Client and VPN Bridge. You need not to register and keep a domain name. Also, if your ISP assignes you a dynamic (not-fixed) IP address, the corresponding IP address of your Dynamic DNS hostname will be automatically changed. It enables you to keep running the VPN Server by using only a dynamic IP address. Therefore, you need not any longer to keep static global IP addresses with expenses monthly costs. [Caution] To disable the Dynamic DNS Function, modify the configuration file of VPN Server. The \"declare root\" directive has the \"declare DDnsClient\" directive. In this directive, you can switch \"bool Disable\" from false to true, and reboot the VPN Server, then the Dynamic DNS Function will be disabled. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.ChangeDDnsClientHostname = function (in_param) {\r\n return _this.CallAsync(\"ChangeDDnsClientHostname\", in_param);\r\n };\r\n /** Generate New Self-Signed Certificate with Specified CN (Common Name) and Register on VPN Server. You can specify the new CN (common name) value on the StrValue_str field. You can use this API to replace the current certificate on the VPN Server to a new self-signed certificate which has the CN (Common Name) value in the fields. This API is convenient if you are planning to use Microsoft SSTP VPN Clone Server Function. Because of the value of CN (Common Name) on the SSL certificate of VPN Server must match to the hostname specified on the SSTP VPN client. This API will delete the existing SSL certificate of the VPN Server. It is recommended to backup the current SSL certificate and private key by using the GetServerCert API beforehand. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.RegenerateServerCert = function (in_param) {\r\n return _this.CallAsync(\"RegenerateServerCert\", in_param);\r\n };\r\n /** Generate a Sample Setting File for OpenVPN Client. Originally, the OpenVPN Client requires a user to write a very difficult configuration file manually. This API helps you to make a useful configuration sample. What you need to generate the configuration file for the OpenVPN Client is to run this API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.MakeOpenVpnConfigFile = function () {\r\n return _this.CallAsync(\"MakeOpenVpnConfigFile\", new VpnRpcReadLogFile());\r\n };\r\n /** Enable / Disable the VPN over ICMP / VPN over DNS Server Function. You can establish a VPN only with ICMP or DNS packets even if there is a firewall or routers which blocks TCP/IP communications. You have to enable the following functions beforehand. Warning: Use this function for emergency only. It is helpful when a firewall or router is misconfigured to blocks TCP/IP, but either ICMP or DNS is not blocked. It is not for long-term stable using. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.SetSpecialListener = function (in_param) {\r\n return _this.CallAsync(\"SetSpecialListener\", in_param);\r\n };\r\n /** Get Current Setting of the VPN over ICMP / VPN over DNS Function. Get and show the current VPN over ICMP / VPN over DNS Function status. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.GetSpecialListener = function () {\r\n return _this.CallAsync(\"GetSpecialListener\", new VpnRpcSpecialListener());\r\n };\r\n /** Show the current status of VPN Azure function. Get and show the current status of the VPN Azure function. VPN Azure makes it easier to establish a VPN Session from your home PC to your office PC. While a VPN connection is established, you can access to any other servers on the private network of your company. You don't need a global IP address on the office PC (VPN Server). It can work behind firewalls or NATs. No network administrator's configuration required. You can use the built-in SSTP-VPN Client of Windows in your home PC. VPN Azure is a cloud VPN service operated by SoftEther Corporation. VPN Azure is free of charge and available to anyone. Visit http://www.vpnazure.net/ to see details and how-to-use instructions. The VPN Azure hostname is same to the hostname of the Dynamic DNS setting, but altering the domain suffix to \"vpnazure.net\". To change the hostname use the ChangeDDnsClientHostname API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetAzureStatus = function () {\r\n return _this.CallAsync(\"GetAzureStatus\", new VpnRpcAzureStatus());\r\n };\r\n /** Enable / Disable VPN Azure Function. Enable or disable the VPN Azure function. VPN Azure makes it easier to establish a VPN Session from your home PC to your office PC. While a VPN connection is established, you can access to any other servers on the private network of your company. You don't need a global IP address on the office PC (VPN Server). It can work behind firewalls or NATs. No network administrator's configuration required. You can use the built-in SSTP-VPN Client of Windows in your home PC. VPN Azure is a cloud VPN service operated by SoftEther Corporation. VPN Azure is free of charge and available to anyone. Visit http://www.vpnazure.net/ to see details and how-to-use instructions. The VPN Azure hostname is same to the hostname of the Dynamic DNS setting, but altering the domain suffix to \"vpnazure.net\". To change the hostname use the ChangeDDnsClientHostname API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetAzureStatus = function (in_param) {\r\n return _this.CallAsync(\"SetAzureStatus\", in_param);\r\n };\r\n /** Get the Proxy Settings for Connecting to the DDNS server. */\r\n this.GetDDnsInternetSettng = function () {\r\n return _this.CallAsync(\"GetDDnsInternetSettng\", new VpnInternetSetting());\r\n };\r\n /** Set the Proxy Settings for Connecting to the DDNS server. */\r\n this.SetDDnsInternetSettng = function (in_param) {\r\n return _this.CallAsync(\"SetDDnsInternetSettng\", in_param);\r\n };\r\n /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */\r\n this.SetVgsConfig = function (in_param) {\r\n return _this.CallAsync(\"SetVgsConfig\", in_param);\r\n };\r\n /** Get the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */\r\n this.GetVgsConfig = function () {\r\n return _this.CallAsync(\"GetVgsConfig\", new VpnVgsConfig());\r\n };\r\n var headers = {};\r\n var send_credentials = false;\r\n nodejs_https_client_reject_untrusted_server_cert = is_null(nodejs_https_client_reject_untrusted_server_cert) ? false : nodejs_https_client_reject_untrusted_server_cert;\r\n if (is_null(vpnserver_hostname)) {\r\n this.rpc_url = \"/api/\";\r\n send_credentials = true;\r\n }\r\n else {\r\n if (is_null(vpnserver_port))\r\n vpnserver_port = 443;\r\n this.rpc_url = \"https://\" + vpnserver_hostname + \":\" + vpnserver_port + \"/api/\";\r\n headers[\"X-VPNADMIN-HUBNAME\"] = is_null(hubname) ? \"\" : hubname;\r\n headers[\"X-VPNADMIN-PASSWORD\"] = is_null(password) ? \"\" : password;\r\n }\r\n if (is_null(nodejs_https_client_reject_untrusted_server_cert))\r\n nodejs_https_client_reject_untrusted_server_cert = false;\r\n this.rpc_client = new JsonRpcClient(this.rpc_url, headers, send_credentials, nodejs_https_client_reject_untrusted_server_cert);\r\n }\r\n /** Determine if this JavaScript environment is on the Node.js or not. */\r\n VpnServerRpc.IsNodeJS = function () {\r\n return is_node_js;\r\n };\r\n /** Set the debug mode flag */\r\n VpnServerRpc.SetDebugMode = function (flag) {\r\n debug_mode = flag;\r\n };\r\n // -- Utility functions --\r\n /** Call a RPC procedure */\r\n VpnServerRpc.prototype.CallAsync = function (method_name, request) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var response;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.rpc_client.CallAsync(method_name, request)];\r\n case 1:\r\n response = _a.sent();\r\n return [2 /*return*/, response];\r\n }\r\n });\r\n });\r\n };\r\n return VpnServerRpc;\r\n}());\r\nexports.VpnServerRpc = VpnServerRpc;\r\n// --- Types ---\r\n/** IP Protocol Numbers */\r\nvar VpnIpProtocolNumber;\r\n(function (VpnIpProtocolNumber) {\r\n /** ICMP for IPv4 */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"ICMPv4\"] = 1] = \"ICMPv4\";\r\n /** TCP */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"TCP\"] = 6] = \"TCP\";\r\n /** UDP */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"UDP\"] = 17] = \"UDP\";\r\n /** ICMP for IPv6 */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"ICMPv6\"] = 58] = \"ICMPv6\";\r\n})(VpnIpProtocolNumber = exports.VpnIpProtocolNumber || (exports.VpnIpProtocolNumber = {}));\r\n/** The body of the Access list */\r\nvar VpnAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnAccess' class: The body of the Access list */\r\n function VpnAccess(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Specify a description (note) for this rule */\r\n this.Note_utf = \"\";\r\n /** Enabled flag (true: enabled, false: disabled) */\r\n this.Active_bool = false;\r\n /** Specify an integer of 1 or higher to indicate the priority of the rule. Higher priority is given to rules with the lower priority values. */\r\n this.Priority_u32 = 0;\r\n /** The flag if the rule is DISCARD operation or PASS operation. When a packet matches this rule condition, this operation is decided. When the operation of the rule is PASS, the packet is allowed to pass, otherwise the packet will be discarded. */\r\n this.Discard_bool = false;\r\n /** The flag if the rule is for IPv6. Specify false for IPv4, or specify true for IPv6. */\r\n this.IsIPv6_bool = false;\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a source IPv4 address as a rule condition. You must also specify the SrcSubnetMask_ip field. */\r\n this.SrcIpAddress_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a source IPv4 subnet mask as a rule condition. \"0.0.0.0\" means all hosts. \"255.255.255.255\" means one single host. */\r\n this.SrcSubnetMask_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a destination IPv4 address as a rule condition. You must also specify the DestSubnetMask_ip field. */\r\n this.DestIpAddress_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a destination IPv4 subnet mask as a rule condition. \"0.0.0.0\" means all hosts. \"255.255.255.255\" means one single host. */\r\n this.DestSubnetMask_ip = \"\";\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a source IPv6 address as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 address in binary form. You must also specify the SrcSubnetMask6_bin field. */\r\n this.SrcIpAddress6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a source IPv6 subnet mask as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 subnet mask in binary form. */\r\n this.SrcSubnetMask6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a destination IPv6 address as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 address in binary form. You must also specify the DestSubnetMask6_bin field. */\r\n this.DestIpAddress6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a destination IPv6 subnet mask as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 subnet mask in binary form. */\r\n this.DestSubnetMask6_bin = new Uint8Array([]);\r\n /** The IP protocol number */\r\n this.Protocol_u32 = 0;\r\n /** The Start Value of the Source Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the source port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.SrcPortStart_u32 = 0;\r\n /** The End Value of the Source Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the source port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.SrcPortEnd_u32 = 0;\r\n /** The Start Value of the Destination Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the destination port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.DestPortStart_u32 = 0;\r\n /** The End Value of the Destination Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the destination port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.DestPortEnd_u32 = 0;\r\n /** Source user name. You can apply this rule to only the packets sent by a user session of a user name that has been specified as a rule condition. In this case, specify the user name. */\r\n this.SrcUsername_str = \"\";\r\n /** Destination user name. You can apply this rule to only the packets received by a user session of a user name that has been specified as a rule condition. In this case, specify the user name. */\r\n this.DestUsername_str = \"\";\r\n /** Specify true if you want to check the source MAC address. */\r\n this.CheckSrcMac_bool = false;\r\n /** Source MAC address (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.SrcMacAddress_bin = new Uint8Array([]);\r\n /** Source MAC address mask (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.SrcMacMask_bin = new Uint8Array([]);\r\n /** Specify true if you want to check the destination MAC address. */\r\n this.CheckDstMac_bool = false;\r\n /** Destination MAC address (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.DstMacAddress_bin = new Uint8Array([]);\r\n /** Destination MAC address mask (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.DstMacMask_bin = new Uint8Array([]);\r\n /** Specify true if you want to check the state of the TCP connection. */\r\n this.CheckTcpState_bool = false;\r\n /** Valid only if CheckTcpState_bool == true. Set this field true to match only TCP-established packets. Set this field false to match only TCP-non established packets. */\r\n this.Established_bool = false;\r\n /** Set this value to generate delays when packets is passing. Specify the delay period in milliseconds. Specify 0 means no delays to generate. The delays must be 10000 milliseconds at most. */\r\n this.Delay_u32 = 0;\r\n /** Set this value to generate jitters when packets is passing. Specify the ratio of fluctuation of jitters within 0% to 100% range. Specify 0 means no jitters to generate. */\r\n this.Jitter_u32 = 0;\r\n /** Set this value to generate packet losses when packets is passing. Specify the ratio of packet losses within 0% to 100% range. Specify 0 means no packet losses to generate. */\r\n this.Loss_u32 = 0;\r\n /** The specified URL will be mandatory replied to the client as a response for TCP connecting request packets which matches the conditions of this access list entry via this Virtual Hub. To use this setting, you can enforce the web browser of the VPN Client computer to show the specified web site when that web browser tries to access the specific IP address. */\r\n this.RedirectUrl_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAccess;\r\n}());\r\nexports.VpnAccess = VpnAccess;\r\n/** Add an item to Access List */\r\nvar VpnRpcAddAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAddAccess' class: Add an item to Access List */\r\n function VpnRpcAddAccess(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Access list (Must be a single item) */\r\n this.AccessListSingle = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAddAccess;\r\n}());\r\nexports.VpnRpcAddAccess = VpnRpcAddAccess;\r\n/** Add CA to HUB */\r\nvar VpnRpcHubAddCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubAddCA' class: Add CA to HUB */\r\n function VpnRpcHubAddCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The body of the X.509 certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubAddCA;\r\n}());\r\nexports.VpnRpcHubAddCA = VpnRpcHubAddCA;\r\n/** CRL entry */\r\nvar VpnRpcCrl = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCrl' class: CRL entry */\r\n function VpnRpcCrl(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** CN, optional */\r\n this.CommonName_utf = \"\";\r\n /** O, optional */\r\n this.Organization_utf = \"\";\r\n /** OU, optional */\r\n this.Unit_utf = \"\";\r\n /** C, optional */\r\n this.Country_utf = \"\";\r\n /** ST, optional */\r\n this.State_utf = \"\";\r\n /** L, optional */\r\n this.Local_utf = \"\";\r\n /** Serial, optional */\r\n this.Serial_bin = new Uint8Array([]);\r\n /** MD5 Digest, optional */\r\n this.DigestMD5_bin = new Uint8Array([]);\r\n /** SHA1 Digest, optional */\r\n this.DigestSHA1_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCrl;\r\n}());\r\nexports.VpnRpcCrl = VpnRpcCrl;\r\n/** EtherIP key list entry */\r\nvar VpnEtherIpId = /** @class */ (function () {\r\n /** Constructor for the 'VpnEtherIpId' class: EtherIP key list entry */\r\n function VpnEtherIpId(init) {\r\n /** Specify an ISAKMP Phase 1 ID. The ID must be exactly same as a ID in the configuration of the EtherIP / L2TPv3 Client. You can specify IP address as well as characters as ID, if the EtherIP Client uses IP address as Phase 1 ID. If you specify '*' (asterisk), it will be a wildcard to match any clients which doesn't match other explicit rules. */\r\n this.Id_str = \"\";\r\n /** Specify the name of the Virtual Hub to connect. */\r\n this.HubName_str = \"\";\r\n /** Specify the username to login to the destination Virtual Hub. */\r\n this.UserName_str = \"\";\r\n /** Specify the password to login to the destination Virtual Hub. */\r\n this.Password_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnEtherIpId;\r\n}());\r\nexports.VpnEtherIpId = VpnEtherIpId;\r\n/** Layer-3 virtual interface */\r\nvar VpnRpcL3If = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3If' class: Layer-3 virtual interface */\r\n function VpnRpcL3If(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Virtual HUB name */\r\n this.HubName_str = \"\";\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.SubnetMask_ip = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3If;\r\n}());\r\nexports.VpnRpcL3If = VpnRpcL3If;\r\n/** Layer-3 switch */\r\nvar VpnRpcL3Sw = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3Sw' class: Layer-3 switch */\r\n function VpnRpcL3Sw(init) {\r\n /** Layer-3 Switch name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3Sw;\r\n}());\r\nexports.VpnRpcL3Sw = VpnRpcL3Sw;\r\n/** Routing table */\r\nvar VpnRpcL3Table = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3Table' class: Routing table */\r\n function VpnRpcL3Table(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Network address */\r\n this.NetworkAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.SubnetMask_ip = \"\";\r\n /** Gateway address */\r\n this.GatewayAddress_ip = \"\";\r\n /** Metric */\r\n this.Metric_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3Table;\r\n}());\r\nexports.VpnRpcL3Table = VpnRpcL3Table;\r\n/** Generic parameter to contain u32, u64, ascii_string and unicode string */\r\nvar VpnRpcTest = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcTest' class: Generic parameter to contain u32, u64, ascii_string and unicode string */\r\n function VpnRpcTest(init) {\r\n /** A 32-bit integer field */\r\n this.IntValue_u32 = 0;\r\n /** A 64-bit integer field */\r\n this.Int64Value_u64 = 0;\r\n /** An Ascii string field */\r\n this.StrValue_str = \"\";\r\n /** An UTF-8 string field */\r\n this.UniStrValue_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcTest;\r\n}());\r\nexports.VpnRpcTest = VpnRpcTest;\r\n/** Local Bridge list item */\r\nvar VpnRpcLocalBridge = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLocalBridge' class: Local Bridge list item */\r\n function VpnRpcLocalBridge(init) {\r\n /** Physical Ethernet device name */\r\n this.DeviceName_str = \"\";\r\n /** The Virtual Hub name */\r\n this.HubNameLB_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** Running flag */\r\n this.Active_bool = false;\r\n /** Specify true if you are using a tap device rather than a network adapter for the bridge destination (only supported for Linux versions). */\r\n this.TapMode_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLocalBridge;\r\n}());\r\nexports.VpnRpcLocalBridge = VpnRpcLocalBridge;\r\n/** Create, configure, and get the group */\r\nvar VpnRpcSetGroup = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetGroup' class: Create, configure, and get the group */\r\n function VpnRpcSetGroup(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The group name */\r\n this.Name_str = \"\";\r\n /** Optional real name (full name) of the group, allow using any Unicode characters */\r\n this.Realname_utf = \"\";\r\n /** Optional, specify a description of the group */\r\n this.Note_utf = \"\";\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** The flag whether to use security policy */\r\n this.UsePolicy_bool = false;\r\n /** Security policy: Allow Access. The users, which this policy value is true, have permission to make VPN connection to VPN Server. */\r\n this[\"policy:Access_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Deny Bridge Operation. Bridge-mode connections are denied for user sessions that have this policy setting. Even in cases when the Ethernet Bridge is configured in the client side, communication will not be possible. */\r\n this[\"policy:NoBridge_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv4). IPv4 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRouting_bool\"] = false;\r\n /** Security policy: Deny MAC Addresses Duplication. The use of duplicating MAC addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckMac_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv4). The use of duplicating IPv4 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIP_bool\"] = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Allow Monitoring Mode. Users with this policy setting will be granted to connect to the Virtual Hub in Monitoring Mode. Sessions in Monitoring Mode are able to monitor (tap) all packets flowing through the Virtual Hub. */\r\n this[\"policy:MonitorPort_bool\"] = false;\r\n /** Security policy: Maximum Number of TCP Connections. For sessions with this policy setting, this sets the maximum number of physical TCP connections consists in a physical VPN session. */\r\n this[\"policy:MaxConnection_u32\"] = 0;\r\n /** Security policy: Time-out Period. For sessions with this policy setting, this sets, in seconds, the time-out period to wait before disconnecting a session when communication trouble occurs between the VPN Client / VPN Server. */\r\n this[\"policy:TimeOut_u32\"] = 0;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Deny Changing Password. The users which use password authentication with this policy setting are not allowed to change their own password from the VPN Client Manager or similar. */\r\n this[\"policy:FixPassword_bool\"] = false;\r\n /** Security policy: Maximum Number of Multiple Logins. Users with this policy setting are unable to have more than this number of concurrent logins. Bridge Mode sessions are not subjects to this policy. */\r\n this[\"policy:MultiLogins_u32\"] = 0;\r\n /** Security policy: Deny VoIP / QoS Function. Users with this security policy are unable to use VoIP / QoS functions in VPN connection sessions. */\r\n this[\"policy:NoQoS_bool\"] = false;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter RA Packets (IPv6). All ICMPv6 packets which the message-type is 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, a malicious users will be unable to spread illegal IPv6 prefix or default gateway advertisements on the network. */\r\n this[\"policy:RAFilter_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv6). IPv6 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRoutingV6_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv6). The use of duplicating IPv6 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIPv6_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Disallow Password Save in VPN Client. For users with this policy setting, when the user is using *standard* password authentication, the user will be unable to save the password in VPN Client. The user will be required to input passwords for every time to connect a VPN. This will improve the security. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:NoSavePassword_bool\"] = false;\r\n /** Security policy: VPN Client Automatic Disconnect. For users with this policy setting, a user's VPN session will be disconnected automatically after the specific period will elapse. In this case no automatic re-connection will be performed. This can prevent a lot of inactive VPN Sessions. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:AutoDisconnect_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA (physical IPv6). In all VPN Sessions defines this policy (only when the physical communication protocol between VPN Client / VPN Bridge and VPN Server is IPv6), any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRAWhenIPv6_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetGroup;\r\n}());\r\nexports.VpnRpcSetGroup = VpnRpcSetGroup;\r\n/** Hub types */\r\nvar VpnRpcHubType;\r\n(function (VpnRpcHubType) {\r\n /** Stand-alone HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"Standalone\"] = 0] = \"Standalone\";\r\n /** Static HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"FarmStatic\"] = 1] = \"FarmStatic\";\r\n /** Dynamic HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"FarmDynamic\"] = 2] = \"FarmDynamic\";\r\n})(VpnRpcHubType = exports.VpnRpcHubType || (exports.VpnRpcHubType = {}));\r\n/** Create a HUB */\r\nvar VpnRpcCreateHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCreateHub' class: Create a HUB */\r\n function VpnRpcCreateHub(init) {\r\n /** Specify the name of the Virtual Hub to create / update. */\r\n this.HubName_str = \"\";\r\n /** Specify an administrator password when the administrator password is going to be set for the Virtual Hub. On the update, leave it to empty string if you don't want to change the password. */\r\n this.AdminPasswordPlainText_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** Maximum number of VPN sessions */\r\n this.MaxSession_u32 = 0;\r\n /** No Enum flag. By enabling this option, the VPN Client user will be unable to enumerate this Virtual Hub even if they send a Virtual Hub enumeration request to the VPN Server. */\r\n this.NoEnum_bool = false;\r\n /** Type of the Virtual Hub (Valid only for Clustered VPN Servers) */\r\n this.HubType_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCreateHub;\r\n}());\r\nexports.VpnRpcCreateHub = VpnRpcCreateHub;\r\nvar VpnRpcClientAuthType;\r\n(function (VpnRpcClientAuthType) {\r\n /** Anonymous authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"Anonymous\"] = 0] = \"Anonymous\";\r\n /** SHA-0 hashed password authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"SHA0_Hashed_Password\"] = 1] = \"SHA0_Hashed_Password\";\r\n /** Plain password authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"PlainPassword\"] = 2] = \"PlainPassword\";\r\n /** Certificate authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"Cert\"] = 3] = \"Cert\";\r\n})(VpnRpcClientAuthType = exports.VpnRpcClientAuthType || (exports.VpnRpcClientAuthType = {}));\r\n/** Create and set of link */\r\nvar VpnRpcCreateLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCreateLink' class: Create and set of link */\r\n function VpnRpcCreateLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_Ex_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** The flag to enable validation for the server certificate */\r\n this.CheckServerCert_bool = false;\r\n /** The body of server X.509 certificate to compare. Valid only if the CheckServerCert_bool flag is true. */\r\n this.ServerCert_bin = new Uint8Array([]);\r\n /** Client Option Parameters: Specify the name of the Cascade Connection */\r\n this.AccountName_utf = \"\";\r\n /** Client Option Parameters: Specify the hostname of the destination VPN Server. You can also specify by IP address. */\r\n this.Hostname_str = \"\";\r\n /** Client Option Parameters: Specify the port number of the destination VPN Server. */\r\n this.Port_u32 = 0;\r\n /** Client Option Parameters: The type of the proxy server */\r\n this.ProxyType_u32 = 0;\r\n /** Client Option Parameters: The hostname or IP address of the proxy server name */\r\n this.ProxyName_str = \"\";\r\n /** Client Option Parameters: The port number of the proxy server */\r\n this.ProxyPort_u32 = 0;\r\n /** Client Option Parameters: The username to connect to the proxy server */\r\n this.ProxyUsername_str = \"\";\r\n /** Client Option Parameters: The password to connect to the proxy server */\r\n this.ProxyPassword_str = \"\";\r\n /** Client Option Parameters: The Virtual Hub on the destination VPN Server */\r\n this.HubName_str = \"\";\r\n /** Client Option Parameters: Number of TCP Connections to Use in VPN Communication */\r\n this.MaxConnection_u32 = 0;\r\n /** Client Option Parameters: The flag to enable the encryption on the communication */\r\n this.UseEncrypt_bool = false;\r\n /** Client Option Parameters: Enable / Disable Data Compression when Communicating by Cascade Connection */\r\n this.UseCompress_bool = false;\r\n /** Client Option Parameters: Specify true when enabling half duplex mode. When using two or more TCP connections for VPN communication, it is possible to use Half Duplex Mode. By enabling half duplex mode it is possible to automatically fix data transmission direction as half and half for each TCP connection. In the case where a VPN using 8 TCP connections is established, for example, when half-duplex is enabled, communication can be fixes so that 4 TCP connections are dedicated to the upload direction and the other 4 connections are dedicated to the download direction. */\r\n this.HalfConnection_bool = false;\r\n /** Client Option Parameters: Connection attempt interval when additional connection will be established */\r\n this.AdditionalConnectionInterval_u32 = 0;\r\n /** Client Option Parameters: Connection Life of Each TCP Connection (0 for no keep-alive) */\r\n this.ConnectionDisconnectSpan_u32 = 0;\r\n /** Client Option Parameters: Disable QoS Control Function if the value is true */\r\n this.DisableQoS_bool = false;\r\n /** Client Option Parameters: Do not use TLS 1.x of the value is true */\r\n this.NoTls1_bool = false;\r\n /** Client Option Parameters: Do not use UDP acceleration mode if the value is true */\r\n this.NoUdpAcceleration_bool = false;\r\n /** Authentication type */\r\n this.AuthType_u32 = 0;\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(UpperCase(username_ascii_string) + password_ascii_string). */\r\n this.HashedPassword_bin = new Uint8Array([]);\r\n /** Plaintext Password. Valid only if ClientAuth_AuthType_u32 == PlainPassword (2). */\r\n this.PlainPassword_str = \"\";\r\n /** Client certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). */\r\n this.ClientX_bin = new Uint8Array([]);\r\n /** Client private key of the certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). */\r\n this.ClientK_bin = new Uint8Array([]);\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Prohibit the duplicate MAC address */\r\n this.SecPol_CheckMac_bool = false;\r\n /** Security policy: Prohibit a duplicate IP address (IPv4) */\r\n this.SecPol_CheckIP_bool = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter the router advertisement packet (IPv6) */\r\n this.SecPol_RAFilter_bool = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Prohibit the duplicate IP address (IPv6) */\r\n this.SecPol_CheckIPv6_bool = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCreateLink;\r\n}());\r\nexports.VpnRpcCreateLink = VpnRpcCreateLink;\r\n/** Listener */\r\nvar VpnRpcListener = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListener' class: Listener */\r\n function VpnRpcListener(init) {\r\n /** Port number (Range: 1 - 65535) */\r\n this.Port_u32 = 0;\r\n /** Active state */\r\n this.Enable_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListener;\r\n}());\r\nexports.VpnRpcListener = VpnRpcListener;\r\n/** User authentication type (server side) */\r\nvar VpnRpcUserAuthType;\r\n(function (VpnRpcUserAuthType) {\r\n /** Anonymous authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Anonymous\"] = 0] = \"Anonymous\";\r\n /** Password authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Password\"] = 1] = \"Password\";\r\n /** User certificate authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"UserCert\"] = 2] = \"UserCert\";\r\n /** Root certificate which is issued by trusted Certificate Authority */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"RootCert\"] = 3] = \"RootCert\";\r\n /** Radius authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Radius\"] = 4] = \"Radius\";\r\n /** Windows NT authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"NTDomain\"] = 5] = \"NTDomain\";\r\n})(VpnRpcUserAuthType = exports.VpnRpcUserAuthType || (exports.VpnRpcUserAuthType = {}));\r\n/** Create, configure, and get the user */\r\nvar VpnRpcSetUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetUser' class: Create, configure, and get the user */\r\n function VpnRpcSetUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Specify the user name of the user */\r\n this.Name_str = \"\";\r\n /** Assigned group name for the user */\r\n this.GroupName_str = \"\";\r\n /** Optional real name (full name) of the user, allow using any Unicode characters */\r\n this.Realname_utf = \"\";\r\n /** Optional User Description */\r\n this.Note_utf = \"\";\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last modified date and time */\r\n this.UpdatedTime_dt = new Date();\r\n /** Expiration date and time */\r\n this.ExpireTime_dt = new Date();\r\n /** Authentication method of the user */\r\n this.AuthType_u32 = 0;\r\n /** User password, valid only if AuthType_u32 == Password(1). Valid only to create or set operations. */\r\n this.Auth_Password_str = \"\";\r\n /** User certificate, valid only if AuthType_u32 == UserCert(2). */\r\n this.UserX_bin = new Uint8Array([]);\r\n /** Certificate Serial Number, optional, valid only if AuthType_u32 == RootCert(3). */\r\n this.Serial_bin = new Uint8Array([]);\r\n /** Certificate Common Name, optional, valid only if AuthType_u32 == RootCert(3). */\r\n this.CommonName_utf = \"\";\r\n /** Username in RADIUS server, optional, valid only if AuthType_u32 == Radius(4). */\r\n this.RadiusUsername_utf = \"\";\r\n /** Username in NT Domain server, optional, valid only if AuthType_u32 == NT(5). */\r\n this.NtUsername_utf = \"\";\r\n /** Number of total logins of the user */\r\n this.NumLogin_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** The flag whether to use security policy */\r\n this.UsePolicy_bool = false;\r\n /** Security policy: Allow Access. The users, which this policy value is true, have permission to make VPN connection to VPN Server. */\r\n this[\"policy:Access_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Deny Bridge Operation. Bridge-mode connections are denied for user sessions that have this policy setting. Even in cases when the Ethernet Bridge is configured in the client side, communication will not be possible. */\r\n this[\"policy:NoBridge_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv4). IPv4 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRouting_bool\"] = false;\r\n /** Security policy: Deny MAC Addresses Duplication. The use of duplicating MAC addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckMac_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv4). The use of duplicating IPv4 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIP_bool\"] = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Allow Monitoring Mode. Users with this policy setting will be granted to connect to the Virtual Hub in Monitoring Mode. Sessions in Monitoring Mode are able to monitor (tap) all packets flowing through the Virtual Hub. */\r\n this[\"policy:MonitorPort_bool\"] = false;\r\n /** Security policy: Maximum Number of TCP Connections. For sessions with this policy setting, this sets the maximum number of physical TCP connections consists in a physical VPN session. */\r\n this[\"policy:MaxConnection_u32\"] = 0;\r\n /** Security policy: Time-out Period. For sessions with this policy setting, this sets, in seconds, the time-out period to wait before disconnecting a session when communication trouble occurs between the VPN Client / VPN Server. */\r\n this[\"policy:TimeOut_u32\"] = 0;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Deny Changing Password. The users which use password authentication with this policy setting are not allowed to change their own password from the VPN Client Manager or similar. */\r\n this[\"policy:FixPassword_bool\"] = false;\r\n /** Security policy: Maximum Number of Multiple Logins. Users with this policy setting are unable to have more than this number of concurrent logins. Bridge Mode sessions are not subjects to this policy. */\r\n this[\"policy:MultiLogins_u32\"] = 0;\r\n /** Security policy: Deny VoIP / QoS Function. Users with this security policy are unable to use VoIP / QoS functions in VPN connection sessions. */\r\n this[\"policy:NoQoS_bool\"] = false;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter RA Packets (IPv6). All ICMPv6 packets which the message-type is 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, a malicious users will be unable to spread illegal IPv6 prefix or default gateway advertisements on the network. */\r\n this[\"policy:RAFilter_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv6). IPv6 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRoutingV6_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv6). The use of duplicating IPv6 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIPv6_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Disallow Password Save in VPN Client. For users with this policy setting, when the user is using *standard* password authentication, the user will be unable to save the password in VPN Client. The user will be required to input passwords for every time to connect a VPN. This will improve the security. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:NoSavePassword_bool\"] = false;\r\n /** Security policy: VPN Client Automatic Disconnect. For users with this policy setting, a user's VPN session will be disconnected automatically after the specific period will elapse. In this case no automatic re-connection will be performed. This can prevent a lot of inactive VPN Sessions. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:AutoDisconnect_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA (physical IPv6). In all VPN Sessions defines this policy (only when the physical communication protocol between VPN Client / VPN Bridge and VPN Server is IPv6), any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRAWhenIPv6_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetUser;\r\n}());\r\nexports.VpnRpcSetUser = VpnRpcSetUser;\r\n/** Delete the access list */\r\nvar VpnRpcDeleteAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteAccess' class: Delete the access list */\r\n function VpnRpcDeleteAccess(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** ID */\r\n this.Id_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteAccess;\r\n}());\r\nexports.VpnRpcDeleteAccess = VpnRpcDeleteAccess;\r\n/** Delete the CA of HUB */\r\nvar VpnRpcHubDeleteCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubDeleteCA' class: Delete the CA of HUB */\r\n function VpnRpcHubDeleteCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Certificate key id to be deleted */\r\n this.Key_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubDeleteCA;\r\n}());\r\nexports.VpnRpcHubDeleteCA = VpnRpcHubDeleteCA;\r\n/** Deleting a user or group */\r\nvar VpnRpcDeleteUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteUser' class: Deleting a user or group */\r\n function VpnRpcDeleteUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** User or group name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteUser;\r\n}());\r\nexports.VpnRpcDeleteUser = VpnRpcDeleteUser;\r\n/** Delete the HUB */\r\nvar VpnRpcDeleteHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteHub' class: Delete the HUB */\r\n function VpnRpcDeleteHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteHub;\r\n}());\r\nexports.VpnRpcDeleteHub = VpnRpcDeleteHub;\r\n/** Delete the table */\r\nvar VpnRpcDeleteTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteTable' class: Delete the table */\r\n function VpnRpcDeleteTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteTable;\r\n}());\r\nexports.VpnRpcDeleteTable = VpnRpcDeleteTable;\r\n/** Specify the Link */\r\nvar VpnRpcLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLink' class: Specify the Link */\r\n function VpnRpcLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The name of the cascade connection */\r\n this.AccountName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLink;\r\n}());\r\nexports.VpnRpcLink = VpnRpcLink;\r\n/** Disconnect the session */\r\nvar VpnRpcDeleteSession = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteSession' class: Disconnect the session */\r\n function VpnRpcDeleteSession(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Session name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteSession;\r\n}());\r\nexports.VpnRpcDeleteSession = VpnRpcDeleteSession;\r\n/** Specify the HUB */\r\nvar VpnRpcHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHub' class: Specify the HUB */\r\n function VpnRpcHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHub;\r\n}());\r\nexports.VpnRpcHub = VpnRpcHub;\r\n/** Disconnect a connection */\r\nvar VpnRpcDisconnectConnection = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDisconnectConnection' class: Disconnect a connection */\r\n function VpnRpcDisconnectConnection(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDisconnectConnection;\r\n}());\r\nexports.VpnRpcDisconnectConnection = VpnRpcDisconnectConnection;\r\n/** Enumeration of the access list */\r\nvar VpnRpcEnumAccessList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumAccessList' class: Enumeration of the access list */\r\n function VpnRpcEnumAccessList(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Access list */\r\n this.AccessList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumAccessList;\r\n}());\r\nexports.VpnRpcEnumAccessList = VpnRpcEnumAccessList;\r\n/** CA enumeration items of HUB */\r\nvar VpnRpcHubEnumCAItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubEnumCAItem' class: CA enumeration items of HUB */\r\n function VpnRpcHubEnumCAItem(init) {\r\n /** The key id of the item */\r\n this.Key_u32 = 0;\r\n /** Subject */\r\n this.SubjectName_utf = \"\";\r\n /** Issuer */\r\n this.IssuerName_utf = \"\";\r\n /** Expiration date */\r\n this.Expires_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubEnumCAItem;\r\n}());\r\nexports.VpnRpcHubEnumCAItem = VpnRpcHubEnumCAItem;\r\n/** CA enumeration of HUB */\r\nvar VpnRpcHubEnumCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubEnumCA' class: CA enumeration of HUB */\r\n function VpnRpcHubEnumCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The list of CA */\r\n this.CAList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubEnumCA;\r\n}());\r\nexports.VpnRpcHubEnumCA = VpnRpcHubEnumCA;\r\n/** Type of connection */\r\nvar VpnRpcConnectionType;\r\n(function (VpnRpcConnectionType) {\r\n /** VPN Client */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Client\"] = 0] = \"Client\";\r\n /** During initialization */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Init\"] = 1] = \"Init\";\r\n /** Login connection */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Login\"] = 2] = \"Login\";\r\n /** Additional connection */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Additional\"] = 3] = \"Additional\";\r\n /** RPC for server farm */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"FarmRpc\"] = 4] = \"FarmRpc\";\r\n /** RPC for Management */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"AdminRpc\"] = 5] = \"AdminRpc\";\r\n /** HUB enumeration */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"EnumHub\"] = 6] = \"EnumHub\";\r\n /** Password change */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Password\"] = 7] = \"Password\";\r\n /** SSTP */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"SSTP\"] = 8] = \"SSTP\";\r\n /** OpenVPN */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"OpenVPN\"] = 9] = \"OpenVPN\";\r\n})(VpnRpcConnectionType = exports.VpnRpcConnectionType || (exports.VpnRpcConnectionType = {}));\r\n/** Connection enumeration items */\r\nvar VpnRpcEnumConnectionItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumConnectionItem' class: Connection enumeration items */\r\n function VpnRpcEnumConnectionItem(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Connected time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Connection type */\r\n this.Type_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumConnectionItem;\r\n}());\r\nexports.VpnRpcEnumConnectionItem = VpnRpcEnumConnectionItem;\r\n/** Connection enumeration */\r\nvar VpnRpcEnumConnection = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumConnection' class: Connection enumeration */\r\n function VpnRpcEnumConnection(init) {\r\n /** Number of connections */\r\n this.NumConnection_u32 = 0;\r\n /** Connection list */\r\n this.ConnectionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumConnection;\r\n}());\r\nexports.VpnRpcEnumConnection = VpnRpcEnumConnection;\r\n/** Enum CRL Item */\r\nvar VpnRpcEnumCrlItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumCrlItem' class: Enum CRL Item */\r\n function VpnRpcEnumCrlItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** The contents of the CRL item */\r\n this.CrlInfo_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumCrlItem;\r\n}());\r\nexports.VpnRpcEnumCrlItem = VpnRpcEnumCrlItem;\r\n/** Enum CRL */\r\nvar VpnRpcEnumCrl = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumCrl' class: Enum CRL */\r\n function VpnRpcEnumCrl(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** CRL list */\r\n this.CRLList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumCrl;\r\n}());\r\nexports.VpnRpcEnumCrl = VpnRpcEnumCrl;\r\n/** RPC_ENUM_DHCP_ITEM */\r\nvar VpnRpcEnumDhcpItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumDhcpItem' class: RPC_ENUM_DHCP_ITEM */\r\n function VpnRpcEnumDhcpItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Lease time */\r\n this.LeasedTime_dt = new Date();\r\n /** Expiration date */\r\n this.ExpireTime_dt = new Date();\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.Mask_u32 = 0;\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumDhcpItem;\r\n}());\r\nexports.VpnRpcEnumDhcpItem = VpnRpcEnumDhcpItem;\r\n/** RPC_ENUM_DHCP */\r\nvar VpnRpcEnumDhcp = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumDhcp' class: RPC_ENUM_DHCP */\r\n function VpnRpcEnumDhcp(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** DHCP Item */\r\n this.DhcpTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumDhcp;\r\n}());\r\nexports.VpnRpcEnumDhcp = VpnRpcEnumDhcp;\r\n/** EtherIP setting list */\r\nvar VpnRpcEnumEtherIpId = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEtherIpId' class: EtherIP setting list */\r\n function VpnRpcEnumEtherIpId(init) {\r\n /** Setting list */\r\n this.Settings = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEtherIpId;\r\n}());\r\nexports.VpnRpcEnumEtherIpId = VpnRpcEnumEtherIpId;\r\n/** Ethernet Network Adapters list item */\r\nvar VpnRpcEnumEthItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEthItem' class: Ethernet Network Adapters list item */\r\n function VpnRpcEnumEthItem(init) {\r\n /** Device name */\r\n this.DeviceName_str = \"\";\r\n /** Network connection name (description) */\r\n this.NetworkConnectionName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEthItem;\r\n}());\r\nexports.VpnRpcEnumEthItem = VpnRpcEnumEthItem;\r\n/** Ethernet Network Adapters list */\r\nvar VpnRpcEnumEth = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEth' class: Ethernet Network Adapters list */\r\n function VpnRpcEnumEth(init) {\r\n /** Ethernet Network Adapters list */\r\n this.EthList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEth;\r\n}());\r\nexports.VpnRpcEnumEth = VpnRpcEnumEth;\r\n/** Server farm members enumeration items */\r\nvar VpnRpcEnumFarmItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumFarmItem' class: Server farm members enumeration items */\r\n function VpnRpcEnumFarmItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Controller */\r\n this.Controller_bool = false;\r\n /** Connection time */\r\n this.ConnectedTime_dt = new Date();\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Point */\r\n this.Point_u32 = 0;\r\n /** Number of sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of HUBs */\r\n this.NumHubs_u32 = 0;\r\n /** Number of assigned client licenses */\r\n this.AssignedClientLicense_u32 = 0;\r\n /** Number of assigned bridge licenses */\r\n this.AssignedBridgeLicense_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumFarmItem;\r\n}());\r\nexports.VpnRpcEnumFarmItem = VpnRpcEnumFarmItem;\r\n/** Server farm member enumeration */\r\nvar VpnRpcEnumFarm = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumFarm' class: Server farm member enumeration */\r\n function VpnRpcEnumFarm(init) {\r\n /** Number of Cluster Members */\r\n this.NumFarm_u32 = 0;\r\n /** Cluster Members list */\r\n this.FarmMemberList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumFarm;\r\n}());\r\nexports.VpnRpcEnumFarm = VpnRpcEnumFarm;\r\n/** Enumeration items in the group */\r\nvar VpnRpcEnumGroupItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumGroupItem' class: Enumeration items in the group */\r\n function VpnRpcEnumGroupItem(init) {\r\n /** User name */\r\n this.Name_str = \"\";\r\n /** Real name */\r\n this.Realname_utf = \"\";\r\n /** Note */\r\n this.Note_utf = \"\";\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Access denied */\r\n this.DenyAccess_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumGroupItem;\r\n}());\r\nexports.VpnRpcEnumGroupItem = VpnRpcEnumGroupItem;\r\n/** Group enumeration */\r\nvar VpnRpcEnumGroup = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumGroup' class: Group enumeration */\r\n function VpnRpcEnumGroup(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Group list */\r\n this.GroupList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumGroup;\r\n}());\r\nexports.VpnRpcEnumGroup = VpnRpcEnumGroup;\r\n/** Enumeration items of HUB */\r\nvar VpnRpcEnumHubItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumHubItem' class: Enumeration items of HUB */\r\n function VpnRpcEnumHubItem(init) {\r\n /** The name of the Virtual Hub */\r\n this.HubName_str = \"\";\r\n /** Online state */\r\n this.Online_bool = false;\r\n /** Type of HUB (Valid only for Clustered VPN Servers) */\r\n this.HubType_u32 = 0;\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Number of registered groups */\r\n this.NumGroups_u32 = 0;\r\n /** Number of registered sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of current MAC table entries */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of current IP table entries */\r\n this.NumIpTables_u32 = 0;\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Number of accumulated logins */\r\n this.NumLogin_u32 = 0;\r\n /** Whether the traffic information is provided */\r\n this.IsTrafficFilled_bool = false;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Ex.Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Ex.Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Ex.Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Ex.Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Ex.Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Ex.Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastCount_u64\"] = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumHubItem;\r\n}());\r\nexports.VpnRpcEnumHubItem = VpnRpcEnumHubItem;\r\n/** Enumeration of HUB */\r\nvar VpnRpcEnumHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumHub' class: Enumeration of HUB */\r\n function VpnRpcEnumHub(init) {\r\n /** Number of Virtual Hubs */\r\n this.NumHub_u32 = 0;\r\n /** Virtual Hubs */\r\n this.HubList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumHub;\r\n}());\r\nexports.VpnRpcEnumHub = VpnRpcEnumHub;\r\n/** Enumeration items of IP table */\r\nvar VpnRpcEnumIpTableItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumIpTableItem' class: Enumeration items of IP table */\r\n function VpnRpcEnumIpTableItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Assigned by the DHCP */\r\n this.DhcpAllocated_bool = false;\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Updating date */\r\n this.UpdatedTime_dt = new Date();\r\n /** Remote items */\r\n this.RemoteItem_bool = false;\r\n /** Remote host name */\r\n this.RemoteHostname_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumIpTableItem;\r\n}());\r\nexports.VpnRpcEnumIpTableItem = VpnRpcEnumIpTableItem;\r\n/** Enumeration of IP table */\r\nvar VpnRpcEnumIpTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumIpTable' class: Enumeration of IP table */\r\n function VpnRpcEnumIpTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** MAC table */\r\n this.IpTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumIpTable;\r\n}());\r\nexports.VpnRpcEnumIpTable = VpnRpcEnumIpTable;\r\n/** Layer-3 interface enumeration */\r\nvar VpnRpcEnumL3If = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3If' class: Layer-3 interface enumeration */\r\n function VpnRpcEnumL3If(init) {\r\n /** Layer-3 switch name */\r\n this.Name_str = \"\";\r\n /** Layer-3 interface list */\r\n this.L3IFList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3If;\r\n}());\r\nexports.VpnRpcEnumL3If = VpnRpcEnumL3If;\r\n/** Layer-3 switch enumeration item */\r\nvar VpnRpcEnumL3SwItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3SwItem' class: Layer-3 switch enumeration item */\r\n function VpnRpcEnumL3SwItem(init) {\r\n /** Name of the layer-3 switch */\r\n this.Name_str = \"\";\r\n /** Number of layer-3 switch virtual interfaces */\r\n this.NumInterfaces_u32 = 0;\r\n /** Number of routing tables */\r\n this.NumTables_u32 = 0;\r\n /** Activated flag */\r\n this.Active_bool = false;\r\n /** Online flag */\r\n this.Online_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3SwItem;\r\n}());\r\nexports.VpnRpcEnumL3SwItem = VpnRpcEnumL3SwItem;\r\n/** Layer-3 switch enumeration */\r\nvar VpnRpcEnumL3Sw = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3Sw' class: Layer-3 switch enumeration */\r\n function VpnRpcEnumL3Sw(init) {\r\n /** Layer-3 switch list */\r\n this.L3SWList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3Sw;\r\n}());\r\nexports.VpnRpcEnumL3Sw = VpnRpcEnumL3Sw;\r\n/** Routing table enumeration */\r\nvar VpnRpcEnumL3Table = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3Table' class: Routing table enumeration */\r\n function VpnRpcEnumL3Table(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Routing table item list */\r\n this.L3Table = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3Table;\r\n}());\r\nexports.VpnRpcEnumL3Table = VpnRpcEnumL3Table;\r\n/** Cascade Connection Enumeration */\r\nvar VpnRpcEnumLinkItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLinkItem' class: Cascade Connection Enumeration */\r\n function VpnRpcEnumLinkItem(init) {\r\n /** The name of cascade connection */\r\n this.AccountName_utf = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** The flag indicates whether the cascade connection is established */\r\n this.Connected_bool = false;\r\n /** The error last occurred if the cascade connection is in the fail state */\r\n this.LastError_u32 = 0;\r\n /** Connection completion time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Host name of the destination VPN server */\r\n this.Hostname_str = \"\";\r\n /** The Virtual Hub name */\r\n this.TargetHubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLinkItem;\r\n}());\r\nexports.VpnRpcEnumLinkItem = VpnRpcEnumLinkItem;\r\n/** Enumeration of the link */\r\nvar VpnRpcEnumLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLink' class: Enumeration of the link */\r\n function VpnRpcEnumLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Number of cascade connections */\r\n this.NumLink_u32 = 0;\r\n /** The list of cascade connections */\r\n this.LinkList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLink;\r\n}());\r\nexports.VpnRpcEnumLink = VpnRpcEnumLink;\r\n/** List of listeners item */\r\nvar VpnRpcListenerListItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListenerListItem' class: List of listeners item */\r\n function VpnRpcListenerListItem(init) {\r\n /** TCP port number (range: 1 - 65535) */\r\n this.Ports_u32 = 0;\r\n /** Active state */\r\n this.Enables_bool = false;\r\n /** The flag to indicate if the error occurred on the listener port */\r\n this.Errors_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListenerListItem;\r\n}());\r\nexports.VpnRpcListenerListItem = VpnRpcListenerListItem;\r\n/** List of listeners */\r\nvar VpnRpcListenerList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListenerList' class: List of listeners */\r\n function VpnRpcListenerList(init) {\r\n /** List of listener items */\r\n this.ListenerList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListenerList;\r\n}());\r\nexports.VpnRpcListenerList = VpnRpcListenerList;\r\n/** Local Bridge enumeration */\r\nvar VpnRpcEnumLocalBridge = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLocalBridge' class: Local Bridge enumeration */\r\n function VpnRpcEnumLocalBridge(init) {\r\n /** Local Bridge list */\r\n this.LocalBridgeList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLocalBridge;\r\n}());\r\nexports.VpnRpcEnumLocalBridge = VpnRpcEnumLocalBridge;\r\n/** Log file enumeration */\r\nvar VpnRpcEnumLogFileItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLogFileItem' class: Log file enumeration */\r\n function VpnRpcEnumLogFileItem(init) {\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** File path */\r\n this.FilePath_str = \"\";\r\n /** File size */\r\n this.FileSize_u32 = 0;\r\n /** Last write date */\r\n this.UpdatedTime_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLogFileItem;\r\n}());\r\nexports.VpnRpcEnumLogFileItem = VpnRpcEnumLogFileItem;\r\n/** Log file enumeration */\r\nvar VpnRpcEnumLogFile = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLogFile' class: Log file enumeration */\r\n function VpnRpcEnumLogFile(init) {\r\n /** Log file list */\r\n this.LogFiles = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLogFile;\r\n}());\r\nexports.VpnRpcEnumLogFile = VpnRpcEnumLogFile;\r\n/** Enumeration items of the MAC table */\r\nvar VpnRpcEnumMacTableItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumMacTableItem' class: Enumeration items of the MAC table */\r\n function VpnRpcEnumMacTableItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Updating date */\r\n this.UpdatedTime_dt = new Date();\r\n /** Remote items */\r\n this.RemoteItem_bool = false;\r\n /** Remote host name */\r\n this.RemoteHostname_str = \"\";\r\n /** VLAN ID */\r\n this.VlanId_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumMacTableItem;\r\n}());\r\nexports.VpnRpcEnumMacTableItem = VpnRpcEnumMacTableItem;\r\n/** Enumeration of the MAC table */\r\nvar VpnRpcEnumMacTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumMacTable' class: Enumeration of the MAC table */\r\n function VpnRpcEnumMacTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** MAC table */\r\n this.MacTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumMacTable;\r\n}());\r\nexports.VpnRpcEnumMacTable = VpnRpcEnumMacTable;\r\n/** NAT Entry Protocol Number */\r\nvar VpnRpcNatProtocol;\r\n(function (VpnRpcNatProtocol) {\r\n /** TCP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"TCP\"] = 0] = \"TCP\";\r\n /** UDP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"UDP\"] = 1] = \"UDP\";\r\n /** DNS */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"DNS\"] = 2] = \"DNS\";\r\n /** ICMP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"ICMP\"] = 3] = \"ICMP\";\r\n})(VpnRpcNatProtocol = exports.VpnRpcNatProtocol || (exports.VpnRpcNatProtocol = {}));\r\n/** State of NAT session (TCP) */\r\nvar VpnRpcNatTcpState;\r\n(function (VpnRpcNatTcpState) {\r\n /** Connecting */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Connecting\"] = 0] = \"Connecting\";\r\n /** Send the RST (Connection failure or disconnected) */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"SendReset\"] = 1] = \"SendReset\";\r\n /** Connection complete */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Connected\"] = 2] = \"Connected\";\r\n /** Connection established */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Established\"] = 3] = \"Established\";\r\n /** Wait for socket disconnection */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"WaitDisconnect\"] = 4] = \"WaitDisconnect\";\r\n})(VpnRpcNatTcpState = exports.VpnRpcNatTcpState || (exports.VpnRpcNatTcpState = {}));\r\n/** VpnRpcEnumNat List Item */\r\nvar VpnRpcEnumNatItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumNatItem' class: VpnRpcEnumNat List Item */\r\n function VpnRpcEnumNatItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Protocol */\r\n this.Protocol_u32 = 0;\r\n /** Source IP address */\r\n this.SrcIp_ip = \"\";\r\n /** Source host name */\r\n this.SrcHost_str = \"\";\r\n /** Source port number */\r\n this.SrcPort_u32 = 0;\r\n /** Destination IP address */\r\n this.DestIp_ip = \"\";\r\n /** Destination host name */\r\n this.DestHost_str = \"\";\r\n /** Destination port number */\r\n this.DestPort_u32 = 0;\r\n /** Connection time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last communication time */\r\n this.LastCommTime_dt = new Date();\r\n /** Transmission size */\r\n this.SendSize_u64 = 0;\r\n /** Receive size */\r\n this.RecvSize_u64 = 0;\r\n /** TCP state */\r\n this.TcpStatus_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumNatItem;\r\n}());\r\nexports.VpnRpcEnumNatItem = VpnRpcEnumNatItem;\r\n/** RPC_ENUM_NAT */\r\nvar VpnRpcEnumNat = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumNat' class: RPC_ENUM_NAT */\r\n function VpnRpcEnumNat(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** NAT item */\r\n this.NatTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumNat;\r\n}());\r\nexports.VpnRpcEnumNat = VpnRpcEnumNat;\r\n/** Enumeration item of VPN session */\r\nvar VpnRpcEnumSessionItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumSessionItem' class: Enumeration item of VPN session */\r\n function VpnRpcEnumSessionItem(init) {\r\n /** Session name */\r\n this.Name_str = \"\";\r\n /** Remote session */\r\n this.RemoteSession_bool = false;\r\n /** Remote server name */\r\n this.RemoteHostname_str = \"\";\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** IP address */\r\n this.ClientIP_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Maximum number of underlying TCP connections */\r\n this.MaxNumTcp_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.CurrentNumTcp_u32 = 0;\r\n /** Packet size transmitted */\r\n this.PacketSize_u64 = 0;\r\n /** Number of packets transmitted */\r\n this.PacketNum_u64 = 0;\r\n /** Is a Cascade VPN session */\r\n this.LinkMode_bool = false;\r\n /** Is a SecureNAT VPN session */\r\n this.SecureNATMode_bool = false;\r\n /** Is the VPN session for Local Bridge */\r\n this.BridgeMode_bool = false;\r\n /** Is a Layer-3 Switch VPN session */\r\n this.Layer3Mode_bool = false;\r\n /** Is in Bridge Mode */\r\n this.Client_BridgeMode_bool = false;\r\n /** Is in Monitor Mode */\r\n this.Client_MonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n /** Unique ID of the VPN Session */\r\n this.UniqueId_bin = new Uint8Array([]);\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumSessionItem;\r\n}());\r\nexports.VpnRpcEnumSessionItem = VpnRpcEnumSessionItem;\r\n/** Enumerate VPN sessions */\r\nvar VpnRpcEnumSession = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumSession' class: Enumerate VPN sessions */\r\n function VpnRpcEnumSession(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** VPN sessions list */\r\n this.SessionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumSession;\r\n}());\r\nexports.VpnRpcEnumSession = VpnRpcEnumSession;\r\n/** Enumeration item of user */\r\nvar VpnRpcEnumUserItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumUserItem' class: Enumeration item of user */\r\n function VpnRpcEnumUserItem(init) {\r\n /** User name */\r\n this.Name_str = \"\";\r\n /** Group name */\r\n this.GroupName_str = \"\";\r\n /** Real name */\r\n this.Realname_utf = \"\";\r\n /** Note */\r\n this.Note_utf = \"\";\r\n /** Authentication method */\r\n this.AuthType_u32 = 0;\r\n /** Number of logins */\r\n this.NumLogin_u32 = 0;\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Access denied */\r\n this.DenyAccess_bool = false;\r\n /** Flag of whether the traffic variable is set */\r\n this.IsTrafficFilled_bool = false;\r\n /** Flag of whether expiration date variable is set */\r\n this.IsExpiresFilled_bool = false;\r\n /** Expiration date */\r\n this.Expires_dt = new Date();\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Ex.Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Ex.Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Ex.Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Ex.Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Ex.Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Ex.Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastCount_u64\"] = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumUserItem;\r\n}());\r\nexports.VpnRpcEnumUserItem = VpnRpcEnumUserItem;\r\n/** Enumeration of user */\r\nvar VpnRpcEnumUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumUser' class: Enumeration of user */\r\n function VpnRpcEnumUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** User list */\r\n this.UserList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumUser;\r\n}());\r\nexports.VpnRpcEnumUser = VpnRpcEnumUser;\r\n/** Source IP Address Limit List Item */\r\nvar VpnAc = /** @class */ (function () {\r\n /** Constructor for the 'VpnAc' class: Source IP Address Limit List Item */\r\n function VpnAc(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Priority */\r\n this.Priority_u32 = 0;\r\n /** Deny access */\r\n this.Deny_bool = false;\r\n /** Set true if you want to specify the SubnetMask_ip item. */\r\n this.Masked_bool = false;\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask, valid only if Masked_bool == true */\r\n this.SubnetMask_ip = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAc;\r\n}());\r\nexports.VpnAc = VpnAc;\r\n/** Source IP Address Limit List */\r\nvar VpnRpcAcList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAcList' class: Source IP Address Limit List */\r\n function VpnRpcAcList(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Source IP Address Limit List */\r\n this.ACList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAcList;\r\n}());\r\nexports.VpnRpcAcList = VpnRpcAcList;\r\n/** Message */\r\nvar VpnRpcMsg = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcMsg' class: Message */\r\n function VpnRpcMsg(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Message (Unicode strings acceptable) */\r\n this.Msg_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcMsg;\r\n}());\r\nexports.VpnRpcMsg = VpnRpcMsg;\r\n/** Get / Set the Azure state */\r\nvar VpnRpcAzureStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAzureStatus' class: Get / Set the Azure state */\r\n function VpnRpcAzureStatus(init) {\r\n /** Whether VPN Azure Function is Enabled */\r\n this.IsEnabled_bool = false;\r\n /** Whether connection to VPN Azure Cloud Server is established */\r\n this.IsConnected_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAzureStatus;\r\n}());\r\nexports.VpnRpcAzureStatus = VpnRpcAzureStatus;\r\n/** Local Bridge support information */\r\nvar VpnRpcBridgeSupport = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcBridgeSupport' class: Local Bridge support information */\r\n function VpnRpcBridgeSupport(init) {\r\n /** Whether the OS supports the Local Bridge function */\r\n this.IsBridgeSupportedOs_bool = false;\r\n /** Whether WinPcap is necessary to install */\r\n this.IsWinPcapNeeded_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcBridgeSupport;\r\n}());\r\nexports.VpnRpcBridgeSupport = VpnRpcBridgeSupport;\r\n/** Get the CA of HUB */\r\nvar VpnRpcHubGetCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubGetCA' class: Get the CA of HUB */\r\n function VpnRpcHubGetCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The key id of the certificate */\r\n this.Key_u32 = 0;\r\n /** The body of the X.509 certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubGetCA;\r\n}());\r\nexports.VpnRpcHubGetCA = VpnRpcHubGetCA;\r\n/** Caps item of the VPN Server */\r\nvar VpnCaps = /** @class */ (function () {\r\n /** Constructor for the 'VpnCaps' class: Caps item of the VPN Server */\r\n function VpnCaps(init) {\r\n /** Name */\r\n this.CapsName_str = \"\";\r\n /** Value */\r\n this.CapsValue_u32 = 0;\r\n /** Descrption */\r\n this.CapsDescrption_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnCaps;\r\n}());\r\nexports.VpnCaps = VpnCaps;\r\n/** Caps list of the VPN Server */\r\nvar VpnCapslist = /** @class */ (function () {\r\n /** Constructor for the 'VpnCapslist' class: Caps list of the VPN Server */\r\n function VpnCapslist(init) {\r\n /** Caps list of the VPN Server */\r\n this.CapsList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnCapslist;\r\n}());\r\nexports.VpnCapslist = VpnCapslist;\r\n/** Config operation */\r\nvar VpnRpcConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcConfig' class: Config operation */\r\n function VpnRpcConfig(init) {\r\n /** File name (valid only for returning from the server) */\r\n this.FileName_str = \"\";\r\n /** File data */\r\n this.FileData_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcConfig;\r\n}());\r\nexports.VpnRpcConfig = VpnRpcConfig;\r\n/** Connection information */\r\nvar VpnRpcConnectionInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcConnectionInfo' class: Connection information */\r\n function VpnRpcConnectionInfo(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n /** Type */\r\n this.Type_u32 = 0;\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Connected time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Server string */\r\n this.ServerStr_str = \"\";\r\n /** Server version */\r\n this.ServerVer_u32 = 0;\r\n /** Server build number */\r\n this.ServerBuild_u32 = 0;\r\n /** Client string */\r\n this.ClientStr_str = \"\";\r\n /** Client version */\r\n this.ClientVer_u32 = 0;\r\n /** Client build number */\r\n this.ClientBuild_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcConnectionInfo;\r\n}());\r\nexports.VpnRpcConnectionInfo = VpnRpcConnectionInfo;\r\n/** Proxy type */\r\nvar VpnRpcProxyType;\r\n(function (VpnRpcProxyType) {\r\n /** Direct TCP connection */\r\n VpnRpcProxyType[VpnRpcProxyType[\"Direct\"] = 0] = \"Direct\";\r\n /** Connection via HTTP proxy server */\r\n VpnRpcProxyType[VpnRpcProxyType[\"HTTP\"] = 1] = \"HTTP\";\r\n /** Connection via SOCKS proxy server */\r\n VpnRpcProxyType[VpnRpcProxyType[\"SOCKS\"] = 2] = \"SOCKS\";\r\n})(VpnRpcProxyType = exports.VpnRpcProxyType || (exports.VpnRpcProxyType = {}));\r\n/** The current status of the DDNS */\r\nvar VpnDDnsClientStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnDDnsClientStatus' class: The current status of the DDNS */\r\n function VpnDDnsClientStatus(init) {\r\n /** Last error code (IPv4) */\r\n this.Err_IPv4_u32 = 0;\r\n /** Last error string (IPv4) */\r\n this.ErrStr_IPv4_utf = \"\";\r\n /** Last error code (IPv6) */\r\n this.Err_IPv6_u32 = 0;\r\n /** Last error string (IPv6) */\r\n this.ErrStr_IPv6_utf = \"\";\r\n /** Current DDNS host name */\r\n this.CurrentHostName_str = \"\";\r\n /** Current FQDN of the DDNS hostname */\r\n this.CurrentFqdn_str = \"\";\r\n /** DDNS suffix */\r\n this.DnsSuffix_str = \"\";\r\n /** Current IPv4 address of the VPN Server */\r\n this.CurrentIPv4_str = \"\";\r\n /** Current IPv6 address of the VPN Server */\r\n this.CurrentIPv6_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnDDnsClientStatus;\r\n}());\r\nexports.VpnDDnsClientStatus = VpnDDnsClientStatus;\r\n/** Internet connection settings */\r\nvar VpnInternetSetting = /** @class */ (function () {\r\n /** Constructor for the 'VpnInternetSetting' class: Internet connection settings */\r\n function VpnInternetSetting(init) {\r\n /** Type of proxy server */\r\n this.ProxyType_u32 = 0;\r\n /** Proxy server host name */\r\n this.ProxyHostName_str = \"\";\r\n /** Proxy server port number */\r\n this.ProxyPort_u32 = 0;\r\n /** Proxy server user name */\r\n this.ProxyUsername_str = \"\";\r\n /** Proxy server password */\r\n this.ProxyPassword_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnInternetSetting;\r\n}());\r\nexports.VpnInternetSetting = VpnInternetSetting;\r\n/** Administration options */\r\nvar VpnAdminOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnAdminOption' class: Administration options */\r\n function VpnAdminOption(init) {\r\n /** Name */\r\n this.Name_str = \"\";\r\n /** Data */\r\n this.Value_u32 = 0;\r\n /** Descrption */\r\n this.Descrption_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAdminOption;\r\n}());\r\nexports.VpnAdminOption = VpnAdminOption;\r\n/** Administration options list */\r\nvar VpnRpcAdminOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAdminOption' class: Administration options list */\r\n function VpnRpcAdminOption(init) {\r\n /** Virtual HUB name */\r\n this.HubName_str = \"\";\r\n /** List data */\r\n this.AdminOptionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAdminOption;\r\n}());\r\nexports.VpnRpcAdminOption = VpnRpcAdminOption;\r\n/** Connection state to the controller */\r\nvar VpnRpcFarmConnectionStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmConnectionStatus' class: Connection state to the controller */\r\n function VpnRpcFarmConnectionStatus(init) {\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Online state */\r\n this.Online_bool = false;\r\n /** Last error code */\r\n this.LastError_u32 = 0;\r\n /** Connection start time */\r\n this.StartedTime_dt = new Date();\r\n /** First connection time */\r\n this.FirstConnectedTime_dt = new Date();\r\n /** Connection time of this time */\r\n this.CurrentConnectedTime_dt = new Date();\r\n /** Number of retries */\r\n this.NumTry_u32 = 0;\r\n /** Number of connection count */\r\n this.NumConnected_u32 = 0;\r\n /** Connection failure count */\r\n this.NumFailed_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmConnectionStatus;\r\n}());\r\nexports.VpnRpcFarmConnectionStatus = VpnRpcFarmConnectionStatus;\r\n/** HUB item of each farm member */\r\nvar VpnRpcFarmHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmHub' class: HUB item of each farm member */\r\n function VpnRpcFarmHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Dynamic HUB */\r\n this.DynamicHub_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmHub;\r\n}());\r\nexports.VpnRpcFarmHub = VpnRpcFarmHub;\r\n/** Server farm member information acquisition */\r\nvar VpnRpcFarmInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmInfo' class: Server farm member information acquisition */\r\n function VpnRpcFarmInfo(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** The flag if the server is Cluster Controller (false: Cluster Member servers) */\r\n this.Controller_bool = false;\r\n /** Connection Established Time */\r\n this.ConnectedTime_dt = new Date();\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Point */\r\n this.Point_u32 = 0;\r\n /** Number of Public Ports */\r\n this.NumPort_u32 = 0;\r\n /** Public Ports */\r\n this.Ports_u32 = [];\r\n /** Server certificate */\r\n this.ServerCert_bin = new Uint8Array([]);\r\n /** Number of farm HUB */\r\n this.NumFarmHub_u32 = 0;\r\n /** The hosted Virtual Hub list */\r\n this.HubsList = [];\r\n /** Number of hosted VPN sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Performance Standard Ratio */\r\n this.Weight_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmInfo;\r\n}());\r\nexports.VpnRpcFarmInfo = VpnRpcFarmInfo;\r\n/** Server farm configuration */\r\nvar VpnRpcFarm = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarm' class: Server farm configuration */\r\n function VpnRpcFarm(init) {\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Valid only for Cluster Member servers. Number of the Ports_u32 element. */\r\n this.NumPort_u32 = 0;\r\n /** Valid only for Cluster Member servers. Specify the list of public port numbers on this server. The list must have at least one public port number set, and it is also possible to set multiple public port numbers. */\r\n this.Ports_u32 = [];\r\n /** Valid only for Cluster Member servers. Specify the public IP address of this server. If you wish to leave public IP address unspecified, specify the empty string. When a public IP address is not specified, the IP address of the network interface used when connecting to the cluster controller will be automatically used. */\r\n this.PublicIp_ip = \"\";\r\n /** Valid only for Cluster Member servers. Specify the host name or IP address of the destination cluster controller. */\r\n this.ControllerName_str = \"\";\r\n /** Valid only for Cluster Member servers. Specify the TCP port number of the destination cluster controller. */\r\n this.ControllerPort_u32 = 0;\r\n /** Valid only for Cluster Member servers. Specify the password required to connect to the destination controller. It needs to be the same as an administrator password on the destination controller. */\r\n this.MemberPasswordPlaintext_str = \"\";\r\n /** This sets a value for the performance standard ratio of this VPN Server. This is the standard value for when load balancing is performed in the cluster. For example, making only one machine 200 while the other members have a status of 100, will regulate that machine to receive twice as many connections as the other members. Specify 1 or higher for the value. If this parameter is left unspecified, 100 will be used. */\r\n this.Weight_u32 = 0;\r\n /** Valid only for Cluster Controller server. By specifying true, the VPN Server will operate only as a controller on the cluster and it will always distribute general VPN Client connections to members other than itself. This function is used in high-load environments. */\r\n this.ControllerOnly_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarm;\r\n}());\r\nexports.VpnRpcFarm = VpnRpcFarm;\r\n/** Log switch type */\r\nvar VpnRpcLogSwitchType;\r\n(function (VpnRpcLogSwitchType) {\r\n /** No switching */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"No\"] = 0] = \"No\";\r\n /** Secondly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Second\"] = 1] = \"Second\";\r\n /** Minutely basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Minute\"] = 2] = \"Minute\";\r\n /** Hourly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Hour\"] = 3] = \"Hour\";\r\n /** Daily basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Day\"] = 4] = \"Day\";\r\n /** Monthly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Month\"] = 5] = \"Month\";\r\n})(VpnRpcLogSwitchType = exports.VpnRpcLogSwitchType || (exports.VpnRpcLogSwitchType = {}));\r\n/** Packet log settings */\r\nvar VpnRpcPacketLogSetting;\r\n(function (VpnRpcPacketLogSetting) {\r\n /** Not save */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"None\"] = 0] = \"None\";\r\n /** Only header */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"Header\"] = 1] = \"Header\";\r\n /** All payloads */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"All\"] = 2] = \"All\";\r\n})(VpnRpcPacketLogSetting = exports.VpnRpcPacketLogSetting || (exports.VpnRpcPacketLogSetting = {}));\r\n/** Packet log settings array index */\r\nvar VpnRpcPacketLogSettingIndex;\r\n(function (VpnRpcPacketLogSettingIndex) {\r\n /** TCP connection log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"TcpConnection\"] = 0] = \"TcpConnection\";\r\n /** TCP packet log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"TcpAll\"] = 1] = \"TcpAll\";\r\n /** DHCP Log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Dhcp\"] = 2] = \"Dhcp\";\r\n /** UDP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Udp\"] = 3] = \"Udp\";\r\n /** ICMP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Icmp\"] = 4] = \"Icmp\";\r\n /** IP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Ip\"] = 5] = \"Ip\";\r\n /** ARP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Arp\"] = 6] = \"Arp\";\r\n /** Ethernet log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Ethernet\"] = 7] = \"Ethernet\";\r\n})(VpnRpcPacketLogSettingIndex = exports.VpnRpcPacketLogSettingIndex || (exports.VpnRpcPacketLogSettingIndex = {}));\r\n/** HUB log settings */\r\nvar VpnRpcHubLog = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubLog' class: HUB log settings */\r\n function VpnRpcHubLog(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The flag to enable / disable saving the security log */\r\n this.SaveSecurityLog_bool = false;\r\n /** The log filename switching setting of the security log */\r\n this.SecurityLogSwitchType_u32 = 0;\r\n /** The flag to enable / disable saving the security log */\r\n this.SavePacketLog_bool = false;\r\n /** The log filename switching settings of the packet logs */\r\n this.PacketLogSwitchType_u32 = 0;\r\n /** Specify the save contents of the packet logs (uint * 16 array). The index numbers: TcpConnection = 0, TcpAll = 1, DHCP = 2, UDP = 3, ICMP = 4, IP = 5, ARP = 6, Ethernet = 7. */\r\n this.PacketLogConfig_u32 = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubLog;\r\n}());\r\nexports.VpnRpcHubLog = VpnRpcHubLog;\r\n/** RADIUS server options */\r\nvar VpnRpcRadius = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcRadius' class: RADIUS server options */\r\n function VpnRpcRadius(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** RADIUS server name */\r\n this.RadiusServerName_str = \"\";\r\n /** RADIUS port number */\r\n this.RadiusPort_u32 = 0;\r\n /** Secret key */\r\n this.RadiusSecret_str = \"\";\r\n /** Radius retry interval */\r\n this.RadiusRetryInterval_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcRadius;\r\n}());\r\nexports.VpnRpcRadius = VpnRpcRadius;\r\n/** Get the state HUB */\r\nvar VpnRpcHubStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubStatus' class: Get the state HUB */\r\n function VpnRpcHubStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Online */\r\n this.Online_bool = false;\r\n /** Type of HUB */\r\n this.HubType_u32 = 0;\r\n /** Number of sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of sessions (client mode) */\r\n this.NumSessionsClient_u32 = 0;\r\n /** Number of sessions (bridge mode) */\r\n this.NumSessionsBridge_u32 = 0;\r\n /** Number of Access list entries */\r\n this.NumAccessLists_u32 = 0;\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Number of groups */\r\n this.NumGroups_u32 = 0;\r\n /** Number of MAC table entries */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of IP table entries */\r\n this.NumIpTables_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** Whether SecureNAT is enabled */\r\n this.SecureNATEnabled_bool = false;\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Number of logins */\r\n this.NumLogin_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubStatus;\r\n}());\r\nexports.VpnRpcHubStatus = VpnRpcHubStatus;\r\n/** List of services provided by IPsec server */\r\nvar VpnIPsecServices = /** @class */ (function () {\r\n /** Constructor for the 'VpnIPsecServices' class: List of services provided by IPsec server */\r\n function VpnIPsecServices(init) {\r\n /** Enable or Disable the L2TP Server Function (Raw L2TP with No Encryptions). To accept special VPN clients, enable this option. */\r\n this.L2TP_Raw_bool = false;\r\n /** Enable or Disable the L2TP over IPsec Server Function. To accept VPN connections from iPhone, iPad, Android, Windows or Mac OS X, enable this option. */\r\n this.L2TP_IPsec_bool = false;\r\n /** Enable or Disable the EtherIP / L2TPv3 over IPsec Server Function (for site-to-site VPN Server function). Router Products which are compatible with EtherIP over IPsec can connect to Virtual Hubs on the VPN Server and establish Layer-2 (Ethernet) Bridging. */\r\n this.EtherIP_IPsec_bool = false;\r\n /** Specify the IPsec Pre-Shared Key. An IPsec Pre-Shared Key is also called as \"PSK\" or \"secret\". Specify it equal or less than 8 letters, and distribute it to every users who will connect to the VPN Server. Please note: Google Android 4.0 has a bug which a Pre-Shared Key with 10 or more letters causes a unexpected behavior. For that reason, the letters of a Pre-Shared Key should be 9 or less characters. */\r\n this.IPsec_Secret_str = \"\";\r\n /** Specify the default Virtual HUB in a case of omitting the name of HUB on the Username. Users should specify their username such as \"Username@Target Virtual HUB Name\" to connect this L2TP Server. If the designation of the Virtual Hub is omitted, the above HUB will be used as the target. */\r\n this.L2TP_DefaultHub_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnIPsecServices;\r\n}());\r\nexports.VpnIPsecServices = VpnIPsecServices;\r\n/** Keep alive protocol */\r\nvar VpnRpcKeepAliveProtocol;\r\n(function (VpnRpcKeepAliveProtocol) {\r\n /** TCP */\r\n VpnRpcKeepAliveProtocol[VpnRpcKeepAliveProtocol[\"TCP\"] = 0] = \"TCP\";\r\n /** UDP */\r\n VpnRpcKeepAliveProtocol[VpnRpcKeepAliveProtocol[\"UDP\"] = 1] = \"UDP\";\r\n})(VpnRpcKeepAliveProtocol = exports.VpnRpcKeepAliveProtocol || (exports.VpnRpcKeepAliveProtocol = {}));\r\n/** Keep Alive settings */\r\nvar VpnRpcKeep = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcKeep' class: Keep Alive settings */\r\n function VpnRpcKeep(init) {\r\n /** The flag to enable keep-alive to the Internet */\r\n this.UseKeepConnect_bool = false;\r\n /** Specify the host name or IP address of the destination */\r\n this.KeepConnectHost_str = \"\";\r\n /** Specify the port number of the destination */\r\n this.KeepConnectPort_u32 = 0;\r\n /** Protocol type */\r\n this.KeepConnectProtocol_u32 = 0;\r\n /** Interval Between Packets Sends (Seconds) */\r\n this.KeepConnectInterval_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcKeep;\r\n}());\r\nexports.VpnRpcKeep = VpnRpcKeep;\r\n/** State of the client session */\r\nvar VpnRpcClientSessionStatus;\r\n(function (VpnRpcClientSessionStatus) {\r\n /** Connecting */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Connecting\"] = 0] = \"Connecting\";\r\n /** Negotiating */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Negotiation\"] = 1] = \"Negotiation\";\r\n /** During user authentication */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Auth\"] = 2] = \"Auth\";\r\n /** Connection complete */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Established\"] = 3] = \"Established\";\r\n /** Wait to retry */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Retry\"] = 4] = \"Retry\";\r\n /** Idle state */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Idle\"] = 5] = \"Idle\";\r\n})(VpnRpcClientSessionStatus = exports.VpnRpcClientSessionStatus || (exports.VpnRpcClientSessionStatus = {}));\r\n/** Get the link state */\r\nvar VpnRpcLinkStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLinkStatus' class: Get the link state */\r\n function VpnRpcLinkStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_Ex_str = \"\";\r\n /** The name of the cascade connection */\r\n this.AccountName_utf = \"\";\r\n /** The flag whether the cascade connection is enabled */\r\n this.Active_bool = false;\r\n /** The flag whether the cascade connection is established */\r\n this.Connected_bool = false;\r\n /** The session status */\r\n this.SessionStatus_u32 = 0;\r\n /** The destination VPN server name */\r\n this.ServerName_str = \"\";\r\n /** The port number of the server */\r\n this.ServerPort_u32 = 0;\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server product version */\r\n this.ServerProductVer_u32 = 0;\r\n /** Server product build number */\r\n this.ServerProductBuild_u32 = 0;\r\n /** Server's X.509 certificate */\r\n this.ServerX_bin = new Uint8Array([]);\r\n /** Client certificate */\r\n this.ClientX_bin = new Uint8Array([]);\r\n /** Connection start time */\r\n this.StartTime_dt = new Date();\r\n /** Connection completion time of the first connection */\r\n this.FirstConnectionEstablisiedTime_dt = new Date();\r\n /** Connection completion time of this connection */\r\n this.CurrentConnectionEstablishTime_dt = new Date();\r\n /** Number of connections have been established so far */\r\n this.NumConnectionsEatablished_u32 = 0;\r\n /** Half-connection */\r\n this.HalfConnection_bool = false;\r\n /** VoIP / QoS */\r\n this.QoS_bool = false;\r\n /** Maximum number of the underlying TCP connections */\r\n this.MaxTcpConnections_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of underlying inbound TCP connections */\r\n this.NumTcpConnectionsUpload_u32 = 0;\r\n /** Number of underlying outbound TCP connections */\r\n this.NumTcpConnectionsDownload_u32 = 0;\r\n /** Use of encryption */\r\n this.UseEncrypt_bool = false;\r\n /** Cipher algorithm name */\r\n this.CipherName_str = \"\";\r\n /** Use of compression */\r\n this.UseCompress_bool = false;\r\n /** The flag whether this is a R-UDP session */\r\n this.IsRUDPSession_bool = false;\r\n /** Underlying physical communication protocol */\r\n this.UnderlayProtocol_str = \"\";\r\n /** The UDP acceleration is enabled */\r\n this.IsUdpAccelerationEnabled_bool = false;\r\n /** The UDP acceleration is being actually used */\r\n this.IsUsingUdpAcceleration_bool = false;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** Connection name */\r\n this.ConnectionName_str = \"\";\r\n /** Session key */\r\n this.SessionKey_bin = new Uint8Array([]);\r\n /** Total transmitted data size */\r\n this.TotalSendSize_u64 = 0;\r\n /** Total received data size */\r\n this.TotalRecvSize_u64 = 0;\r\n /** Total transmitted data size (no compression) */\r\n this.TotalSendSizeReal_u64 = 0;\r\n /** Total received data size (no compression) */\r\n this.TotalRecvSizeReal_u64 = 0;\r\n /** The flag whether the VPN session is Bridge Mode */\r\n this.IsBridgeMode_bool = false;\r\n /** The flag whether the VPN session is Monitor mode */\r\n this.IsMonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLinkStatus;\r\n}());\r\nexports.VpnRpcLinkStatus = VpnRpcLinkStatus;\r\n/** Setting of SSTP and OpenVPN */\r\nvar VpnOpenVpnSstpConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnOpenVpnSstpConfig' class: Setting of SSTP and OpenVPN */\r\n function VpnOpenVpnSstpConfig(init) {\r\n /** Specify true to enable the OpenVPN Clone Server Function. Specify false to disable. */\r\n this.EnableOpenVPN_bool = false;\r\n /** Specify UDP ports to listen for OpenVPN. Multiple UDP ports can be specified with splitting by space or comma letters, for example: \"1194, 2001, 2010, 2012\". The default port for OpenVPN is UDP 1194. You can specify any other UDP ports. */\r\n this.OpenVPNPortList_str = \"\";\r\n /** pecify true to enable the Microsoft SSTP VPN Clone Server Function. Specify false to disable. */\r\n this.EnableSSTP_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnOpenVpnSstpConfig;\r\n}());\r\nexports.VpnOpenVpnSstpConfig = VpnOpenVpnSstpConfig;\r\n/** Virtual host option */\r\nvar VpnVhOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnVhOption' class: Virtual host option */\r\n function VpnVhOption(init) {\r\n /** Target Virtual HUB name */\r\n this.RpcHubName_str = \"\";\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Subnet mask */\r\n this.Mask_ip = \"\";\r\n /** Use flag of the Virtual NAT function */\r\n this.UseNat_bool = false;\r\n /** MTU value (Standard: 1500) */\r\n this.Mtu_u32 = 0;\r\n /** NAT TCP timeout in seconds */\r\n this.NatTcpTimeout_u32 = 0;\r\n /** NAT UDP timeout in seconds */\r\n this.NatUdpTimeout_u32 = 0;\r\n /** Using flag of DHCP function */\r\n this.UseDhcp_bool = false;\r\n /** Specify the start point of the address band to be distributed to the client. (Example: 192.168.30.10) */\r\n this.DhcpLeaseIPStart_ip = \"\";\r\n /** Specify the end point of the address band to be distributed to the client. (Example: 192.168.30.200) */\r\n this.DhcpLeaseIPEnd_ip = \"\";\r\n /** Specify the subnet mask to be specified for the client. (Example: 255.255.255.0) */\r\n this.DhcpSubnetMask_ip = \"\";\r\n /** Specify the expiration date in second units for leasing an IP address to a client. */\r\n this.DhcpExpireTimeSpan_u32 = 0;\r\n /** Specify the IP address of the default gateway to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify 0 or none, then the client will not be notified of the default gateway. */\r\n this.DhcpGatewayAddress_ip = \"\";\r\n /** Specify the IP address of the primary DNS Server to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify empty, then the client will not be notified of the DNS Server address. */\r\n this.DhcpDnsServerAddress_ip = \"\";\r\n /** Specify the IP address of the secondary DNS Server to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify empty, then the client will not be notified of the DNS Server address. */\r\n this.DhcpDnsServerAddress2_ip = \"\";\r\n /** Specify the domain name to be notified to the client. If you specify none, then the client will not be notified of the domain name. */\r\n this.DhcpDomainName_str = \"\";\r\n /** Specify whether or not to save the Virtual DHCP Server operation in the Virtual Hub security log. Specify true to save it. This value is interlinked with the Virtual NAT Function log save setting. */\r\n this.SaveLog_bool = false;\r\n /** The flag to enable the DhcpPushRoutes_str field. */\r\n this.ApplyDhcpPushRoutes_bool = false;\r\n /** Specify the static routing table to push. Example: \"192.168.5.0/255.255.255.0/192.168.4.254, 10.0.0.0/255.0.0.0/192.168.4.253\" Split multiple entries (maximum: 64 entries) by comma or space characters. Each entry must be specified in the \"IP network address/subnet mask/gateway IP address\" format. This Virtual DHCP Server can push the classless static routes (RFC 3442) with DHCP reply messages to VPN clients. Whether or not a VPN client can recognize the classless static routes (RFC 3442) depends on the target VPN client software. SoftEther VPN Client and OpenVPN Client are supporting the classless static routes. On L2TP/IPsec and MS-SSTP protocols, the compatibility depends on the implementation of the client software. You can realize the split tunneling if you clear the default gateway field on the Virtual DHCP Server options. On the client side, L2TP/IPsec and MS-SSTP clients need to be configured not to set up the default gateway for the split tunneling usage. You can also push the classless static routes (RFC 3442) by your existing external DHCP server. In that case, disable the Virtual DHCP Server function on SecureNAT, and you need not to set up the classless routes on this API. See the RFC 3442 to understand the classless routes. */\r\n this.DhcpPushRoutes_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnVhOption;\r\n}());\r\nexports.VpnVhOption = VpnVhOption;\r\n/** RPC_NAT_STATUS */\r\nvar VpnRpcNatStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcNatStatus' class: RPC_NAT_STATUS */\r\n function VpnRpcNatStatus(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** Number of TCP sessions */\r\n this.NumTcpSessions_u32 = 0;\r\n /** Ntmber of UDP sessions */\r\n this.NumUdpSessions_u32 = 0;\r\n /** Nymber of ICMP sessions */\r\n this.NumIcmpSessions_u32 = 0;\r\n /** Number of DNS sessions */\r\n this.NumDnsSessions_u32 = 0;\r\n /** Number of DHCP clients */\r\n this.NumDhcpClients_u32 = 0;\r\n /** Whether the NAT is operating in the Kernel Mode */\r\n this.IsKernelMode_bool = false;\r\n /** Whether the NAT is operating in the Raw IP Mode */\r\n this.IsRawIpMode_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcNatStatus;\r\n}());\r\nexports.VpnRpcNatStatus = VpnRpcNatStatus;\r\n/** Key pair */\r\nvar VpnRpcKeyPair = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcKeyPair' class: Key pair */\r\n function VpnRpcKeyPair(init) {\r\n /** The body of the certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n /** The body of the private key */\r\n this.Key_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcKeyPair;\r\n}());\r\nexports.VpnRpcKeyPair = VpnRpcKeyPair;\r\n/** Single string value */\r\nvar VpnRpcStr = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcStr' class: Single string value */\r\n function VpnRpcStr(init) {\r\n /** A string value */\r\n this.String_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcStr;\r\n}());\r\nexports.VpnRpcStr = VpnRpcStr;\r\n/** Type of VPN Server */\r\nvar VpnRpcServerType;\r\n(function (VpnRpcServerType) {\r\n /** Stand-alone server */\r\n VpnRpcServerType[VpnRpcServerType[\"Standalone\"] = 0] = \"Standalone\";\r\n /** Farm controller server */\r\n VpnRpcServerType[VpnRpcServerType[\"FarmController\"] = 1] = \"FarmController\";\r\n /** Farm member server */\r\n VpnRpcServerType[VpnRpcServerType[\"FarmMember\"] = 2] = \"FarmMember\";\r\n})(VpnRpcServerType = exports.VpnRpcServerType || (exports.VpnRpcServerType = {}));\r\n/** Operating system type */\r\nvar VpnRpcOsType;\r\n(function (VpnRpcOsType) {\r\n /** Windows 95 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_95\"] = 1100] = \"WINDOWS_95\";\r\n /** Windows 98 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_98\"] = 1200] = \"WINDOWS_98\";\r\n /** Windows Me */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_ME\"] = 1300] = \"WINDOWS_ME\";\r\n /** Windows (unknown) */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_UNKNOWN\"] = 1400] = \"WINDOWS_UNKNOWN\";\r\n /** Windows NT 4.0 Workstation */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_WORKSTATION\"] = 2100] = \"WINDOWS_NT_4_WORKSTATION\";\r\n /** Windows NT 4.0 Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SERVER\"] = 2110] = \"WINDOWS_NT_4_SERVER\";\r\n /** Windows NT 4.0 Server, Enterprise Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SERVER_ENTERPRISE\"] = 2111] = \"WINDOWS_NT_4_SERVER_ENTERPRISE\";\r\n /** Windows NT 4.0 Terminal Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_TERMINAL_SERVER\"] = 2112] = \"WINDOWS_NT_4_TERMINAL_SERVER\";\r\n /** BackOffice Server 4.5 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_BACKOFFICE\"] = 2113] = \"WINDOWS_NT_4_BACKOFFICE\";\r\n /** Small Business Server 4.5 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SMS\"] = 2114] = \"WINDOWS_NT_4_SMS\";\r\n /** Windows 2000 Professional */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_PROFESSIONAL\"] = 2200] = \"WINDOWS_2000_PROFESSIONAL\";\r\n /** Windows 2000 Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_SERVER\"] = 2211] = \"WINDOWS_2000_SERVER\";\r\n /** Windows 2000 Advanced Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_ADVANCED_SERVER\"] = 2212] = \"WINDOWS_2000_ADVANCED_SERVER\";\r\n /** Windows 2000 Datacenter Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_DATACENTER_SERVER\"] = 2213] = \"WINDOWS_2000_DATACENTER_SERVER\";\r\n /** BackOffice Server 2000 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_BACKOFFICE\"] = 2214] = \"WINDOWS_2000_BACKOFFICE\";\r\n /** Small Business Server 2000 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_SBS\"] = 2215] = \"WINDOWS_2000_SBS\";\r\n /** Windows XP Home Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_XP_HOME\"] = 2300] = \"WINDOWS_XP_HOME\";\r\n /** Windows XP Professional */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_XP_PROFESSIONAL\"] = 2301] = \"WINDOWS_XP_PROFESSIONAL\";\r\n /** Windows Server 2003 Web Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_WEB\"] = 2410] = \"WINDOWS_2003_WEB\";\r\n /** Windows Server 2003 Standard Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_STANDARD\"] = 2411] = \"WINDOWS_2003_STANDARD\";\r\n /** Windows Server 2003 Enterprise Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_ENTERPRISE\"] = 2412] = \"WINDOWS_2003_ENTERPRISE\";\r\n /** Windows Server 2003 DataCenter Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_DATACENTER\"] = 2413] = \"WINDOWS_2003_DATACENTER\";\r\n /** BackOffice Server 2003 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_BACKOFFICE\"] = 2414] = \"WINDOWS_2003_BACKOFFICE\";\r\n /** Small Business Server 2003 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_SBS\"] = 2415] = \"WINDOWS_2003_SBS\";\r\n /** Windows Vista */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_LONGHORN_PROFESSIONAL\"] = 2500] = \"WINDOWS_LONGHORN_PROFESSIONAL\";\r\n /** Windows Server 2008 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_LONGHORN_SERVER\"] = 2510] = \"WINDOWS_LONGHORN_SERVER\";\r\n /** Windows 7 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_7\"] = 2600] = \"WINDOWS_7\";\r\n /** Windows Server 2008 R2 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_2008_R2\"] = 2610] = \"WINDOWS_SERVER_2008_R2\";\r\n /** Windows 8 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_8\"] = 2700] = \"WINDOWS_8\";\r\n /** Windows Server 2012 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_8\"] = 2710] = \"WINDOWS_SERVER_8\";\r\n /** Windows 8.1 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_81\"] = 2701] = \"WINDOWS_81\";\r\n /** Windows Server 2012 R2 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_81\"] = 2711] = \"WINDOWS_SERVER_81\";\r\n /** Windows 10 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_10\"] = 2702] = \"WINDOWS_10\";\r\n /** Windows Server 10 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_10\"] = 2712] = \"WINDOWS_SERVER_10\";\r\n /** Windows 11 or later */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_11\"] = 2800] = \"WINDOWS_11\";\r\n /** Windows Server 11 or later */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_11\"] = 2810] = \"WINDOWS_SERVER_11\";\r\n /** Unknown UNIX */\r\n VpnRpcOsType[VpnRpcOsType[\"UNIX_UNKNOWN\"] = 3000] = \"UNIX_UNKNOWN\";\r\n /** Linux */\r\n VpnRpcOsType[VpnRpcOsType[\"LINUX\"] = 3100] = \"LINUX\";\r\n /** Solaris */\r\n VpnRpcOsType[VpnRpcOsType[\"SOLARIS\"] = 3200] = \"SOLARIS\";\r\n /** Cygwin */\r\n VpnRpcOsType[VpnRpcOsType[\"CYGWIN\"] = 3300] = \"CYGWIN\";\r\n /** BSD */\r\n VpnRpcOsType[VpnRpcOsType[\"BSD\"] = 3400] = \"BSD\";\r\n /** MacOS X */\r\n VpnRpcOsType[VpnRpcOsType[\"MACOS_X\"] = 3500] = \"MACOS_X\";\r\n})(VpnRpcOsType = exports.VpnRpcOsType || (exports.VpnRpcOsType = {}));\r\n/** VPN Server Information */\r\nvar VpnRpcServerInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcServerInfo' class: VPN Server Information */\r\n function VpnRpcServerInfo(init) {\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server version string */\r\n this.ServerVersionString_str = \"\";\r\n /** Server build information string */\r\n this.ServerBuildInfoString_str = \"\";\r\n /** Server version integer value */\r\n this.ServerVerInt_u32 = 0;\r\n /** Server build number integer value */\r\n this.ServerBuildInt_u32 = 0;\r\n /** Server host name */\r\n this.ServerHostName_str = \"\";\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Build date and time of the server */\r\n this.ServerBuildDate_dt = new Date();\r\n /** Family name */\r\n this.ServerFamilyName_str = \"\";\r\n /** OS type */\r\n this.OsType_u32 = 0;\r\n /** Service pack number */\r\n this.OsServicePack_u32 = 0;\r\n /** OS system name */\r\n this.OsSystemName_str = \"\";\r\n /** OS product name */\r\n this.OsProductName_str = \"\";\r\n /** OS vendor name */\r\n this.OsVendorName_str = \"\";\r\n /** OS version */\r\n this.OsVersion_str = \"\";\r\n /** Kernel name */\r\n this.KernelName_str = \"\";\r\n /** Kernel version */\r\n this.KernelVersion_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcServerInfo;\r\n}());\r\nexports.VpnRpcServerInfo = VpnRpcServerInfo;\r\n/** Server status */\r\nvar VpnRpcServerStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcServerStatus' class: Server status */\r\n function VpnRpcServerStatus(init) {\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Total number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of Local TCP connections */\r\n this.NumTcpConnectionsLocal_u32 = 0;\r\n /** Number of remote TCP connections */\r\n this.NumTcpConnectionsRemote_u32 = 0;\r\n /** Total number of HUBs */\r\n this.NumHubTotal_u32 = 0;\r\n /** Nymber of stand-alone HUB */\r\n this.NumHubStandalone_u32 = 0;\r\n /** Number of static HUBs */\r\n this.NumHubStatic_u32 = 0;\r\n /** Number of Dynamic HUBs */\r\n this.NumHubDynamic_u32 = 0;\r\n /** Total number of sessions */\r\n this.NumSessionsTotal_u32 = 0;\r\n /** Number of local VPN sessions */\r\n this.NumSessionsLocal_u32 = 0;\r\n /** The number of remote sessions */\r\n this.NumSessionsRemote_u32 = 0;\r\n /** Number of MAC table entries (total sum of all Virtual Hubs) */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of IP table entries (total sum of all Virtual Hubs) */\r\n this.NumIpTables_u32 = 0;\r\n /** Number of users (total sum of all Virtual Hubs) */\r\n this.NumUsers_u32 = 0;\r\n /** Number of groups (total sum of all Virtual Hubs) */\r\n this.NumGroups_u32 = 0;\r\n /** Number of assigned bridge licenses (Useful to make a commercial version) */\r\n this.AssignedBridgeLicenses_u32 = 0;\r\n /** Number of assigned client licenses (Useful to make a commercial version) */\r\n this.AssignedClientLicenses_u32 = 0;\r\n /** Number of Assigned bridge license (cluster-wide), useful to make a commercial version */\r\n this.AssignedBridgeLicensesTotal_u32 = 0;\r\n /** Number of assigned client licenses (cluster-wide), useful to make a commercial version */\r\n this.AssignedClientLicensesTotal_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** Current time */\r\n this.CurrentTime_dt = new Date();\r\n /** 64 bit High-Precision Logical System Clock */\r\n this.CurrentTick_u64 = 0;\r\n /** VPN Server Start-up time */\r\n this.StartTime_dt = new Date();\r\n /** Memory information: Total Memory */\r\n this.TotalMemory_u64 = 0;\r\n /** Memory information: Used Memory */\r\n this.UsedMemory_u64 = 0;\r\n /** Memory information: Free Memory */\r\n this.FreeMemory_u64 = 0;\r\n /** Memory information: Total Phys */\r\n this.TotalPhys_u64 = 0;\r\n /** Memory information: Used Phys */\r\n this.UsedPhys_u64 = 0;\r\n /** Memory information: Free Phys */\r\n this.FreePhys_u64 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcServerStatus;\r\n}());\r\nexports.VpnRpcServerStatus = VpnRpcServerStatus;\r\n/** VPN Session status */\r\nvar VpnRpcSessionStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSessionStatus' class: VPN Session status */\r\n function VpnRpcSessionStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** VPN session name */\r\n this.Name_str = \"\";\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** Real user name which was used for the authentication */\r\n this.RealUsername_str = \"\";\r\n /** Group name */\r\n this.GroupName_str = \"\";\r\n /** Is Cascade Session */\r\n this.LinkMode_bool = false;\r\n /** Client IP address */\r\n this.Client_Ip_Address_ip = \"\";\r\n /** Client host name */\r\n this.SessionStatus_ClientHostName_str = \"\";\r\n /** Operation flag */\r\n this.Active_bool = false;\r\n /** Connected flag */\r\n this.Connected_bool = false;\r\n /** State of the client session */\r\n this.SessionStatus_u32 = 0;\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** Port number of the server */\r\n this.ServerPort_u32 = 0;\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server product version */\r\n this.ServerProductVer_u32 = 0;\r\n /** Server product build number */\r\n this.ServerProductBuild_u32 = 0;\r\n /** Connection start time */\r\n this.StartTime_dt = new Date();\r\n /** Connection completion time of the first connection */\r\n this.FirstConnectionEstablisiedTime_dt = new Date();\r\n /** Connection completion time of this connection */\r\n this.CurrentConnectionEstablishTime_dt = new Date();\r\n /** Number of connections have been established so far */\r\n this.NumConnectionsEatablished_u32 = 0;\r\n /** Half-connection */\r\n this.HalfConnection_bool = false;\r\n /** VoIP / QoS */\r\n this.QoS_bool = false;\r\n /** Maximum number of the underlying TCP connections */\r\n this.MaxTcpConnections_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of inbound underlying connections */\r\n this.NumTcpConnectionsUpload_u32 = 0;\r\n /** Number of outbound underlying connections */\r\n this.NumTcpConnectionsDownload_u32 = 0;\r\n /** Use of encryption */\r\n this.UseEncrypt_bool = false;\r\n /** Cipher algorithm name */\r\n this.CipherName_str = \"\";\r\n /** Use of compression */\r\n this.UseCompress_bool = false;\r\n /** Is R-UDP session */\r\n this.IsRUDPSession_bool = false;\r\n /** Physical underlying communication protocol */\r\n this.UnderlayProtocol_str = \"\";\r\n /** The UDP acceleration is enabled */\r\n this.IsUdpAccelerationEnabled_bool = false;\r\n /** Using the UDP acceleration function */\r\n this.IsUsingUdpAcceleration_bool = false;\r\n /** VPN session name */\r\n this.SessionName_str = \"\";\r\n /** Connection name */\r\n this.ConnectionName_str = \"\";\r\n /** Session key */\r\n this.SessionKey_bin = new Uint8Array([]);\r\n /** Total transmitted data size */\r\n this.TotalSendSize_u64 = 0;\r\n /** Total received data size */\r\n this.TotalRecvSize_u64 = 0;\r\n /** Total transmitted data size (no compression) */\r\n this.TotalSendSizeReal_u64 = 0;\r\n /** Total received data size (no compression) */\r\n this.TotalRecvSizeReal_u64 = 0;\r\n /** Is Bridge Mode */\r\n this.IsBridgeMode_bool = false;\r\n /** Is Monitor mode */\r\n this.IsMonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n /** Client product name */\r\n this.ClientProductName_str = \"\";\r\n /** Client version */\r\n this.ClientProductVer_u32 = 0;\r\n /** Client build number */\r\n this.ClientProductBuild_u32 = 0;\r\n /** Client OS name */\r\n this.ClientOsName_str = \"\";\r\n /** Client OS version */\r\n this.ClientOsVer_str = \"\";\r\n /** Client OS Product ID */\r\n this.ClientOsProductId_str = \"\";\r\n /** Client host name */\r\n this.ClientHostname_str = \"\";\r\n /** Unique ID */\r\n this.UniqueId_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSessionStatus;\r\n}());\r\nexports.VpnRpcSessionStatus = VpnRpcSessionStatus;\r\n/** Set the special listener */\r\nvar VpnRpcSpecialListener = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSpecialListener' class: Set the special listener */\r\n function VpnRpcSpecialListener(init) {\r\n /** The flag to activate the VPN over ICMP server function */\r\n this.VpnOverIcmpListener_bool = false;\r\n /** The flag to activate the VPN over DNS function */\r\n this.VpnOverDnsListener_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSpecialListener;\r\n}());\r\nexports.VpnRpcSpecialListener = VpnRpcSpecialListener;\r\n/** Syslog configuration */\r\nvar VpnSyslogSaveType;\r\n(function (VpnSyslogSaveType) {\r\n /** Do not use syslog */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"None\"] = 0] = \"None\";\r\n /** Only server log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerLog\"] = 1] = \"ServerLog\";\r\n /** Server and Virtual HUB security log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerAndHubSecurityLog\"] = 2] = \"ServerAndHubSecurityLog\";\r\n /** Server, Virtual HUB security, and packet log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerAndHubAllLog\"] = 3] = \"ServerAndHubAllLog\";\r\n})(VpnSyslogSaveType = exports.VpnSyslogSaveType || (exports.VpnSyslogSaveType = {}));\r\n/** Syslog configuration */\r\nvar VpnSyslogSetting = /** @class */ (function () {\r\n /** Constructor for the 'VpnSyslogSetting' class: Syslog configuration */\r\n function VpnSyslogSetting(init) {\r\n /** The behavior of the syslog function */\r\n this.SaveType_u32 = 0;\r\n /** Specify the host name or IP address of the syslog server */\r\n this.Hostname_str = \"\";\r\n /** Specify the port number of the syslog server */\r\n this.Port_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnSyslogSetting;\r\n}());\r\nexports.VpnSyslogSetting = VpnSyslogSetting;\r\n/** VPN Gate Server Config */\r\nvar VpnVgsConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnVgsConfig' class: VPN Gate Server Config */\r\n function VpnVgsConfig(init) {\r\n /** Active flag */\r\n this.IsEnabled_bool = false;\r\n /** Message */\r\n this.Message_utf = \"\";\r\n /** Owner name */\r\n this.Owner_utf = \"\";\r\n /** Abuse email */\r\n this.Abuse_utf = \"\";\r\n /** Log save flag */\r\n this.NoLog_bool = false;\r\n /** Save log permanently */\r\n this.LogPermanent_bool = false;\r\n /** Enable the L2TP VPN function */\r\n this.EnableL2TP_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnVgsConfig;\r\n}());\r\nexports.VpnVgsConfig = VpnVgsConfig;\r\n/** Read a Log file */\r\nvar VpnRpcReadLogFile = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcReadLogFile' class: Read a Log file */\r\n function VpnRpcReadLogFile(init) {\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** File Path */\r\n this.FilePath_str = \"\";\r\n /** Offset to download. You have to call the ReadLogFile API multiple times to download the entire log file with requesting a part of the file by specifying the Offset_u32 field. */\r\n this.Offset_u32 = 0;\r\n /** Received buffer */\r\n this.Buffer_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcReadLogFile;\r\n}());\r\nexports.VpnRpcReadLogFile = VpnRpcReadLogFile;\r\n/** Rename link */\r\nvar VpnRpcRenameLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcRenameLink' class: Rename link */\r\n function VpnRpcRenameLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The old name of the cascade connection */\r\n this.OldAccountName_utf = \"\";\r\n /** The new name of the cascade connection */\r\n this.NewAccountName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcRenameLink;\r\n}());\r\nexports.VpnRpcRenameLink = VpnRpcRenameLink;\r\n/** Online or offline the HUB */\r\nvar VpnRpcSetHubOnline = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetHubOnline' class: Online or offline the HUB */\r\n function VpnRpcSetHubOnline(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Online / offline flag */\r\n this.Online_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetHubOnline;\r\n}());\r\nexports.VpnRpcSetHubOnline = VpnRpcSetHubOnline;\r\n/** Set Password */\r\nvar VpnRpcSetPassword = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetPassword' class: Set Password */\r\n function VpnRpcSetPassword(init) {\r\n /** The plaintext password */\r\n this.PlainTextPassword_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetPassword;\r\n}());\r\nexports.VpnRpcSetPassword = VpnRpcSetPassword;\r\n// --- Utility codes ---\r\n/** JSON-RPC request class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcRequest = /** @class */ (function () {\r\n function JsonRpcRequest(method, param, id) {\r\n if (method === void 0) { method = \"\"; }\r\n if (param === void 0) { param = null; }\r\n if (id === void 0) { id = \"\"; }\r\n this.jsonrpc = \"2.0\";\r\n this.method = method;\r\n this.params = param;\r\n this.id = id;\r\n }\r\n return JsonRpcRequest;\r\n}());\r\nexports.JsonRpcRequest = JsonRpcRequest;\r\n/** JSON-RPC error class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcError = /** @class */ (function () {\r\n function JsonRpcError(code, message, data) {\r\n if (code === void 0) { code = 0; }\r\n if (message === void 0) { message = \"\"; }\r\n if (data === void 0) { data = null; }\r\n this.code = code;\r\n this.message = message;\r\n this.data = data;\r\n }\r\n return JsonRpcError;\r\n}());\r\nexports.JsonRpcError = JsonRpcError;\r\n/** JSON-RPC response class with generics */\r\nvar JsonRpcResponse = /** @class */ (function () {\r\n function JsonRpcResponse() {\r\n this.jsonrpc = \"2.0\";\r\n this.result = null;\r\n this.error = null;\r\n this.id = \"\";\r\n }\r\n return JsonRpcResponse;\r\n}());\r\nexports.JsonRpcResponse = JsonRpcResponse;\r\n/** JSON-RPC client class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcClient = /** @class */ (function () {\r\n /**\r\n * JSON-RPC client class constructor\r\n * @param url The URL\r\n * @param headers Additional HTTP headers\r\n * @param send_credential Set true to use the same credential with the browsing web site. Valid only if the code is running on the web browser.\r\n */\r\n function JsonRpcClient(url, headers, send_credential, nodejs_https_client_reject_untrusted_server_cert) {\r\n this.BaseUrl = url;\r\n this.headers = headers;\r\n this.client = new HttpClient();\r\n this.client.SendCredential = send_credential;\r\n this.client.NodeJS_HTTPS_Client_Reject_Unauthorized = nodejs_https_client_reject_untrusted_server_cert;\r\n }\r\n /** A utility function to convert any object to JSON string */\r\n JsonRpcClient.ObjectToJson = function (obj) {\r\n return JSON.stringify(obj, function (key, value) {\r\n if (key.endsWith(\"_bin\")) {\r\n return Util_Base64_Encode(value);\r\n }\r\n return value;\r\n }, 4);\r\n };\r\n /** A utility function to convert JSON string to object */\r\n JsonRpcClient.JsonToObject = function (str) {\r\n return JSON.parse(str, function (key, value) {\r\n if (key.endsWith(\"_bin\")) {\r\n return Util_Base64_Decode(value);\r\n }\r\n else if (key.endsWith(\"_dt\")) {\r\n return new Date(value);\r\n }\r\n return value;\r\n });\r\n };\r\n /**\r\n * Call a single RPC call (without error check). You can wait for the response with Promise or await statement.\r\n * @param method_name The name of RPC method\r\n * @param param The parameters\r\n */\r\n JsonRpcClient.prototype.CallInternalAsync = function (method_name, param) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var id, req, req_string, http_response, ret_string;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n id = \"1\";\r\n req = new JsonRpcRequest(method_name, param, id);\r\n req_string = JsonRpcClient.ObjectToJson(req);\r\n if (debug_mode) {\r\n console.log(\"--- RPC Request Body ---\");\r\n console.log(req_string);\r\n console.log(\"------------------------\");\r\n }\r\n return [4 /*yield*/, this.client.PostAsync(this.BaseUrl, this.headers, req_string, \"application/json\")];\r\n case 1:\r\n http_response = _a.sent();\r\n ret_string = http_response.Body;\r\n if (debug_mode) {\r\n console.log(\"--- RPC Response Body ---\");\r\n console.log(ret_string);\r\n console.log(\"-------------------------\");\r\n }\r\n return [2 /*return*/, ret_string];\r\n }\r\n });\r\n });\r\n };\r\n /**\r\n * Call a single RPC call (with error check). You can wait for the response with Promise or await statement. In the case of error, it will be thrown.\r\n * @param method_name The name of RPC method\r\n * @param param The parameters\r\n */\r\n JsonRpcClient.prototype.CallAsync = function (method_name, param) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var ret_string, ret;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.CallInternalAsync(method_name, param)];\r\n case 1:\r\n ret_string = _a.sent();\r\n ret = JSON.parse(ret_string);\r\n if (is_null(ret.error) === false) {\r\n throw new JsonRpcException(ret.error);\r\n }\r\n return [2 /*return*/, ret.result];\r\n }\r\n });\r\n });\r\n };\r\n return JsonRpcClient;\r\n}());\r\nexports.JsonRpcClient = JsonRpcClient;\r\n/** JSON-RPC exception class */\r\nvar JsonRpcException = /** @class */ (function (_super) {\r\n __extends(JsonRpcException, _super);\r\n function JsonRpcException(error) {\r\n var _this = _super.call(this, \"Code=\" + error.code + \", Message=\" + error.message) || this;\r\n _this.Error = error;\r\n return _this;\r\n }\r\n return JsonRpcException;\r\n}(Error));\r\nexports.JsonRpcException = JsonRpcException;\r\n/** HTTP client exception class */\r\nvar HttpClientException = /** @class */ (function (_super) {\r\n __extends(HttpClientException, _super);\r\n function HttpClientException(message) {\r\n return _super.call(this, message) || this;\r\n }\r\n return HttpClientException;\r\n}(Error));\r\nexports.HttpClientException = HttpClientException;\r\n/** HTTP client response class */\r\nvar HttpClientResponse = /** @class */ (function () {\r\n function HttpClientResponse() {\r\n this.Body = \"\";\r\n }\r\n return HttpClientResponse;\r\n}());\r\nexports.HttpClientResponse = HttpClientResponse;\r\n/** An HTTP client which can be used in both web browsers and Node.js */\r\nvar HttpClient = /** @class */ (function () {\r\n function HttpClient() {\r\n this.TimeoutMsecs = 60 * 5 * 1000;\r\n this.SendCredential = true;\r\n this.NodeJS_HTTPS_Client_Reject_Unauthorized = false;\r\n }\r\n /** Post method. In web browsers this function will process the request by itself. In Node.js this function will call PostAsync_NodeJS() instead. */\r\n HttpClient.prototype.PostAsync = function (url, headers, req_body, req_media_type) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var fetch_header_list, _i, _a, name_1, fetch_init, fetch_response, ret, _b;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n if (is_node_js) {\r\n return [2 /*return*/, this.PostAsync_NodeJS(url, headers, req_body, req_media_type)];\r\n }\r\n fetch_header_list = new Headers();\r\n for (_i = 0, _a = Object.keys(headers); _i < _a.length; _i++) {\r\n name_1 = _a[_i];\r\n fetch_header_list.append(name_1, headers[name_1]);\r\n }\r\n fetch_init = {\r\n mode: \"cors\",\r\n headers: fetch_header_list,\r\n credentials: (this.SendCredential ? \"include\" : \"omit\"),\r\n method: \"POST\",\r\n cache: \"no-cache\",\r\n keepalive: true,\r\n redirect: \"follow\",\r\n body: req_body\r\n };\r\n return [4 /*yield*/, fetch(url, fetch_init)];\r\n case 1:\r\n fetch_response = _c.sent();\r\n if (fetch_response.ok === false) {\r\n throw new HttpClientException(\"HTTP Error: \" + fetch_response.status + \" \" + fetch_response.statusText);\r\n }\r\n ret = new HttpClientResponse();\r\n _b = ret;\r\n return [4 /*yield*/, fetch_response.text()];\r\n case 2:\r\n _b.Body = _c.sent();\r\n return [2 /*return*/, ret];\r\n }\r\n });\r\n });\r\n };\r\n /** Post method for Node.js. */\r\n HttpClient.prototype.PostAsync_NodeJS = function (url, headers, req_body, req_media_type) {\r\n var https = __webpack_require__(/*! https */ \"./node_modules/https-browserify/index.js\");\r\n var keepAliveAgent = new https.Agent({ keepAlive: true });\r\n var urlparse = __webpack_require__(/*! url */ \"./node_modules/url/url.js\");\r\n var urlobj = urlparse.parse(url);\r\n if (is_null(urlobj.host))\r\n throw new Error(\"URL is invalid.\");\r\n var options = {\r\n host: urlobj.hostname,\r\n port: urlobj.port,\r\n path: urlobj.path,\r\n rejectUnauthorized: this.NodeJS_HTTPS_Client_Reject_Unauthorized,\r\n method: \"POST\",\r\n timeout: this.TimeoutMsecs,\r\n agent: keepAliveAgent\r\n };\r\n return new Promise(function (resolve, reject) {\r\n var req = https.request(options, function (res) {\r\n if (res.statusCode !== 200) {\r\n reject(new HttpClientException(\"HTTP Error: \" + res.statusCode + \" \" + res.statusMessage));\r\n }\r\n var recv_str = \"\";\r\n res.on(\"data\", function (body) {\r\n recv_str += body;\r\n });\r\n res.on(\"end\", function () {\r\n var ret = new HttpClientResponse();\r\n ret.Body = recv_str;\r\n resolve(ret);\r\n });\r\n }).on(\"error\", function (err) {\r\n throw err;\r\n });\r\n for (var _i = 0, _a = Object.keys(headers); _i < _a.length; _i++) {\r\n var name_2 = _a[_i];\r\n req.setHeader(name_2, !is_null(headers[name_2]) ? headers[name_2] : \"\");\r\n }\r\n req.setHeader(\"Content-Type\", req_media_type);\r\n req.setHeader(\"Content-Length\", Buffer.byteLength(req_body));\r\n req.write(req_body);\r\n req.end();\r\n });\r\n };\r\n return HttpClient;\r\n}());\r\nexports.HttpClient = HttpClient;\r\n//////// BEGIN: Base64 encode / decode utility functions from https://github.com/beatgammit/base64-js\r\n// The MIT License(MIT)\r\n// Copyright(c) 2014\r\n// Permission is hereby granted, free of charge, to any person obtaining a copy\r\n// of this software and associated documentation files(the \"Software\"), to deal\r\n// in the Software without restriction, including without limitation the rights\r\n// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell\r\n// copies of the Software, and to permit persons to whom the Software is\r\n// furnished to do so, subject to the following conditions:\r\n// The above copyright notice and this permission notice shall be included in\r\n// all copies or substantial portions of the Software.\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE\r\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n// THE SOFTWARE.\r\nvar lookup = [];\r\nvar revLookup = [];\r\nvar code = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\r\nfor (var i = 0, len = code.length; i < len; ++i) {\r\n lookup[i] = code[i];\r\n revLookup[code.charCodeAt(i)] = i;\r\n}\r\n// Support decoding URL-safe base64 strings, as Node.js does.\r\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\r\nrevLookup[\"-\".charCodeAt(0)] = 62;\r\nrevLookup[\"_\".charCodeAt(0)] = 63;\r\nfunction getLens(b64) {\r\n var len = b64.length;\r\n if (len % 4 > 0) {\r\n throw new Error(\"Invalid string. Length must be a multiple of 4\");\r\n }\r\n // Trim off extra bytes after placeholder bytes are found\r\n // See: https://github.com/beatgammit/base64-js/issues/42\r\n var validLen = b64.indexOf(\"=\");\r\n if (validLen === -1)\r\n validLen = len;\r\n var placeHoldersLen = validLen === len\r\n ? 0\r\n : 4 - (validLen % 4);\r\n return [validLen, placeHoldersLen];\r\n}\r\n// base64 is 4/3 + up to two characters of the original data\r\nfunction byteLength(b64) {\r\n var lens = getLens(b64);\r\n var validLen = lens[0];\r\n var placeHoldersLen = lens[1];\r\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen;\r\n}\r\nfunction _byteLength(b64, validLen, placeHoldersLen) {\r\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen;\r\n}\r\nfunction Util_Base64_Decode(b64) {\r\n var tmp;\r\n var lens = getLens(b64);\r\n var validLen = lens[0];\r\n var placeHoldersLen = lens[1];\r\n var arr = new Uint8Array(_byteLength(b64, validLen, placeHoldersLen));\r\n var curByte = 0;\r\n // if there are placeholders, only get up to the last complete 4 chars\r\n var len = placeHoldersLen > 0\r\n ? validLen - 4\r\n : validLen;\r\n for (var i = 0; i < len; i += 4) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 18) |\r\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\r\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\r\n revLookup[b64.charCodeAt(i + 3)];\r\n arr[curByte++] = (tmp >> 16) & 0xFF;\r\n arr[curByte++] = (tmp >> 8) & 0xFF;\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n if (placeHoldersLen === 2) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 2) |\r\n (revLookup[b64.charCodeAt(i + 1)] >> 4);\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n if (placeHoldersLen === 1) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 10) |\r\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\r\n (revLookup[b64.charCodeAt(i + 2)] >> 2);\r\n arr[curByte++] = (tmp >> 8) & 0xFF;\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n return arr;\r\n}\r\nexports.Util_Base64_Decode = Util_Base64_Decode;\r\nfunction tripletToBase64(num) {\r\n return lookup[num >> 18 & 0x3F] +\r\n lookup[num >> 12 & 0x3F] +\r\n lookup[num >> 6 & 0x3F] +\r\n lookup[num & 0x3F];\r\n}\r\nfunction encodeChunk(uint8, start, end) {\r\n var tmp;\r\n var output = [];\r\n for (var i = start; i < end; i += 3) {\r\n tmp =\r\n ((uint8[i] << 16) & 0xFF0000) +\r\n ((uint8[i + 1] << 8) & 0xFF00) +\r\n (uint8[i + 2] & 0xFF);\r\n output.push(tripletToBase64(tmp));\r\n }\r\n return output.join(\"\");\r\n}\r\nfunction Util_Base64_Encode(uint8) {\r\n var tmp;\r\n var len = uint8.length;\r\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\r\n var parts = [];\r\n var maxChunkLength = 16383; // must be multiple of 3\r\n // go through the array every three bytes, we'll deal with trailing stuff later\r\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\r\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)));\r\n }\r\n // pad the end with zeros, but make sure to not forget the extra bytes\r\n if (extraBytes === 1) {\r\n tmp = uint8[len - 1];\r\n parts.push(lookup[tmp >> 2] +\r\n lookup[(tmp << 4) & 0x3F] +\r\n \"==\");\r\n }\r\n else if (extraBytes === 2) {\r\n tmp = (uint8[len - 2] << 8) + uint8[len - 1];\r\n parts.push(lookup[tmp >> 10] +\r\n lookup[(tmp >> 4) & 0x3F] +\r\n lookup[(tmp << 2) & 0x3F] +\r\n \"=\");\r\n }\r\n return parts.join(\"\");\r\n}\r\nexports.Util_Base64_Encode = Util_Base64_Encode;\r\n//////// END: Base64 encode / decode utility functions from https://github.com/beatgammit/base64-js\r\n//# sourceMappingURL=vpnrpc.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ \"./node_modules/buffer/index.js\").Buffer))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnBucnBjL2Rpc3QvdnBucnBjLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vSlMvLi9ub2RlX21vZHVsZXMvdnBucnBjL2Rpc3QvdnBucnBjLmpzPzQ2ZWYiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XHJcbi8vIFNvZnRFdGhlciBWUE4gU2VydmVyIEpTT04tUlBDIFN0dWIgY29kZSBmb3IgVHlwZVNjcmlwdFxyXG4vLyBcclxuLy8gdnBucnBjLnRzXHJcbi8vIEF1dG9tYXRpY2FsbHkgZ2VuZXJhdGVkIGF0IDIwMTktMDUtMjkgMTg6MjE6MzkgYnkgdnBuc2VydmVyLWpzb25ycGMtY29kZWdlblxyXG4vL1xyXG4vLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UgMi4wXHJcbi8vIENvcHlyaWdodCAoYykgMjAxNC0yMDE5IFNvZnRFdGhlciBWUE4gUHJvamVjd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W9uIHZlcmIobikgeyByZXR1cm4gZnVuY3Rpb24gKHYpIHsgcmV0dXJuIHN0ZXAoW24sIHZdKTsgfTsgfVxyXG4gICAgZnVuY3Rpb24gc3RlcChvcCkge1xyXG4gICAgICAgIGlmIChmKSB0aHJvdyBuZXcgVHlwZUVycm9yKFwiR2VuZXJhdG9yIGlzIGFscmVhZHkgZXhlY3V0aW5nLlwiKTtcclxuICAgICAgICB3aGlsZSAoXykgdHJ5IHtcclxuICAgICAgICAgICAgaWYgKGYgPSAxLCB5ICYmICh0ID0gb3BbMF0gJiAyID8geVtcInJldHVyblwiXSA6IG9wWzBdID8geVtcInRocm93XCJdIHx8ICgodCA9IHlbXCJyZXR1cm5cIl0pICYmIHQuY2FsbCh5KSwgMCkgOiB5Lm5leHQpICYmICEodCA9IHQuY2FsbCh5LCBvcFsxXSkpLmRvbmUpIHJldHVybiB0O1xyXG4gICAgICAgICAgICBpZiAoeSA9IDAsIHQpIG9wID0gW29wWzBdICYgMiwgdC52YWx1ZV07XHJcbiAgICAgICAgICAgIHN3aXRjaCAob3BbMF0pIHtcclxuICAgICAgICAgICAgICAgIGNhc2UgMDogY2FzZSAxOiB0ID0gb3A7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA0OiBfLmxhYmVsKys7IHJldHVybiB7IHZhbHVlOiBvcFsxXSwgZG9uZTogZmFsc2UgfTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNTogXy5sYWJlbCsrOyB5ID0gb3BbMV07IG9wID0gWzBdOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNzogb3AgPSBfLm9wcy5wb3AoKTsgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywgdCA9IHQubGVuZ3RoID4gMCAmJiB0W3QubGVuZ3RoIC0gMV0pICYmIChvcFswXSA9PT0gNiB8f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AgICAgICAgICAgICAgICAgICAgcmVxX3N0cmluZyA9IEpzb25ScGNDbGllbnQuT2JqZWN0VG9Kc29uKHJlcSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkZWJ1Z19tb2RlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIi0tLSBSUEMgUmVxdWVzdCBCb2R5IC0tLVwiKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcV9zdHJpbmcpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cIik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFs0IC8qeWllbGQqLywgdGhpcy5jbGllbnQuUG9zdEFzeW5jKHRoaXMuQmFzZVVybCwgdGhpcy5oZWFkZXJzLCByZXFfc3RyaW5nLCBcImFwcGxpY2F0aW9uL2pzb25cIildO1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMTpcclxuICAgICAgICAgICAgICAgICAgICAgICAgaHR0cF9yZXNwb25zZSA9IF9hLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0X3N0cmluZyA9IGh0dHBfcmVzcG9uc2UuQm9keTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRlYnVnX21vZGUpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiLS0tIFJQQyBSZXNwb25zZSBCb2R5IC0tLVwiKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJldF9zdHJpbmcpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXCIpO1xyXG4gICAgIC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gICAgICAgICAgcmV0X3N0cmluZyA9IF9hLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0ID0gSlNPTi5wYXJzZShyZXRfc3RyaW5nKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlzX251bGwocmV0LmVycm9yKSA9PT0gZmFsc2UpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBKc29uUnBjRXhjZXB0aW9uKHJldC5lcnJvcik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsyIC8qcmV0dXJuKi8sIHJldC5yZXN1bHRdO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9KTtcclxuICAgIH07XHJcbiAgICByZXR1cm4gSnNvblJwY0NsaWVudDtcclxufSgpKTtcclxuZXhwb3J0cy5Kc29uUnBjQ2xpZW50ID0gSnNvblJwY0NsaWVudDtcclxuLyoqIEpTT04tUlBDIGV4Y2VwdGlvbiBjbGFzcyAqL1xyXG52YXIgSnNvblJwY0V4Y2VwdGlvbiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uIChfc3VwZXIpIHtcclxuICAgIF9fZXh0ZW5kcyhKc29uUnBjRXhjZXB0aW9uLCBfc3VwZXIpO1xyXG4gICAgZnVuY3Rpb24gSnNvblJwY0V4Y2VwdGlvbihlcnJvcikge1xyXG4gICAgICAgIHZhciBfdGhpcyA9IF9zdXBlci5jYWxsKHRoaXMsIFwiQ29kZT1cIiArIGVycm9yLmNvZGUgKyBcIiwgTWVzc2FnZT1cIiArIGVycm9yLm1lc3NhZ2UpIHx8IHRoaXM7XHJcbiAgICAgICAgX3RoaXMuRXJyb3IgPSBlcnJvcjtcclxuICAgICAgICByZXR1cm4gX3RoaXM7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gSnNvblJwY0V4Y2VwdGlvbjtcclxufSh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KHVybCwgaGVhZGVycywgcmVxX2JvZHksIHJlcV9tZWRpYV90eXBlKV07XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgZmV0Y2hfaGVhZGVyX2xpc3QgPSBuZXcgSGVhZGVycygpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKF9pID0gMCwgX2EgPSBPYmplY3Qua2V5cyhoZWFkZXJzKTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWVfMSA9IF9hW19pXTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZldGNoX2hlYWRlcl9saXN0LmFwcGVuZChuYW1lXzEsIGhlYWRlcnNbbmFtZV8xXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgZmV0Y2hfaW5pdCA9IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IFwiY29yc1wiLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogZmV0Y2hfaGVhZGVyX2xpc3QsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjcmVkZW50aWFsczogKHRoaXMuU2VuZENyZWRlbnRpYWwgPyBcImluY2x1ZGVcIiA6IFwib21pdFwiKSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1ldGhvZDogXCJQT1NUXCIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYWNoZTogXCJuby1jYWNoZVwiLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAga2VlcGFsaXZlOiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3Q6IFwiZm9sbG93XCIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBib2R5OiByZXFfYm9keVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzQgLyp5aWVsZCovLCBmZXRjaCh1cmwsIGZldGNoX2luaXQpXTtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDE6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZldGNoX3Jlc3BvbnNlID0gX2Muc2VudCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmV0Y2hfcmVzcG9uc2Uub2sgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgSHR0cENsaWVudEV4Y2VwdGlvbihcIkhUVFAgRXJyb3I6IFwiICsgZmV0Y2hfcmVzcG9uc2Uuc3RhdHVzICsgXCIgXCIgKyBmZXRjaF9yZXNwb25zZS5zdGF0dXNUZXh0KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXQgPSBuZXcgSHR0cENsaWVudFJlc3BvbnNlKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIF9iID0gcmV0O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzQgLyp5aWVsZCovLCBmZXRjaF9yZXNwb25zZS50ZXh0KCldO1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMjpcclxuICAgICAgICAgICAgICAgICAgICAgICAgX2IuQm9keSA9IF9jLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsyIC8qcmV0dXJuKi8sIHJldF07XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfTtcclxuICAgIC8qKiBQb3N0IG1ldGhvZCBmb3IgTm9kZS5qcy4gKi9cclxuICAgIEh0dHBDbGllbnQucHJvdG90eXBlLlBvc3RBc3luY19Ob2RlSlMgPSBmdW5jdGlvbiAodXJsLCBoZWFkZXJ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gICAgICAgICAgICAgICAgIHJlamVjdChuZXcgSHR0cENsaWVudEV4Y2VwdGlvbihcIkhUVFAgRXJyb3I6IFwiICsgcmVzLnN0YXR1c0NvZGUgKyBcIiBcIiArIHJlcy5zdGF0dXNNZXNzYWdlKSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB2YXIgcmVjdl9zdHIgPSBcIlwiO1xyXG4gICAgICAgICAgICAgICAgcmVzLm9uKFwiZGF0YVwiLCBmdW5jdGlvbiAoYm9keSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHJlY3Zfc3RyICs9IGJvZHk7XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIHJlcy5vbihcImVuZFwiLCBmdW5jdGlvbiAoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdmFyIHJldCA9IG5ldyBIdHRwQ2xpZW50UmVzcG9uc2UoKTtcclxuICAgICAgICAgICAgICAgICAgICByZXQuQm9keSA9IHJlY3Zfc3RyO1xyXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUocmV0KTtcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9KS5vbihcImVycm9yXCIsIGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgICAgIHRocm93IGVycjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIGZvciAodmFyIF9pID0gMCwgX2EgPSBPYmplY3Qua2V5cyhoZWFkZXJzKTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHtcclxuICAgICAgICAgICAgICAgIHZhciBuYW1lXzIgPSBfYVtfaV07XHJcbiAgICAgICAgICAgICAgICByZXEuc2V0SGVhZGVyKG5hbWVfMiwgIWlzX251bGwoaGVhZGVyc1tuYW1lXzJdKSA/IGhlYWRlcnNbbmFtZV8yXSA6IFwiXCIpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHJlcS5zZXRIZWFkZXIo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YXIgY3VyQnl0ZSA9IDA7XHJcbiAgICAvLyBpZiB0aGVyZSBhcmUgcGxhY2Vob2xkZXJzLCBvbmx5IGdldCB1cCB0byB0aGUgbGFzdCBjb21wbGV0ZSA0IGNoYXJzXHJcbiAgICB2YXIgbGVuID0gcGxhY2VIb2xkZXJzTGVuID4gMFxyXG4gICAgICAgID8gdmFsaWRMZW4gLSA0XHJcbiAgICAgICAgOiB2YWxpZExlbjtcclxuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbGVuOyBpICs9IDQpIHtcclxuICAgICAgICB0bXAgPVxyXG4gICAgICAgICAgICAocmV2TG9va3VwW2I2NC5jaGFyQ29kZUF0KGkpXSA8PCAxOCkgfFxyXG4gICAgICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpICsgMSldIDw8IDEyKSB8XHJcbiAgICAgICAgICAgICAgICAocmV2TG9va3VwW2I2NC5jaGFyQ29kZUF0KGkgKyAyKV0gPDwgNikgfFxyXG4gICAgICAgICAgICAgICAgcmV2TG9va3VwW2I2NC5jaGFyQ29kZUF0KGkgKyAzKV07XHJcbiAgICAgICAgYXJyW2N1ckJ5dGUrK10gPSAodG1wID4+IDE2KSAmIDB4RkY7XHJcbiAgICAgICAgYXJyW2N1ckJ5dGUrK10gPSAodG1wID4+IDgpICYgMHhGRjtcclxuICAgICAgICBhcnJbY3VyQnl0ZSsrXSA9IHRtcCAmIDB4RkY7XHJcbiAgICB9XHJcbiAgICBpZiAocGxhY2VIb2xkZXJzTGVuID09PSAyKSB7XHJcbiAgICAgICAgdG1wID1cclxuICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpKV0gPDwgMikgfFxyXG4gICAgICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpICsgMSldID4+IDQpO1xyXG4gICAgICAgIGFycltjdXJCeXRlKytdID0gdG1wICYgMHhGRjtcclxuICAgIH1cclxuICAgIGlmIChwbGFjZUhvbGRlcnNMZW4gPT09IDEpIHtcclxuICAgICAgICB0bXAgPVxyXG4gICAgICAgICAgICAocmV2TG9va3VwW2I2NC5jaGFyQ29kZUF0KGkpXSA8PCAxMCkgfFxyXG4gICAgICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpICsgMSldIDw8IDQpIHxcclxuICAgICAgICAgICAgICAgIChyZXZMb29rdXBbYjY0LmNoYXJDb2RlQXQoaSArIDIpXSA+PiAyKTtcclxuICAgICAgICBhcnJbY3VyQnl0ZSsrXSA9ICh0bXAgPj4gOCkgJiAweEZGO1xyXG4gICAgICAgIGFycltjdXJCeXRlKytdID0gdG1wICYgMHhGRjtcclxuICAgIH1cclxuICAgIHJldHVybiBhcnI7XHJcbn1cclxuZXhwb3J0cy5VdGlsX0Jhc2U2NF9EZWNvZGUgPSBVdGlsX0Jhc2U2NF9EZWNvZGU7XHJcbmZ1bmN0aW9uIHRyaXBsZXRUb0Jhc2U2NChudW0pIHtcclxuICAgIHJldHVybiBsb29rdXBbbnVtID4+IDE4ICYgMHgzRl0gK1xyXG4gICAgICAgIGxvb2t1cFtudW0gPj4gMTIgJiAweDNGXSArXHJcbiAgICAgICAgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gK1xyXG4gICAgICAgIGxvb2t1cFtudW0gJiAweDNGXTtcclxufVxyXG5mdW5jdGlvbiBlbmNvZGVDaHVuayh1aW50OCwgc3RhcnQsIGVuZCkge1xyXG4gICAgdmFyIHRtcDtcclxuICAgIHZhciBvdXRwdXQgPSBbXTtcclxuICAgIGZvciAodmFyIGkgPSBzdGFydDsgaSA8IGVuZDsgaSArPSAzKSB7XHJcbiAgICAgICAgdG1wID1cclxuICAgICAgICAgICAgKCh1aW50OFtpXSA8PCAxNikgJiAweEZGMDAwMCkgK1xyXG4gICAgICAgICAgICAgICAgKCh1aW50OFtpICsgMV0gPDwgOCkgJiAweEZGMDApICtcclxuICAgICAgICAgICAgICAgICh1aW50OFtpICsgMl0gJi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29 18:21:39 by vpnserver-jsonrpc-codegen\r\n//\r\n// Licensed under the Apache License 2.0\r\n// Copyright (c) 2014-2019 SoftEther VPN Project\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nexports.__esModule = true;\r\n// Trivial utility codes\r\nvar is_node_js = (typeof navigator === \"undefined\") || navigator.userAgent.indexOf(\"Node.js\") !== -1 || navigator.userAgent.indexOf(\"jsdom\") !== -1;\r\nfunction is_null(obj) {\r\n return (typeof obj === \"undefined\") || (obj === null);\r\n}\r\nvar debug_mode = false;\r\n/** VPN Server RPC Stubs */\r\nvar VpnServerRpc = /** @class */ (function () {\r\n /**\r\n * Constructor of the VpnServerRpc class\r\n * @param vpnserver_hostname The hostname or IP address of the destination VPN Server. In the web browser you can specify null if you want to connect to the server itself.\r\n * @param vpnserver_port The port number of the destination VPN Server. In the web browser you can specify null if you want to connect to the server itself.\r\n * @param hubname The name of the Virtual Hub if you want to connect to the VPN Server as a Virtual Hub Admin Mode. Specify null if you want to connect to the VPN Server as the Entire VPN Server Admin Mode.\r\n * @param password Specify the administration password. This value is valid only if vpnserver_hostname is sepcified.\r\n * @param nodejs_https_client_reject_untrusted_server_cert In Node.js set this true to check the SSL server certificate on the destination VPN Server. Set this false to ignore the SSL server certification.\r\n */\r\n function VpnServerRpc(vpnserver_hostname, vpnserver_port, hubname, password, nodejs_https_client_reject_untrusted_server_cert) {\r\n var _this = this;\r\n // --- Stubs ---\r\n /** Test RPC function. Input any integer value to the IntValue_u32 field. Then the server will convert the integer to the string, and return the string in the StrValue_str field. */\r\n this.Test = function (in_param) {\r\n return _this.CallAsync(\"Test\", in_param);\r\n };\r\n /** Get server information. This allows you to obtain the server information of the currently connected VPN Server or VPN Bridge. Included in the server information are the version number, build number and build information. You can also obtain information on the current server operation mode and the information of operating system that the server is operating on. */\r\n this.GetServerInfo = function () {\r\n return _this.CallAsync(\"GetServerInfo\", new VpnRpcServerInfo());\r\n };\r\n /** Get Current Server Status. This allows you to obtain in real-time the current status of the currently connected VPN Server or VPN Bridge. You can get statistical information on data communication and the number of different kinds of objects that exist on the server. You can get information on how much memory is being used on the current computer by the OS. */\r\n this.GetServerStatus = function () {\r\n return _this.CallAsync(\"GetServerStatus\", new VpnRpcServerStatus());\r\n };\r\n /** Create New TCP Listener. This allows you to create a new TCP Listener on the server. By creating the TCP Listener the server starts listening for a connection from clients at the specified TCP/IP port number. A TCP Listener that has been created can be deleted by the DeleteListener API. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To execute this API, you must have VPN Server administrator privileges. */\r\n this.CreateListener = function (in_param) {\r\n return _this.CallAsync(\"CreateListener\", in_param);\r\n };\r\n /** Get List of TCP Listeners. This allows you to get a list of TCP listeners registered on the current server. You can obtain information on whether the various TCP listeners have a status of operating or error. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumListener = function () {\r\n return _this.CallAsync(\"EnumListener\", new VpnRpcListenerList());\r\n };\r\n /** Delete TCP Listener. This allows you to delete a TCP Listener that's registered on the server. When the TCP Listener is in a state of operation, the listener will automatically be deleted when its operation stops. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To call this API, you must have VPN Server administrator privileges. */\r\n this.DeleteListener = function (in_param) {\r\n return _this.CallAsync(\"DeleteListener\", in_param);\r\n };\r\n /** Enable / Disable TCP Listener. This starts or stops the operation of TCP Listeners registered on the current server. You can also get a list of TCP Listeners currently registered by using the EnumListener API. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnableListener = function (in_param) {\r\n return _this.CallAsync(\"EnableListener\", in_param);\r\n };\r\n /** Set VPN Server Administrator Password. This sets the VPN Server administrator password. You can specify the password as a parameter. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerPassword = function (in_param) {\r\n return _this.CallAsync(\"SetServerPassword\", in_param);\r\n };\r\n /** Set the VPN Server clustering configuration. Use this to set the VPN Server type as Standalone Server, Cluster Controller Server or Cluster Member Server. Standalone server means a VPN Server that does not belong to any cluster in its current state. When VPN Server is installed, by default it will be in standalone server mode. Unless you have particular plans to configure a cluster, we recommend the VPN Server be operated in standalone mode. A cluster controller is the central computer of all member servers of a cluster in the case where a clustering environment is made up of multiple VPN Servers. Multiple cluster members can be added to the cluster as required. A cluster requires one computer to serve this role. The other cluster member servers that are configured in the same cluster begin operation as a cluster member by connecting to the cluster controller. To call this API, you must have VPN Server administrator privileges. Also, when this API is executed, VPN Server will automatically restart. This API cannot be called on VPN Bridge. */\r\n this.SetFarmSetting = function (in_param) {\r\n return _this.CallAsync(\"SetFarmSetting\", in_param);\r\n };\r\n /** Get Clustering Configuration of Current VPN Server. You can use this to acquire the clustering configuration of the current VPN Server. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetFarmSetting = function () {\r\n return _this.CallAsync(\"GetFarmSetting\", new VpnRpcFarm());\r\n };\r\n /** Get Cluster Member Information. When the VPN Server is operating as a cluster controller, you can get information on cluster member servers on that cluster by specifying the IDs of the member servers. You can get the following information about the specified cluster member server: Server Type, Time Connection has been Established, IP Address, Host Name, Points, Public Port List, Number of Operating Virtual Hubs, First Virtual Hub, Number of Sessions and Number of TCP Connections. This API cannot be invoked on VPN Bridge. */\r\n this.GetFarmInfo = function (in_param) {\r\n return _this.CallAsync(\"GetFarmInfo\", in_param);\r\n };\r\n /** Get List of Cluster Members. Use this API when the VPN Server is operating as a cluster controller to get a list of the cluster member servers on the same cluster, including the cluster controller itself. For each member, the following information is also listed: Type, Connection Start, Host Name, Points, Number of Session, Number of TCP Connections, Number of Operating Virtual Hubs, Using Client Connection License and Using Bridge Connection License. This API cannot be invoked on VPN Bridge. */\r\n this.EnumFarmMember = function () {\r\n return _this.CallAsync(\"EnumFarmMember\", new VpnRpcEnumFarm());\r\n };\r\n /** Get Connection Status to Cluster Controller. Use this API when the VPN Server is operating as a cluster controller to get the status of connection to the cluster controller. You can get the following information: Controller IP Address, Port Number, Connection Status, Connection Start Time, First Connection Established Time, Current Connection Established Time, Number of Connection Attempts, Number of Successful Connections, Number of Failed Connections. This API cannot be invoked on VPN Bridge. */\r\n this.GetFarmConnectionStatus = function () {\r\n return _this.CallAsync(\"GetFarmConnectionStatus\", new VpnRpcFarmConnectionStatus());\r\n };\r\n /** Set SSL Certificate and Private Key of VPN Server. You can set the SSL certificate that the VPN Server provides to the connected client and the private key for that certificate. The certificate must be in X.509 format and the private key must be Base 64 encoded format. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerCert = function (in_param) {\r\n return _this.CallAsync(\"SetServerCert\", in_param);\r\n };\r\n /** Get SSL Certificate and Private Key of VPN Server. Use this to get the SSL certificate private key that the VPN Server provides to the connected client. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetServerCert = function () {\r\n return _this.CallAsync(\"GetServerCert\", new VpnRpcKeyPair());\r\n };\r\n /** Get the Encrypted Algorithm Used for VPN Communication. Use this API to get the current setting of the algorithm used for the electronic signature and encrypted for SSL connection to be used for communication between the VPN Server and the connected client and the list of algorithms that can be used on the VPN Server. */\r\n this.GetServerCipher = function () {\r\n return _this.CallAsync(\"GetServerCipher\", new VpnRpcStr());\r\n };\r\n /** Set the Encrypted Algorithm Used for VPN Communication. Use this API to set the algorithm used for the electronic signature and encrypted for SSL connections to be used for communication between the VPN Server and the connected client. By specifying the algorithm name, the specified algorithm will be used later between the VPN Client and VPN Bridge connected to this server and the data will be encrypted. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetServerCipher = function (in_param) {\r\n return _this.CallAsync(\"SetServerCipher\", in_param);\r\n };\r\n /** Create New Virtual Hub. Use this to create a new Virtual Hub on the VPN Server. The created Virtual Hub will begin operation immediately. When the VPN Server is operating on a cluster, this API is only valid for the cluster controller. Also, the new Virtual Hub will operate as a dynamic Virtual Hub. You can change it to a static Virtual Hub by using the SetHub API. To get a list of Virtual Hubs that are already on the VPN Server, use the EnumHub API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Servers that are operating as a VPN Bridge or cluster member. */\r\n this.CreateHub = function (in_param) {\r\n return _this.CallAsync(\"CreateHub\", in_param);\r\n };\r\n /** Set the Virtual Hub configuration. You can call this API to change the configuration of the specified Virtual Hub. You can set the Virtual Hub online or offline. You can set the maximum number of sessions that can be concurrently connected to the Virtual Hub that is currently being managed. You can set the Virtual Hub administrator password. You can set other parameters for the Virtual Hub. Before call this API, you need to obtain the latest state of the Virtual Hub by using the GetHub API. */\r\n this.SetHub = function (in_param) {\r\n return _this.CallAsync(\"SetHub\", in_param);\r\n };\r\n /** Get the Virtual Hub configuration. You can call this API to get the current configuration of the specified Virtual Hub. To change the configuration of the Virtual Hub, call the SetHub API. */\r\n this.GetHub = function (in_param) {\r\n return _this.CallAsync(\"GetHub\", in_param);\r\n };\r\n /** Get List of Virtual Hubs. Use this to get a list of existing Virtual Hubs on the VPN Server. For each Virtual Hub, you can get the following information: Virtual Hub Name, Status, Type, Number of Users, Number of Groups, Number of Sessions, Number of MAC Tables, Number of IP Tables, Number of Logins, Last Login, and Last Communication. Note that when connecting in Virtual Hub Admin Mode, if in the options of a Virtual Hub that you do not have administrator privileges for, the option Don't Enumerate this Virtual Hub for Anonymous Users is enabled then that Virtual Hub will not be enumerated. If you are connected in Server Admin Mode, then the list of all Virtual Hubs will be displayed. When connecting to and managing a non-cluster-controller cluster member of a clustering environment, only the Virtual Hub currently being hosted by that VPN Server will be displayed. When connecting to a cluster controller for administration purposes, all the Virtual Hubs will be displayed. */\r\n this.EnumHub = function () {\r\n return _this.CallAsync(\"EnumHub\", new VpnRpcEnumHub());\r\n };\r\n /** Delete Virtual Hub. Use this to delete an existing Virtual Hub on the VPN Server. If you delete the Virtual Hub, all sessions that are currently connected to the Virtual Hub will be disconnected and new sessions will be unable to connect to the Virtual Hub. Also, this will also delete all the Hub settings, user objects, group objects, certificates and Cascade Connections. Once you delete the Virtual Hub, it cannot be recovered. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Servers that are operating as a VPN Bridge or cluster member. */\r\n this.DeleteHub = function (in_param) {\r\n return _this.CallAsync(\"DeleteHub\", in_param);\r\n };\r\n /** Get Setting of RADIUS Server Used for User Authentication. Use this to get the current settings for the RADIUS server used when a user connects to the currently managed Virtual Hub using RADIUS Server Authentication Mode. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetHubRadius = function (in_param) {\r\n return _this.CallAsync(\"GetHubRadius\", in_param);\r\n };\r\n /** Set RADIUS Server to use for User Authentication. To accept users to the currently managed Virtual Hub in RADIUS server authentication mode, you can specify an external RADIUS server that confirms the user name and password. (You can specify multiple hostname by splitting with comma or semicolon.) The RADIUS server must be set to receive requests from IP addresses of this VPN Server. Also, authentication by Password Authentication Protocol (PAP) must be enabled. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetHubRadius = function (in_param) {\r\n return _this.CallAsync(\"SetHubRadius\", in_param);\r\n };\r\n /** Get List of TCP Connections Connecting to the VPN Server. Use this to get a list of TCP/IP connections that are currently connecting to the VPN Server. It does not display the TCP connections that have been established as VPN sessions. To get the list of TCP/IP connections that have been established as VPN sessions, you can use the EnumSession API. You can get the following: Connection Name, Connection Source, Connection Start and Type. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumConnection = function () {\r\n return _this.CallAsync(\"EnumConnection\", new VpnRpcEnumConnection());\r\n };\r\n /** Disconnect TCP Connections Connecting to the VPN Server. Use this to forcefully disconnect specific TCP/IP connections that are connecting to the VPN Server. To call this API, you must have VPN Server administrator privileges. */\r\n this.DisconnectConnection = function (in_param) {\r\n return _this.CallAsync(\"DisconnectConnection\", in_param);\r\n };\r\n /** Get Information of TCP Connections Connecting to the VPN Server. Use this to get detailed information of a specific TCP/IP connection that is connecting to the VPN Server. You can get the following information: Connection Name, Connection Type, Source Hostname, Source IP Address, Source Port Number (TCP), Connection Start, Server Product Name, Server Version, Server Build Number, Client Product Name, Client Version, and Client Build Number. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetConnectionInfo = function (in_param) {\r\n return _this.CallAsync(\"GetConnectionInfo\", in_param);\r\n };\r\n /** Switch Virtual Hub to Online or Offline. Use this to set the Virtual Hub to online or offline. A Virtual Hub with an offline status cannot receive VPN connections from clients. When you set the Virtual Hub offline, all sessions will be disconnected. A Virtual Hub with an offline status cannot receive VPN connections from clients. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetHubOnline = function (in_param) {\r\n return _this.CallAsync(\"SetHubOnline\", in_param);\r\n };\r\n /** Get Current Status of Virtual Hub. Use this to get the current status of the Virtual Hub currently being managed. You can get the following information: Virtual Hub Type, Number of Sessions, Number of Each Type of Object, Number of Logins, Last Login, Last Communication, and Communication Statistical Data. */\r\n this.GetHubStatus = function (in_param) {\r\n return _this.CallAsync(\"GetHubStatus\", in_param);\r\n };\r\n /** Set the logging configuration of the Virtual Hub. Use this to enable or disable a security log or packet logs of the Virtual Hub currently being managed, set the save contents of the packet log for each type of packet to be saved, and set the log file switch cycle for the security log or packet log that the currently managed Virtual Hub saves. There are the following packet types: TCP Connection Log, TCP Packet Log, DHCP Packet Log, UDP Packet Log, ICMP Packet Log, IP Packet Log, ARP Packet Log, and Ethernet Packet Log. To get the current setting, you can use the LogGet API. The log file switch cycle can be changed to switch in every second, every minute, every hour, every day, every month or not switch. To get the current setting, you can use the GetHubLog API. */\r\n this.SetHubLog = function (in_param) {\r\n return _this.CallAsync(\"SetHubLog\", in_param);\r\n };\r\n /** Get the logging configuration of the Virtual Hub. Use this to get the configuration for a security log or packet logs of the Virtual Hub currently being managed, get the setting for save contents of the packet log for each type of packet to be saved, and get the log file switch cycle for the security log or packet log that the currently managed Virtual Hub saves. To set the current setting, you can use the SetHubLog API. */\r\n this.GetHubLog = function (in_param) {\r\n return _this.CallAsync(\"GetHubLog\", in_param);\r\n };\r\n /** Add Trusted CA Certificate. Use this to add a new certificate to a list of CA certificates trusted by the currently managed Virtual Hub. The list of certificate authority certificates that are registered is used to verify certificates when a VPN Client is connected in signed certificate authentication mode. To get a list of the current certificates you can use the EnumCa API. The certificate you add must be saved in the X.509 file format. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.AddCa = function (in_param) {\r\n return _this.CallAsync(\"AddCa\", in_param);\r\n };\r\n /** Get List of Trusted CA Certificates. Here you can manage the certificate authority certificates that are trusted by this currently managed Virtual Hub. The list of certificate authority certificates that are registered is used to verify certificates when a VPN Client is connected in signed certificate authentication mode. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumCa = function (in_param) {\r\n return _this.CallAsync(\"EnumCa\", in_param);\r\n };\r\n /** Get Trusted CA Certificate. Use this to get an existing certificate from the list of CA certificates trusted by the currently managed Virtual Hub and save it as a file in X.509 format. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetCa = function (in_param) {\r\n return _this.CallAsync(\"GetCa\", in_param);\r\n };\r\n /** Delete Trusted CA Certificate. Use this to delete an existing certificate from the list of CA certificates trusted by the currently managed Virtual Hub. To get a list of the current certificates you can use the EnumCa API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteCa = function (in_param) {\r\n return _this.CallAsync(\"DeleteCa\", in_param);\r\n };\r\n /** Create New Cascade Connection. Use this to create a new Cascade Connection on the currently managed Virtual Hub. By using a Cascade Connection, you can connect this Virtual Hub by Cascade Connection to another Virtual Hub that is operating on the same or a different computer. To create a Cascade Connection, you must specify the name of the Cascade Connection, destination server and destination Virtual Hub and user name. When a new Cascade Connection is created, the type of user authentication is initially set as Anonymous Authentication and the proxy server setting and the verification options of the server certificate is not set. To change these settings and other advanced settings after a Cascade Connection has been created, use the other APIs that include the name \"Link\". [Warning About Cascade Connections] By connecting using a Cascade Connection you can create a Layer 2 bridge between multiple Virtual Hubs but if the connection is incorrectly configured, a loopback Cascade Connection could inadvertently be created. When using a Cascade Connection function please design the network topology with care. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.CreateLink = function (in_param) {\r\n return _this.CallAsync(\"CreateLink\", in_param);\r\n };\r\n /** Get the Cascade Connection Setting. Use this to get the Connection Setting of a Cascade Connection that is registered on the currently managed Virtual Hub. To change the Connection Setting contents of the Cascade Connection, use the APIs that include the name \"Link\" after creating the Cascade Connection. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetLink = function (in_param) {\r\n return _this.CallAsync(\"GetLink\", in_param);\r\n };\r\n /** Change Existing Cascade Connection. Use this to alter the setting of an existing Cascade Connection on the currently managed Virtual Hub. */\r\n this.SetLink = function (in_param) {\r\n return _this.CallAsync(\"SetLink\", in_param);\r\n };\r\n /** Get List of Cascade Connections. Use this to get a list of Cascade Connections that are registered on the currently managed Virtual Hub. By using a Cascade Connection, you can connect this Virtual Hub by Layer 2 Cascade Connection to another Virtual Hub that is operating on the same or a different computer. [Warning About Cascade Connections] By connecting using a Cascade Connection you can create a Layer 2 bridge between multiple Virtual Hubs but if the connection is incorrectly configured, a loopback Cascade Connection could inadvertently be created. When using a Cascade Connection function please design the network topology with care. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumLink = function (in_param) {\r\n return _this.CallAsync(\"EnumLink\", in_param);\r\n };\r\n /** Switch Cascade Connection to Online Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to switch that Cascade Connection to online status. The Cascade Connection that is switched to online status begins the process of connecting to the destination VPN Server in accordance with the Connection Setting. The Cascade Connection that is switched to online status will establish normal connection to the VPN Server or continue to attempt connection until it is switched to offline status. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetLinkOnline = function (in_param) {\r\n return _this.CallAsync(\"SetLinkOnline\", in_param);\r\n };\r\n /** Switch Cascade Connection to Offline Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to switch that Cascade Connection to offline status. The Cascade Connection that is switched to offline will not connect to the VPN Server until next time it is switched to the online status using the SetLinkOnline API You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetLinkOffline = function (in_param) {\r\n return _this.CallAsync(\"SetLinkOffline\", in_param);\r\n };\r\n /** Delete Cascade Connection Setting. Use this to delete a Cascade Connection that is registered on the currently managed Virtual Hub. If the specified Cascade Connection has a status of online, the connections will be automatically disconnected and then the Cascade Connection will be deleted. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DeleteLink = function (in_param) {\r\n return _this.CallAsync(\"DeleteLink\", in_param);\r\n };\r\n /** Change Name of Cascade Connection. When a Cascade Connection registered on the currently managed Virtual Hub is specified, use this to change the name of that Cascade Connection. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.RenameLink = function (in_param) {\r\n return _this.CallAsync(\"RenameLink\", in_param);\r\n };\r\n /** Get Current Cascade Connection Status. When a Cascade Connection registered on the currently managed Virtual Hub is specified and that Cascade Connection is currently online, use this to get its connection status and other information. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetLinkStatus = function (in_param) {\r\n return _this.CallAsync(\"GetLinkStatus\", in_param);\r\n };\r\n /** Add Access List Rule. Use this to add a new rule to the access list of the currently managed Virtual Hub. The access list is a set of packet file rules that are applied to packets that flow through the Virtual Hub. You can register multiple rules in an access list and you can also define an priority for each rule. All packets are checked for the conditions specified by the rules registered in the access list and based on the operation that is stipulated by the first matching rule, they either pass or are discarded. Packets that do not match any rule are implicitly allowed to pass. You can also use the access list to generate delays, jitters and packet losses. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.AddAccess = function (in_param) {\r\n return _this.CallAsync(\"AddAccess\", in_param);\r\n };\r\n /** Delete Rule from Access List. Use this to specify a packet filter rule registered on the access list of the currently managed Virtual Hub and delete it. To delete a rule, you must specify that rule's ID. You can display the ID by using the EnumAccess API. If you wish not to delete the rule but to only temporarily disable it, use the SetAccessList API to set the rule status to disable. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteAccess = function (in_param) {\r\n return _this.CallAsync(\"DeleteAccess\", in_param);\r\n };\r\n /** Get Access List Rule List. Use this to get a list of packet filter rules that are registered on access list of the currently managed Virtual Hub. The access list is a set of packet file rules that are applied to packets that flow through the Virtual Hub. You can register multiple rules in an access list and you can also define a priority for each rule. All packets are checked for the conditions specified by the rules registered in the access list and based on the operation that is stipulated by the first matching rule, they either pass or are discarded. Packets that do not match any rule are implicitly allowed to pass. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumAccess = function (in_param) {\r\n return _this.CallAsync(\"EnumAccess\", in_param);\r\n };\r\n /** Replace all access lists on a single bulk API call. This API removes all existing access list rules on the Virtual Hub, and replace them by new access list rules specified by the parameter. */\r\n this.SetAccessList = function (in_param) {\r\n return _this.CallAsync(\"SetAccessList\", in_param);\r\n };\r\n /** Create a user. Use this to create a new user in the security account database of the currently managed Virtual Hub. By creating a user, the VPN Client can connect to the Virtual Hub by using the authentication information of that user. Note that a user whose user name has been created as \"*\" (a single asterisk character) will automatically be registered as a RADIUS authentication user. For cases where there are users with \"*\" as the name, when a user, whose user name that has been provided when a client connected to a VPN Server does not match existing user names, is able to be authenticated by a RADIUS server or NT domain controller by inputting a user name and password, the authentication settings and security policy settings will follow the setting for the user \"*\". To change the user information of a user that has been created, use the SetUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.CreateUser = function (in_param) {\r\n return _this.CallAsync(\"CreateUser\", in_param);\r\n };\r\n /** Change User Settings. Use this to change user settings that is registered on the security account database of the currently managed Virtual Hub. The user settings that can be changed using this API are the three items that are specified when a new user is created using the CreateUser API: Group Name, Full Name, and Description. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.SetUser = function (in_param) {\r\n return _this.CallAsync(\"SetUser\", in_param);\r\n };\r\n /** Get User Settings. Use this to get user settings information that is registered on the security account database of the currently managed Virtual Hub. The information that you can get using this API are User Name, Full Name, Group Name, Expiration Date, Security Policy, and Auth Type, as well as parameters that are specified as auth type attributes and the statistical data of that user. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetUser = function (in_param) {\r\n return _this.CallAsync(\"GetUser\", in_param);\r\n };\r\n /** Delete a user. Use this to delete a user that is registered on the security account database of the currently managed Virtual Hub. By deleting the user, that user will no long be able to connect to the Virtual Hub. You can use the SetUser API to set the user's security policy to deny access instead of deleting a user, set the user to be temporarily denied from logging in. To get the list of currently registered users, use the EnumUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteUser = function (in_param) {\r\n return _this.CallAsync(\"DeleteUser\", in_param);\r\n };\r\n /** Get List of Users. Use this to get a list of users that are registered on the security account database of the currently managed Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumUser = function (in_param) {\r\n return _this.CallAsync(\"EnumUser\", in_param);\r\n };\r\n /** Create Group. Use this to create a new group in the security account database of the currently managed Virtual Hub. You can register multiple users in a group. To register users in a group use the SetUser API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.CreateGroup = function (in_param) {\r\n return _this.CallAsync(\"CreateGroup\", in_param);\r\n };\r\n /** Set group settings. Use this to set group settings that is registered on the security account database of the currently managed Virtual Hub. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.SetGroup = function (in_param) {\r\n return _this.CallAsync(\"SetGroup\", in_param);\r\n };\r\n /** Get Group Setting (Sync mode). Use this to get the setting of a group that is registered on the security account database of the currently managed Virtual Hub. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.GetGroup = function (in_param) {\r\n return _this.CallAsync(\"GetGroup\", in_param);\r\n };\r\n /** Delete User from Group. Use this to delete a specified user from the group that is registered on the security account database of the currently managed Virtual Hub. By deleting a user from the group, that user becomes unassigned. To get the list of currently registered groups, use the EnumGroup API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.DeleteGroup = function (in_param) {\r\n return _this.CallAsync(\"DeleteGroup\", in_param);\r\n };\r\n /** Get List of Groups. Use this to get a list of groups that are registered on the security account database of the currently managed Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a member server on a cluster. */\r\n this.EnumGroup = function (in_param) {\r\n return _this.CallAsync(\"EnumGroup\", in_param);\r\n };\r\n /** Get List of Connected VPN Sessions. Use this to get a list of the sessions connected to the Virtual Hub currently being managed. In the list of sessions, the following information will be obtained for each connection: Session Name, Session Site, User Name, Source Host Name, TCP Connection, Transfer Bytes and Transfer Packets. If the currently connected VPN Server is a cluster controller and the currently managed Virtual Hub is a static Virtual Hub, you can get an all-linked-together list of all sessions connected to that Virtual Hub on all cluster members. In all other cases, only the list of sessions that are actually connected to the currently managed VPN Server will be obtained. */\r\n this.EnumSession = function (in_param) {\r\n return _this.CallAsync(\"EnumSession\", in_param);\r\n };\r\n /** Get Session Status. Use this to specify a session currently connected to the currently managed Virtual Hub and get the session information. The session status includes the following: source host name and user name, version information, time information, number of TCP connections, communication parameters, session key, statistical information on data transferred, and other client and server information. To get the list of currently connected sessions, use the EnumSession API. */\r\n this.GetSessionStatus = function (in_param) {\r\n return _this.CallAsync(\"GetSessionStatus\", in_param);\r\n };\r\n /** Disconnect Session. Use this to specify a session currently connected to the currently managed Virtual Hub and forcefully disconnect that session using manager privileges. Note that when communication is disconnected by settings on the source client side and the automatically reconnect option is enabled, it is possible that the client will reconnect. To get the list of currently connected sessions, use the EnumSession API. */\r\n this.DeleteSession = function (in_param) {\r\n return _this.CallAsync(\"DeleteSession\", in_param);\r\n };\r\n /** Get the MAC Address Table Database. Use this to get the MAC address table database that is held by the currently managed Virtual Hub. The MAC address table database is a table that the Virtual Hub requires to perform the action of switching Ethernet frames and the Virtual Hub decides the sorting destination session of each Ethernet frame based on the MAC address table database. The MAC address database is built by the Virtual Hub automatically analyzing the contents of the communication. */\r\n this.EnumMacTable = function (in_param) {\r\n return _this.CallAsync(\"EnumMacTable\", in_param);\r\n };\r\n /** Delete MAC Address Table Entry. Use this API to operate the MAC address table database held by the currently managed Virtual Hub and delete a specified MAC address table entry from the database. To get the contents of the current MAC address table database use the EnumMacTable API. */\r\n this.DeleteMacTable = function (in_param) {\r\n return _this.CallAsync(\"DeleteMacTable\", in_param);\r\n };\r\n /** Get the IP Address Table Database. Use this to get the IP address table database that is held by the currently managed Virtual Hub. The IP address table database is a table that is automatically generated by analyzing the contents of communication so that the Virtual Hub can always know which session is using which IP address and it is frequently used by the engine that applies the Virtual Hub security policy. By specifying the session name you can get the IP address table entry that has been associated with that session. */\r\n this.EnumIpTable = function (in_param) {\r\n return _this.CallAsync(\"EnumIpTable\", in_param);\r\n };\r\n /** Delete IP Address Table Entry. Use this API to operate the IP address table database held by the currently managed Virtual Hub and delete a specified IP address table entry from the database. To get the contents of the current IP address table database use the EnumIpTable API. */\r\n this.DeleteIpTable = function (in_param) {\r\n return _this.CallAsync(\"DeleteIpTable\", in_param);\r\n };\r\n /** Set the Keep Alive Internet Connection Function. Use this to set the destination host name etc. of the Keep Alive Internet Connection Function. For network connection environments where connections will automatically be disconnected where there are periods of no communication that are longer than a set period, by using the Keep Alive Internet Connection Function, it is possible to keep alive the Internet connection by sending packets to a nominated server on the Internet at set intervals. When using this API, you can specify the following: Host Name, Port Number, Packet Send Interval, and Protocol. Packets sent to keep alive the Internet connection will have random content and personal information that could identify a computer or user is not sent. You can use the SetKeep API to enable/disable the Keep Alive Internet Connection Function. To execute this API on a VPN Server or VPN Bridge, you must have administrator privileges. */\r\n this.SetKeep = function (in_param) {\r\n return _this.CallAsync(\"SetKeep\", in_param);\r\n };\r\n /** Get the Keep Alive Internet Connection Function. Use this to get the current setting contents of the Keep Alive Internet Connection Function. In addition to the destination's Host Name, Port Number, Packet Send Interval and Protocol, you can obtain the current enabled/disabled status of the Keep Alive Internet Connection Function. */\r\n this.GetKeep = function (in_param) {\r\n return _this.CallAsync(\"GetKeep\", in_param);\r\n };\r\n /** Enable the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to enable the Virtual NAT and DHCP Server function (SecureNAT Function) on the currently managed Virtual Hub and begin its operation. Before executing this API, you must first check the setting contents of the current Virtual NAT function and DHCP Server function using the SetSecureNATOption API and GetSecureNATOption API. By enabling the SecureNAT function, you can virtually operate a NAT router (IP masquerade) and the DHCP Server function on a virtual network on the Virtual Hub. [Warning about SecureNAT Function] The SecureNAT function is recommended only for system administrators and people with a detailed knowledge of networks. If you use the SecureNAT function correctly, it is possible to achieve a safe form of remote access via a VPN. However when used in the wrong way, it can put the entire network in danger. Anyone who does not have a thorough knowledge of networks and anyone who does not have the network administrator's permission must not enable the SecureNAT function. For a detailed explanation of the SecureNAT function, please refer to the VPN Server's manual and online documentation. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnableSecureNAT = function (in_param) {\r\n return _this.CallAsync(\"EnableSecureNAT\", in_param);\r\n };\r\n /** Disable the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to disable the Virtual NAT and DHCP Server function (SecureNAT Function) on the currently managed Virtual Hub. By executing this API the Virtual NAT function immediately stops operating and the Virtual DHCP Server function deletes the DHCP lease database and stops the service. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DisableSecureNAT = function (in_param) {\r\n return _this.CallAsync(\"DisableSecureNAT\", in_param);\r\n };\r\n /** Change Settings of SecureNAT Function. Use this to change and save the virtual host network interface settings, virtual NAT function settings and virtual DHCP server settings of the Virtual NAT and DHCP Server function (SecureNAT function) on the currently managed Virtual Hub. The SecureNAT function holds one virtual network adapter on the L2 segment inside the Virtual Hub and it has been assigned a MAC address and an IP address. By doing this, another host connected to the same L2 segment is able to communicate with the SecureNAT virtual host as if it is an actual IP host existing on the network. [Warning about SecureNAT Function] The SecureNAT function is recommended only for system administrators and people with a detailed knowledge of networks. If you use the SecureNAT function correctly, it is possible to achieve a safe form of remote access via a VPN. However when used in the wrong way, it can put the entire network in danger. Anyone who does not have a thorough knowledge of networks and anyone who does not have the network administrators permission must not enable the SecureNAT function. For a detailed explanation of the SecureNAT function, please refer to the VPN Server's manual and online documentation. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetSecureNATOption = function (in_param) {\r\n return _this.CallAsync(\"SetSecureNATOption\", in_param);\r\n };\r\n /** Get Settings of SecureNAT Function. This API get the registered settings for the SecureNAT function which is set by the SetSecureNATOption API. */\r\n this.GetSecureNATOption = function (in_param) {\r\n return _this.CallAsync(\"GetSecureNATOption\", in_param);\r\n };\r\n /** Get Virtual NAT Function Session Table of SecureNAT Function. Use this to get the table of TCP and UDP sessions currently communicating via the Virtual NAT (NAT table) in cases when the Virtual NAT function is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumNAT = function (in_param) {\r\n return _this.CallAsync(\"EnumNAT\", in_param);\r\n };\r\n /** Get Virtual DHCP Server Function Lease Table of SecureNAT Function. Use this to get the lease table of IP addresses, held by the Virtual DHCP Server, that are assigned to clients in cases when the Virtual NAT function is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumDHCP = function (in_param) {\r\n return _this.CallAsync(\"EnumDHCP\", in_param);\r\n };\r\n /** Get the Operating Status of the Virtual NAT and DHCP Server Function (SecureNAT Function). Use this to get the operating status of the Virtual NAT and DHCP Server function (SecureNAT Function) when it is operating on the currently managed Virtual Hub. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetSecureNATStatus = function (in_param) {\r\n return _this.CallAsync(\"GetSecureNATStatus\", in_param);\r\n };\r\n /** Get List of Network Adapters Usable as Local Bridge. Use this to get a list of Ethernet devices (network adapters) that can be used as a bridge destination device as part of a Local Bridge connection. If possible, network connection name is displayed. You can use a device displayed here by using the AddLocalBridge API. To call this API, you must have VPN Server administrator privileges. */\r\n this.EnumEthernet = function () {\r\n return _this.CallAsync(\"EnumEthernet\", new VpnRpcEnumEth());\r\n };\r\n /** Create Local Bridge Connection. Use this to create a new Local Bridge connection on the VPN Server. By using a Local Bridge, you can configure a Layer 2 bridge connection between a Virtual Hub operating on this VPN server and a physical Ethernet Device (Network Adapter). You can create a tap device (virtual network interface) on the system and connect a bridge between Virtual Hubs (the tap device is only supported by Linux versions). It is possible to establish a bridge to an operating network adapter of your choice for the bridge destination Ethernet device (network adapter), but in high load environments, we recommend you prepare a network adapter dedicated to serve as a bridge. To call this API, you must have VPN Server administrator privileges. */\r\n this.AddLocalBridge = function (in_param) {\r\n return _this.CallAsync(\"AddLocalBridge\", in_param);\r\n };\r\n /** Delete Local Bridge Connection. Use this to delete an existing Local Bridge connection. To get a list of current Local Bridge connections use the EnumLocalBridge API. To call this API, you must have VPN Server administrator privileges. */\r\n this.DeleteLocalBridge = function (in_param) {\r\n return _this.CallAsync(\"DeleteLocalBridge\", in_param);\r\n };\r\n /** Get List of Local Bridge Connection. Use this to get a list of the currently defined Local Bridge connections. You can get the Local Bridge connection Virtual Hub name and the bridge destination Ethernet device (network adapter) name or tap device name, as well as the operating status. */\r\n this.EnumLocalBridge = function () {\r\n return _this.CallAsync(\"EnumLocalBridge\", new VpnRpcEnumLocalBridge());\r\n };\r\n /** Get whether the localbridge function is supported on the current system. */\r\n this.GetBridgeSupport = function () {\r\n return _this.CallAsync(\"GetBridgeSupport\", new VpnRpcBridgeSupport());\r\n };\r\n /** Reboot VPN Server Service. Use this to restart the VPN Server service. When you restart the VPN Server, all currently connected sessions and TCP connections will be disconnected and no new connections will be accepted until the restart process has completed. By using this API, only the VPN Server service program will be restarted and the physical computer that VPN Server is operating on does not restart. This management session will also be disconnected, so you will need to reconnect to continue management. Also, by specifying the \"IntValue\" parameter to \"1\", the contents of the configuration file (.config) held by the current VPN Server will be initialized. To call this API, you must have VPN Server administrator privileges. */\r\n this.RebootServer = function (in_param) {\r\n return _this.CallAsync(\"RebootServer\", in_param);\r\n };\r\n /** Get List of Server Functions / Capability. Use this get a list of functions and capability of the VPN Server currently connected and being managed. The function and capability of VPN Servers are different depending on the operating VPN server's edition and version. Using this API, you can find out the capability of the target VPN Server and report it. */\r\n this.GetCaps = function () {\r\n return _this.CallAsync(\"GetCaps\", new VpnCapslist());\r\n };\r\n /** Get the current configuration of the VPN Server. Use this to get a text file (.config file) that contains the current configuration contents of the VPN server. You can get the status on the VPN Server at the instant this API is executed. You can edit the configuration file by using a regular text editor. To write an edited configuration to the VPN Server, use the SetConfig API. To call this API, you must have VPN Server administrator privileges. */\r\n this.GetConfig = function () {\r\n return _this.CallAsync(\"GetConfig\", new VpnRpcConfig());\r\n };\r\n /** Write Configuration File to VPN Server. Use this to write the configuration file to the VPN Server. By executing this API, the contents of the specified configuration file will be applied to the VPN Server and the VPN Server program will automatically restart and upon restart, operate according to the new configuration contents. Because it is difficult for an administrator to write all the contents of a configuration file, we recommend you use the GetConfig API to get the current contents of the VPN Server configuration and save it to file. You can then edit these contents in a regular text editor and then use the SetConfig API to rewrite the contents to the VPN Server. This API is for people with a detailed knowledge of the VPN Server and if an incorrectly configured configuration file is written to the VPN Server, it not only could cause errors, it could also result in the lost of the current setting data. Take special care when carrying out this action. To call this API, you must have VPN Server administrator privileges. */\r\n this.SetConfig = function (in_param) {\r\n return _this.CallAsync(\"SetConfig\", in_param);\r\n };\r\n /** Get Virtual Hub Administration Option default values. */\r\n this.GetDefaultHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"GetDefaultHubAdminOptions\", in_param);\r\n };\r\n /** Get List of Virtual Hub Administration Options. Use this to get a list of Virtual Hub administration options that are set on the currently managed Virtual Hub. The purpose of the Virtual Hub administration options is for the VPN Server Administrator to set limits for the setting ranges when the administration of the Virtual Hub is to be trusted to each Virtual Hub administrator. Only an administrator with administration privileges for this entire VPN Server is able to add, edit and delete the Virtual Hub administration options. The Virtual Hub administrators are unable to make changes to the administration options, however they are able to view them. There is an exception however. If allow_hub_admin_change_option is set to \"1\", even Virtual Hub administrators are able to edit the administration options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.GetHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"GetHubAdminOptions\", in_param);\r\n };\r\n /** Set Values of Virtual Hub Administration Options. Use this to change the values of Virtual Hub administration options that are set on the currently managed Virtual Hub. The purpose of the Virtual Hub administration options is for the VPN Server Administrator to set limits for the setting ranges when the administration of the Virtual Hub is to be trusted to each Virtual Hub administrator. Only an administrator with administration privileges for this entire VPN Server is able to add, edit and delete the Virtual Hub administration options. The Virtual Hub administrators are unable to make changes to the administration options, however they are able to view them. There is an exception however. If allow_hub_admin_change_option is set to \"1\", even Virtual Hub administrators are able to edit the administration options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.SetHubAdminOptions = function (in_param) {\r\n return _this.CallAsync(\"SetHubAdminOptions\", in_param);\r\n };\r\n /** Get List of Virtual Hub Extended Options. Use this to get a Virtual Hub Extended Options List that is set on the currently managed Virtual Hub. Virtual Hub Extended Option enables you to configure more detail settings of the Virtual Hub. By default, both VPN Server's global administrators and individual Virtual Hub's administrators can modify the Virtual Hub Extended Options. However, if the deny_hub_admin_change_ext_option is set to 1 on the Virtual Hub Admin Options, the individual Virtual Hub's administrators cannot modify the Virtual Hub Extended Options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.GetHubExtOptions = function (in_param) {\r\n return _this.CallAsync(\"GetHubExtOptions\", in_param);\r\n };\r\n /** Set a Value of Virtual Hub Extended Options. Use this to set a value in the Virtual Hub Extended Options List that is set on the currently managed Virtual Hub. Virtual Hub Extended Option enables you to configure more detail settings of the Virtual Hub. By default, both VPN Server's global administrators and individual Virtual Hub's administrators can modify the Virtual Hub Extended Options. However, if the deny_hub_admin_change_ext_option is set to 1 on the Virtual Hub Admin Options, the individual Virtual Hub's administrators cannot modify the Virtual Hub Extended Options. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster member. */\r\n this.SetHubExtOptions = function (in_param) {\r\n return _this.CallAsync(\"SetHubExtOptions\", in_param);\r\n };\r\n /** Define New Virtual Layer 3 Switch. Use this to define a new Virtual Layer 3 Switch on the VPN Server. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.AddL3Switch = function (in_param) {\r\n return _this.CallAsync(\"AddL3Switch\", in_param);\r\n };\r\n /** Delete Virtual Layer 3 Switch. Use this to delete an existing Virtual Layer 3 Switch that is defined on the VPN Server. When the specified Virtual Layer 3 Switch is operating, it will be automatically deleted after operation stops. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.DelL3Switch = function (in_param) {\r\n return _this.CallAsync(\"DelL3Switch\", in_param);\r\n };\r\n /** Get List of Virtual Layer 3 Switches. Use this to define a new Virtual Layer 3 Switch on the VPN Server. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.EnumL3Switch = function () {\r\n return _this.CallAsync(\"EnumL3Switch\", new VpnRpcEnumL3Sw());\r\n };\r\n /** Start Virtual Layer 3 Switch Operation. Use this to start the operation of an existing Virtual Layer 3 Switch defined on the VPN Server whose operation is currently stopped. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. [Explanation on Virtual Layer 3 Switch Function] You can define Virtual Layer 3 Switches between multiple Virtual Hubs operating on this VPN Server and configure routing between different IP networks. [Caution about the Virtual Layer 3 Switch Function] The Virtual Layer 3 Switch functions are provided for network administrators and other people who know a lot about networks and IP routing. If you are using the regular VPN functions, you do not need to use the Virtual Layer 3 Switch functions. If the Virtual Layer 3 Switch functions are to be used, the person who configures them must have sufficient knowledge of IP routing and be perfectly capable of not impacting the network. */\r\n this.StartL3Switch = function (in_param) {\r\n return _this.CallAsync(\"StartL3Switch\", in_param);\r\n };\r\n /** Stop Virtual Layer 3 Switch Operation. Use this to stop the operation of an existing Virtual Layer 3 Switch defined on the VPN Server whose operation is currently operating. To get a list of existing Virtual Layer 3 Switches, use the EnumL3Switch API. To call this API, you must have VPN Server administrator privileges. */\r\n this.StopL3Switch = function (in_param) {\r\n return _this.CallAsync(\"StopL3Switch\", in_param);\r\n };\r\n /** Add Virtual Interface to Virtual Layer 3 Switch. Use this to add to a specified Virtual Layer 3 Switch, a virtual interface that connects to a Virtual Hub operating on the same VPN Server. You can define multiple virtual interfaces and routing tables for a single Virtual Layer 3 Switch. A virtual interface is associated to a virtual Hub and operates as a single IP host on the Virtual Hub when that Virtual Hub is operating. When multiple virtual interfaces that respectively belong to a different IP network of a different Virtual Hub are defined, IP routing will be automatically performed between these interfaces. You must define the IP network space that the virtual interface belongs to and the IP address of the interface itself. Also, you must specify the name of the Virtual Hub that the interface will connect to. You can specify a Virtual Hub that currently doesn't exist for the Virtual Hub name. The virtual interface must have one IP address in the Virtual Hub. You also must specify the subnet mask of an IP network that the IP address belongs to. Routing via the Virtual Layer 3 Switches of IP spaces of multiple virtual Hubs operates based on the IP address is specified here. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.AddL3If = function (in_param) {\r\n return _this.CallAsync(\"AddL3If\", in_param);\r\n };\r\n /** Delete Virtual Interface of Virtual Layer 3 Switch. Use this to delete a virtual interface already defined in the specified Virtual Layer 3 Switch. You can get a list of the virtual interfaces currently defined, by using the EnumL3If API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.DelL3If = function (in_param) {\r\n return _this.CallAsync(\"DelL3If\", in_param);\r\n };\r\n /** Get List of Interfaces Registered on the Virtual Layer 3 Switch. Use this to get a list of virtual interfaces when virtual interfaces have been defined on a specified Virtual Layer 3 Switch. You can define multiple virtual interfaces and routing tables for a single Virtual Layer 3 Switch. A virtual interface is associated to a virtual Hub and operates as a single IP host on the Virtual Hub when that Virtual Hub is operating. When multiple virtual interfaces that respectively belong to a different IP network of a different Virtual Hub are defined, IP routing will be automatically performed between these interfaces. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.EnumL3If = function (in_param) {\r\n return _this.CallAsync(\"EnumL3If\", in_param);\r\n };\r\n /** Add Routing Table Entry for Virtual Layer 3 Switch. Here you can add a new routing table entry to the routing table of the specified Virtual Layer 3 Switch. If the destination IP address of the IP packet does not belong to any IP network that belongs to a virtual interface, the IP routing engine of the Virtual Layer 3 Switch will reference the routing table and execute routing. You must specify the contents of the routing table entry to be added to the Virtual Layer 3 Switch. You must specify any IP address that belongs to the same IP network in the virtual interface of this Virtual Layer 3 Switch as the gateway address. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.AddL3Table = function (in_param) {\r\n return _this.CallAsync(\"AddL3Table\", in_param);\r\n };\r\n /** Delete Routing Table Entry of Virtual Layer 3 Switch. Use this to delete a routing table entry that is defined in the specified Virtual Layer 3 Switch. You can get a list of the already defined routing table entries by using the EnumL3Table API. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. To execute this API, the target Virtual Layer 3 Switch must be stopped. If it is not stopped, first use the StopL3Switch API to stop it and then execute this API. */\r\n this.DelL3Table = function (in_param) {\r\n return _this.CallAsync(\"DelL3Table\", in_param);\r\n };\r\n /** Get List of Routing Tables of Virtual Layer 3 Switch. Use this to get a list of routing tables when routing tables have been defined on a specified Virtual Layer 3 Switch. If the destination IP address of the IP packet does not belong to any IP network that belongs to a virtual interface, the IP routing engine of the Virtual Layer 3 Switch will reference this routing table and execute routing. To call this API, you must have VPN Server administrator privileges. Also, this API does not operate on VPN Bridge. */\r\n this.EnumL3Table = function (in_param) {\r\n return _this.CallAsync(\"EnumL3Table\", in_param);\r\n };\r\n /** Get List of Certificates Revocation List. Use this to get a Certificates Revocation List that is set on the currently managed Virtual Hub. By registering certificates in the Certificates Revocation List, the clients who provide these certificates will be unable to connect to this Virtual Hub using certificate authentication mode. Normally with this function, in cases where the security of a private key has been compromised or where a person holding a certificate has been stripped of their privileges, by registering that certificate as invalid on the Virtual Hub, it is possible to deny user authentication when that certificate is used by a client to connect to the Virtual Hub. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumCrl = function (in_param) {\r\n return _this.CallAsync(\"EnumCrl\", in_param);\r\n };\r\n /** Add a Revoked Certificate. Use this to add a new revoked certificate definition in the Certificate Revocation List that is set on the currently managed Virtual Hub. Specify the contents to be registered in the Certificate Revocation List by using the parameters of this API. When a user connects to a Virtual Hub in certificate authentication mode and that certificate matches 1 or more of the contents registered in the certificates revocation list, the user is denied connection. A certificate that matches all the conditions that are defined by the parameters specified by this API will be judged as invalid. The items that can be set are as follows: Name (CN), Organization (O), Organization Unit (OU), Country (C), State (ST), Locale (L), Serial Number (hexadecimal), MD5 Digest Value (hexadecimal, 128 bit), and SHA-1 Digest Value (hexadecimal, 160 bit). For the specification of a digest value (hash value) a certificate is optionally specified depending on the circumstances. Normally when a MD5 or SHA-1 digest value is input, it is not necessary to input the other items. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.AddCrl = function (in_param) {\r\n return _this.CallAsync(\"AddCrl\", in_param);\r\n };\r\n /** Delete a Revoked Certificate. Use this to specify and delete a revoked certificate definition from the certificate revocation list that is set on the currently managed Virtual Hub. To get the list of currently registered revoked certificate definitions, use the EnumCrl API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DelCrl = function (in_param) {\r\n return _this.CallAsync(\"DelCrl\", in_param);\r\n };\r\n /** Get a Revoked Certificate. Use this to specify and get the contents of a revoked certificate definition from the Certificates Revocation List that is set on the currently managed Virtual Hub. To get the list of currently registered revoked certificate definitions, use the EnumCrl API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetCrl = function (in_param) {\r\n return _this.CallAsync(\"GetCrl\", in_param);\r\n };\r\n /** Change Existing CRL (Certificate Revocation List) Entry. Use this to alter an existing revoked certificate definition in the Certificate Revocation List that is set on the currently managed Virtual Hub. Specify the contents to be registered in the Certificate Revocation List by using the parameters of this API. When a user connects to a Virtual Hub in certificate authentication mode and that certificate matches 1 or more of the contents registered in the certificates revocation list, the user is denied connection. A certificate that matches all the conditions that are defined by the parameters specified by this API will be judged as invalid. The items that can be set are as follows: Name (CN), Organization (O), Organization Unit (OU), Country (C), State (ST), Locale (L), Serial Number (hexadecimal), MD5 Digest Value (hexadecimal, 128 bit), and SHA-1 Digest Value (hexadecimal, 160 bit). For the specification of a digest value (hash value) a certificate is optionally specified depending on the circumstances. Normally when a MD5 or SHA-1 digest value is input, it is not necessary to input the other items. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetCrl = function (in_param) {\r\n return _this.CallAsync(\"SetCrl\", in_param);\r\n };\r\n /** Add Rule to Source IP Address Limit List. Use this to add a new rule to the Source IP Address Limit List that is set on the currently managed Virtual Hub. The items set here will be used to decide whether to allow or deny connection from a VPN Client when this client attempts connection to the Virtual Hub. You can specify a client IP address, or IP address or mask to match the rule as the contents of the rule item. By specifying an IP address only, there will only be one specified computer that will match the rule, but by specifying an IP net mask address or subnet mask address, all the computers in the range of that subnet will match the rule. You can specify the priority for the rule. You can specify an integer of 1 or greater for the priority and the smaller the number, the higher the priority. To get a list of the currently registered Source IP Address Limit List, use the GetAcList API. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetAcList = function (in_param) {\r\n return _this.CallAsync(\"SetAcList\", in_param);\r\n };\r\n /** Get List of Rule Items of Source IP Address Limit List. Use this to get a list of Source IP Address Limit List rules that is set on the currently managed Virtual Hub. You can allow or deny VPN connections to this Virtual Hub according to the client computer's source IP address. You can define multiple rules and set a priority for each rule. The search proceeds from the rule with the highest order or priority and based on the action of the rule that the IP address first matches, the connection from the client is either allowed or denied. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetAcList = function (in_param) {\r\n return _this.CallAsync(\"GetAcList\", in_param);\r\n };\r\n /** Get List of Log Files. Use this to display a list of log files outputted by the VPN Server that have been saved on the VPN Server computer. By specifying a log file file name displayed here and calling it using the ReadLogFile API you can download the contents of the log file. If you are connected to the VPN Server in server admin mode, you can display or download the packet logs and security logs of all Virtual Hubs and the server log of the VPN Server. When connected in Virtual Hub Admin Mode, you are able to view or download only the packet log and security log of the Virtual Hub that is the target of management. */\r\n this.EnumLogFile = function () {\r\n return _this.CallAsync(\"EnumLogFile\", new VpnRpcEnumLogFile());\r\n };\r\n /** Download a part of Log File. Use this to download the log file that is saved on the VPN Server computer. To download the log file first get the list of log files using the EnumLogFile API and then download the log file using the ReadLogFile API. If you are connected to the VPN Server in server admin mode, you can display or download the packet logs and security logs of all Virtual Hubs and the server log of the VPN Server. When connected in Virtual Hub Admin Mode, you are able to view or download only the packet log and security log of the Virtual Hub that is the target of management. */\r\n this.ReadLogFile = function (in_param) {\r\n return _this.CallAsync(\"ReadLogFile\", in_param);\r\n };\r\n /** Set syslog Send Function. Use this to set the usage of syslog send function and which syslog server to use. */\r\n this.SetSysLog = function (in_param) {\r\n return _this.CallAsync(\"SetSysLog\", in_param);\r\n };\r\n /** Get syslog Send Function. This allows you to get the current setting contents of the syslog send function. You can get the usage setting of the syslog function and the host name and port number of the syslog server to use. */\r\n this.GetSysLog = function (in_param) {\r\n return _this.CallAsync(\"GetSysLog\", in_param);\r\n };\r\n /** Set Today's Message of Virtual Hub. The message will be displayed on VPN Client UI when a user will establish a connection to the Virtual Hub. */\r\n this.SetHubMsg = function (in_param) {\r\n return _this.CallAsync(\"SetHubMsg\", in_param);\r\n };\r\n /** Get Today's Message of Virtual Hub. The message will be displayed on VPN Client UI when a user will establish a connection to the Virtual Hub. */\r\n this.GetHubMsg = function (in_param) {\r\n return _this.CallAsync(\"GetHubMsg\", in_param);\r\n };\r\n /** Raise a vital error on the VPN Server / Bridge to terminate the process forcefully. This API will raise a fatal error (memory access violation) on the VPN Server / Bridge running process in order to crash the process. As the result, VPN Server / Bridge will be terminated and restarted if it is running as a service mode. If the VPN Server is running as a user mode, the process will not automatically restarted. This API is for a situation when the VPN Server / Bridge is under a non-recoverable error or the process is in an infinite loop. This API will disconnect all VPN Sessions on the VPN Server / Bridge. All unsaved settings in the memory of VPN Server / Bridge will be lost. Before run this API, call the Flush API to try to save volatile data to the configuration file. To execute this API, you must have VPN Server / VPN Bridge administrator privileges. */\r\n this.Crash = function (in_param) {\r\n return _this.CallAsync(\"Crash\", in_param);\r\n };\r\n /** Get the message for administrators. */\r\n this.GetAdminMsg = function () {\r\n return _this.CallAsync(\"GetAdminMsg\", new VpnRpcMsg());\r\n };\r\n /** Save All Volatile Data of VPN Server / Bridge to the Configuration File. The number of configuration file bytes will be returned as the \"IntValue\" parameter. Normally, the VPN Server / VPN Bridge retains the volatile configuration data in memory. It is flushed to the disk as vpn_server.config or vpn_bridge.config periodically. The period is 300 seconds (5 minutes) by default. (The period can be altered by modifying the AutoSaveConfigSpan item in the configuration file.) The data will be saved on the timing of shutting down normally of the VPN Server / Bridge. Execute the Flush API to make the VPN Server / Bridge save the settings to the file immediately. The setting data will be stored on the disk drive of the server computer. Use the Flush API in a situation that you do not have an enough time to shut down the server process normally. To call this API, you must have VPN Server administrator privileges. To execute this API, you must have VPN Server / VPN Bridge administrator privileges. */\r\n this.Flush = function (in_param) {\r\n return _this.CallAsync(\"Flush\", in_param);\r\n };\r\n /** Enable or Disable IPsec VPN Server Function. Enable or Disable IPsec VPN Server Function on the VPN Server. If you enable this function, Virtual Hubs on the VPN Server will be able to accept Remote-Access VPN connections from L2TP-compatible PCs, Mac OS X and Smartphones, and also can accept EtherIP Site-to-Site VPN Connection. VPN Connections from Smartphones suchlike iPhone, iPad and Android, and also from native VPN Clients on Mac OS X and Windows can be accepted. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetIPsecServices = function (in_param) {\r\n return _this.CallAsync(\"SetIPsecServices\", in_param);\r\n };\r\n /** Get the Current IPsec VPN Server Settings. Get and view the current IPsec VPN Server settings on the VPN Server. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetIPsecServices = function () {\r\n return _this.CallAsync(\"GetIPsecServices\", new VpnIPsecServices());\r\n };\r\n /** Add New EtherIP / L2TPv3 over IPsec Client Setting to Accept EthreIP / L2TPv3 Client Devices. Add a new setting entry to enable the EtherIP / L2TPv3 over IPsec Server Function to accept client devices. In order to accept connections from routers by the EtherIP / L2TPv3 over IPsec Server Function, you have to define the relation table between an IPsec Phase 1 string which is presented by client devices of EtherIP / L2TPv3 over IPsec compatible router, and the designation of the destination Virtual Hub. After you add a definition entry by AddEtherIpId API, the defined connection setting to the Virtual Hub will be applied on the login-attepting session from an EtherIP / L2TPv3 over IPsec client device. The username and password in an entry must be registered on the Virtual Hub. An EtherIP / L2TPv3 client will be regarded as it connected the Virtual HUB with the identification of the above user information. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.AddEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"AddEtherIpId\", in_param);\r\n };\r\n /** Get the Current List of EtherIP / L2TPv3 Client Device Entry Definitions. This API gets and shows the list of entries to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"GetEtherIpId\", in_param);\r\n };\r\n /** Delete an EtherIP / L2TPv3 over IPsec Client Setting. This API deletes an entry to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.DeleteEtherIpId = function (in_param) {\r\n return _this.CallAsync(\"DeleteEtherIpId\", in_param);\r\n };\r\n /** Get the Current List of EtherIP / L2TPv3 Client Device Entry Definitions. This API gets and shows the list of entries to accept VPN clients by EtherIP / L2TPv3 over IPsec Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.EnumEtherIpId = function () {\r\n return _this.CallAsync(\"EnumEtherIpId\", new VpnRpcEnumEtherIpId());\r\n };\r\n /** Set Settings for OpenVPN Clone Server Function. The VPN Server has the clone functions of OpenVPN software products by OpenVPN Technologies, Inc. Any OpenVPN Clients can connect to this VPN Server. The manner to specify a username to connect to the Virtual Hub, and the selection rule of default Hub by using this clone server functions are same to the IPsec Server functions. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetOpenVpnSstpConfig = function (in_param) {\r\n return _this.CallAsync(\"SetOpenVpnSstpConfig\", in_param);\r\n };\r\n /** Get the Current Settings of OpenVPN Clone Server Function. Get and show the current settings of OpenVPN Clone Server Function. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetOpenVpnSstpConfig = function () {\r\n return _this.CallAsync(\"GetOpenVpnSstpConfig\", new VpnOpenVpnSstpConfig());\r\n };\r\n /** Show the Current Status of Dynamic DNS Function. Get and show the current status of the Dynamic DNS function. The Dynamic DNS assigns a unique and permanent DNS hostname for this VPN Server. You can use that hostname to specify this VPN Server on the settings for VPN Client and VPN Bridge. You need not to register and keep a domain name. Also, if your ISP assignes you a dynamic (not-fixed) IP address, the corresponding IP address of your Dynamic DNS hostname will be automatically changed. It enables you to keep running the VPN Server by using only a dynamic IP address. Therefore, you need not any longer to keep static global IP addresses with expenses monthly costs. [Caution] To disable the Dynamic DNS Function, modify the configuration file of VPN Server. The \"declare root\" directive has the \"declare DDnsClient\" directive. In this directive, you can switch \"bool Disable\" from false to true, and reboot the VPN Server, then the Dynamic DNS Function will be disabled. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.GetDDnsClientStatus = function () {\r\n return _this.CallAsync(\"GetDDnsClientStatus\", new VpnDDnsClientStatus());\r\n };\r\n /** Set the Dynamic DNS Hostname. You must specify the new hostname on the StrValue_str field. You can use this API to change the hostname assigned by the Dynamic DNS function. The currently assigned hostname can be showen by the GetDDnsClientStatus API. The Dynamic DNS assigns a unique and permanent DNS hostname for this VPN Server. You can use that hostname to specify this VPN Server on the settings for VPN Client and VPN Bridge. You need not to register and keep a domain name. Also, if your ISP assignes you a dynamic (not-fixed) IP address, the corresponding IP address of your Dynamic DNS hostname will be automatically changed. It enables you to keep running the VPN Server by using only a dynamic IP address. Therefore, you need not any longer to keep static global IP addresses with expenses monthly costs. [Caution] To disable the Dynamic DNS Function, modify the configuration file of VPN Server. The \"declare root\" directive has the \"declare DDnsClient\" directive. In this directive, you can switch \"bool Disable\" from false to true, and reboot the VPN Server, then the Dynamic DNS Function will be disabled. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.ChangeDDnsClientHostname = function (in_param) {\r\n return _this.CallAsync(\"ChangeDDnsClientHostname\", in_param);\r\n };\r\n /** Generate New Self-Signed Certificate with Specified CN (Common Name) and Register on VPN Server. You can specify the new CN (common name) value on the StrValue_str field. You can use this API to replace the current certificate on the VPN Server to a new self-signed certificate which has the CN (Common Name) value in the fields. This API is convenient if you are planning to use Microsoft SSTP VPN Clone Server Function. Because of the value of CN (Common Name) on the SSL certificate of VPN Server must match to the hostname specified on the SSTP VPN client. This API will delete the existing SSL certificate of the VPN Server. It is recommended to backup the current SSL certificate and private key by using the GetServerCert API beforehand. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.RegenerateServerCert = function (in_param) {\r\n return _this.CallAsync(\"RegenerateServerCert\", in_param);\r\n };\r\n /** Generate a Sample Setting File for OpenVPN Client. Originally, the OpenVPN Client requires a user to write a very difficult configuration file manually. This API helps you to make a useful configuration sample. What you need to generate the configuration file for the OpenVPN Client is to run this API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.MakeOpenVpnConfigFile = function () {\r\n return _this.CallAsync(\"MakeOpenVpnConfigFile\", new VpnRpcReadLogFile());\r\n };\r\n /** Enable / Disable the VPN over ICMP / VPN over DNS Server Function. You can establish a VPN only with ICMP or DNS packets even if there is a firewall or routers which blocks TCP/IP communications. You have to enable the following functions beforehand. Warning: Use this function for emergency only. It is helpful when a firewall or router is misconfigured to blocks TCP/IP, but either ICMP or DNS is not blocked. It is not for long-term stable using. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.SetSpecialListener = function (in_param) {\r\n return _this.CallAsync(\"SetSpecialListener\", in_param);\r\n };\r\n /** Get Current Setting of the VPN over ICMP / VPN over DNS Function. Get and show the current VPN over ICMP / VPN over DNS Function status. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. */\r\n this.GetSpecialListener = function () {\r\n return _this.CallAsync(\"GetSpecialListener\", new VpnRpcSpecialListener());\r\n };\r\n /** Show the current status of VPN Azure function. Get and show the current status of the VPN Azure function. VPN Azure makes it easier to establish a VPN Session from your home PC to your office PC. While a VPN connection is established, you can access to any other servers on the private network of your company. You don't need a global IP address on the office PC (VPN Server). It can work behind firewalls or NATs. No network administrator's configuration required. You can use the built-in SSTP-VPN Client of Windows in your home PC. VPN Azure is a cloud VPN service operated by SoftEther Corporation. VPN Azure is free of charge and available to anyone. Visit http://www.vpnazure.net/ to see details and how-to-use instructions. The VPN Azure hostname is same to the hostname of the Dynamic DNS setting, but altering the domain suffix to \"vpnazure.net\". To change the hostname use the ChangeDDnsClientHostname API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.GetAzureStatus = function () {\r\n return _this.CallAsync(\"GetAzureStatus\", new VpnRpcAzureStatus());\r\n };\r\n /** Enable / Disable VPN Azure Function. Enable or disable the VPN Azure function. VPN Azure makes it easier to establish a VPN Session from your home PC to your office PC. While a VPN connection is established, you can access to any other servers on the private network of your company. You don't need a global IP address on the office PC (VPN Server). It can work behind firewalls or NATs. No network administrator's configuration required. You can use the built-in SSTP-VPN Client of Windows in your home PC. VPN Azure is a cloud VPN service operated by SoftEther Corporation. VPN Azure is free of charge and available to anyone. Visit http://www.vpnazure.net/ to see details and how-to-use instructions. The VPN Azure hostname is same to the hostname of the Dynamic DNS setting, but altering the domain suffix to \"vpnazure.net\". To change the hostname use the ChangeDDnsClientHostname API. To call this API, you must have VPN Server administrator privileges. This API cannot be invoked on VPN Bridge. You cannot execute this API for Virtual Hubs of VPN Servers operating as a cluster. */\r\n this.SetAzureStatus = function (in_param) {\r\n return _this.CallAsync(\"SetAzureStatus\", in_param);\r\n };\r\n /** Get the Proxy Settings for Connecting to the DDNS server. */\r\n this.GetDDnsInternetSetting = function () {\r\n return _this.CallAsync(\"GetDDnsInternetSetting\", new VpnInternetSetting());\r\n };\r\n /** Set the Proxy Settings for Connecting to the DDNS server. */\r\n this.SetDDnsInternetSetting = function (in_param) {\r\n return _this.CallAsync(\"SetDDnsInternetSetting\", in_param);\r\n };\r\n /** Set the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */\r\n this.SetVgsConfig = function (in_param) {\r\n return _this.CallAsync(\"SetVgsConfig\", in_param);\r\n };\r\n /** Get the VPN Gate Server Configuration. This API is valid for Win32 binary distribution of the Stable Edition of SoftEther VPN Server. */\r\n this.GetVgsConfig = function () {\r\n return _this.CallAsync(\"GetVgsConfig\", new VpnVgsConfig());\r\n };\r\n var headers = {};\r\n var send_credentials = false;\r\n nodejs_https_client_reject_untrusted_server_cert = is_null(nodejs_https_client_reject_untrusted_server_cert) ? false : nodejs_https_client_reject_untrusted_server_cert;\r\n if (is_null(vpnserver_hostname)) {\r\n this.rpc_url = \"/api/\";\r\n send_credentials = true;\r\n }\r\n else {\r\n if (is_null(vpnserver_port))\r\n vpnserver_port = 443;\r\n this.rpc_url = \"https://\" + vpnserver_hostname + \":\" + vpnserver_port + \"/api/\";\r\n headers[\"X-VPNADMIN-HUBNAME\"] = is_null(hubname) ? \"\" : hubname;\r\n headers[\"X-VPNADMIN-PASSWORD\"] = is_null(password) ? \"\" : password;\r\n }\r\n if (is_null(nodejs_https_client_reject_untrusted_server_cert))\r\n nodejs_https_client_reject_untrusted_server_cert = false;\r\n this.rpc_client = new JsonRpcClient(this.rpc_url, headers, send_credentials, nodejs_https_client_reject_untrusted_server_cert);\r\n }\r\n /** Determine if this JavaScript environment is on the Node.js or not. */\r\n VpnServerRpc.IsNodeJS = function () {\r\n return is_node_js;\r\n };\r\n /** Set the debug mode flag */\r\n VpnServerRpc.SetDebugMode = function (flag) {\r\n debug_mode = flag;\r\n };\r\n // -- Utility functions --\r\n /** Call a RPC procedure */\r\n VpnServerRpc.prototype.CallAsync = function (method_name, request) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var response;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.rpc_client.CallAsync(method_name, request)];\r\n case 1:\r\n response = _a.sent();\r\n return [2 /*return*/, response];\r\n }\r\n });\r\n });\r\n };\r\n return VpnServerRpc;\r\n}());\r\nexports.VpnServerRpc = VpnServerRpc;\r\n// --- Types ---\r\n/** IP Protocol Numbers */\r\nvar VpnIpProtocolNumber;\r\n(function (VpnIpProtocolNumber) {\r\n /** ICMP for IPv4 */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"ICMPv4\"] = 1] = \"ICMPv4\";\r\n /** TCP */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"TCP\"] = 6] = \"TCP\";\r\n /** UDP */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"UDP\"] = 17] = \"UDP\";\r\n /** ICMP for IPv6 */\r\n VpnIpProtocolNumber[VpnIpProtocolNumber[\"ICMPv6\"] = 58] = \"ICMPv6\";\r\n})(VpnIpProtocolNumber = exports.VpnIpProtocolNumber || (exports.VpnIpProtocolNumber = {}));\r\n/** The body of the Access list */\r\nvar VpnAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnAccess' class: The body of the Access list */\r\n function VpnAccess(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Specify a description (note) for this rule */\r\n this.Note_utf = \"\";\r\n /** Enabled flag (true: enabled, false: disabled) */\r\n this.Active_bool = false;\r\n /** Specify an integer of 1 or higher to indicate the priority of the rule. Higher priority is given to rules with the lower priority values. */\r\n this.Priority_u32 = 0;\r\n /** The flag if the rule is DISCARD operation or PASS operation. When a packet matches this rule condition, this operation is decided. When the operation of the rule is PASS, the packet is allowed to pass, otherwise the packet will be discarded. */\r\n this.Discard_bool = false;\r\n /** The flag if the rule is for IPv6. Specify false for IPv4, or specify true for IPv6. */\r\n this.IsIPv6_bool = false;\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a source IPv4 address as a rule condition. You must also specify the SrcSubnetMask_ip field. */\r\n this.SrcIpAddress_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a source IPv4 subnet mask as a rule condition. \"0.0.0.0\" means all hosts. \"255.255.255.255\" means one single host. */\r\n this.SrcSubnetMask_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a destination IPv4 address as a rule condition. You must also specify the DestSubnetMask_ip field. */\r\n this.DestIpAddress_ip = \"\";\r\n /** Valid only if the rule is IPv4 mode (IsIPv6_bool == false). Specify a destination IPv4 subnet mask as a rule condition. \"0.0.0.0\" means all hosts. \"255.255.255.255\" means one single host. */\r\n this.DestSubnetMask_ip = \"\";\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a source IPv6 address as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 address in binary form. You must also specify the SrcSubnetMask6_bin field. */\r\n this.SrcIpAddress6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a source IPv6 subnet mask as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 subnet mask in binary form. */\r\n this.SrcSubnetMask6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a destination IPv6 address as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 address in binary form. You must also specify the DestSubnetMask6_bin field. */\r\n this.DestIpAddress6_bin = new Uint8Array([]);\r\n /** Valid only if the rule is IPv6 mode (IsIPv6_bool == true). Specify a destination IPv6 subnet mask as a rule condition. The field must be a byte array of 16 bytes (128 bits) to contain the IPv6 subnet mask in binary form. */\r\n this.DestSubnetMask6_bin = new Uint8Array([]);\r\n /** The IP protocol number */\r\n this.Protocol_u32 = 0;\r\n /** The Start Value of the Source Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the source port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.SrcPortStart_u32 = 0;\r\n /** The End Value of the Source Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the source port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.SrcPortEnd_u32 = 0;\r\n /** The Start Value of the Destination Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the destination port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.DestPortStart_u32 = 0;\r\n /** The End Value of the Destination Port Number Range. If the specified protocol is TCP/IP or UDP/IP, specify the destination port number as the rule condition. Protocols other than this will be ignored. When this parameter is not specified, the rules will apply to all port numbers. */\r\n this.DestPortEnd_u32 = 0;\r\n /** Source user name. You can apply this rule to only the packets sent by a user session of a user name that has been specified as a rule condition. In this case, specify the user name. */\r\n this.SrcUsername_str = \"\";\r\n /** Destination user name. You can apply this rule to only the packets received by a user session of a user name that has been specified as a rule condition. In this case, specify the user name. */\r\n this.DestUsername_str = \"\";\r\n /** Specify true if you want to check the source MAC address. */\r\n this.CheckSrcMac_bool = false;\r\n /** Source MAC address (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.SrcMacAddress_bin = new Uint8Array([]);\r\n /** Source MAC address mask (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.SrcMacMask_bin = new Uint8Array([]);\r\n /** Specify true if you want to check the destination MAC address. */\r\n this.CheckDstMac_bool = false;\r\n /** Destination MAC address (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.DstMacAddress_bin = new Uint8Array([]);\r\n /** Destination MAC address mask (6 bytes), valid only if CheckSrcMac_bool == true. */\r\n this.DstMacMask_bin = new Uint8Array([]);\r\n /** Specify true if you want to check the state of the TCP connection. */\r\n this.CheckTcpState_bool = false;\r\n /** Valid only if CheckTcpState_bool == true. Set this field true to match only TCP-established packets. Set this field false to match only TCP-non established packets. */\r\n this.Established_bool = false;\r\n /** Set this value to generate delays when packets is passing. Specify the delay period in milliseconds. Specify 0 means no delays to generate. The delays must be 10000 milliseconds at most. */\r\n this.Delay_u32 = 0;\r\n /** Set this value to generate jitters when packets is passing. Specify the ratio of fluctuation of jitters within 0% to 100% range. Specify 0 means no jitters to generate. */\r\n this.Jitter_u32 = 0;\r\n /** Set this value to generate packet losses when packets is passing. Specify the ratio of packet losses within 0% to 100% range. Specify 0 means no packet losses to generate. */\r\n this.Loss_u32 = 0;\r\n /** The specified URL will be mandatory replied to the client as a response for TCP connecting request packets which matches the conditions of this access list entry via this Virtual Hub. To use this setting, you can enforce the web browser of the VPN Client computer to show the specified web site when that web browser tries to access the specific IP address. */\r\n this.RedirectUrl_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAccess;\r\n}());\r\nexports.VpnAccess = VpnAccess;\r\n/** Add an item to Access List */\r\nvar VpnRpcAddAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAddAccess' class: Add an item to Access List */\r\n function VpnRpcAddAccess(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Access list (Must be a single item) */\r\n this.AccessListSingle = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAddAccess;\r\n}());\r\nexports.VpnRpcAddAccess = VpnRpcAddAccess;\r\n/** Add CA to HUB */\r\nvar VpnRpcHubAddCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubAddCA' class: Add CA to HUB */\r\n function VpnRpcHubAddCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The body of the X.509 certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubAddCA;\r\n}());\r\nexports.VpnRpcHubAddCA = VpnRpcHubAddCA;\r\n/** CRL entry */\r\nvar VpnRpcCrl = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCrl' class: CRL entry */\r\n function VpnRpcCrl(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** CN, optional */\r\n this.CommonName_utf = \"\";\r\n /** O, optional */\r\n this.Organization_utf = \"\";\r\n /** OU, optional */\r\n this.Unit_utf = \"\";\r\n /** C, optional */\r\n this.Country_utf = \"\";\r\n /** ST, optional */\r\n this.State_utf = \"\";\r\n /** L, optional */\r\n this.Local_utf = \"\";\r\n /** Serial, optional */\r\n this.Serial_bin = new Uint8Array([]);\r\n /** MD5 Digest, optional */\r\n this.DigestMD5_bin = new Uint8Array([]);\r\n /** SHA1 Digest, optional */\r\n this.DigestSHA1_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCrl;\r\n}());\r\nexports.VpnRpcCrl = VpnRpcCrl;\r\n/** EtherIP key list entry */\r\nvar VpnEtherIpId = /** @class */ (function () {\r\n /** Constructor for the 'VpnEtherIpId' class: EtherIP key list entry */\r\n function VpnEtherIpId(init) {\r\n /** Specify an ISAKMP Phase 1 ID. The ID must be exactly same as a ID in the configuration of the EtherIP / L2TPv3 Client. You can specify IP address as well as characters as ID, if the EtherIP Client uses IP address as Phase 1 ID. If you specify '*' (asterisk), it will be a wildcard to match any clients which doesn't match other explicit rules. */\r\n this.Id_str = \"\";\r\n /** Specify the name of the Virtual Hub to connect. */\r\n this.HubName_str = \"\";\r\n /** Specify the username to login to the destination Virtual Hub. */\r\n this.UserName_str = \"\";\r\n /** Specify the password to login to the destination Virtual Hub. */\r\n this.Password_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnEtherIpId;\r\n}());\r\nexports.VpnEtherIpId = VpnEtherIpId;\r\n/** Layer-3 virtual interface */\r\nvar VpnRpcL3If = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3If' class: Layer-3 virtual interface */\r\n function VpnRpcL3If(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Virtual HUB name */\r\n this.HubName_str = \"\";\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.SubnetMask_ip = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3If;\r\n}());\r\nexports.VpnRpcL3If = VpnRpcL3If;\r\n/** Layer-3 switch */\r\nvar VpnRpcL3Sw = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3Sw' class: Layer-3 switch */\r\n function VpnRpcL3Sw(init) {\r\n /** Layer-3 Switch name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3Sw;\r\n}());\r\nexports.VpnRpcL3Sw = VpnRpcL3Sw;\r\n/** Routing table */\r\nvar VpnRpcL3Table = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcL3Table' class: Routing table */\r\n function VpnRpcL3Table(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Network address */\r\n this.NetworkAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.SubnetMask_ip = \"\";\r\n /** Gateway address */\r\n this.GatewayAddress_ip = \"\";\r\n /** Metric */\r\n this.Metric_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcL3Table;\r\n}());\r\nexports.VpnRpcL3Table = VpnRpcL3Table;\r\n/** Generic parameter to contain u32, u64, ascii_string and unicode string */\r\nvar VpnRpcTest = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcTest' class: Generic parameter to contain u32, u64, ascii_string and unicode string */\r\n function VpnRpcTest(init) {\r\n /** A 32-bit integer field */\r\n this.IntValue_u32 = 0;\r\n /** A 64-bit integer field */\r\n this.Int64Value_u64 = 0;\r\n /** An Ascii string field */\r\n this.StrValue_str = \"\";\r\n /** An UTF-8 string field */\r\n this.UniStrValue_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcTest;\r\n}());\r\nexports.VpnRpcTest = VpnRpcTest;\r\n/** Local Bridge list item */\r\nvar VpnRpcLocalBridge = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLocalBridge' class: Local Bridge list item */\r\n function VpnRpcLocalBridge(init) {\r\n /** Physical Ethernet device name */\r\n this.DeviceName_str = \"\";\r\n /** The Virtual Hub name */\r\n this.HubNameLB_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** Running flag */\r\n this.Active_bool = false;\r\n /** Specify true if you are using a tap device rather than a network adapter for the bridge destination (only supported for Linux versions). */\r\n this.TapMode_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLocalBridge;\r\n}());\r\nexports.VpnRpcLocalBridge = VpnRpcLocalBridge;\r\n/** Create, configure, and get the group */\r\nvar VpnRpcSetGroup = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetGroup' class: Create, configure, and get the group */\r\n function VpnRpcSetGroup(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The group name */\r\n this.Name_str = \"\";\r\n /** Optional real name (full name) of the group, allow using any Unicode characters */\r\n this.Realname_utf = \"\";\r\n /** Optional, specify a description of the group */\r\n this.Note_utf = \"\";\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** The flag whether to use security policy */\r\n this.UsePolicy_bool = false;\r\n /** Security policy: Allow Access. The users, which this policy value is true, have permission to make VPN connection to VPN Server. */\r\n this[\"policy:Access_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Deny Bridge Operation. Bridge-mode connections are denied for user sessions that have this policy setting. Even in cases when the Ethernet Bridge is configured in the client side, communication will not be possible. */\r\n this[\"policy:NoBridge_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv4). IPv4 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRouting_bool\"] = false;\r\n /** Security policy: Deny MAC Addresses Duplication. The use of duplicating MAC addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckMac_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv4). The use of duplicating IPv4 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIP_bool\"] = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Allow Monitoring Mode. Users with this policy setting will be granted to connect to the Virtual Hub in Monitoring Mode. Sessions in Monitoring Mode are able to monitor (tap) all packets flowing through the Virtual Hub. */\r\n this[\"policy:MonitorPort_bool\"] = false;\r\n /** Security policy: Maximum Number of TCP Connections. For sessions with this policy setting, this sets the maximum number of physical TCP connections consists in a physical VPN session. */\r\n this[\"policy:MaxConnection_u32\"] = 0;\r\n /** Security policy: Time-out Period. For sessions with this policy setting, this sets, in seconds, the time-out period to wait before disconnecting a session when communication trouble occurs between the VPN Client / VPN Server. */\r\n this[\"policy:TimeOut_u32\"] = 0;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Deny Changing Password. The users which use password authentication with this policy setting are not allowed to change their own password from the VPN Client Manager or similar. */\r\n this[\"policy:FixPassword_bool\"] = false;\r\n /** Security policy: Maximum Number of Multiple Logins. Users with this policy setting are unable to have more than this number of concurrent logins. Bridge Mode sessions are not subjects to this policy. */\r\n this[\"policy:MultiLogins_u32\"] = 0;\r\n /** Security policy: Deny VoIP / QoS Function. Users with this security policy are unable to use VoIP / QoS functions in VPN connection sessions. */\r\n this[\"policy:NoQoS_bool\"] = false;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter RA Packets (IPv6). All ICMPv6 packets which the message-type is 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, a malicious users will be unable to spread illegal IPv6 prefix or default gateway advertisements on the network. */\r\n this[\"policy:RAFilter_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv6). IPv6 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRoutingV6_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv6). The use of duplicating IPv6 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIPv6_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Disallow Password Save in VPN Client. For users with this policy setting, when the user is using *standard* password authentication, the user will be unable to save the password in VPN Client. The user will be required to input passwords for every time to connect a VPN. This will improve the security. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:NoSavePassword_bool\"] = false;\r\n /** Security policy: VPN Client Automatic Disconnect. For users with this policy setting, a user's VPN session will be disconnected automatically after the specific period will elapse. In this case no automatic re-connection will be performed. This can prevent a lot of inactive VPN Sessions. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:AutoDisconnect_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA (physical IPv6). In all VPN Sessions defines this policy (only when the physical communication protocol between VPN Client / VPN Bridge and VPN Server is IPv6), any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRAWhenIPv6_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetGroup;\r\n}());\r\nexports.VpnRpcSetGroup = VpnRpcSetGroup;\r\n/** Hub types */\r\nvar VpnRpcHubType;\r\n(function (VpnRpcHubType) {\r\n /** Stand-alone HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"Standalone\"] = 0] = \"Standalone\";\r\n /** Static HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"FarmStatic\"] = 1] = \"FarmStatic\";\r\n /** Dynamic HUB */\r\n VpnRpcHubType[VpnRpcHubType[\"FarmDynamic\"] = 2] = \"FarmDynamic\";\r\n})(VpnRpcHubType = exports.VpnRpcHubType || (exports.VpnRpcHubType = {}));\r\n/** Create a HUB */\r\nvar VpnRpcCreateHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCreateHub' class: Create a HUB */\r\n function VpnRpcCreateHub(init) {\r\n /** Specify the name of the Virtual Hub to create / update. */\r\n this.HubName_str = \"\";\r\n /** Specify an administrator password when the administrator password is going to be set for the Virtual Hub. On the update, leave it to empty string if you don't want to change the password. */\r\n this.AdminPasswordPlainText_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** Maximum number of VPN sessions */\r\n this.MaxSession_u32 = 0;\r\n /** No Enum flag. By enabling this option, the VPN Client user will be unable to enumerate this Virtual Hub even if they send a Virtual Hub enumeration request to the VPN Server. */\r\n this.NoEnum_bool = false;\r\n /** Type of the Virtual Hub (Valid only for Clustered VPN Servers) */\r\n this.HubType_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCreateHub;\r\n}());\r\nexports.VpnRpcCreateHub = VpnRpcCreateHub;\r\nvar VpnRpcClientAuthType;\r\n(function (VpnRpcClientAuthType) {\r\n /** Anonymous authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"Anonymous\"] = 0] = \"Anonymous\";\r\n /** SHA-0 hashed password authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"SHA0_Hashed_Password\"] = 1] = \"SHA0_Hashed_Password\";\r\n /** Plain password authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"PlainPassword\"] = 2] = \"PlainPassword\";\r\n /** Certificate authentication */\r\n VpnRpcClientAuthType[VpnRpcClientAuthType[\"Cert\"] = 3] = \"Cert\";\r\n})(VpnRpcClientAuthType = exports.VpnRpcClientAuthType || (exports.VpnRpcClientAuthType = {}));\r\n/** Create and set of link */\r\nvar VpnRpcCreateLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcCreateLink' class: Create and set of link */\r\n function VpnRpcCreateLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_Ex_str = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** The flag to enable validation for the server certificate */\r\n this.CheckServerCert_bool = false;\r\n /** The body of server X.509 certificate to compare. Valid only if the CheckServerCert_bool flag is true. */\r\n this.ServerCert_bin = new Uint8Array([]);\r\n /** Client Option Parameters: Specify the name of the Cascade Connection */\r\n this.AccountName_utf = \"\";\r\n /** Client Option Parameters: Specify the hostname of the destination VPN Server. You can also specify by IP address. */\r\n this.Hostname_str = \"\";\r\n /** Client Option Parameters: Specify the port number of the destination VPN Server. */\r\n this.Port_u32 = 0;\r\n /** Client Option Parameters: The type of the proxy server */\r\n this.ProxyType_u32 = 0;\r\n /** Client Option Parameters: The hostname or IP address of the proxy server name */\r\n this.ProxyName_str = \"\";\r\n /** Client Option Parameters: The port number of the proxy server */\r\n this.ProxyPort_u32 = 0;\r\n /** Client Option Parameters: The username to connect to the proxy server */\r\n this.ProxyUsername_str = \"\";\r\n /** Client Option Parameters: The password to connect to the proxy server */\r\n this.ProxyPassword_str = \"\";\r\n /** Client Option Parameters: The Virtual Hub on the destination VPN Server */\r\n this.HubName_str = \"\";\r\n /** Client Option Parameters: Number of TCP Connections to Use in VPN Communication */\r\n this.MaxConnection_u32 = 0;\r\n /** Client Option Parameters: The flag to enable the encryption on the communication */\r\n this.UseEncrypt_bool = false;\r\n /** Client Option Parameters: Enable / Disable Data Compression when Communicating by Cascade Connection */\r\n this.UseCompress_bool = false;\r\n /** Client Option Parameters: Specify true when enabling half duplex mode. When using two or more TCP connections for VPN communication, it is possible to use Half Duplex Mode. By enabling half duplex mode it is possible to automatically fix data transmission direction as half and half for each TCP connection. In the case where a VPN using 8 TCP connections is established, for example, when half-duplex is enabled, communication can be fixes so that 4 TCP connections are dedicated to the upload direction and the other 4 connections are dedicated to the download direction. */\r\n this.HalfConnection_bool = false;\r\n /** Client Option Parameters: Connection attempt interval when additional connection will be established */\r\n this.AdditionalConnectionInterval_u32 = 0;\r\n /** Client Option Parameters: Connection Life of Each TCP Connection (0 for no keep-alive) */\r\n this.ConnectionDisconnectSpan_u32 = 0;\r\n /** Client Option Parameters: Disable QoS Control Function if the value is true */\r\n this.DisableQoS_bool = false;\r\n /** Client Option Parameters: Do not use TLS 1.x of the value is true */\r\n this.NoTls1_bool = false;\r\n /** Client Option Parameters: Do not use UDP acceleration mode if the value is true */\r\n this.NoUdpAcceleration_bool = false;\r\n /** Authentication type */\r\n this.AuthType_u32 = 0;\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** SHA-0 Hashed password. Valid only if ClientAuth_AuthType_u32 == SHA0_Hashed_Password (1). The SHA-0 hashed password must be caluclated by the SHA0(UpperCase(username_ascii_string) + password_ascii_string). */\r\n this.HashedPassword_bin = new Uint8Array([]);\r\n /** Plaintext Password. Valid only if ClientAuth_AuthType_u32 == PlainPassword (2). */\r\n this.PlainPassword_str = \"\";\r\n /** Client certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). */\r\n this.ClientX_bin = new Uint8Array([]);\r\n /** Client private key of the certificate. Valid only if ClientAuth_AuthType_u32 == Cert (3). */\r\n this.ClientK_bin = new Uint8Array([]);\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Prohibit the duplicate MAC address */\r\n this.SecPol_CheckMac_bool = false;\r\n /** Security policy: Prohibit a duplicate IP address (IPv4) */\r\n this.SecPol_CheckIP_bool = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter the router advertisement packet (IPv6) */\r\n this.SecPol_RAFilter_bool = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Prohibit the duplicate IP address (IPv6) */\r\n this.SecPol_CheckIPv6_bool = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcCreateLink;\r\n}());\r\nexports.VpnRpcCreateLink = VpnRpcCreateLink;\r\n/** Listener */\r\nvar VpnRpcListener = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListener' class: Listener */\r\n function VpnRpcListener(init) {\r\n /** Port number (Range: 1 - 65535) */\r\n this.Port_u32 = 0;\r\n /** Active state */\r\n this.Enable_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListener;\r\n}());\r\nexports.VpnRpcListener = VpnRpcListener;\r\n/** User authentication type (server side) */\r\nvar VpnRpcUserAuthType;\r\n(function (VpnRpcUserAuthType) {\r\n /** Anonymous authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Anonymous\"] = 0] = \"Anonymous\";\r\n /** Password authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Password\"] = 1] = \"Password\";\r\n /** User certificate authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"UserCert\"] = 2] = \"UserCert\";\r\n /** Root certificate which is issued by trusted Certificate Authority */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"RootCert\"] = 3] = \"RootCert\";\r\n /** Radius authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"Radius\"] = 4] = \"Radius\";\r\n /** Windows NT authentication */\r\n VpnRpcUserAuthType[VpnRpcUserAuthType[\"NTDomain\"] = 5] = \"NTDomain\";\r\n})(VpnRpcUserAuthType = exports.VpnRpcUserAuthType || (exports.VpnRpcUserAuthType = {}));\r\n/** Create, configure, and get the user */\r\nvar VpnRpcSetUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetUser' class: Create, configure, and get the user */\r\n function VpnRpcSetUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Specify the user name of the user */\r\n this.Name_str = \"\";\r\n /** Assigned group name for the user */\r\n this.GroupName_str = \"\";\r\n /** Optional real name (full name) of the user, allow using any Unicode characters */\r\n this.Realname_utf = \"\";\r\n /** Optional User Description */\r\n this.Note_utf = \"\";\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last modified date and time */\r\n this.UpdatedTime_dt = new Date();\r\n /** Expiration date and time */\r\n this.ExpireTime_dt = new Date();\r\n /** Authentication method of the user */\r\n this.AuthType_u32 = 0;\r\n /** User password, valid only if AuthType_u32 == Password(1). Valid only to create or set operations. */\r\n this.Auth_Password_str = \"\";\r\n /** User certificate, valid only if AuthType_u32 == UserCert(2). */\r\n this.UserX_bin = new Uint8Array([]);\r\n /** Certificate Serial Number, optional, valid only if AuthType_u32 == RootCert(3). */\r\n this.Serial_bin = new Uint8Array([]);\r\n /** Certificate Common Name, optional, valid only if AuthType_u32 == RootCert(3). */\r\n this.CommonName_utf = \"\";\r\n /** Username in RADIUS server, optional, valid only if AuthType_u32 == Radius(4). */\r\n this.RadiusUsername_utf = \"\";\r\n /** Username in NT Domain server, optional, valid only if AuthType_u32 == NT(5). */\r\n this.NtUsername_utf = \"\";\r\n /** Number of total logins of the user */\r\n this.NumLogin_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** The flag whether to use security policy */\r\n this.UsePolicy_bool = false;\r\n /** Security policy: Allow Access. The users, which this policy value is true, have permission to make VPN connection to VPN Server. */\r\n this[\"policy:Access_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv4). All IPv4 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPFilter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv4). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv4 addresses to DHCP clients. */\r\n this[\"policy:DHCPNoServer_bool\"] = false;\r\n /** Security policy: Enforce DHCP Allocated IP Addresses (IPv4). Computers in sessions that have this policy setting will only be able to use IPv4 addresses allocated by a DHCP server on the virtual network side. */\r\n this[\"policy:DHCPForce_bool\"] = false;\r\n /** Security policy: Deny Bridge Operation. Bridge-mode connections are denied for user sessions that have this policy setting. Even in cases when the Ethernet Bridge is configured in the client side, communication will not be possible. */\r\n this[\"policy:NoBridge_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv4). IPv4 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRouting_bool\"] = false;\r\n /** Security policy: Deny MAC Addresses Duplication. The use of duplicating MAC addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckMac_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv4). The use of duplicating IPv4 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIP_bool\"] = false;\r\n /** Security policy: Deny Non-ARP / Non-DHCP / Non-ICMPv6 broadcasts. The sending or receiving of broadcast packets that are not ARP protocol, DHCP protocol, nor ICMPv6 on the virtual network will not be allowed for sessions with this policy setting. */\r\n this[\"policy:ArpDhcpOnly_bool\"] = false;\r\n /** Security policy: Privacy Filter Mode. All direct communication between sessions with the privacy filter mode policy setting will be filtered. */\r\n this[\"policy:PrivacyFilter_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv4). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv4. */\r\n this[\"policy:NoServer_bool\"] = false;\r\n /** Security policy: Unlimited Number of Broadcasts. If a computer of a session with this policy setting sends broadcast packets of a number unusually larger than what would be considered normal on the virtual network, there will be no automatic limiting. */\r\n this[\"policy:NoBroadcastLimiter_bool\"] = false;\r\n /** Security policy: Allow Monitoring Mode. Users with this policy setting will be granted to connect to the Virtual Hub in Monitoring Mode. Sessions in Monitoring Mode are able to monitor (tap) all packets flowing through the Virtual Hub. */\r\n this[\"policy:MonitorPort_bool\"] = false;\r\n /** Security policy: Maximum Number of TCP Connections. For sessions with this policy setting, this sets the maximum number of physical TCP connections consists in a physical VPN session. */\r\n this[\"policy:MaxConnection_u32\"] = 0;\r\n /** Security policy: Time-out Period. For sessions with this policy setting, this sets, in seconds, the time-out period to wait before disconnecting a session when communication trouble occurs between the VPN Client / VPN Server. */\r\n this[\"policy:TimeOut_u32\"] = 0;\r\n /** Security policy: Maximum Number of MAC Addresses. For sessions with this policy setting, this limits the number of MAC addresses per session. */\r\n this[\"policy:MaxMac_u32\"] = 0;\r\n /** Security policy: Maximum Number of IP Addresses (IPv4). For sessions with this policy setting, this specifies the number of IPv4 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIP_u32\"] = 0;\r\n /** Security policy: Upload Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the inwards direction from outside to inside the Virtual Hub. */\r\n this[\"policy:MaxUpload_u32\"] = 0;\r\n /** Security policy: Download Bandwidth. For sessions with this policy setting, this limits the traffic bandwidth that is in the outwards direction from inside the Virtual Hub to outside the Virtual Hub. */\r\n this[\"policy:MaxDownload_u32\"] = 0;\r\n /** Security policy: Deny Changing Password. The users which use password authentication with this policy setting are not allowed to change their own password from the VPN Client Manager or similar. */\r\n this[\"policy:FixPassword_bool\"] = false;\r\n /** Security policy: Maximum Number of Multiple Logins. Users with this policy setting are unable to have more than this number of concurrent logins. Bridge Mode sessions are not subjects to this policy. */\r\n this[\"policy:MultiLogins_u32\"] = 0;\r\n /** Security policy: Deny VoIP / QoS Function. Users with this security policy are unable to use VoIP / QoS functions in VPN connection sessions. */\r\n this[\"policy:NoQoS_bool\"] = false;\r\n /** Security policy: Filter RS / RA Packets (IPv6). All ICMPv6 packets which the message-type is 133 (Router Solicitation) or 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, an IPv6 client will be unable to use IPv6 address prefix auto detection and IPv6 default gateway auto detection. */\r\n this[\"policy:RSandRAFilter_bool\"] = false;\r\n /** Security policy: Filter RA Packets (IPv6). All ICMPv6 packets which the message-type is 134 (Router Advertisement) in sessions defined this policy will be filtered. As a result, a malicious users will be unable to spread illegal IPv6 prefix or default gateway advertisements on the network. */\r\n this[\"policy:RAFilter_bool\"] = false;\r\n /** Security policy: Filter DHCP Packets (IPv6). All IPv6 DHCP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:DHCPv6Filter_bool\"] = false;\r\n /** Security policy: Disallow DHCP Server Operation (IPv6). Computers connected to sessions that have this policy setting will not be allowed to become a DHCP server and distribute IPv6 addresses to DHCP clients. */\r\n this[\"policy:DHCPv6NoServer_bool\"] = false;\r\n /** Security policy: Deny Routing Operation (IPv6). IPv6 routing will be denied for sessions that have this policy setting. Even in the case where the IP router is operating on the user client side, communication will not be possible. */\r\n this[\"policy:NoRoutingV6_bool\"] = false;\r\n /** Security policy: Deny IP Address Duplication (IPv6). The use of duplicating IPv6 addresses that are in use by computers of different sessions cannot be used by sessions with this policy setting. */\r\n this[\"policy:CheckIPv6_bool\"] = false;\r\n /** Security policy: Deny Operation as TCP/IP Server (IPv6). Computers of sessions with this policy setting can't listen and accept TCP/IP connections in IPv6. */\r\n this[\"policy:NoServerV6_bool\"] = false;\r\n /** Security policy: Maximum Number of IP Addresses (IPv6). For sessions with this policy setting, this specifies the number of IPv6 addresses that can be registered for a single session. */\r\n this[\"policy:MaxIPv6_u32\"] = 0;\r\n /** Security policy: Disallow Password Save in VPN Client. For users with this policy setting, when the user is using *standard* password authentication, the user will be unable to save the password in VPN Client. The user will be required to input passwords for every time to connect a VPN. This will improve the security. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:NoSavePassword_bool\"] = false;\r\n /** Security policy: VPN Client Automatic Disconnect. For users with this policy setting, a user's VPN session will be disconnected automatically after the specific period will elapse. In this case no automatic re-connection will be performed. This can prevent a lot of inactive VPN Sessions. If this policy is enabled, VPN Client Version 2.0 will be denied to access. */\r\n this[\"policy:AutoDisconnect_u32\"] = 0;\r\n /** Security policy: Filter All IPv4 Packets. All IPv4 and ARP packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv4_bool\"] = false;\r\n /** Security policy: Filter All IPv6 Packets. All IPv6 packets in sessions defined this policy will be filtered. */\r\n this[\"policy:FilterIPv6_bool\"] = false;\r\n /** Security policy: Filter All Non-IP Packets. All non-IP packets in sessions defined this policy will be filtered. \"Non-IP packet\" mean a packet which is not IPv4, ARP nor IPv6. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. */\r\n this[\"policy:FilterNonIP_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA. In all VPN Sessions defines this policy, any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRA_bool\"] = false;\r\n /** Security policy: No Default-Router on IPv6 RA (physical IPv6). In all VPN Sessions defines this policy (only when the physical communication protocol between VPN Client / VPN Bridge and VPN Server is IPv6), any IPv6 RA (Router Advertisement) packet with non-zero value in the router-lifetime will set to zero-value. This is effective to avoid the horrible behavior from the IPv6 routing confusion which is caused by the VPN client's attempts to use the remote-side IPv6 router as its local IPv6 router. */\r\n this[\"policy:NoIPv6DefaultRouterInRAWhenIPv6_bool\"] = false;\r\n /** Security policy: VLAN ID (IEEE802.1Q). You can specify the VLAN ID on the security policy. All VPN Sessions defines this policy, all Ethernet packets toward the Virtual Hub from the user will be inserted a VLAN tag (IEEE 802.1Q) with the VLAN ID. The user can also receive only packets with a VLAN tag which has the same VLAN ID. (Receiving process removes the VLAN tag automatically.) Any Ethernet packets with any other VLAN IDs or non-VLAN packets will not be received. All VPN Sessions without this policy definition can send / receive any kinds of Ethernet packets regardless of VLAN tags, and VLAN tags are not inserted or removed automatically. Any tagged-VLAN packets via the Virtual Hub will be regarded as non-IP packets. Therefore, tagged-VLAN packets are not subjects for IPv4 / IPv6 security policies, access lists nor other IPv4 / IPv6 specific deep processing. */\r\n this[\"policy:VLanId_u32\"] = 0;\r\n /** Security policy: Whether version 3.0 (must be true) */\r\n this[\"policy:Ver3_bool\"] = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetUser;\r\n}());\r\nexports.VpnRpcSetUser = VpnRpcSetUser;\r\n/** Delete the access list */\r\nvar VpnRpcDeleteAccess = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteAccess' class: Delete the access list */\r\n function VpnRpcDeleteAccess(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** ID */\r\n this.Id_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteAccess;\r\n}());\r\nexports.VpnRpcDeleteAccess = VpnRpcDeleteAccess;\r\n/** Delete the CA of HUB */\r\nvar VpnRpcHubDeleteCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubDeleteCA' class: Delete the CA of HUB */\r\n function VpnRpcHubDeleteCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Certificate key id to be deleted */\r\n this.Key_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubDeleteCA;\r\n}());\r\nexports.VpnRpcHubDeleteCA = VpnRpcHubDeleteCA;\r\n/** Deleting a user or group */\r\nvar VpnRpcDeleteUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteUser' class: Deleting a user or group */\r\n function VpnRpcDeleteUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** User or group name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteUser;\r\n}());\r\nexports.VpnRpcDeleteUser = VpnRpcDeleteUser;\r\n/** Delete the HUB */\r\nvar VpnRpcDeleteHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteHub' class: Delete the HUB */\r\n function VpnRpcDeleteHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteHub;\r\n}());\r\nexports.VpnRpcDeleteHub = VpnRpcDeleteHub;\r\n/** Delete the table */\r\nvar VpnRpcDeleteTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteTable' class: Delete the table */\r\n function VpnRpcDeleteTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteTable;\r\n}());\r\nexports.VpnRpcDeleteTable = VpnRpcDeleteTable;\r\n/** Specify the Link */\r\nvar VpnRpcLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLink' class: Specify the Link */\r\n function VpnRpcLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The name of the cascade connection */\r\n this.AccountName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLink;\r\n}());\r\nexports.VpnRpcLink = VpnRpcLink;\r\n/** Disconnect the session */\r\nvar VpnRpcDeleteSession = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDeleteSession' class: Disconnect the session */\r\n function VpnRpcDeleteSession(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Session name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDeleteSession;\r\n}());\r\nexports.VpnRpcDeleteSession = VpnRpcDeleteSession;\r\n/** Specify the HUB */\r\nvar VpnRpcHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHub' class: Specify the HUB */\r\n function VpnRpcHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHub;\r\n}());\r\nexports.VpnRpcHub = VpnRpcHub;\r\n/** Disconnect a connection */\r\nvar VpnRpcDisconnectConnection = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcDisconnectConnection' class: Disconnect a connection */\r\n function VpnRpcDisconnectConnection(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcDisconnectConnection;\r\n}());\r\nexports.VpnRpcDisconnectConnection = VpnRpcDisconnectConnection;\r\n/** Enumeration of the access list */\r\nvar VpnRpcEnumAccessList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumAccessList' class: Enumeration of the access list */\r\n function VpnRpcEnumAccessList(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Access list */\r\n this.AccessList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumAccessList;\r\n}());\r\nexports.VpnRpcEnumAccessList = VpnRpcEnumAccessList;\r\n/** CA enumeration items of HUB */\r\nvar VpnRpcHubEnumCAItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubEnumCAItem' class: CA enumeration items of HUB */\r\n function VpnRpcHubEnumCAItem(init) {\r\n /** The key id of the item */\r\n this.Key_u32 = 0;\r\n /** Subject */\r\n this.SubjectName_utf = \"\";\r\n /** Issuer */\r\n this.IssuerName_utf = \"\";\r\n /** Expiration date */\r\n this.Expires_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubEnumCAItem;\r\n}());\r\nexports.VpnRpcHubEnumCAItem = VpnRpcHubEnumCAItem;\r\n/** CA enumeration of HUB */\r\nvar VpnRpcHubEnumCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubEnumCA' class: CA enumeration of HUB */\r\n function VpnRpcHubEnumCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The list of CA */\r\n this.CAList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubEnumCA;\r\n}());\r\nexports.VpnRpcHubEnumCA = VpnRpcHubEnumCA;\r\n/** Type of connection */\r\nvar VpnRpcConnectionType;\r\n(function (VpnRpcConnectionType) {\r\n /** VPN Client */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Client\"] = 0] = \"Client\";\r\n /** During initialization */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Init\"] = 1] = \"Init\";\r\n /** Login connection */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Login\"] = 2] = \"Login\";\r\n /** Additional connection */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Additional\"] = 3] = \"Additional\";\r\n /** RPC for server farm */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"FarmRpc\"] = 4] = \"FarmRpc\";\r\n /** RPC for Management */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"AdminRpc\"] = 5] = \"AdminRpc\";\r\n /** HUB enumeration */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"EnumHub\"] = 6] = \"EnumHub\";\r\n /** Password change */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"Password\"] = 7] = \"Password\";\r\n /** SSTP */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"SSTP\"] = 8] = \"SSTP\";\r\n /** OpenVPN */\r\n VpnRpcConnectionType[VpnRpcConnectionType[\"OpenVPN\"] = 9] = \"OpenVPN\";\r\n})(VpnRpcConnectionType = exports.VpnRpcConnectionType || (exports.VpnRpcConnectionType = {}));\r\n/** Connection enumeration items */\r\nvar VpnRpcEnumConnectionItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumConnectionItem' class: Connection enumeration items */\r\n function VpnRpcEnumConnectionItem(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Connected time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Connection type */\r\n this.Type_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumConnectionItem;\r\n}());\r\nexports.VpnRpcEnumConnectionItem = VpnRpcEnumConnectionItem;\r\n/** Connection enumeration */\r\nvar VpnRpcEnumConnection = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumConnection' class: Connection enumeration */\r\n function VpnRpcEnumConnection(init) {\r\n /** Number of connections */\r\n this.NumConnection_u32 = 0;\r\n /** Connection list */\r\n this.ConnectionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumConnection;\r\n}());\r\nexports.VpnRpcEnumConnection = VpnRpcEnumConnection;\r\n/** Enum CRL Item */\r\nvar VpnRpcEnumCrlItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumCrlItem' class: Enum CRL Item */\r\n function VpnRpcEnumCrlItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** The contents of the CRL item */\r\n this.CrlInfo_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumCrlItem;\r\n}());\r\nexports.VpnRpcEnumCrlItem = VpnRpcEnumCrlItem;\r\n/** Enum CRL */\r\nvar VpnRpcEnumCrl = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumCrl' class: Enum CRL */\r\n function VpnRpcEnumCrl(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** CRL list */\r\n this.CRLList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumCrl;\r\n}());\r\nexports.VpnRpcEnumCrl = VpnRpcEnumCrl;\r\n/** RPC_ENUM_DHCP_ITEM */\r\nvar VpnRpcEnumDhcpItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumDhcpItem' class: RPC_ENUM_DHCP_ITEM */\r\n function VpnRpcEnumDhcpItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Lease time */\r\n this.LeasedTime_dt = new Date();\r\n /** Expiration date */\r\n this.ExpireTime_dt = new Date();\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask */\r\n this.Mask_u32 = 0;\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumDhcpItem;\r\n}());\r\nexports.VpnRpcEnumDhcpItem = VpnRpcEnumDhcpItem;\r\n/** RPC_ENUM_DHCP */\r\nvar VpnRpcEnumDhcp = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumDhcp' class: RPC_ENUM_DHCP */\r\n function VpnRpcEnumDhcp(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** DHCP Item */\r\n this.DhcpTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumDhcp;\r\n}());\r\nexports.VpnRpcEnumDhcp = VpnRpcEnumDhcp;\r\n/** EtherIP setting list */\r\nvar VpnRpcEnumEtherIpId = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEtherIpId' class: EtherIP setting list */\r\n function VpnRpcEnumEtherIpId(init) {\r\n /** Setting list */\r\n this.Settings = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEtherIpId;\r\n}());\r\nexports.VpnRpcEnumEtherIpId = VpnRpcEnumEtherIpId;\r\n/** Ethernet Network Adapters list item */\r\nvar VpnRpcEnumEthItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEthItem' class: Ethernet Network Adapters list item */\r\n function VpnRpcEnumEthItem(init) {\r\n /** Device name */\r\n this.DeviceName_str = \"\";\r\n /** Network connection name (description) */\r\n this.NetworkConnectionName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEthItem;\r\n}());\r\nexports.VpnRpcEnumEthItem = VpnRpcEnumEthItem;\r\n/** Ethernet Network Adapters list */\r\nvar VpnRpcEnumEth = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumEth' class: Ethernet Network Adapters list */\r\n function VpnRpcEnumEth(init) {\r\n /** Ethernet Network Adapters list */\r\n this.EthList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumEth;\r\n}());\r\nexports.VpnRpcEnumEth = VpnRpcEnumEth;\r\n/** Server farm members enumeration items */\r\nvar VpnRpcEnumFarmItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumFarmItem' class: Server farm members enumeration items */\r\n function VpnRpcEnumFarmItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Controller */\r\n this.Controller_bool = false;\r\n /** Connection time */\r\n this.ConnectedTime_dt = new Date();\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Point */\r\n this.Point_u32 = 0;\r\n /** Number of sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of HUBs */\r\n this.NumHubs_u32 = 0;\r\n /** Number of assigned client licenses */\r\n this.AssignedClientLicense_u32 = 0;\r\n /** Number of assigned bridge licenses */\r\n this.AssignedBridgeLicense_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumFarmItem;\r\n}());\r\nexports.VpnRpcEnumFarmItem = VpnRpcEnumFarmItem;\r\n/** Server farm member enumeration */\r\nvar VpnRpcEnumFarm = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumFarm' class: Server farm member enumeration */\r\n function VpnRpcEnumFarm(init) {\r\n /** Number of Cluster Members */\r\n this.NumFarm_u32 = 0;\r\n /** Cluster Members list */\r\n this.FarmMemberList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumFarm;\r\n}());\r\nexports.VpnRpcEnumFarm = VpnRpcEnumFarm;\r\n/** Enumeration items in the group */\r\nvar VpnRpcEnumGroupItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumGroupItem' class: Enumeration items in the group */\r\n function VpnRpcEnumGroupItem(init) {\r\n /** User name */\r\n this.Name_str = \"\";\r\n /** Real name */\r\n this.Realname_utf = \"\";\r\n /** Note */\r\n this.Note_utf = \"\";\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Access denied */\r\n this.DenyAccess_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumGroupItem;\r\n}());\r\nexports.VpnRpcEnumGroupItem = VpnRpcEnumGroupItem;\r\n/** Group enumeration */\r\nvar VpnRpcEnumGroup = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumGroup' class: Group enumeration */\r\n function VpnRpcEnumGroup(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Group list */\r\n this.GroupList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumGroup;\r\n}());\r\nexports.VpnRpcEnumGroup = VpnRpcEnumGroup;\r\n/** Enumeration items of HUB */\r\nvar VpnRpcEnumHubItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumHubItem' class: Enumeration items of HUB */\r\n function VpnRpcEnumHubItem(init) {\r\n /** The name of the Virtual Hub */\r\n this.HubName_str = \"\";\r\n /** Online state */\r\n this.Online_bool = false;\r\n /** Type of HUB (Valid only for Clustered VPN Servers) */\r\n this.HubType_u32 = 0;\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Number of registered groups */\r\n this.NumGroups_u32 = 0;\r\n /** Number of registered sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of current MAC table entries */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of current IP table entries */\r\n this.NumIpTables_u32 = 0;\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Number of accumulated logins */\r\n this.NumLogin_u32 = 0;\r\n /** Whether the traffic information is provided */\r\n this.IsTrafficFilled_bool = false;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Ex.Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Ex.Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Ex.Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Ex.Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Ex.Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Ex.Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastCount_u64\"] = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumHubItem;\r\n}());\r\nexports.VpnRpcEnumHubItem = VpnRpcEnumHubItem;\r\n/** Enumeration of HUB */\r\nvar VpnRpcEnumHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumHub' class: Enumeration of HUB */\r\n function VpnRpcEnumHub(init) {\r\n /** Number of Virtual Hubs */\r\n this.NumHub_u32 = 0;\r\n /** Virtual Hubs */\r\n this.HubList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumHub;\r\n}());\r\nexports.VpnRpcEnumHub = VpnRpcEnumHub;\r\n/** Enumeration items of IP table */\r\nvar VpnRpcEnumIpTableItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumIpTableItem' class: Enumeration items of IP table */\r\n function VpnRpcEnumIpTableItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Assigned by the DHCP */\r\n this.DhcpAllocated_bool = false;\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Updating date */\r\n this.UpdatedTime_dt = new Date();\r\n /** Remote items */\r\n this.RemoteItem_bool = false;\r\n /** Remote host name */\r\n this.RemoteHostname_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumIpTableItem;\r\n}());\r\nexports.VpnRpcEnumIpTableItem = VpnRpcEnumIpTableItem;\r\n/** Enumeration of IP table */\r\nvar VpnRpcEnumIpTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumIpTable' class: Enumeration of IP table */\r\n function VpnRpcEnumIpTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** MAC table */\r\n this.IpTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumIpTable;\r\n}());\r\nexports.VpnRpcEnumIpTable = VpnRpcEnumIpTable;\r\n/** Layer-3 interface enumeration */\r\nvar VpnRpcEnumL3If = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3If' class: Layer-3 interface enumeration */\r\n function VpnRpcEnumL3If(init) {\r\n /** Layer-3 switch name */\r\n this.Name_str = \"\";\r\n /** Layer-3 interface list */\r\n this.L3IFList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3If;\r\n}());\r\nexports.VpnRpcEnumL3If = VpnRpcEnumL3If;\r\n/** Layer-3 switch enumeration item */\r\nvar VpnRpcEnumL3SwItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3SwItem' class: Layer-3 switch enumeration item */\r\n function VpnRpcEnumL3SwItem(init) {\r\n /** Name of the layer-3 switch */\r\n this.Name_str = \"\";\r\n /** Number of layer-3 switch virtual interfaces */\r\n this.NumInterfaces_u32 = 0;\r\n /** Number of routing tables */\r\n this.NumTables_u32 = 0;\r\n /** Activated flag */\r\n this.Active_bool = false;\r\n /** Online flag */\r\n this.Online_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3SwItem;\r\n}());\r\nexports.VpnRpcEnumL3SwItem = VpnRpcEnumL3SwItem;\r\n/** Layer-3 switch enumeration */\r\nvar VpnRpcEnumL3Sw = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3Sw' class: Layer-3 switch enumeration */\r\n function VpnRpcEnumL3Sw(init) {\r\n /** Layer-3 switch list */\r\n this.L3SWList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3Sw;\r\n}());\r\nexports.VpnRpcEnumL3Sw = VpnRpcEnumL3Sw;\r\n/** Routing table enumeration */\r\nvar VpnRpcEnumL3Table = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumL3Table' class: Routing table enumeration */\r\n function VpnRpcEnumL3Table(init) {\r\n /** L3 switch name */\r\n this.Name_str = \"\";\r\n /** Routing table item list */\r\n this.L3Table = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumL3Table;\r\n}());\r\nexports.VpnRpcEnumL3Table = VpnRpcEnumL3Table;\r\n/** Cascade Connection Enumeration */\r\nvar VpnRpcEnumLinkItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLinkItem' class: Cascade Connection Enumeration */\r\n function VpnRpcEnumLinkItem(init) {\r\n /** The name of cascade connection */\r\n this.AccountName_utf = \"\";\r\n /** Online flag */\r\n this.Online_bool = false;\r\n /** The flag indicates whether the cascade connection is established */\r\n this.Connected_bool = false;\r\n /** The error last occurred if the cascade connection is in the fail state */\r\n this.LastError_u32 = 0;\r\n /** Connection completion time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Host name of the destination VPN server */\r\n this.Hostname_str = \"\";\r\n /** The Virtual Hub name */\r\n this.TargetHubName_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLinkItem;\r\n}());\r\nexports.VpnRpcEnumLinkItem = VpnRpcEnumLinkItem;\r\n/** Enumeration of the link */\r\nvar VpnRpcEnumLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLink' class: Enumeration of the link */\r\n function VpnRpcEnumLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Number of cascade connections */\r\n this.NumLink_u32 = 0;\r\n /** The list of cascade connections */\r\n this.LinkList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLink;\r\n}());\r\nexports.VpnRpcEnumLink = VpnRpcEnumLink;\r\n/** List of listeners item */\r\nvar VpnRpcListenerListItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListenerListItem' class: List of listeners item */\r\n function VpnRpcListenerListItem(init) {\r\n /** TCP port number (range: 1 - 65535) */\r\n this.Ports_u32 = 0;\r\n /** Active state */\r\n this.Enables_bool = false;\r\n /** The flag to indicate if the error occurred on the listener port */\r\n this.Errors_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListenerListItem;\r\n}());\r\nexports.VpnRpcListenerListItem = VpnRpcListenerListItem;\r\n/** List of listeners */\r\nvar VpnRpcListenerList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcListenerList' class: List of listeners */\r\n function VpnRpcListenerList(init) {\r\n /** List of listener items */\r\n this.ListenerList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcListenerList;\r\n}());\r\nexports.VpnRpcListenerList = VpnRpcListenerList;\r\n/** Local Bridge enumeration */\r\nvar VpnRpcEnumLocalBridge = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLocalBridge' class: Local Bridge enumeration */\r\n function VpnRpcEnumLocalBridge(init) {\r\n /** Local Bridge list */\r\n this.LocalBridgeList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLocalBridge;\r\n}());\r\nexports.VpnRpcEnumLocalBridge = VpnRpcEnumLocalBridge;\r\n/** Log file enumeration */\r\nvar VpnRpcEnumLogFileItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLogFileItem' class: Log file enumeration */\r\n function VpnRpcEnumLogFileItem(init) {\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** File path */\r\n this.FilePath_str = \"\";\r\n /** File size */\r\n this.FileSize_u32 = 0;\r\n /** Last write date */\r\n this.UpdatedTime_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLogFileItem;\r\n}());\r\nexports.VpnRpcEnumLogFileItem = VpnRpcEnumLogFileItem;\r\n/** Log file enumeration */\r\nvar VpnRpcEnumLogFile = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumLogFile' class: Log file enumeration */\r\n function VpnRpcEnumLogFile(init) {\r\n /** Log file list */\r\n this.LogFiles = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumLogFile;\r\n}());\r\nexports.VpnRpcEnumLogFile = VpnRpcEnumLogFile;\r\n/** Enumeration items of the MAC table */\r\nvar VpnRpcEnumMacTableItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumMacTableItem' class: Enumeration items of the MAC table */\r\n function VpnRpcEnumMacTableItem(init) {\r\n /** Key ID */\r\n this.Key_u32 = 0;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Updating date */\r\n this.UpdatedTime_dt = new Date();\r\n /** Remote items */\r\n this.RemoteItem_bool = false;\r\n /** Remote host name */\r\n this.RemoteHostname_str = \"\";\r\n /** VLAN ID */\r\n this.VlanId_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumMacTableItem;\r\n}());\r\nexports.VpnRpcEnumMacTableItem = VpnRpcEnumMacTableItem;\r\n/** Enumeration of the MAC table */\r\nvar VpnRpcEnumMacTable = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumMacTable' class: Enumeration of the MAC table */\r\n function VpnRpcEnumMacTable(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** MAC table */\r\n this.MacTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumMacTable;\r\n}());\r\nexports.VpnRpcEnumMacTable = VpnRpcEnumMacTable;\r\n/** NAT Entry Protocol Number */\r\nvar VpnRpcNatProtocol;\r\n(function (VpnRpcNatProtocol) {\r\n /** TCP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"TCP\"] = 0] = \"TCP\";\r\n /** UDP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"UDP\"] = 1] = \"UDP\";\r\n /** DNS */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"DNS\"] = 2] = \"DNS\";\r\n /** ICMP */\r\n VpnRpcNatProtocol[VpnRpcNatProtocol[\"ICMP\"] = 3] = \"ICMP\";\r\n})(VpnRpcNatProtocol = exports.VpnRpcNatProtocol || (exports.VpnRpcNatProtocol = {}));\r\n/** State of NAT session (TCP) */\r\nvar VpnRpcNatTcpState;\r\n(function (VpnRpcNatTcpState) {\r\n /** Connecting */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Connecting\"] = 0] = \"Connecting\";\r\n /** Send the RST (Connection failure or disconnected) */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"SendReset\"] = 1] = \"SendReset\";\r\n /** Connection complete */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Connected\"] = 2] = \"Connected\";\r\n /** Connection established */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"Established\"] = 3] = \"Established\";\r\n /** Wait for socket disconnection */\r\n VpnRpcNatTcpState[VpnRpcNatTcpState[\"WaitDisconnect\"] = 4] = \"WaitDisconnect\";\r\n})(VpnRpcNatTcpState = exports.VpnRpcNatTcpState || (exports.VpnRpcNatTcpState = {}));\r\n/** VpnRpcEnumNat List Item */\r\nvar VpnRpcEnumNatItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumNatItem' class: VpnRpcEnumNat List Item */\r\n function VpnRpcEnumNatItem(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Protocol */\r\n this.Protocol_u32 = 0;\r\n /** Source IP address */\r\n this.SrcIp_ip = \"\";\r\n /** Source host name */\r\n this.SrcHost_str = \"\";\r\n /** Source port number */\r\n this.SrcPort_u32 = 0;\r\n /** Destination IP address */\r\n this.DestIp_ip = \"\";\r\n /** Destination host name */\r\n this.DestHost_str = \"\";\r\n /** Destination port number */\r\n this.DestPort_u32 = 0;\r\n /** Connection time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last communication time */\r\n this.LastCommTime_dt = new Date();\r\n /** Transmission size */\r\n this.SendSize_u64 = 0;\r\n /** Receive size */\r\n this.RecvSize_u64 = 0;\r\n /** TCP state */\r\n this.TcpStatus_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumNatItem;\r\n}());\r\nexports.VpnRpcEnumNatItem = VpnRpcEnumNatItem;\r\n/** RPC_ENUM_NAT */\r\nvar VpnRpcEnumNat = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumNat' class: RPC_ENUM_NAT */\r\n function VpnRpcEnumNat(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** NAT item */\r\n this.NatTable = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumNat;\r\n}());\r\nexports.VpnRpcEnumNat = VpnRpcEnumNat;\r\n/** Enumeration item of VPN session */\r\nvar VpnRpcEnumSessionItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumSessionItem' class: Enumeration item of VPN session */\r\n function VpnRpcEnumSessionItem(init) {\r\n /** Session name */\r\n this.Name_str = \"\";\r\n /** Remote session */\r\n this.RemoteSession_bool = false;\r\n /** Remote server name */\r\n this.RemoteHostname_str = \"\";\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** IP address */\r\n this.ClientIP_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Maximum number of underlying TCP connections */\r\n this.MaxNumTcp_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.CurrentNumTcp_u32 = 0;\r\n /** Packet size transmitted */\r\n this.PacketSize_u64 = 0;\r\n /** Number of packets transmitted */\r\n this.PacketNum_u64 = 0;\r\n /** Is a Cascade VPN session */\r\n this.LinkMode_bool = false;\r\n /** Is a SecureNAT VPN session */\r\n this.SecureNATMode_bool = false;\r\n /** Is the VPN session for Local Bridge */\r\n this.BridgeMode_bool = false;\r\n /** Is a Layer-3 Switch VPN session */\r\n this.Layer3Mode_bool = false;\r\n /** Is in Bridge Mode */\r\n this.Client_BridgeMode_bool = false;\r\n /** Is in Monitor Mode */\r\n this.Client_MonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n /** Unique ID of the VPN Session */\r\n this.UniqueId_bin = new Uint8Array([]);\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumSessionItem;\r\n}());\r\nexports.VpnRpcEnumSessionItem = VpnRpcEnumSessionItem;\r\n/** Enumerate VPN sessions */\r\nvar VpnRpcEnumSession = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumSession' class: Enumerate VPN sessions */\r\n function VpnRpcEnumSession(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** VPN sessions list */\r\n this.SessionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumSession;\r\n}());\r\nexports.VpnRpcEnumSession = VpnRpcEnumSession;\r\n/** Enumeration item of user */\r\nvar VpnRpcEnumUserItem = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumUserItem' class: Enumeration item of user */\r\n function VpnRpcEnumUserItem(init) {\r\n /** User name */\r\n this.Name_str = \"\";\r\n /** Group name */\r\n this.GroupName_str = \"\";\r\n /** Real name */\r\n this.Realname_utf = \"\";\r\n /** Note */\r\n this.Note_utf = \"\";\r\n /** Authentication method */\r\n this.AuthType_u32 = 0;\r\n /** Number of logins */\r\n this.NumLogin_u32 = 0;\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Access denied */\r\n this.DenyAccess_bool = false;\r\n /** Flag of whether the traffic variable is set */\r\n this.IsTrafficFilled_bool = false;\r\n /** Flag of whether expiration date variable is set */\r\n this.IsExpiresFilled_bool = false;\r\n /** Expiration date */\r\n this.Expires_dt = new Date();\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Ex.Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Ex.Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Ex.Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Ex.Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Ex.Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Ex.Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Ex.Send.UnicastCount_u64\"] = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumUserItem;\r\n}());\r\nexports.VpnRpcEnumUserItem = VpnRpcEnumUserItem;\r\n/** Enumeration of user */\r\nvar VpnRpcEnumUser = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcEnumUser' class: Enumeration of user */\r\n function VpnRpcEnumUser(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** User list */\r\n this.UserList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcEnumUser;\r\n}());\r\nexports.VpnRpcEnumUser = VpnRpcEnumUser;\r\n/** Source IP Address Limit List Item */\r\nvar VpnAc = /** @class */ (function () {\r\n /** Constructor for the 'VpnAc' class: Source IP Address Limit List Item */\r\n function VpnAc(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** Priority */\r\n this.Priority_u32 = 0;\r\n /** Deny access */\r\n this.Deny_bool = false;\r\n /** Set true if you want to specify the SubnetMask_ip item. */\r\n this.Masked_bool = false;\r\n /** IP address */\r\n this.IpAddress_ip = \"\";\r\n /** Subnet mask, valid only if Masked_bool == true */\r\n this.SubnetMask_ip = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAc;\r\n}());\r\nexports.VpnAc = VpnAc;\r\n/** Source IP Address Limit List */\r\nvar VpnRpcAcList = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAcList' class: Source IP Address Limit List */\r\n function VpnRpcAcList(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Source IP Address Limit List */\r\n this.ACList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAcList;\r\n}());\r\nexports.VpnRpcAcList = VpnRpcAcList;\r\n/** Message */\r\nvar VpnRpcMsg = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcMsg' class: Message */\r\n function VpnRpcMsg(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Message (Unicode strings acceptable) */\r\n this.Msg_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcMsg;\r\n}());\r\nexports.VpnRpcMsg = VpnRpcMsg;\r\n/** Get / Set the Azure state */\r\nvar VpnRpcAzureStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAzureStatus' class: Get / Set the Azure state */\r\n function VpnRpcAzureStatus(init) {\r\n /** Whether VPN Azure Function is Enabled */\r\n this.IsEnabled_bool = false;\r\n /** Whether connection to VPN Azure Cloud Server is established */\r\n this.IsConnected_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAzureStatus;\r\n}());\r\nexports.VpnRpcAzureStatus = VpnRpcAzureStatus;\r\n/** Local Bridge support information */\r\nvar VpnRpcBridgeSupport = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcBridgeSupport' class: Local Bridge support information */\r\n function VpnRpcBridgeSupport(init) {\r\n /** Whether the OS supports the Local Bridge function */\r\n this.IsBridgeSupportedOs_bool = false;\r\n /** Whether WinPcap is necessary to install */\r\n this.IsWinPcapNeeded_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcBridgeSupport;\r\n}());\r\nexports.VpnRpcBridgeSupport = VpnRpcBridgeSupport;\r\n/** Get the CA of HUB */\r\nvar VpnRpcHubGetCA = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubGetCA' class: Get the CA of HUB */\r\n function VpnRpcHubGetCA(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The key id of the certificate */\r\n this.Key_u32 = 0;\r\n /** The body of the X.509 certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubGetCA;\r\n}());\r\nexports.VpnRpcHubGetCA = VpnRpcHubGetCA;\r\n/** Caps item of the VPN Server */\r\nvar VpnCaps = /** @class */ (function () {\r\n /** Constructor for the 'VpnCaps' class: Caps item of the VPN Server */\r\n function VpnCaps(init) {\r\n /** Name */\r\n this.CapsName_str = \"\";\r\n /** Value */\r\n this.CapsValue_u32 = 0;\r\n /** Descrption */\r\n this.CapsDescrption_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnCaps;\r\n}());\r\nexports.VpnCaps = VpnCaps;\r\n/** Caps list of the VPN Server */\r\nvar VpnCapslist = /** @class */ (function () {\r\n /** Constructor for the 'VpnCapslist' class: Caps list of the VPN Server */\r\n function VpnCapslist(init) {\r\n /** Caps list of the VPN Server */\r\n this.CapsList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnCapslist;\r\n}());\r\nexports.VpnCapslist = VpnCapslist;\r\n/** Config operation */\r\nvar VpnRpcConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcConfig' class: Config operation */\r\n function VpnRpcConfig(init) {\r\n /** File name (valid only for returning from the server) */\r\n this.FileName_str = \"\";\r\n /** File data */\r\n this.FileData_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcConfig;\r\n}());\r\nexports.VpnRpcConfig = VpnRpcConfig;\r\n/** Connection information */\r\nvar VpnRpcConnectionInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcConnectionInfo' class: Connection information */\r\n function VpnRpcConnectionInfo(init) {\r\n /** Connection name */\r\n this.Name_str = \"\";\r\n /** Type */\r\n this.Type_u32 = 0;\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Connected time */\r\n this.ConnectedTime_dt = new Date();\r\n /** Server string */\r\n this.ServerStr_str = \"\";\r\n /** Server version */\r\n this.ServerVer_u32 = 0;\r\n /** Server build number */\r\n this.ServerBuild_u32 = 0;\r\n /** Client string */\r\n this.ClientStr_str = \"\";\r\n /** Client version */\r\n this.ClientVer_u32 = 0;\r\n /** Client build number */\r\n this.ClientBuild_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcConnectionInfo;\r\n}());\r\nexports.VpnRpcConnectionInfo = VpnRpcConnectionInfo;\r\n/** Proxy type */\r\nvar VpnRpcProxyType;\r\n(function (VpnRpcProxyType) {\r\n /** Direct TCP connection */\r\n VpnRpcProxyType[VpnRpcProxyType[\"Direct\"] = 0] = \"Direct\";\r\n /** Connection via HTTP proxy server */\r\n VpnRpcProxyType[VpnRpcProxyType[\"HTTP\"] = 1] = \"HTTP\";\r\n /** Connection via SOCKS proxy server */\r\n VpnRpcProxyType[VpnRpcProxyType[\"SOCKS\"] = 2] = \"SOCKS\";\r\n})(VpnRpcProxyType = exports.VpnRpcProxyType || (exports.VpnRpcProxyType = {}));\r\n/** The current status of the DDNS */\r\nvar VpnDDnsClientStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnDDnsClientStatus' class: The current status of the DDNS */\r\n function VpnDDnsClientStatus(init) {\r\n /** Last error code (IPv4) */\r\n this.Err_IPv4_u32 = 0;\r\n /** Last error string (IPv4) */\r\n this.ErrStr_IPv4_utf = \"\";\r\n /** Last error code (IPv6) */\r\n this.Err_IPv6_u32 = 0;\r\n /** Last error string (IPv6) */\r\n this.ErrStr_IPv6_utf = \"\";\r\n /** Current DDNS host name */\r\n this.CurrentHostName_str = \"\";\r\n /** Current FQDN of the DDNS hostname */\r\n this.CurrentFqdn_str = \"\";\r\n /** DDNS suffix */\r\n this.DnsSuffix_str = \"\";\r\n /** Current IPv4 address of the VPN Server */\r\n this.CurrentIPv4_str = \"\";\r\n /** Current IPv6 address of the VPN Server */\r\n this.CurrentIPv6_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnDDnsClientStatus;\r\n}());\r\nexports.VpnDDnsClientStatus = VpnDDnsClientStatus;\r\n/** Internet connection settings */\r\nvar VpnInternetSetting = /** @class */ (function () {\r\n /** Constructor for the 'VpnInternetSetting' class: Internet connection settings */\r\n function VpnInternetSetting(init) {\r\n /** Type of proxy server */\r\n this.ProxyType_u32 = 0;\r\n /** Proxy server host name */\r\n this.ProxyHostName_str = \"\";\r\n /** Proxy server port number */\r\n this.ProxyPort_u32 = 0;\r\n /** Proxy server user name */\r\n this.ProxyUsername_str = \"\";\r\n /** Proxy server password */\r\n this.ProxyPassword_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnInternetSetting;\r\n}());\r\nexports.VpnInternetSetting = VpnInternetSetting;\r\n/** Administration options */\r\nvar VpnAdminOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnAdminOption' class: Administration options */\r\n function VpnAdminOption(init) {\r\n /** Name */\r\n this.Name_str = \"\";\r\n /** Data */\r\n this.Value_u32 = 0;\r\n /** Descrption */\r\n this.Descrption_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnAdminOption;\r\n}());\r\nexports.VpnAdminOption = VpnAdminOption;\r\n/** Administration options list */\r\nvar VpnRpcAdminOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcAdminOption' class: Administration options list */\r\n function VpnRpcAdminOption(init) {\r\n /** Virtual HUB name */\r\n this.HubName_str = \"\";\r\n /** List data */\r\n this.AdminOptionList = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcAdminOption;\r\n}());\r\nexports.VpnRpcAdminOption = VpnRpcAdminOption;\r\n/** Connection state to the controller */\r\nvar VpnRpcFarmConnectionStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmConnectionStatus' class: Connection state to the controller */\r\n function VpnRpcFarmConnectionStatus(init) {\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Port number */\r\n this.Port_u32 = 0;\r\n /** Online state */\r\n this.Online_bool = false;\r\n /** Last error code */\r\n this.LastError_u32 = 0;\r\n /** Connection start time */\r\n this.StartedTime_dt = new Date();\r\n /** First connection time */\r\n this.FirstConnectedTime_dt = new Date();\r\n /** Connection time of this time */\r\n this.CurrentConnectedTime_dt = new Date();\r\n /** Number of retries */\r\n this.NumTry_u32 = 0;\r\n /** Number of connection count */\r\n this.NumConnected_u32 = 0;\r\n /** Connection failure count */\r\n this.NumFailed_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmConnectionStatus;\r\n}());\r\nexports.VpnRpcFarmConnectionStatus = VpnRpcFarmConnectionStatus;\r\n/** HUB item of each farm member */\r\nvar VpnRpcFarmHub = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmHub' class: HUB item of each farm member */\r\n function VpnRpcFarmHub(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Dynamic HUB */\r\n this.DynamicHub_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmHub;\r\n}());\r\nexports.VpnRpcFarmHub = VpnRpcFarmHub;\r\n/** Server farm member information acquisition */\r\nvar VpnRpcFarmInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarmInfo' class: Server farm member information acquisition */\r\n function VpnRpcFarmInfo(init) {\r\n /** ID */\r\n this.Id_u32 = 0;\r\n /** The flag if the server is Cluster Controller (false: Cluster Member servers) */\r\n this.Controller_bool = false;\r\n /** Connection Established Time */\r\n this.ConnectedTime_dt = new Date();\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Host name */\r\n this.Hostname_str = \"\";\r\n /** Point */\r\n this.Point_u32 = 0;\r\n /** Number of Public Ports */\r\n this.NumPort_u32 = 0;\r\n /** Public Ports */\r\n this.Ports_u32 = [];\r\n /** Server certificate */\r\n this.ServerCert_bin = new Uint8Array([]);\r\n /** Number of farm HUB */\r\n this.NumFarmHub_u32 = 0;\r\n /** The hosted Virtual Hub list */\r\n this.HubsList = [];\r\n /** Number of hosted VPN sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Performance Standard Ratio */\r\n this.Weight_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarmInfo;\r\n}());\r\nexports.VpnRpcFarmInfo = VpnRpcFarmInfo;\r\n/** Server farm configuration */\r\nvar VpnRpcFarm = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcFarm' class: Server farm configuration */\r\n function VpnRpcFarm(init) {\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Valid only for Cluster Member servers. Number of the Ports_u32 element. */\r\n this.NumPort_u32 = 0;\r\n /** Valid only for Cluster Member servers. Specify the list of public port numbers on this server. The list must have at least one public port number set, and it is also possible to set multiple public port numbers. */\r\n this.Ports_u32 = [];\r\n /** Valid only for Cluster Member servers. Specify the public IP address of this server. If you wish to leave public IP address unspecified, specify the empty string. When a public IP address is not specified, the IP address of the network interface used when connecting to the cluster controller will be automatically used. */\r\n this.PublicIp_ip = \"\";\r\n /** Valid only for Cluster Member servers. Specify the host name or IP address of the destination cluster controller. */\r\n this.ControllerName_str = \"\";\r\n /** Valid only for Cluster Member servers. Specify the TCP port number of the destination cluster controller. */\r\n this.ControllerPort_u32 = 0;\r\n /** Valid only for Cluster Member servers. Specify the password required to connect to the destination controller. It needs to be the same as an administrator password on the destination controller. */\r\n this.MemberPasswordPlaintext_str = \"\";\r\n /** This sets a value for the performance standard ratio of this VPN Server. This is the standard value for when load balancing is performed in the cluster. For example, making only one machine 200 while the other members have a status of 100, will regulate that machine to receive twice as many connections as the other members. Specify 1 or higher for the value. If this parameter is left unspecified, 100 will be used. */\r\n this.Weight_u32 = 0;\r\n /** Valid only for Cluster Controller server. By specifying true, the VPN Server will operate only as a controller on the cluster and it will always distribute general VPN Client connections to members other than itself. This function is used in high-load environments. */\r\n this.ControllerOnly_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcFarm;\r\n}());\r\nexports.VpnRpcFarm = VpnRpcFarm;\r\n/** Log switch type */\r\nvar VpnRpcLogSwitchType;\r\n(function (VpnRpcLogSwitchType) {\r\n /** No switching */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"No\"] = 0] = \"No\";\r\n /** Secondly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Second\"] = 1] = \"Second\";\r\n /** Minutely basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Minute\"] = 2] = \"Minute\";\r\n /** Hourly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Hour\"] = 3] = \"Hour\";\r\n /** Daily basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Day\"] = 4] = \"Day\";\r\n /** Monthly basis */\r\n VpnRpcLogSwitchType[VpnRpcLogSwitchType[\"Month\"] = 5] = \"Month\";\r\n})(VpnRpcLogSwitchType = exports.VpnRpcLogSwitchType || (exports.VpnRpcLogSwitchType = {}));\r\n/** Packet log settings */\r\nvar VpnRpcPacketLogSetting;\r\n(function (VpnRpcPacketLogSetting) {\r\n /** Not save */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"None\"] = 0] = \"None\";\r\n /** Only header */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"Header\"] = 1] = \"Header\";\r\n /** All payloads */\r\n VpnRpcPacketLogSetting[VpnRpcPacketLogSetting[\"All\"] = 2] = \"All\";\r\n})(VpnRpcPacketLogSetting = exports.VpnRpcPacketLogSetting || (exports.VpnRpcPacketLogSetting = {}));\r\n/** Packet log settings array index */\r\nvar VpnRpcPacketLogSettingIndex;\r\n(function (VpnRpcPacketLogSettingIndex) {\r\n /** TCP connection log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"TcpConnection\"] = 0] = \"TcpConnection\";\r\n /** TCP packet log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"TcpAll\"] = 1] = \"TcpAll\";\r\n /** DHCP Log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Dhcp\"] = 2] = \"Dhcp\";\r\n /** UDP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Udp\"] = 3] = \"Udp\";\r\n /** ICMP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Icmp\"] = 4] = \"Icmp\";\r\n /** IP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Ip\"] = 5] = \"Ip\";\r\n /** ARP log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Arp\"] = 6] = \"Arp\";\r\n /** Ethernet log */\r\n VpnRpcPacketLogSettingIndex[VpnRpcPacketLogSettingIndex[\"Ethernet\"] = 7] = \"Ethernet\";\r\n})(VpnRpcPacketLogSettingIndex = exports.VpnRpcPacketLogSettingIndex || (exports.VpnRpcPacketLogSettingIndex = {}));\r\n/** HUB log settings */\r\nvar VpnRpcHubLog = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubLog' class: HUB log settings */\r\n function VpnRpcHubLog(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The flag to enable / disable saving the security log */\r\n this.SaveSecurityLog_bool = false;\r\n /** The log filename switching setting of the security log */\r\n this.SecurityLogSwitchType_u32 = 0;\r\n /** The flag to enable / disable saving the security log */\r\n this.SavePacketLog_bool = false;\r\n /** The log filename switching settings of the packet logs */\r\n this.PacketLogSwitchType_u32 = 0;\r\n /** Specify the save contents of the packet logs (uint * 16 array). The index numbers: TcpConnection = 0, TcpAll = 1, DHCP = 2, UDP = 3, ICMP = 4, IP = 5, ARP = 6, Ethernet = 7. */\r\n this.PacketLogConfig_u32 = [];\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubLog;\r\n}());\r\nexports.VpnRpcHubLog = VpnRpcHubLog;\r\n/** RADIUS server options */\r\nvar VpnRpcRadius = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcRadius' class: RADIUS server options */\r\n function VpnRpcRadius(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** RADIUS server name */\r\n this.RadiusServerName_str = \"\";\r\n /** RADIUS port number */\r\n this.RadiusPort_u32 = 0;\r\n /** Secret key */\r\n this.RadiusSecret_str = \"\";\r\n /** Radius retry interval */\r\n this.RadiusRetryInterval_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcRadius;\r\n}());\r\nexports.VpnRpcRadius = VpnRpcRadius;\r\n/** Get the state HUB */\r\nvar VpnRpcHubStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcHubStatus' class: Get the state HUB */\r\n function VpnRpcHubStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Online */\r\n this.Online_bool = false;\r\n /** Type of HUB */\r\n this.HubType_u32 = 0;\r\n /** Number of sessions */\r\n this.NumSessions_u32 = 0;\r\n /** Number of sessions (client mode) */\r\n this.NumSessionsClient_u32 = 0;\r\n /** Number of sessions (bridge mode) */\r\n this.NumSessionsBridge_u32 = 0;\r\n /** Number of Access list entries */\r\n this.NumAccessLists_u32 = 0;\r\n /** Number of users */\r\n this.NumUsers_u32 = 0;\r\n /** Number of groups */\r\n this.NumGroups_u32 = 0;\r\n /** Number of MAC table entries */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of IP table entries */\r\n this.NumIpTables_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** Whether SecureNAT is enabled */\r\n this.SecureNATEnabled_bool = false;\r\n /** Last communication date and time */\r\n this.LastCommTime_dt = new Date();\r\n /** Last login date and time */\r\n this.LastLoginTime_dt = new Date();\r\n /** Creation date and time */\r\n this.CreatedTime_dt = new Date();\r\n /** Number of logins */\r\n this.NumLogin_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcHubStatus;\r\n}());\r\nexports.VpnRpcHubStatus = VpnRpcHubStatus;\r\n/** List of services provided by IPsec server */\r\nvar VpnIPsecServices = /** @class */ (function () {\r\n /** Constructor for the 'VpnIPsecServices' class: List of services provided by IPsec server */\r\n function VpnIPsecServices(init) {\r\n /** Enable or Disable the L2TP Server Function (Raw L2TP with No Encryptions). To accept special VPN clients, enable this option. */\r\n this.L2TP_Raw_bool = false;\r\n /** Enable or Disable the L2TP over IPsec Server Function. To accept VPN connections from iPhone, iPad, Android, Windows or Mac OS X, enable this option. */\r\n this.L2TP_IPsec_bool = false;\r\n /** Enable or Disable the EtherIP / L2TPv3 over IPsec Server Function (for site-to-site VPN Server function). Router Products which are compatible with EtherIP over IPsec can connect to Virtual Hubs on the VPN Server and establish Layer-2 (Ethernet) Bridging. */\r\n this.EtherIP_IPsec_bool = false;\r\n /** Specify the IPsec Pre-Shared Key. An IPsec Pre-Shared Key is also called as \"PSK\" or \"secret\". Specify it equal or less than 8 letters, and distribute it to every users who will connect to the VPN Server. Please note: Google Android 4.0 has a bug which a Pre-Shared Key with 10 or more letters causes a unexpected behavior. For that reason, the letters of a Pre-Shared Key should be 9 or less characters. */\r\n this.IPsec_Secret_str = \"\";\r\n /** Specify the default Virtual HUB in a case of omitting the name of HUB on the Username. Users should specify their username such as \"Username@Target Virtual HUB Name\" to connect this L2TP Server. If the designation of the Virtual Hub is omitted, the above HUB will be used as the target. */\r\n this.L2TP_DefaultHub_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnIPsecServices;\r\n}());\r\nexports.VpnIPsecServices = VpnIPsecServices;\r\n/** Keep alive protocol */\r\nvar VpnRpcKeepAliveProtocol;\r\n(function (VpnRpcKeepAliveProtocol) {\r\n /** TCP */\r\n VpnRpcKeepAliveProtocol[VpnRpcKeepAliveProtocol[\"TCP\"] = 0] = \"TCP\";\r\n /** UDP */\r\n VpnRpcKeepAliveProtocol[VpnRpcKeepAliveProtocol[\"UDP\"] = 1] = \"UDP\";\r\n})(VpnRpcKeepAliveProtocol = exports.VpnRpcKeepAliveProtocol || (exports.VpnRpcKeepAliveProtocol = {}));\r\n/** Keep Alive settings */\r\nvar VpnRpcKeep = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcKeep' class: Keep Alive settings */\r\n function VpnRpcKeep(init) {\r\n /** The flag to enable keep-alive to the Internet */\r\n this.UseKeepConnect_bool = false;\r\n /** Specify the host name or IP address of the destination */\r\n this.KeepConnectHost_str = \"\";\r\n /** Specify the port number of the destination */\r\n this.KeepConnectPort_u32 = 0;\r\n /** Protocol type */\r\n this.KeepConnectProtocol_u32 = 0;\r\n /** Interval Between Packets Sends (Seconds) */\r\n this.KeepConnectInterval_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcKeep;\r\n}());\r\nexports.VpnRpcKeep = VpnRpcKeep;\r\n/** State of the client session */\r\nvar VpnRpcClientSessionStatus;\r\n(function (VpnRpcClientSessionStatus) {\r\n /** Connecting */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Connecting\"] = 0] = \"Connecting\";\r\n /** Negotiating */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Negotiation\"] = 1] = \"Negotiation\";\r\n /** During user authentication */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Auth\"] = 2] = \"Auth\";\r\n /** Connection complete */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Established\"] = 3] = \"Established\";\r\n /** Wait to retry */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Retry\"] = 4] = \"Retry\";\r\n /** Idle state */\r\n VpnRpcClientSessionStatus[VpnRpcClientSessionStatus[\"Idle\"] = 5] = \"Idle\";\r\n})(VpnRpcClientSessionStatus = exports.VpnRpcClientSessionStatus || (exports.VpnRpcClientSessionStatus = {}));\r\n/** Get the link state */\r\nvar VpnRpcLinkStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcLinkStatus' class: Get the link state */\r\n function VpnRpcLinkStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_Ex_str = \"\";\r\n /** The name of the cascade connection */\r\n this.AccountName_utf = \"\";\r\n /** The flag whether the cascade connection is enabled */\r\n this.Active_bool = false;\r\n /** The flag whether the cascade connection is established */\r\n this.Connected_bool = false;\r\n /** The session status */\r\n this.SessionStatus_u32 = 0;\r\n /** The destination VPN server name */\r\n this.ServerName_str = \"\";\r\n /** The port number of the server */\r\n this.ServerPort_u32 = 0;\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server product version */\r\n this.ServerProductVer_u32 = 0;\r\n /** Server product build number */\r\n this.ServerProductBuild_u32 = 0;\r\n /** Server's X.509 certificate */\r\n this.ServerX_bin = new Uint8Array([]);\r\n /** Client certificate */\r\n this.ClientX_bin = new Uint8Array([]);\r\n /** Connection start time */\r\n this.StartTime_dt = new Date();\r\n /** Connection completion time of the first connection */\r\n this.FirstConnectionEstablisiedTime_dt = new Date();\r\n /** Connection completion time of this connection */\r\n this.CurrentConnectionEstablishTime_dt = new Date();\r\n /** Number of connections have been established so far */\r\n this.NumConnectionsEatablished_u32 = 0;\r\n /** Half-connection */\r\n this.HalfConnection_bool = false;\r\n /** VoIP / QoS */\r\n this.QoS_bool = false;\r\n /** Maximum number of the underlying TCP connections */\r\n this.MaxTcpConnections_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of underlying inbound TCP connections */\r\n this.NumTcpConnectionsUpload_u32 = 0;\r\n /** Number of underlying outbound TCP connections */\r\n this.NumTcpConnectionsDownload_u32 = 0;\r\n /** Use of encryption */\r\n this.UseEncrypt_bool = false;\r\n /** Cipher algorithm name */\r\n this.CipherName_str = \"\";\r\n /** Use of compression */\r\n this.UseCompress_bool = false;\r\n /** The flag whether this is a R-UDP session */\r\n this.IsRUDPSession_bool = false;\r\n /** Underlying physical communication protocol */\r\n this.UnderlayProtocol_str = \"\";\r\n /** The UDP acceleration is enabled */\r\n this.IsUdpAccelerationEnabled_bool = false;\r\n /** The UDP acceleration is being actually used */\r\n this.IsUsingUdpAcceleration_bool = false;\r\n /** Session name */\r\n this.SessionName_str = \"\";\r\n /** Connection name */\r\n this.ConnectionName_str = \"\";\r\n /** Session key */\r\n this.SessionKey_bin = new Uint8Array([]);\r\n /** Total transmitted data size */\r\n this.TotalSendSize_u64 = 0;\r\n /** Total received data size */\r\n this.TotalRecvSize_u64 = 0;\r\n /** Total transmitted data size (no compression) */\r\n this.TotalSendSizeReal_u64 = 0;\r\n /** Total received data size (no compression) */\r\n this.TotalRecvSizeReal_u64 = 0;\r\n /** The flag whether the VPN session is Bridge Mode */\r\n this.IsBridgeMode_bool = false;\r\n /** The flag whether the VPN session is Monitor mode */\r\n this.IsMonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcLinkStatus;\r\n}());\r\nexports.VpnRpcLinkStatus = VpnRpcLinkStatus;\r\n/** Setting of SSTP and OpenVPN */\r\nvar VpnOpenVpnSstpConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnOpenVpnSstpConfig' class: Setting of SSTP and OpenVPN */\r\n function VpnOpenVpnSstpConfig(init) {\r\n /** Specify true to enable the OpenVPN Clone Server Function. Specify false to disable. */\r\n this.EnableOpenVPN_bool = false;\r\n /** Specify UDP ports to listen for OpenVPN. Multiple UDP ports can be specified with splitting by space or comma letters, for example: \"1194, 2001, 2010, 2012\". The default port for OpenVPN is UDP 1194. You can specify any other UDP ports. */\r\n this.OpenVPNPortList_str = \"\";\r\n /** pecify true to enable the Microsoft SSTP VPN Clone Server Function. Specify false to disable. */\r\n this.EnableSSTP_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnOpenVpnSstpConfig;\r\n}());\r\nexports.VpnOpenVpnSstpConfig = VpnOpenVpnSstpConfig;\r\n/** Virtual host option */\r\nvar VpnVhOption = /** @class */ (function () {\r\n /** Constructor for the 'VpnVhOption' class: Virtual host option */\r\n function VpnVhOption(init) {\r\n /** Target Virtual HUB name */\r\n this.RpcHubName_str = \"\";\r\n /** MAC address */\r\n this.MacAddress_bin = new Uint8Array([]);\r\n /** IP address */\r\n this.Ip_ip = \"\";\r\n /** Subnet mask */\r\n this.Mask_ip = \"\";\r\n /** Use flag of the Virtual NAT function */\r\n this.UseNat_bool = false;\r\n /** MTU value (Standard: 1500) */\r\n this.Mtu_u32 = 0;\r\n /** NAT TCP timeout in seconds */\r\n this.NatTcpTimeout_u32 = 0;\r\n /** NAT UDP timeout in seconds */\r\n this.NatUdpTimeout_u32 = 0;\r\n /** Using flag of DHCP function */\r\n this.UseDhcp_bool = false;\r\n /** Specify the start point of the address band to be distributed to the client. (Example: 192.168.30.10) */\r\n this.DhcpLeaseIPStart_ip = \"\";\r\n /** Specify the end point of the address band to be distributed to the client. (Example: 192.168.30.200) */\r\n this.DhcpLeaseIPEnd_ip = \"\";\r\n /** Specify the subnet mask to be specified for the client. (Example: 255.255.255.0) */\r\n this.DhcpSubnetMask_ip = \"\";\r\n /** Specify the expiration date in second units for leasing an IP address to a client. */\r\n this.DhcpExpireTimeSpan_u32 = 0;\r\n /** Specify the IP address of the default gateway to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify 0 or none, then the client will not be notified of the default gateway. */\r\n this.DhcpGatewayAddress_ip = \"\";\r\n /** Specify the IP address of the primary DNS Server to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify empty, then the client will not be notified of the DNS Server address. */\r\n this.DhcpDnsServerAddress_ip = \"\";\r\n /** Specify the IP address of the secondary DNS Server to be notified to the client. You can specify a SecureNAT Virtual Host IP address for this when the SecureNAT Function's Virtual NAT Function has been enabled and is being used also. If you specify empty, then the client will not be notified of the DNS Server address. */\r\n this.DhcpDnsServerAddress2_ip = \"\";\r\n /** Specify the domain name to be notified to the client. If you specify none, then the client will not be notified of the domain name. */\r\n this.DhcpDomainName_str = \"\";\r\n /** Specify whether or not to save the Virtual DHCP Server operation in the Virtual Hub security log. Specify true to save it. This value is interlinked with the Virtual NAT Function log save setting. */\r\n this.SaveLog_bool = false;\r\n /** The flag to enable the DhcpPushRoutes_str field. */\r\n this.ApplyDhcpPushRoutes_bool = false;\r\n /** Specify the static routing table to push. Example: \"192.168.5.0/255.255.255.0/192.168.4.254, 10.0.0.0/255.0.0.0/192.168.4.253\" Split multiple entries (maximum: 64 entries) by comma or space characters. Each entry must be specified in the \"IP network address/subnet mask/gateway IP address\" format. This Virtual DHCP Server can push the classless static routes (RFC 3442) with DHCP reply messages to VPN clients. Whether or not a VPN client can recognize the classless static routes (RFC 3442) depends on the target VPN client software. SoftEther VPN Client and OpenVPN Client are supporting the classless static routes. On L2TP/IPsec and MS-SSTP protocols, the compatibility depends on the implementation of the client software. You can realize the split tunneling if you clear the default gateway field on the Virtual DHCP Server options. On the client side, L2TP/IPsec and MS-SSTP clients need to be configured not to set up the default gateway for the split tunneling usage. You can also push the classless static routes (RFC 3442) by your existing external DHCP server. In that case, disable the Virtual DHCP Server function on SecureNAT, and you need not to set up the classless routes on this API. See the RFC 3442 to understand the classless routes. */\r\n this.DhcpPushRoutes_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnVhOption;\r\n}());\r\nexports.VpnVhOption = VpnVhOption;\r\n/** RPC_NAT_STATUS */\r\nvar VpnRpcNatStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcNatStatus' class: RPC_NAT_STATUS */\r\n function VpnRpcNatStatus(init) {\r\n /** Virtual Hub Name */\r\n this.HubName_str = \"\";\r\n /** Number of TCP sessions */\r\n this.NumTcpSessions_u32 = 0;\r\n /** Ntmber of UDP sessions */\r\n this.NumUdpSessions_u32 = 0;\r\n /** Nymber of ICMP sessions */\r\n this.NumIcmpSessions_u32 = 0;\r\n /** Number of DNS sessions */\r\n this.NumDnsSessions_u32 = 0;\r\n /** Number of DHCP clients */\r\n this.NumDhcpClients_u32 = 0;\r\n /** Whether the NAT is operating in the Kernel Mode */\r\n this.IsKernelMode_bool = false;\r\n /** Whether the NAT is operating in the Raw IP Mode */\r\n this.IsRawIpMode_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcNatStatus;\r\n}());\r\nexports.VpnRpcNatStatus = VpnRpcNatStatus;\r\n/** Key pair */\r\nvar VpnRpcKeyPair = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcKeyPair' class: Key pair */\r\n function VpnRpcKeyPair(init) {\r\n /** The body of the certificate */\r\n this.Cert_bin = new Uint8Array([]);\r\n /** The body of the private key */\r\n this.Key_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcKeyPair;\r\n}());\r\nexports.VpnRpcKeyPair = VpnRpcKeyPair;\r\n/** Single string value */\r\nvar VpnRpcStr = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcStr' class: Single string value */\r\n function VpnRpcStr(init) {\r\n /** A string value */\r\n this.String_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcStr;\r\n}());\r\nexports.VpnRpcStr = VpnRpcStr;\r\n/** Type of VPN Server */\r\nvar VpnRpcServerType;\r\n(function (VpnRpcServerType) {\r\n /** Stand-alone server */\r\n VpnRpcServerType[VpnRpcServerType[\"Standalone\"] = 0] = \"Standalone\";\r\n /** Farm controller server */\r\n VpnRpcServerType[VpnRpcServerType[\"FarmController\"] = 1] = \"FarmController\";\r\n /** Farm member server */\r\n VpnRpcServerType[VpnRpcServerType[\"FarmMember\"] = 2] = \"FarmMember\";\r\n})(VpnRpcServerType = exports.VpnRpcServerType || (exports.VpnRpcServerType = {}));\r\n/** Operating system type */\r\nvar VpnRpcOsType;\r\n(function (VpnRpcOsType) {\r\n /** Windows 95 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_95\"] = 1100] = \"WINDOWS_95\";\r\n /** Windows 98 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_98\"] = 1200] = \"WINDOWS_98\";\r\n /** Windows Me */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_ME\"] = 1300] = \"WINDOWS_ME\";\r\n /** Windows (unknown) */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_UNKNOWN\"] = 1400] = \"WINDOWS_UNKNOWN\";\r\n /** Windows NT 4.0 Workstation */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_WORKSTATION\"] = 2100] = \"WINDOWS_NT_4_WORKSTATION\";\r\n /** Windows NT 4.0 Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SERVER\"] = 2110] = \"WINDOWS_NT_4_SERVER\";\r\n /** Windows NT 4.0 Server, Enterprise Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SERVER_ENTERPRISE\"] = 2111] = \"WINDOWS_NT_4_SERVER_ENTERPRISE\";\r\n /** Windows NT 4.0 Terminal Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_TERMINAL_SERVER\"] = 2112] = \"WINDOWS_NT_4_TERMINAL_SERVER\";\r\n /** BackOffice Server 4.5 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_BACKOFFICE\"] = 2113] = \"WINDOWS_NT_4_BACKOFFICE\";\r\n /** Small Business Server 4.5 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_NT_4_SMS\"] = 2114] = \"WINDOWS_NT_4_SMS\";\r\n /** Windows 2000 Professional */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_PROFESSIONAL\"] = 2200] = \"WINDOWS_2000_PROFESSIONAL\";\r\n /** Windows 2000 Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_SERVER\"] = 2211] = \"WINDOWS_2000_SERVER\";\r\n /** Windows 2000 Advanced Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_ADVANCED_SERVER\"] = 2212] = \"WINDOWS_2000_ADVANCED_SERVER\";\r\n /** Windows 2000 Datacenter Server */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_DATACENTER_SERVER\"] = 2213] = \"WINDOWS_2000_DATACENTER_SERVER\";\r\n /** BackOffice Server 2000 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_BACKOFFICE\"] = 2214] = \"WINDOWS_2000_BACKOFFICE\";\r\n /** Small Business Server 2000 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2000_SBS\"] = 2215] = \"WINDOWS_2000_SBS\";\r\n /** Windows XP Home Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_XP_HOME\"] = 2300] = \"WINDOWS_XP_HOME\";\r\n /** Windows XP Professional */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_XP_PROFESSIONAL\"] = 2301] = \"WINDOWS_XP_PROFESSIONAL\";\r\n /** Windows Server 2003 Web Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_WEB\"] = 2410] = \"WINDOWS_2003_WEB\";\r\n /** Windows Server 2003 Standard Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_STANDARD\"] = 2411] = \"WINDOWS_2003_STANDARD\";\r\n /** Windows Server 2003 Enterprise Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_ENTERPRISE\"] = 2412] = \"WINDOWS_2003_ENTERPRISE\";\r\n /** Windows Server 2003 DataCenter Edition */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_DATACENTER\"] = 2413] = \"WINDOWS_2003_DATACENTER\";\r\n /** BackOffice Server 2003 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_BACKOFFICE\"] = 2414] = \"WINDOWS_2003_BACKOFFICE\";\r\n /** Small Business Server 2003 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_2003_SBS\"] = 2415] = \"WINDOWS_2003_SBS\";\r\n /** Windows Vista */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_LONGHORN_PROFESSIONAL\"] = 2500] = \"WINDOWS_LONGHORN_PROFESSIONAL\";\r\n /** Windows Server 2008 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_LONGHORN_SERVER\"] = 2510] = \"WINDOWS_LONGHORN_SERVER\";\r\n /** Windows 7 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_7\"] = 2600] = \"WINDOWS_7\";\r\n /** Windows Server 2008 R2 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_2008_R2\"] = 2610] = \"WINDOWS_SERVER_2008_R2\";\r\n /** Windows 8 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_8\"] = 2700] = \"WINDOWS_8\";\r\n /** Windows Server 2012 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_8\"] = 2710] = \"WINDOWS_SERVER_8\";\r\n /** Windows 8.1 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_81\"] = 2701] = \"WINDOWS_81\";\r\n /** Windows Server 2012 R2 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_81\"] = 2711] = \"WINDOWS_SERVER_81\";\r\n /** Windows 10 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_10\"] = 2702] = \"WINDOWS_10\";\r\n /** Windows Server 10 */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_10\"] = 2712] = \"WINDOWS_SERVER_10\";\r\n /** Windows 11 or later */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_11\"] = 2800] = \"WINDOWS_11\";\r\n /** Windows Server 11 or later */\r\n VpnRpcOsType[VpnRpcOsType[\"WINDOWS_SERVER_11\"] = 2810] = \"WINDOWS_SERVER_11\";\r\n /** Unknown UNIX */\r\n VpnRpcOsType[VpnRpcOsType[\"UNIX_UNKNOWN\"] = 3000] = \"UNIX_UNKNOWN\";\r\n /** Linux */\r\n VpnRpcOsType[VpnRpcOsType[\"LINUX\"] = 3100] = \"LINUX\";\r\n /** Solaris */\r\n VpnRpcOsType[VpnRpcOsType[\"SOLARIS\"] = 3200] = \"SOLARIS\";\r\n /** Cygwin */\r\n VpnRpcOsType[VpnRpcOsType[\"CYGWIN\"] = 3300] = \"CYGWIN\";\r\n /** BSD */\r\n VpnRpcOsType[VpnRpcOsType[\"BSD\"] = 3400] = \"BSD\";\r\n /** MacOS X */\r\n VpnRpcOsType[VpnRpcOsType[\"MACOS_X\"] = 3500] = \"MACOS_X\";\r\n})(VpnRpcOsType = exports.VpnRpcOsType || (exports.VpnRpcOsType = {}));\r\n/** VPN Server Information */\r\nvar VpnRpcServerInfo = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcServerInfo' class: VPN Server Information */\r\n function VpnRpcServerInfo(init) {\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server version string */\r\n this.ServerVersionString_str = \"\";\r\n /** Server build information string */\r\n this.ServerBuildInfoString_str = \"\";\r\n /** Server version integer value */\r\n this.ServerVerInt_u32 = 0;\r\n /** Server build number integer value */\r\n this.ServerBuildInt_u32 = 0;\r\n /** Server host name */\r\n this.ServerHostName_str = \"\";\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Build date and time of the server */\r\n this.ServerBuildDate_dt = new Date();\r\n /** Family name */\r\n this.ServerFamilyName_str = \"\";\r\n /** OS type */\r\n this.OsType_u32 = 0;\r\n /** Service pack number */\r\n this.OsServicePack_u32 = 0;\r\n /** OS system name */\r\n this.OsSystemName_str = \"\";\r\n /** OS product name */\r\n this.OsProductName_str = \"\";\r\n /** OS vendor name */\r\n this.OsVendorName_str = \"\";\r\n /** OS version */\r\n this.OsVersion_str = \"\";\r\n /** Kernel name */\r\n this.KernelName_str = \"\";\r\n /** Kernel version */\r\n this.KernelVersion_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcServerInfo;\r\n}());\r\nexports.VpnRpcServerInfo = VpnRpcServerInfo;\r\n/** Server status */\r\nvar VpnRpcServerStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcServerStatus' class: Server status */\r\n function VpnRpcServerStatus(init) {\r\n /** Type of server */\r\n this.ServerType_u32 = 0;\r\n /** Total number of TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of Local TCP connections */\r\n this.NumTcpConnectionsLocal_u32 = 0;\r\n /** Number of remote TCP connections */\r\n this.NumTcpConnectionsRemote_u32 = 0;\r\n /** Total number of HUBs */\r\n this.NumHubTotal_u32 = 0;\r\n /** Nymber of stand-alone HUB */\r\n this.NumHubStandalone_u32 = 0;\r\n /** Number of static HUBs */\r\n this.NumHubStatic_u32 = 0;\r\n /** Number of Dynamic HUBs */\r\n this.NumHubDynamic_u32 = 0;\r\n /** Total number of sessions */\r\n this.NumSessionsTotal_u32 = 0;\r\n /** Number of local VPN sessions */\r\n this.NumSessionsLocal_u32 = 0;\r\n /** The number of remote sessions */\r\n this.NumSessionsRemote_u32 = 0;\r\n /** Number of MAC table entries (total sum of all Virtual Hubs) */\r\n this.NumMacTables_u32 = 0;\r\n /** Number of IP table entries (total sum of all Virtual Hubs) */\r\n this.NumIpTables_u32 = 0;\r\n /** Number of users (total sum of all Virtual Hubs) */\r\n this.NumUsers_u32 = 0;\r\n /** Number of groups (total sum of all Virtual Hubs) */\r\n this.NumGroups_u32 = 0;\r\n /** Number of assigned bridge licenses (Useful to make a commercial version) */\r\n this.AssignedBridgeLicenses_u32 = 0;\r\n /** Number of assigned client licenses (Useful to make a commercial version) */\r\n this.AssignedClientLicenses_u32 = 0;\r\n /** Number of Assigned bridge license (cluster-wide), useful to make a commercial version */\r\n this.AssignedBridgeLicensesTotal_u32 = 0;\r\n /** Number of assigned client licenses (cluster-wide), useful to make a commercial version */\r\n this.AssignedClientLicensesTotal_u32 = 0;\r\n /** Number of broadcast packets (Recv) */\r\n this[\"Recv.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Recv) */\r\n this[\"Recv.BroadcastCount_u64\"] = 0;\r\n /** Unicast count (Recv) */\r\n this[\"Recv.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Recv) */\r\n this[\"Recv.UnicastCount_u64\"] = 0;\r\n /** Number of broadcast packets (Send) */\r\n this[\"Send.BroadcastBytes_u64\"] = 0;\r\n /** Broadcast bytes (Send) */\r\n this[\"Send.BroadcastCount_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastBytes_u64\"] = 0;\r\n /** Unicast bytes (Send) */\r\n this[\"Send.UnicastCount_u64\"] = 0;\r\n /** Current time */\r\n this.CurrentTime_dt = new Date();\r\n /** 64 bit High-Precision Logical System Clock */\r\n this.CurrentTick_u64 = 0;\r\n /** VPN Server Start-up time */\r\n this.StartTime_dt = new Date();\r\n /** Memory information: Total Memory */\r\n this.TotalMemory_u64 = 0;\r\n /** Memory information: Used Memory */\r\n this.UsedMemory_u64 = 0;\r\n /** Memory information: Free Memory */\r\n this.FreeMemory_u64 = 0;\r\n /** Memory information: Total Phys */\r\n this.TotalPhys_u64 = 0;\r\n /** Memory information: Used Phys */\r\n this.UsedPhys_u64 = 0;\r\n /** Memory information: Free Phys */\r\n this.FreePhys_u64 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcServerStatus;\r\n}());\r\nexports.VpnRpcServerStatus = VpnRpcServerStatus;\r\n/** VPN Session status */\r\nvar VpnRpcSessionStatus = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSessionStatus' class: VPN Session status */\r\n function VpnRpcSessionStatus(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** VPN session name */\r\n this.Name_str = \"\";\r\n /** User name */\r\n this.Username_str = \"\";\r\n /** Real user name which was used for the authentication */\r\n this.RealUsername_str = \"\";\r\n /** Group name */\r\n this.GroupName_str = \"\";\r\n /** Is Cascade Session */\r\n this.LinkMode_bool = false;\r\n /** Client IP address */\r\n this.Client_Ip_Address_ip = \"\";\r\n /** Client host name */\r\n this.SessionStatus_ClientHostName_str = \"\";\r\n /** Operation flag */\r\n this.Active_bool = false;\r\n /** Connected flag */\r\n this.Connected_bool = false;\r\n /** State of the client session */\r\n this.SessionStatus_u32 = 0;\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** Port number of the server */\r\n this.ServerPort_u32 = 0;\r\n /** Server product name */\r\n this.ServerProductName_str = \"\";\r\n /** Server product version */\r\n this.ServerProductVer_u32 = 0;\r\n /** Server product build number */\r\n this.ServerProductBuild_u32 = 0;\r\n /** Connection start time */\r\n this.StartTime_dt = new Date();\r\n /** Connection completion time of the first connection */\r\n this.FirstConnectionEstablisiedTime_dt = new Date();\r\n /** Connection completion time of this connection */\r\n this.CurrentConnectionEstablishTime_dt = new Date();\r\n /** Number of connections have been established so far */\r\n this.NumConnectionsEatablished_u32 = 0;\r\n /** Half-connection */\r\n this.HalfConnection_bool = false;\r\n /** VoIP / QoS */\r\n this.QoS_bool = false;\r\n /** Maximum number of the underlying TCP connections */\r\n this.MaxTcpConnections_u32 = 0;\r\n /** Number of current underlying TCP connections */\r\n this.NumTcpConnections_u32 = 0;\r\n /** Number of inbound underlying connections */\r\n this.NumTcpConnectionsUpload_u32 = 0;\r\n /** Number of outbound underlying connections */\r\n this.NumTcpConnectionsDownload_u32 = 0;\r\n /** Use of encryption */\r\n this.UseEncrypt_bool = false;\r\n /** Cipher algorithm name */\r\n this.CipherName_str = \"\";\r\n /** Use of compression */\r\n this.UseCompress_bool = false;\r\n /** Is R-UDP session */\r\n this.IsRUDPSession_bool = false;\r\n /** Physical underlying communication protocol */\r\n this.UnderlayProtocol_str = \"\";\r\n /** The UDP acceleration is enabled */\r\n this.IsUdpAccelerationEnabled_bool = false;\r\n /** Using the UDP acceleration function */\r\n this.IsUsingUdpAcceleration_bool = false;\r\n /** VPN session name */\r\n this.SessionName_str = \"\";\r\n /** Connection name */\r\n this.ConnectionName_str = \"\";\r\n /** Session key */\r\n this.SessionKey_bin = new Uint8Array([]);\r\n /** Total transmitted data size */\r\n this.TotalSendSize_u64 = 0;\r\n /** Total received data size */\r\n this.TotalRecvSize_u64 = 0;\r\n /** Total transmitted data size (no compression) */\r\n this.TotalSendSizeReal_u64 = 0;\r\n /** Total received data size (no compression) */\r\n this.TotalRecvSizeReal_u64 = 0;\r\n /** Is Bridge Mode */\r\n this.IsBridgeMode_bool = false;\r\n /** Is Monitor mode */\r\n this.IsMonitorMode_bool = false;\r\n /** VLAN ID */\r\n this.VLanId_u32 = 0;\r\n /** Client product name */\r\n this.ClientProductName_str = \"\";\r\n /** Client version */\r\n this.ClientProductVer_u32 = 0;\r\n /** Client build number */\r\n this.ClientProductBuild_u32 = 0;\r\n /** Client OS name */\r\n this.ClientOsName_str = \"\";\r\n /** Client OS version */\r\n this.ClientOsVer_str = \"\";\r\n /** Client OS Product ID */\r\n this.ClientOsProductId_str = \"\";\r\n /** Client host name */\r\n this.ClientHostname_str = \"\";\r\n /** Unique ID */\r\n this.UniqueId_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSessionStatus;\r\n}());\r\nexports.VpnRpcSessionStatus = VpnRpcSessionStatus;\r\n/** Set the special listener */\r\nvar VpnRpcSpecialListener = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSpecialListener' class: Set the special listener */\r\n function VpnRpcSpecialListener(init) {\r\n /** The flag to activate the VPN over ICMP server function */\r\n this.VpnOverIcmpListener_bool = false;\r\n /** The flag to activate the VPN over DNS function */\r\n this.VpnOverDnsListener_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSpecialListener;\r\n}());\r\nexports.VpnRpcSpecialListener = VpnRpcSpecialListener;\r\n/** Syslog configuration */\r\nvar VpnSyslogSaveType;\r\n(function (VpnSyslogSaveType) {\r\n /** Do not use syslog */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"None\"] = 0] = \"None\";\r\n /** Only server log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerLog\"] = 1] = \"ServerLog\";\r\n /** Server and Virtual HUB security log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerAndHubSecurityLog\"] = 2] = \"ServerAndHubSecurityLog\";\r\n /** Server, Virtual HUB security, and packet log */\r\n VpnSyslogSaveType[VpnSyslogSaveType[\"ServerAndHubAllLog\"] = 3] = \"ServerAndHubAllLog\";\r\n})(VpnSyslogSaveType = exports.VpnSyslogSaveType || (exports.VpnSyslogSaveType = {}));\r\n/** Syslog configuration */\r\nvar VpnSyslogSetting = /** @class */ (function () {\r\n /** Constructor for the 'VpnSyslogSetting' class: Syslog configuration */\r\n function VpnSyslogSetting(init) {\r\n /** The behavior of the syslog function */\r\n this.SaveType_u32 = 0;\r\n /** Specify the host name or IP address of the syslog server */\r\n this.Hostname_str = \"\";\r\n /** Specify the port number of the syslog server */\r\n this.Port_u32 = 0;\r\n Object.assign(this, init);\r\n }\r\n return VpnSyslogSetting;\r\n}());\r\nexports.VpnSyslogSetting = VpnSyslogSetting;\r\n/** VPN Gate Server Config */\r\nvar VpnVgsConfig = /** @class */ (function () {\r\n /** Constructor for the 'VpnVgsConfig' class: VPN Gate Server Config */\r\n function VpnVgsConfig(init) {\r\n /** Active flag */\r\n this.IsEnabled_bool = false;\r\n /** Message */\r\n this.Message_utf = \"\";\r\n /** Owner name */\r\n this.Owner_utf = \"\";\r\n /** Abuse email */\r\n this.Abuse_utf = \"\";\r\n /** Log save flag */\r\n this.NoLog_bool = false;\r\n /** Save log permanently */\r\n this.LogPermanent_bool = false;\r\n /** Enable the L2TP VPN function */\r\n this.EnableL2TP_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnVgsConfig;\r\n}());\r\nexports.VpnVgsConfig = VpnVgsConfig;\r\n/** Read a Log file */\r\nvar VpnRpcReadLogFile = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcReadLogFile' class: Read a Log file */\r\n function VpnRpcReadLogFile(init) {\r\n /** Server name */\r\n this.ServerName_str = \"\";\r\n /** File Path */\r\n this.FilePath_str = \"\";\r\n /** Offset to download. You have to call the ReadLogFile API multiple times to download the entire log file with requesting a part of the file by specifying the Offset_u32 field. */\r\n this.Offset_u32 = 0;\r\n /** Received buffer */\r\n this.Buffer_bin = new Uint8Array([]);\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcReadLogFile;\r\n}());\r\nexports.VpnRpcReadLogFile = VpnRpcReadLogFile;\r\n/** Rename link */\r\nvar VpnRpcRenameLink = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcRenameLink' class: Rename link */\r\n function VpnRpcRenameLink(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** The old name of the cascade connection */\r\n this.OldAccountName_utf = \"\";\r\n /** The new name of the cascade connection */\r\n this.NewAccountName_utf = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcRenameLink;\r\n}());\r\nexports.VpnRpcRenameLink = VpnRpcRenameLink;\r\n/** Online or offline the HUB */\r\nvar VpnRpcSetHubOnline = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetHubOnline' class: Online or offline the HUB */\r\n function VpnRpcSetHubOnline(init) {\r\n /** The Virtual Hub name */\r\n this.HubName_str = \"\";\r\n /** Online / offline flag */\r\n this.Online_bool = false;\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetHubOnline;\r\n}());\r\nexports.VpnRpcSetHubOnline = VpnRpcSetHubOnline;\r\n/** Set Password */\r\nvar VpnRpcSetPassword = /** @class */ (function () {\r\n /** Constructor for the 'VpnRpcSetPassword' class: Set Password */\r\n function VpnRpcSetPassword(init) {\r\n /** The plaintext password */\r\n this.PlainTextPassword_str = \"\";\r\n Object.assign(this, init);\r\n }\r\n return VpnRpcSetPassword;\r\n}());\r\nexports.VpnRpcSetPassword = VpnRpcSetPassword;\r\n// --- Utility codes ---\r\n/** JSON-RPC request class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcRequest = /** @class */ (function () {\r\n function JsonRpcRequest(method, param, id) {\r\n if (method === void 0) { method = \"\"; }\r\n if (param === void 0) { param = null; }\r\n if (id === void 0) { id = \"\"; }\r\n this.jsonrpc = \"2.0\";\r\n this.method = method;\r\n this.params = param;\r\n this.id = id;\r\n }\r\n return JsonRpcRequest;\r\n}());\r\nexports.JsonRpcRequest = JsonRpcRequest;\r\n/** JSON-RPC error class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcError = /** @class */ (function () {\r\n function JsonRpcError(code, message, data) {\r\n if (code === void 0) { code = 0; }\r\n if (message === void 0) { message = \"\"; }\r\n if (data === void 0) { data = null; }\r\n this.code = code;\r\n this.message = message;\r\n this.data = data;\r\n }\r\n return JsonRpcError;\r\n}());\r\nexports.JsonRpcError = JsonRpcError;\r\n/** JSON-RPC response class with generics */\r\nvar JsonRpcResponse = /** @class */ (function () {\r\n function JsonRpcResponse() {\r\n this.jsonrpc = \"2.0\";\r\n this.result = null;\r\n this.error = null;\r\n this.id = \"\";\r\n }\r\n return JsonRpcResponse;\r\n}());\r\nexports.JsonRpcResponse = JsonRpcResponse;\r\n/** JSON-RPC client class. See https://www.jsonrpc.org/specification */\r\nvar JsonRpcClient = /** @class */ (function () {\r\n /**\r\n * JSON-RPC client class constructor\r\n * @param url The URL\r\n * @param headers Additional HTTP headers\r\n * @param send_credential Set true to use the same credential with the browsing web site. Valid only if the code is running on the web browser.\r\n */\r\n function JsonRpcClient(url, headers, send_credential, nodejs_https_client_reject_untrusted_server_cert) {\r\n this.BaseUrl = url;\r\n this.headers = headers;\r\n this.client = new HttpClient();\r\n this.client.SendCredential = send_credential;\r\n this.client.NodeJS_HTTPS_Client_Reject_Unauthorized = nodejs_https_client_reject_untrusted_server_cert;\r\n }\r\n /** A utility function to convert any object to JSON string */\r\n JsonRpcClient.ObjectToJson = function (obj) {\r\n return JSON.stringify(obj, function (key, value) {\r\n if (key.endsWith(\"_bin\")) {\r\n return Util_Base64_Encode(value);\r\n }\r\n return value;\r\n }, 4);\r\n };\r\n /** A utility function to convert JSON string to object */\r\n JsonRpcClient.JsonToObject = function (str) {\r\n return JSON.parse(str, function (key, value) {\r\n if (key.endsWith(\"_bin\")) {\r\n return Util_Base64_Decode(value);\r\n }\r\n else if (key.endsWith(\"_dt\")) {\r\n return new Date(value);\r\n }\r\n return value;\r\n });\r\n };\r\n /**\r\n * Call a single RPC call (without error check). You can wait for the response with Promise or await statement.\r\n * @param method_name The name of RPC method\r\n * @param param The parameters\r\n */\r\n JsonRpcClient.prototype.CallInternalAsync = function (method_name, param) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var id, req, req_string, http_response, ret_string;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n id = \"1\";\r\n req = new JsonRpcRequest(method_name, param, id);\r\n req_string = JsonRpcClient.ObjectToJson(req);\r\n if (debug_mode) {\r\n console.log(\"--- RPC Request Body ---\");\r\n console.log(req_string);\r\n console.log(\"------------------------\");\r\n }\r\n return [4 /*yield*/, this.client.PostAsync(this.BaseUrl, this.headers, req_string, \"application/json\")];\r\n case 1:\r\n http_response = _a.sent();\r\n ret_string = http_response.Body;\r\n if (debug_mode) {\r\n console.log(\"--- RPC Response Body ---\");\r\n console.log(ret_string);\r\n console.log(\"-------------------------\");\r\n }\r\n return [2 /*return*/, ret_string];\r\n }\r\n });\r\n });\r\n };\r\n /**\r\n * Call a single RPC call (with error check). You can wait for the response with Promise or await statement. In the case of error, it will be thrown.\r\n * @param method_name The name of RPC method\r\n * @param param The parameters\r\n */\r\n JsonRpcClient.prototype.CallAsync = function (method_name, param) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var ret_string, ret;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.CallInternalAsync(method_name, param)];\r\n case 1:\r\n ret_string = _a.sent();\r\n ret = JSON.parse(ret_string);\r\n if (is_null(ret.error) === false) {\r\n throw new JsonRpcException(ret.error);\r\n }\r\n return [2 /*return*/, ret.result];\r\n }\r\n });\r\n });\r\n };\r\n return JsonRpcClient;\r\n}());\r\nexports.JsonRpcClient = JsonRpcClient;\r\n/** JSON-RPC exception class */\r\nvar JsonRpcException = /** @class */ (function (_super) {\r\n __extends(JsonRpcException, _super);\r\n function JsonRpcException(error) {\r\n var _this = _super.call(this, \"Code=\" + error.code + \", Message=\" + error.message) || this;\r\n _this.Error = error;\r\n return _this;\r\n }\r\n return JsonRpcException;\r\n}(Error));\r\nexports.JsonRpcException = JsonRpcException;\r\n/** HTTP client exception class */\r\nvar HttpClientException = /** @class */ (function (_super) {\r\n __extends(HttpClientException, _super);\r\n function HttpClientException(message) {\r\n return _super.call(this, message) || this;\r\n }\r\n return HttpClientException;\r\n}(Error));\r\nexports.HttpClientException = HttpClientException;\r\n/** HTTP client response class */\r\nvar HttpClientResponse = /** @class */ (function () {\r\n function HttpClientResponse() {\r\n this.Body = \"\";\r\n }\r\n return HttpClientResponse;\r\n}());\r\nexports.HttpClientResponse = HttpClientResponse;\r\n/** An HTTP client which can be used in both web browsers and Node.js */\r\nvar HttpClient = /** @class */ (function () {\r\n function HttpClient() {\r\n this.TimeoutMsecs = 60 * 5 * 1000;\r\n this.SendCredential = true;\r\n this.NodeJS_HTTPS_Client_Reject_Unauthorized = false;\r\n }\r\n /** Post method. In web browsers this function will process the request by itself. In Node.js this function will call PostAsync_NodeJS() instead. */\r\n HttpClient.prototype.PostAsync = function (url, headers, req_body, req_media_type) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var fetch_header_list, _i, _a, name_1, fetch_init, fetch_response, ret, _b;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n if (is_node_js) {\r\n return [2 /*return*/, this.PostAsync_NodeJS(url, headers, req_body, req_media_type)];\r\n }\r\n fetch_header_list = new Headers();\r\n for (_i = 0, _a = Object.keys(headers); _i < _a.length; _i++) {\r\n name_1 = _a[_i];\r\n fetch_header_list.append(name_1, headers[name_1]);\r\n }\r\n fetch_init = {\r\n mode: \"cors\",\r\n headers: fetch_header_list,\r\n credentials: (this.SendCredential ? \"include\" : \"omit\"),\r\n method: \"POST\",\r\n cache: \"no-cache\",\r\n keepalive: true,\r\n redirect: \"follow\",\r\n body: req_body\r\n };\r\n return [4 /*yield*/, fetch(url, fetch_init)];\r\n case 1:\r\n fetch_response = _c.sent();\r\n if (fetch_response.ok === false) {\r\n throw new HttpClientException(\"HTTP Error: \" + fetch_response.status + \" \" + fetch_response.statusText);\r\n }\r\n ret = new HttpClientResponse();\r\n _b = ret;\r\n return [4 /*yield*/, fetch_response.text()];\r\n case 2:\r\n _b.Body = _c.sent();\r\n return [2 /*return*/, ret];\r\n }\r\n });\r\n });\r\n };\r\n /** Post method for Node.js. */\r\n HttpClient.prototype.PostAsync_NodeJS = function (url, headers, req_body, req_media_type) {\r\n var https = __webpack_require__(/*! https */ \"./node_modules/https-browserify/index.js\");\r\n var keepAliveAgent = new https.Agent({ keepAlive: true });\r\n var urlparse = __webpack_require__(/*! url */ \"./node_modules/url/url.js\");\r\n var urlobj = urlparse.parse(url);\r\n if (is_null(urlobj.host))\r\n throw new Error(\"URL is invalid.\");\r\n var options = {\r\n host: urlobj.hostname,\r\n port: urlobj.port,\r\n path: urlobj.path,\r\n rejectUnauthorized: this.NodeJS_HTTPS_Client_Reject_Unauthorized,\r\n method: \"POST\",\r\n timeout: this.TimeoutMsecs,\r\n agent: keepAliveAgent\r\n };\r\n return new Promise(function (resolve, reject) {\r\n var req = https.request(options, function (res) {\r\n if (res.statusCode !== 200) {\r\n reject(new HttpClientException(\"HTTP Error: \" + res.statusCode + \" \" + res.statusMessage));\r\n }\r\n var recv_str = \"\";\r\n res.on(\"data\", function (body) {\r\n recv_str += body;\r\n });\r\n res.on(\"end\", function () {\r\n var ret = new HttpClientResponse();\r\n ret.Body = recv_str;\r\n resolve(ret);\r\n });\r\n }).on(\"error\", function (err) {\r\n throw err;\r\n });\r\n for (var _i = 0, _a = Object.keys(headers); _i < _a.length; _i++) {\r\n var name_2 = _a[_i];\r\n req.setHeader(name_2, !is_null(headers[name_2]) ? headers[name_2] : \"\");\r\n }\r\n req.setHeader(\"Content-Type\", req_media_type);\r\n req.setHeader(\"Content-Length\", Buffer.byteLength(req_body));\r\n req.write(req_body);\r\n req.end();\r\n });\r\n };\r\n return HttpClient;\r\n}());\r\nexports.HttpClient = HttpClient;\r\n//////// BEGIN: Base64 encode / decode utility functions from https://github.com/beatgammit/base64-js\r\n// The MIT License(MIT)\r\n// Copyright(c) 2014\r\n// Permission is hereby granted, free of charge, to any person obtaining a copy\r\n// of this software and associated documentation files(the \"Software\"), to deal\r\n// in the Software without restriction, including without limitation the rights\r\n// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell\r\n// copies of the Software, and to permit persons to whom the Software is\r\n// furnished to do so, subject to the following conditions:\r\n// The above copyright notice and this permission notice shall be included in\r\n// all copies or substantial portions of the Software.\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE\r\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n// THE SOFTWARE.\r\nvar lookup = [];\r\nvar revLookup = [];\r\nvar code = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\r\nfor (var i = 0, len = code.length; i < len; ++i) {\r\n lookup[i] = code[i];\r\n revLookup[code.charCodeAt(i)] = i;\r\n}\r\n// Support decoding URL-safe base64 strings, as Node.js does.\r\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\r\nrevLookup[\"-\".charCodeAt(0)] = 62;\r\nrevLookup[\"_\".charCodeAt(0)] = 63;\r\nfunction getLens(b64) {\r\n var len = b64.length;\r\n if (len % 4 > 0) {\r\n throw new Error(\"Invalid string. Length must be a multiple of 4\");\r\n }\r\n // Trim off extra bytes after placeholder bytes are found\r\n // See: https://github.com/beatgammit/base64-js/issues/42\r\n var validLen = b64.indexOf(\"=\");\r\n if (validLen === -1)\r\n validLen = len;\r\n var placeHoldersLen = validLen === len\r\n ? 0\r\n : 4 - (validLen % 4);\r\n return [validLen, placeHoldersLen];\r\n}\r\n// base64 is 4/3 + up to two characters of the original data\r\nfunction byteLength(b64) {\r\n var lens = getLens(b64);\r\n var validLen = lens[0];\r\n var placeHoldersLen = lens[1];\r\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen;\r\n}\r\nfunction _byteLength(b64, validLen, placeHoldersLen) {\r\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen;\r\n}\r\nfunction Util_Base64_Decode(b64) {\r\n var tmp;\r\n var lens = getLens(b64);\r\n var validLen = lens[0];\r\n var placeHoldersLen = lens[1];\r\n var arr = new Uint8Array(_byteLength(b64, validLen, placeHoldersLen));\r\n var curByte = 0;\r\n // if there are placeholders, only get up to the last complete 4 chars\r\n var len = placeHoldersLen > 0\r\n ? validLen - 4\r\n : validLen;\r\n for (var i = 0; i < len; i += 4) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 18) |\r\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\r\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\r\n revLookup[b64.charCodeAt(i + 3)];\r\n arr[curByte++] = (tmp >> 16) & 0xFF;\r\n arr[curByte++] = (tmp >> 8) & 0xFF;\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n if (placeHoldersLen === 2) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 2) |\r\n (revLookup[b64.charCodeAt(i + 1)] >> 4);\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n if (placeHoldersLen === 1) {\r\n tmp =\r\n (revLookup[b64.charCodeAt(i)] << 10) |\r\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\r\n (revLookup[b64.charCodeAt(i + 2)] >> 2);\r\n arr[curByte++] = (tmp >> 8) & 0xFF;\r\n arr[curByte++] = tmp & 0xFF;\r\n }\r\n return arr;\r\n}\r\nexports.Util_Base64_Decode = Util_Base64_Decode;\r\nfunction tripletToBase64(num) {\r\n return lookup[num >> 18 & 0x3F] +\r\n lookup[num >> 12 & 0x3F] +\r\n lookup[num >> 6 & 0x3F] +\r\n lookup[num & 0x3F];\r\n}\r\nfunction encodeChunk(uint8, start, end) {\r\n var tmp;\r\n var output = [];\r\n for (var i = start; i < end; i += 3) {\r\n tmp =\r\n ((uint8[i] << 16) & 0xFF0000) +\r\n ((uint8[i + 1] << 8) & 0xFF00) +\r\n (uint8[i + 2] & 0xFF);\r\n output.push(tripletToBase64(tmp));\r\n }\r\n return output.join(\"\");\r\n}\r\nfunction Util_Base64_Encode(uint8) {\r\n var tmp;\r\n var len = uint8.length;\r\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\r\n var parts = [];\r\n var maxChunkLength = 16383; // must be multiple of 3\r\n // go through the array every three bytes, we'll deal with trailing stuff later\r\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\r\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)));\r\n }\r\n // pad the end with zeros, but make sure to not forget the extra bytes\r\n if (extraBytes === 1) {\r\n tmp = uint8[len - 1];\r\n parts.push(lookup[tmp >> 2] +\r\n lookup[(tmp << 4) & 0x3F] +\r\n \"==\");\r\n }\r\n else if (extraBytes === 2) {\r\n tmp = (uint8[len - 2] << 8) + uint8[len - 1];\r\n parts.push(lookup[tmp >> 10] +\r\n lookup[(tmp >> 4) & 0x3F] +\r\n lookup[(tmp << 2) & 0x3F] +\r\n \"=\");\r\n }\r\n return parts.join(\"\");\r\n}\r\nexports.Util_Base64_Encode = Util_Base64_Encode;\r\n//////// END: Base64 encode / decode utility functions from https://github.com/beatgammit/base64-js\r\n//# sourceMappingURL=vpnrpc.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ \"./node_modules/buffer/index.js\").Buffer))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnBucnBjL2Rpc3QvdnBucnBjLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vSlMvLi9ub2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gMDogY2FzZSAxOiB0ID0gb3A7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA0OiBfLmxhYmVsKys7IHJldHVybiB7IHZhbHVlOiBvcFsxXSwgZG9uZTogZmFsc2UgfTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNTogXy5sYWJlbCsrOyB5ID0gb3BbMV07IG9wID0gWzBdOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNzogb3AgPSBfLm9wcy5wb3AoKTsgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywgdCA9IHQubGVuZ3RoID4gMCAmJiB0W3QubGVuZ3RoIC0gMV0pICYmIChvcFswXSA9PT0gNiB8fCBvcFswXSA9PT0gMikpIHsgXyA9IDA7IGNvbnRpbnVlOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9wWzBdID09PSAzICYmICghdCB8fCAob3BbMV0gPiB0WzBdICYmIG9wWzFdIDwgdFszXSkpKSB7IF8ubGFiZWwgPSBvcFsxXTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDYgJiYgXy5sYWJlbCA8IHRbMV0pIHsgXy5sYWJlbCA9IHRbMV07IHQgPSBvcDsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodCAmJiBfLmxhYmVsIDwgdFsyXSkgeyBfLmxhYmVsID0gdFsyXTsgXy5vcHMucHVzaChvcCk7IGJyZWFrOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRbMl0pIF8ub3BzLnBvcCgpO1xyXG4gICAgICAgICAgICAgICAgICAgIF8udHJ5cy5wb3AoKTsgY29udGludWU7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgb3AgPSBib2R5LmNhbGwodGhpc0FyZywgXyk7XHJcbiAgIC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lzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICB2YXIgcmVzcG9uc2U7XHJcbiAgICAgICAgICAgIHJldHVybiBfX2dlbmVyYXRvcih0aGlzLCBmdW5jdGlvbiAoX2EpIHtcclxuICAgICAgICAgICAgICAgIHN3aXRjaCAoX2EubGFiZWwpIHtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDA6IHJldHVybiBbNCAvKnlpZWxkKi8sIHRoaXMucnBjX2NsaWVudC5DYWxsQXN5bmMobWV0aG9kX25hbWUsIHJlcXVlc3QpXTtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDE6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3BvbnNlID0gX2Euc2VudCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzIgLypyZXR1cm4qLywgcmVzcG9uc2VdO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9KTtcclxuICAgIH07XHJcbiAgICByZXR1cm4gVnBuU2VydmVyUnBjO1xyXG59KCkpO1xyXG5leHBvcnRzLlZwblNlcnZlclJwYyA9IFZwblNlcnZlclJwYztcclxuLy8gLS0tIFR5cGVzIC0tLVxyXG4vKiogSVAgUHJvdG9jb2wgTnVtYmVycyAqL1xyXG52YXIgVnBuSXBQcm90b2NvbE51bWJlcjtcclxuKGZ1bmN0aW9uIChWcG5JcFByb3RvY29sTnVtYmVyKSB7XHJcbiAgICAvKiogSUNNUCBmb3IgSVB2NCAqL1xyXG4gICAgVnBuSXBQcm90b2NvbE51bWJlcltWcG5JcFByb3RvY29sTnVtYmVyW1wiSUNNUHY0XCJdID0gMV0gPSBcIklDTVB2NFwiO1xyXG4gICAgLyoqIFRDUCAqL1xyXG4gICAgVnBuSXBQcm90b2NvbE51bWJlcltWcG5JcFByb3RvY29sTnVtYmVyW1wiVENQXCJdID0gNl0gPSBcIlRDUFwiO1xy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HVybiBfX2F3YWl0ZXIodGhpcywgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uICgpIHtcclxuICAgICAgICAgICAgdmFyIGlkLCByZXEsIHJlcV9zdHJpbmcsIGh0dHBfcmVzcG9uc2UsIHJldF9zdHJpbmc7XHJcbiAgICAgICAgICAgIHJldHVybiBfX2dlbmVyYXRvcih0aGlzLCBmdW5jdGlvbiAoX2EpIHtcclxuICAgICAgICAgICAgICAgIHN3aXRjaCAoX2EubGFiZWwpIHtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDA6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkID0gXCIxXCI7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlcSA9IG5ldyBKc29uUnBjUmVxdWVzdChtZXRob2RfbmFtZSwgcGFyYW0sIGlkKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmVxX3N0cmluZyA9IEpzb25ScGNDbGllbnQuT2JqZWN0VG9Kc29uKHJlcSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkZWJ1Z19tb2RlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIi0tLSBSUEMgUmVxdWVzdCBCb2R5IC0tLVwiKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcV9zdHJpbmcpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cIik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFs0IC8qeWllbGQqLywgdGhpcy5jbGllbnQuUG9zdEFzeW5jKHRoaXMuQmFzZVVybCwgdGhpcy5oZWFkZXJzLCByZXFfc3RyaW5nLCBcImFwcGxpY2F0aW9uL2pzb25cIildO1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMTpcclxuICAgICAgICAgICAgICAgICAgICAgICAgaHR0cF9yZXNwb25zZSA9IF9hLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0X3N0cmluZyA9IGh0dHBfcmVzcG9uc2UuQm9keTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRlYnVnX21vZGUpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiLS0tIFJQQyBSZXNwb25zZSBCb2R5IC0tLVwiKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJldF9zdHJpbmcpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXCIpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbMiAvKnJldHVybiovLCByZXRfc3RyaW5nXTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9O1xyXG4gICAgLyoqXHJcbiAgICAgKiBDYWxsIGEgc2luZ2xlIFJQQyBjYWxsICh3aXRoIGVycm9yIGNoZWNrKS4gWW91IGNhbiB3YWl0IGZvciB0aGUgcmVzcG9uc2Ugd2l0aCBQcm9taXNlPFRSZXN1bHQ+IG9yIGF3YWl0IHN0YXRlbWVudC4gSW4gdGhlIGNhc2Ugb2YgZXJyb3IsIGl0IHdpbGwgYmUgdGhyb3duLlxyXG4gICAgICogQHBhcmFtIG1ldGhvZF9uYW1lIFRoZSBuYW1lIG9mIFJQQyBtZXRob2RcclxuICAgICAqIEBwYXJhbSBwYXJhbSBUaGUgcGFyYW1ldGVyc1xyXG4gICAgICovXHJcbiAgICBKc29uUnBjQ2xpZW50LnByb3RvdHlwZS5DYWxsQXN5bmMgPSBmdW5jdGlvbiAobWV0aG9kX25hbWUsIHBhcmFtKSB7XHJcbiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICB2YXIgcmV0X3N0cmluZywgcmV0O1xyXG4gICAgICAgICAgICByZXR1cm4gX19nZW5lcmF0b3IodGhpcywgZnVuY3Rpb24gKF9hKSB7XHJcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKF9hLmxhYmVsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAwOiByZXR1cm4gWzQgLyp5aWVsZCovLCB0aGlzLkNhbGxJbnRlcm5hbEFzeW5jKG1ldGhvZF9uYW1lLCBwYXJhbSldO1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMTpcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0X3N0cmluZyA9IF9hLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0ID0gSlNPTi5wYXJzZShyZXRfc3RyaW5nKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlzX251bGwocmV0LmVycm9yKSA9PT0gZmFsc2UpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBKc29uUnBjRXhjZXB0aW9uKHJldC5lcnJvcik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsyIC8qcmV0dXJuKi8sIHJldC5yZXN1bHRdO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9KTtcclxuICAgIH07XHJcbiAgICByZXR1cm4gSnNvblJwY0NsaWVudDtcclxufSgpKTtcclxuZXhwb3J0cy5Kc29uUnBjQ2xpZW50ID0gSnNvblJwY0NsaWVudDtcclxuLyoqIEpTT04tUlBDIGV4Y2VwdGlvbiBjbGFzcyAqL1xyXG52YXIgSnN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pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uICgpIHtcclxuICAgICAgICAgICAgdmFyIGZldGNoX2hlYWRlcl9saXN0LCBfaSwgX2EsIG5hbWVfMSwgZmV0Y2hfaW5pdCwgZmV0Y2hfcmVzcG9uc2UsIHJldCwgX2I7XHJcbiAgICAgICAgICAgIHJldHVybiBfX2dlbmVyYXRvcih0aGlzLCBmdW5jdGlvbiAoX2MpIHtcclxuICAgICAgICAgICAgICAgIHN3aXRjaCAoX2MubGFiZWwpIHtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDA6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc19ub2RlX2pzKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzIgLypyZXR1cm4qLywgdGhpcy5Qb3N0QXN5bmNfTm9kZUpTKHVybCwgaGVhZGVycywgcmVxX2JvZHksIHJlcV9tZWRpYV90eXBlKV07XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgZmV0Y2hfaGVhZGVyX2xpc3QgPSBuZXcgSGVhZGVycygpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKF9pID0gMCwgX2EgPSBPYmplY3Qua2V5cyhoZWFkZXJzKTsgX2kgPCBfYS5sZW5ndGg7IF9pKyspIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWVfMSA9IF9hW19pXTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZldGNoX2hlYWRlcl9saXN0LmFwcGVuZChuYW1lXzEsIGhlYWRlcnNbbmFtZV8xXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgZmV0Y2hfaW5pdCA9IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IFwiY29yc1wiLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogZmV0Y2hfaGVhZGVyX2xpc3QsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjcmVkZW50aWFsczogKHRoaXMuU2VuZENyZWRlbnRpYWwgPyBcImluY2x1ZGVcIiA6IFwib21pdFwiKSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1ldGhvZDogXCJQT1NUXCIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYWNoZTogXCJuby1jYWNoZVwiLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAga2VlcGFsaXZlOiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3Q6IFwiZm9sbG93XCIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBib2R5OiByZXFfYm9keVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzQgLyp5aWVsZCovLCBmZXRjaCh1cmwsIGZldGNoX2luaXQpXTtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIDE6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZldGNoX3Jlc3BvbnNlID0gX2Muc2VudCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmV0Y2hfcmVzcG9uc2Uub2sgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgSHR0cENsaWVudEV4Y2VwdGlvbihcIkhUVFAgRXJyb3I6IFwiICsgZmV0Y2hfcmVzcG9uc2Uuc3RhdHVzICsgXCIgXCIgKyBmZXRjaF9yZXNwb25zZS5zdGF0dXNUZXh0KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXQgPSBuZXcgSHR0cENsaWVudFJlc3BvbnNlKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIF9iID0gcmV0O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzQgLyp5aWVsZCovLCBmZXRjaF9yZXNwb25zZS50ZXh0KCldO1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgMjpcclxuICAgICAgICAgICAgICAgICAgICAgICAgX2IuQm9keSA9IF9jLnNlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsyIC8qcmV0dXJuKi8sIHJldF07XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfTtcclxuICAgIC8qKiBQb3N0IG1ldGhvZCBmb3IgTm9kZS5qcy4gKi9cclxuICAgIEh0dHBDbGllbnQucHJvdG90eXBlLlBvc3RBc3luY19Ob2RlSlMgPSBmdW5jdGlvbiAodXJsLCBoZWFkZXJzLCByZXFfYm9keSwgcmVxX21lZGlhX3R5cGUpIHtcclxuICAgICAgICB2YXIgaHR0cHMgPSByZXF1aXJlKFwiaHR0cHNcIik7XHJcbiAgICAgICAgdmFyIGtlZXBBbGl2ZUFnZW50ID0gbmV3IGh0dHBzLkFnZW50KHsga2VlcEFsaXZlOiB0cnVlIH0pO1xyXG4gICAgICAgIHZhciB1cmxwYXJzZSA9IHJlcXVpcmUoXCJ1cmxcIik7XHJcbiAgICAgICAgdmFyIHVybG9iaiA9IHVybHBhcnNlLnBhcnNlKHVybCk7XHJcbiAgICAgICAgaWYgKGlzX251bGwodXJsb2JqLmhvc3QpKVxyXG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJVUkwgaXMgaW52YWxpZC5cIik7XHJcbiAgICAgICAgdmFyIG9wdGlvbnMgPSB7XHJcbiAgICAgICAgICAgIGhvc3Q6IHVybG9iai5ob3N0bmFtZSxcclxuICAgICAgICAgICAgcG9ydDogdXJsb2JqLnBvcnQsXHJcbiAgICAgICAgICAgIHBhdGg6IHVybG9iai5wYXRoLFxyXG4gICAgICAgICAgICByZWplY3RVbmF1dGhvcml6ZWQ6IHRoaXMuTm9kZUpTX0hUVFBTX0NsaWVudF9SZWplY3RfVW5hdXRob3JpemVkLFxyXG4gICAgICAgICAgICBtZXRob2Q6IFwiUE9TVFwiLFxyXG4gICAgICAgICAgICB0aW1lb3V0OiB0aGlzLlRpbWVvdXRNc2VjcyxcclxuICAgICAgICAgICAgYWdlbnQ6IGtlZXBBbGl2ZUFnZW50XHJcbiAgICAgICAgfTtcclxuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUsIHJlamVjdCkge1xyXG4gICAgICAgICAgICB2YXIgcmVxID0gaHR0cHMucmVxdWVzdChvcHRpb25zLCBmdW5jdGlvbiAocmVzKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAocmVzLnN0YXR1c0NvZGUgIT09IDIwMCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHJlamVjdChuZXcgSHR0cENsaWVudEV4Y2VwdGlvbihcIkhUVFAgRXJyb3I6IFwiICsgcmVzLnN0YXR1c0NvZGUgKyBcIiBcIiArIHJlcy5zdGF0dXNNZXNzYWdlKSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB2YXIgcmVjdl9zdHIgPSBcIlwiO1xyXG4gICAgICAgICAgICAgICAgcmVzLm9uKFwiZGF0YVwiLCBmdW5jdGlvbiAoYm9keSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHJlY3Zfc3RyICs9IGJvZHk7XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIHJlcy5vbihcImVuZFwiLCBmdW5jdGlvbiAoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdmFyIHJldCA9IG5ldyBIdHRwQ2xpZW50UmVzcG9uc2UoKTtcclxuICAgICAgICAgICAgICAgICAgICByZXQuQm9keSA9IHJlY3Zfc3RyO1xyXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUocmV0KTtcclxuICAgICAgICAgICAgIC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gYXJyW2N1ckJ5dGUrK10gPSAodG1wID4+IDE2KSAmIDB4RkY7XHJcbiAgICAgICAgYXJyW2N1ckJ5dGUrK10gPSAodG1wID4+IDgpICYgMHhGRjtcclxuICAgICAgICBhcnJbY3VyQnl0ZSsrXSA9IHRtcCAmIDB4RkY7XHJcbiAgICB9XHJcbiAgICBpZiAocGxhY2VIb2xkZXJzTGVuID09PSAyKSB7XHJcbiAgICAgICAgdG1wID1cclxuICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpKV0gPDwgMikgfFxyXG4gICAgICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpICsgMSldID4+IDQpO1xyXG4gICAgICAgIGFycltjdXJCeXRlKytdID0gdG1wICYgMHhGRjtcclxuICAgIH1cclxuICAgIGlmIChwbGFjZUhvbGRlcnNMZW4gPT09IDEpIHtcclxuICAgICAgICB0bXAgPVxyXG4gICAgICAgICAgICAocmV2TG9va3VwW2I2NC5jaGFyQ29kZUF0KGkpXSA8PCAxMCkgfFxyXG4gICAgICAgICAgICAgICAgKHJldkxvb2t1cFtiNjQuY2hhckNvZGVBdChpICsgMSldIDw8IDQpIHxcclxuICAgICAgICAgICAgICAgIChyZXZMb29rdXBbYjY0LmNoYXJDb2RlQXQoaSArIDIpXSA+PiAyKTtcclxuICAgICAgICBhcnJbY3VyQnl0ZSsrXSA9ICh0bXAgPj4gOCkgJiAweEZGO1xyXG4gICAgICAgIGFycltjdXJCeXRlKytdID0gdG1wICYgMHhGRjtcclxuICAgIH1cclxuICAgIHJldHVybiBhcnI7XHJcbn1cclxuZXhwb3J0cy5VdGlsX0Jhc2U2NF9EZWNvZGUgPSBVdGlsX0Jhc2U2NF9EZWNvZGU7XHJcbmZ1bmN0aW9uIHRyaXBsZXRUb0Jhc2U2NChudW0pIHtcclxuICAgIHJldHVybiBsb29rdXBbbnVtID4+IDE4ICYgMHgzRl0gK1xyXG4gICAgICAgIGxvb2t1cFtudW0g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