opnsense_api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/lib/opnsense_api/client.rb +125 -0
  3. data/lib/opnsense_api/core/captive_portal/access.rb +25 -0
  4. data/lib/opnsense_api/core/captive_portal/service.rb +33 -0
  5. data/lib/opnsense_api/core/captive_portal/session.rb +29 -0
  6. data/lib/opnsense_api/core/captive_portal/settings.rb +41 -0
  7. data/lib/opnsense_api/core/captive_portal/voucher.rb +41 -0
  8. data/lib/opnsense_api/core/captive_portal.rb +36 -0
  9. data/lib/opnsense_api/core/core/firmware.rb +70 -0
  10. data/lib/opnsense_api/core/core/menu.rb +21 -0
  11. data/lib/opnsense_api/core/core/system.rb +29 -0
  12. data/lib/opnsense_api/core/core.rb +26 -0
  13. data/lib/opnsense_api/core/cron/service.rb +17 -0
  14. data/lib/opnsense_api/core/cron/settings.rb +45 -0
  15. data/lib/opnsense_api/core/cron.rb +21 -0
  16. data/lib/opnsense_api/core/diagnostics/activity.rb +17 -0
  17. data/lib/opnsense_api/core/diagnostics/dns.rb +17 -0
  18. data/lib/opnsense_api/core/diagnostics/dns_diagnostics.rb +25 -0
  19. data/lib/opnsense_api/core/diagnostics/firewall.rb +57 -0
  20. data/lib/opnsense_api/core/diagnostics/interface.rb +81 -0
  21. data/lib/opnsense_api/core/diagnostics/lv_template.rb +41 -0
  22. data/lib/opnsense_api/core/diagnostics/netflow.rb +37 -0
  23. data/lib/opnsense_api/core/diagnostics/network_insight.rb +29 -0
  24. data/lib/opnsense_api/core/diagnostics/packet_capture.rb +53 -0
  25. data/lib/opnsense_api/core/diagnostics/system.rb +17 -0
  26. data/lib/opnsense_api/core/diagnostics/system_health.rb +21 -0
  27. data/lib/opnsense_api/core/diagnostics/traffic.rb +21 -0
  28. data/lib/opnsense_api/core/diagnostics.rb +71 -0
  29. data/lib/opnsense_api/core/firewall/alias.rb +83 -0
  30. data/lib/opnsense_api/core/firewall/alias_util.rb +43 -0
  31. data/lib/opnsense_api/core/firewall/category.rb +46 -0
  32. data/lib/opnsense_api/core/firewall/filter_util.rb +18 -0
  33. data/lib/opnsense_api/core/firewall.rb +31 -0
  34. data/lib/opnsense_api/core/ids/service.rb +58 -0
  35. data/lib/opnsense_api/core/ids/settings.rb +142 -0
  36. data/lib/opnsense_api/core/ids.rb +21 -0
  37. data/lib/opnsense_api/core/interfaces/base.rb +44 -0
  38. data/lib/opnsense_api/core/interfaces/loopback_settings.rb +12 -0
  39. data/lib/opnsense_api/core/interfaces/vip_settings.rb +16 -0
  40. data/lib/opnsense_api/core/interfaces/vlan_settings.rb +12 -0
  41. data/lib/opnsense_api/core/interfaces/vxlan_settings.rb +12 -0
  42. data/lib/opnsense_api/core/interfaces.rb +32 -0
  43. data/lib/opnsense_api/core/ipsec/key_pairs.rb +46 -0
  44. data/lib/opnsense_api/core/ipsec/leases.rb +22 -0
  45. data/lib/opnsense_api/core/ipsec/legacy_subsystem.rb +22 -0
  46. data/lib/opnsense_api/core/ipsec/pre_shared_keys.rb +46 -0
  47. data/lib/opnsense_api/core/ipsec/sad.rb +22 -0
  48. data/lib/opnsense_api/core/ipsec/service.rb +34 -0
  49. data/lib/opnsense_api/core/ipsec/sessions.rb +30 -0
  50. data/lib/opnsense_api/core/ipsec/spd.rb +22 -0
  51. data/lib/opnsense_api/core/ipsec/tunnel.rb +42 -0
  52. data/lib/opnsense_api/core/ipsec.rb +56 -0
  53. data/lib/opnsense_api/core/monit/service.rb +38 -0
  54. data/lib/opnsense_api/core/monit/settings.rb +98 -0
  55. data/lib/opnsense_api/core/monit/status.rb +18 -0
  56. data/lib/opnsense_api/core/monit.rb +26 -0
  57. data/lib/opnsense_api/core/open_vpn/export.rb +38 -0
  58. data/lib/opnsense_api/core/open_vpn.rb +16 -0
  59. data/lib/opnsense_api/core/proxy/service.rb +50 -0
  60. data/lib/opnsense_api/core/proxy/settings.rb +114 -0
  61. data/lib/opnsense_api/core/proxy/template.rb +26 -0
  62. data/lib/opnsense_api/core/proxy.rb +26 -0
  63. data/lib/opnsense_api/core/routes/gateway.rb +18 -0
  64. data/lib/opnsense_api/core/routes/routes.rb +50 -0
  65. data/lib/opnsense_api/core/routes.rb +21 -0
  66. data/lib/opnsense_api/core/syslog/service.rb +38 -0
  67. data/lib/opnsense_api/core/syslog/settings.rb +46 -0
  68. data/lib/opnsense_api/core/syslog.rb +21 -0
  69. data/lib/opnsense_api/core/traffic_shaping/service.rb +26 -0
  70. data/lib/opnsense_api/core/traffic_shaping/settings.rb +94 -0
  71. data/lib/opnsense_api/core/traffic_shaping.rb +21 -0
  72. data/lib/opnsense_api/core/unbound/diagnostics.rb +38 -0
  73. data/lib/opnsense_api/core/unbound/service.rb +38 -0
  74. data/lib/opnsense_api/core/unbound/settings.rb +122 -0
  75. data/lib/opnsense_api/core/unbound.rb +26 -0
  76. data/lib/opnsense_api/core.rb +27 -0
  77. data/lib/opnsense_api/error.rb +5 -0
  78. data/lib/opnsense_api/version.rb +5 -0
  79. data/lib/opnsense_api.rb +10 -0
  80. data/sig/lib/opnsense_api/client.rbs +55 -0
  81. data/sig/lib/opnsense_api/core/captive_portal/access.rbs +17 -0
  82. data/sig/lib/opnsense_api/core/captive_portal/service.rbs +21 -0
  83. data/sig/lib/opnsense_api/core/captive_portal/session.rbs +19 -0
  84. data/sig/lib/opnsense_api/core/captive_portal/settings.rbs +25 -0
  85. data/sig/lib/opnsense_api/core/captive_portal/voucher.rbs +25 -0
  86. data/sig/lib/opnsense_api/core/captive_portal.rbs +17 -0
  87. data/sig/lib/opnsense_api/core/core/firmware.rbs +37 -0
  88. data/sig/lib/opnsense_api/core/core/menu.rbs +15 -0
  89. data/sig/lib/opnsense_api/core/core/system.rbs +19 -0
  90. data/sig/lib/opnsense_api/core/core.rbs +13 -0
  91. data/sig/lib/opnsense_api/core/cron/service.rbs +13 -0
  92. data/sig/lib/opnsense_api/core/cron/settings.rbs +27 -0
  93. data/sig/lib/opnsense_api/core/cron.rbs +11 -0
  94. data/sig/lib/opnsense_api/core/diagnostics/activity.rbs +13 -0
  95. data/sig/lib/opnsense_api/core/diagnostics/dns.rbs +13 -0
  96. data/sig/lib/opnsense_api/core/diagnostics/dns_diagnostics.rbs +15 -0
  97. data/sig/lib/opnsense_api/core/diagnostics/firewall.rbs +33 -0
  98. data/sig/lib/opnsense_api/core/diagnostics/interface.rbs +45 -0
  99. data/sig/lib/opnsense_api/core/diagnostics/lv_template.rbs +25 -0
  100. data/sig/lib/opnsense_api/core/diagnostics/netflow.rbs +23 -0
  101. data/sig/lib/opnsense_api/core/diagnostics/network_insight.rbs +19 -0
  102. data/sig/lib/opnsense_api/core/diagnostics/packet_capture.rbs +29 -0
  103. data/sig/lib/opnsense_api/core/diagnostics/system.rbs +13 -0
  104. data/sig/lib/opnsense_api/core/diagnostics/system_health.rbs +15 -0
  105. data/sig/lib/opnsense_api/core/diagnostics/traffic.rbs +15 -0
  106. data/sig/lib/opnsense_api/core/diagnostics.rbs +31 -0
  107. data/sig/lib/opnsense_api/core/firewall/alias.rbs +45 -0
  108. data/sig/lib/opnsense_api/core/firewall/alias_util.rbs +25 -0
  109. data/sig/lib/opnsense_api/core/firewall/category.rbs +27 -0
  110. data/sig/lib/opnsense_api/core/firewall/filter_util.rbs +13 -0
  111. data/sig/lib/opnsense_api/core/firewall.rbs +15 -0
  112. data/sig/lib/opnsense_api/core/ids/service.rbs +33 -0
  113. data/sig/lib/opnsense_api/core/ids/settings.rbs +75 -0
  114. data/sig/lib/opnsense_api/core/ids.rbs +11 -0
  115. data/sig/lib/opnsense_api/core/interfaces/base.rbs +25 -0
  116. data/sig/lib/opnsense_api/core/interfaces/loopback_settings.rbs +9 -0
  117. data/sig/lib/opnsense_api/core/interfaces/vip_settings.rbs +11 -0
  118. data/sig/lib/opnsense_api/core/interfaces/vlan_settings.rbs +9 -0
  119. data/sig/lib/opnsense_api/core/interfaces/vxlan_settings.rbs +9 -0
  120. data/sig/lib/opnsense_api/core/interfaces.rbs +15 -0
  121. data/sig/lib/opnsense_api/core/ipsec/key_pairs.rbs +27 -0
  122. data/sig/lib/opnsense_api/core/ipsec/leases.rbs +15 -0
  123. data/sig/lib/opnsense_api/core/ipsec/legacy_subsystem.rbs +15 -0
  124. data/sig/lib/opnsense_api/core/ipsec/pre_shared_keys.rbs +27 -0
  125. data/sig/lib/opnsense_api/core/ipsec/sad.rbs +15 -0
  126. data/sig/lib/opnsense_api/core/ipsec/service.rbs +21 -0
  127. data/sig/lib/opnsense_api/core/ipsec/sessions.rbs +19 -0
  128. data/sig/lib/opnsense_api/core/ipsec/spd.rbs +15 -0
  129. data/sig/lib/opnsense_api/core/ipsec/tunnel.rbs +25 -0
  130. data/sig/lib/opnsense_api/core/ipsec.rbs +25 -0
  131. data/sig/lib/opnsense_api/core/monit/service.rbs +23 -0
  132. data/sig/lib/opnsense_api/core/monit/settings.rbs +53 -0
  133. data/sig/lib/opnsense_api/core/monit/status.rbs +13 -0
  134. data/sig/lib/opnsense_api/core/monit.rbs +13 -0
  135. data/sig/lib/opnsense_api/core/open_vpn/export.rbs +23 -0
  136. data/sig/lib/opnsense_api/core/open_vpn.rbs +9 -0
  137. data/sig/lib/opnsense_api/core/proxy/service.rbs +29 -0
  138. data/sig/lib/opnsense_api/core/proxy/settings.rbs +61 -0
  139. data/sig/lib/opnsense_api/core/proxy/template.rbs +17 -0
  140. data/sig/lib/opnsense_api/core/proxy.rbs +13 -0
  141. data/sig/lib/opnsense_api/core/routes/gateway.rbs +13 -0
  142. data/sig/lib/opnsense_api/core/routes/routes.rbs +29 -0
  143. data/sig/lib/opnsense_api/core/routes.rbs +11 -0
  144. data/sig/lib/opnsense_api/core/syslog/service.rbs +23 -0
  145. data/sig/lib/opnsense_api/core/syslog/settings.rbs +27 -0
  146. data/sig/lib/opnsense_api/core/syslog.rbs +11 -0
  147. data/sig/lib/opnsense_api/core/traffic_shaping/service.rbs +17 -0
  148. data/sig/lib/opnsense_api/core/traffic_shaping/settings.rbs +51 -0
  149. data/sig/lib/opnsense_api/core/traffic_shaping.rbs +11 -0
  150. data/sig/lib/opnsense_api/core/unbound/diagnostics.rbs +23 -0
  151. data/sig/lib/opnsense_api/core/unbound/service.rbs +23 -0
  152. data/sig/lib/opnsense_api/core/unbound/settings.rbs +65 -0
  153. data/sig/lib/opnsense_api/core/unbound.rbs +13 -0
  154. data/sig/lib/opnsense_api/core.rbs +7 -0
  155. data/sig/lib/opnsense_api/version.rbs +3 -0
  156. metadata +242 -0
@@ -0,0 +1,15 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Interfaces
4
+ include OPNsenseAPI::Core
5
+
6
+ def loopback_settings: () -> LoopbackSettings
7
+
8
+ def vip_settings: () -> VIPSettings
9
+
10
+ def vlan_settings: () -> VLANSettings
11
+
12
+ def vxlan_settings: () -> VXLANSettings
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class KeyPairs
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_item: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def del_item: (uuid: String) -> untyped
12
+
13
+ def get_key_pair: (type: String, ?size: Integer?) -> untyped
14
+
15
+ def get: (?Hash[untyped, untyped] params) -> untyped
16
+
17
+ def get_item: (?uuid: String?) -> untyped
18
+
19
+ def search_item: (?Hash[untyped, untyped] body) -> untyped
20
+
21
+ def set: (?Hash[untyped, untyped] body) -> untyped
22
+
23
+ def set_item: (uuid: String, ?body: Hash[untyped, untyped]) -> untyped
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class Leases
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def pools: (?Hash[untyped, untyped] params) -> untyped
10
+
11
+ def search: (?Hash[untyped, untyped] params) -> untyped
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class LegacySubsystem
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def apply_config: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def status: (?Hash[untyped, untyped] params) -> untyped
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class PreSharedKeys
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_item: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def del_item: (uuid: String) -> untyped
12
+
13
+ def get: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def get_item: (?uuid: String?) -> untyped
16
+
17
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
18
+
19
+ def search_item: (?Hash[untyped, untyped] body) -> untyped
20
+
21
+ def set: (?Hash[untyped, untyped] body) -> untyped
22
+
23
+ def set_item: (uuid: String, ?body: Hash[untyped, untyped]) -> untyped
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class SAD
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def delete: (?Hash[untyped, untyped] body, id: String) -> untyped
10
+
11
+ def search: (?Hash[untyped, untyped] params) -> untyped
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class Service
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def restart: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def start: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def status: (?Hash[untyped, untyped] params) -> untyped
16
+
17
+ def stop: (?Hash[untyped, untyped] body) -> untyped
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class Sessions
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def connect: (?Hash[untyped, untyped] body, id: String) -> untyped
10
+
11
+ def disconnect: (?Hash[untyped, untyped] body, id: String) -> untyped
12
+
13
+ def search_phase_1: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def search_phase_2: (?Hash[untyped, untyped] params) -> untyped
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class SPD
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def delete: (?Hash[untyped, untyped] body, id: String) -> untyped
10
+
11
+ def search: (?Hash[untyped, untyped] params) -> untyped
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ class Tunnel
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def del_phase_1: (?Hash[untyped, untyped] body, ikeid: String) -> untyped
10
+
11
+ def del_phase_2: (?Hash[untyped, untyped] body, seqid: String) -> untyped
12
+
13
+ def search_phase_1: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def search_phase_2: (?Hash[untyped, untyped] params) -> untyped
16
+
17
+ def toggle: (?Hash[untyped, untyped] body, ?enabled: String?) -> untyped
18
+
19
+ def toggle_phase_1: (?Hash[untyped, untyped] body, ikeid: String, ?enabled: String?) -> untyped
20
+
21
+ def toggle_phase_2: (?Hash[untyped, untyped] body, seqid: String, ?enabled: String?) -> untyped
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class IPSec
4
+ include OPNsenseAPI::Core
5
+
6
+ def key_pairs: () -> KeyPairs
7
+
8
+ def leases: () -> Leases
9
+
10
+ def legacy_subsystem: () -> LegacySubsystem
11
+
12
+ def pre_shared_keys: () -> PreSharedKeys
13
+
14
+ def sad: () -> SAD
15
+
16
+ def service: () -> Service
17
+
18
+ def sessions: () -> Sessions
19
+
20
+ def spd: () -> SPD
21
+
22
+ def tunnel: () -> Tunnel
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Monit
4
+ class Service
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def check: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def restart: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def start: (?Hash[untyped, untyped] body) -> untyped
16
+
17
+ def status: (?Hash[untyped, untyped] params) -> untyped
18
+
19
+ def stop: (?Hash[untyped, untyped] body) -> untyped
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,53 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Monit
4
+ class Settings
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_alert: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def add_service: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def add_test: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def del_alert: (?Hash[untyped, untyped] body, uuid: String) -> untyped
16
+
17
+ def del_service: (?Hash[untyped, untyped] body, uuid: String) -> untyped
18
+
19
+ def del_test: (?Hash[untyped, untyped] body, uuid: String) -> untyped
20
+
21
+ def dirty: (?Hash[untyped, untyped] params) -> untyped
22
+
23
+ def get: (?Hash[untyped, untyped] params) -> untyped
24
+
25
+ def get_alert: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
26
+
27
+ def get_general: (?Hash[untyped, untyped] params) -> untyped
28
+
29
+ def get_service: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
30
+
31
+ def get_test: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
32
+
33
+ def search_alert: (?Hash[untyped, untyped] body) -> untyped
34
+
35
+ def search_service: (?Hash[untyped, untyped] body) -> untyped
36
+
37
+ def search_test: (?Hash[untyped, untyped] body) -> untyped
38
+
39
+ def set: (?Hash[untyped, untyped] body) -> untyped
40
+
41
+ def set_alert: (?Hash[untyped, untyped] body, uuid: String) -> untyped
42
+
43
+ def set_service: (?Hash[untyped, untyped] body, uuid: String) -> untyped
44
+
45
+ def set_test: (?Hash[untyped, untyped] body, uuid: String) -> untyped
46
+
47
+ def toggle_alert: (?Hash[untyped, untyped] body, uuid: String, ?enabled: bool?) -> untyped
48
+
49
+ def toggle_service: (?Hash[untyped, untyped] body, uuid: String, ?enabled: bool?) -> untyped
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,13 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Monit
4
+ class Status
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def get: (?Hash[untyped, untyped] params) -> untyped
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Monit
4
+ include OPNsenseAPI::Core
5
+
6
+ def service: () -> Service
7
+
8
+ def settings: () -> Settings
9
+
10
+ def status: () -> Status
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class OpenVPN
4
+ class Export
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def accounts: (?Hash[untyped, untyped] params, ?vpnid: String?) -> untyped
10
+
11
+ def download: (?Hash[untyped, untyped] body, vpnid: String, ?certref: String?) -> untyped
12
+
13
+ def providers: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def store_presets: (?Hash[untyped, untyped] body, vpnid: String) -> untyped
16
+
17
+ def templates: (?Hash[untyped, untyped] params) -> untyped
18
+
19
+ def validate_presets: (?Hash[untyped, untyped] body, vpnid: String) -> untyped
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,9 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class OpenVPN
4
+ include OPNsenseAPI::Core
5
+
6
+ def export: () -> Export
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,29 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Proxy
4
+ class Service
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def download_acls: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def fetch_acls: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def refresh_template: (?Hash[untyped, untyped] body) -> untyped
16
+
17
+ def reset: (?Hash[untyped, untyped] body) -> untyped
18
+
19
+ def restart: (?Hash[untyped, untyped] body) -> untyped
20
+
21
+ def start: (?Hash[untyped, untyped] body) -> untyped
22
+
23
+ def status: (?Hash[untyped, untyped] body) -> untyped
24
+
25
+ def stop: (?Hash[untyped, untyped] body) -> untyped
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,61 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Proxy
4
+ class Settings
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_pac_match: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def add_pac_proxy: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def add_pac_rule: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def add_remote_blacklist: (?Hash[untyped, untyped] body) -> untyped
16
+
17
+ def del_pac_match: (?Hash[untyped, untyped] body, uuid: String) -> untyped
18
+
19
+ def del_pac_proxy: (?Hash[untyped, untyped] body, uuid: String) -> untyped
20
+
21
+ def del_pac_rule: (?Hash[untyped, untyped] body, uuid: String) -> untyped
22
+
23
+ def del_remote_blacklist: (?Hash[untyped, untyped] body, uuid: String) -> untyped
24
+
25
+ def fetch_rb_cron: (?Hash[untyped, untyped] body) -> untyped
26
+
27
+ def get: (?Hash[untyped, untyped] params) -> untyped
28
+
29
+ def get_pac_match: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
30
+
31
+ def get_pac_proxy: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
32
+
33
+ def get_pac_rule: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
34
+
35
+ def get_remote_blacklist: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
36
+
37
+ def search_pac_match: (?Hash[untyped, untyped] body) -> untyped
38
+
39
+ def search_pac_proxy: (?Hash[untyped, untyped] body) -> untyped
40
+
41
+ def search_pac_rule: (?Hash[untyped, untyped] body) -> untyped
42
+
43
+ def search_remote_blacklists: (?Hash[untyped, untyped] body) -> untyped
44
+
45
+ def set: (?Hash[untyped, untyped] body) -> untyped
46
+
47
+ def set_pac_match: (?Hash[untyped, untyped] body, uuid: String) -> untyped
48
+
49
+ def set_pac_proxy: (?Hash[untyped, untyped] body, uuid: String) -> untyped
50
+
51
+ def set_pac_rule: (?Hash[untyped, untyped] body, uuid: String) -> untyped
52
+
53
+ def set_remote_blacklist: (?Hash[untyped, untyped] body, uuid: String) -> untyped
54
+
55
+ def toggle_pac_rule: (?Hash[untyped, untyped] body, uuid: String) -> untyped
56
+
57
+ def toggle_remote_blacklist: (?Hash[untyped, untyped] body, uuid: String) -> untyped
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,17 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Proxy
4
+ class Template
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def get: (?Hash[untyped, untyped] params) -> untyped
10
+
11
+ def reset: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def set: (?Hash[untyped, untyped] body) -> untyped
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Proxy
4
+ include OPNsenseAPI::Core
5
+
6
+ def service: () -> Service
7
+
8
+ def settings: () -> Settings
9
+
10
+ def template: () -> Template
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Routes
4
+ class Gateway
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def status: (?Hash[untyped, untyped] params) -> untyped
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Routes
4
+ class Routes
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_route: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def del_route: (?Hash[untyped, untyped] body, uuid: String) -> untyped
12
+
13
+ def get: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def get_route: (?Hash[untyped, untyped] params, ?uuid: String?) -> untyped
16
+
17
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
18
+
19
+ def search_route: (?Hash[untyped, untyped] body) -> untyped
20
+
21
+ def set: (?Hash[untyped, untyped] body) -> untyped
22
+
23
+ def set_route: (?Hash[untyped, untyped] body, uuid: String) -> untyped
24
+
25
+ def toggle_route: (?Hash[untyped, untyped] body, uuid: String, ?disabled: bool?) -> untyped
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,11 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Routes
4
+ include OPNsenseAPI::Core
5
+
6
+ def gateway: () -> Gateway
7
+
8
+ def routes: () -> Routes
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,23 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Syslog
4
+ class Service
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def restart: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def start: (?Hash[untyped, untyped] body) -> untyped
14
+
15
+ def stats: (?Hash[untyped, untyped] params) -> untyped
16
+
17
+ def status: (?Hash[untyped, untyped] params) -> untyped
18
+
19
+ def stop: (?Hash[untyped, untyped] body) -> untyped
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Syslog
4
+ class Settings
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def add_destination: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def del_destination: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def get: (?Hash[untyped, untyped] params) -> untyped
14
+
15
+ def get_destination: (?Hash[untyped, untyped] params) -> untyped
16
+
17
+ def search_destination: (?Hash[untyped, untyped] body) -> untyped
18
+
19
+ def set: (?Hash[untyped, untyped] body) -> untyped
20
+
21
+ def set_destination: (?Hash[untyped, untyped] body, uuid: String) -> untyped
22
+
23
+ def toggle_destination: (?Hash[untyped, untyped] body, uuid: String, ?enabled: bool?) -> untyped
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,11 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class Syslog
4
+ include OPNsenseAPI::Core
5
+
6
+ def service: () -> Service
7
+
8
+ def settings: () -> Settings
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ module OPNsenseAPI
2
+ module Core
3
+ class TrafficShaping
4
+ class Service
5
+ include OPNsenseAPI::Core
6
+
7
+ BASE_PATH: String
8
+
9
+ def flush_reload: (?Hash[untyped, untyped] body) -> untyped
10
+
11
+ def reconfigure: (?Hash[untyped, untyped] body) -> untyped
12
+
13
+ def statistics: (?Hash[untyped, untyped] params) -> untyped
14
+ end
15
+ end
16
+ end
17
+ end