opnsense_api 0.1.0 → 0.2.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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/opnsense_api/client.rb +16 -1
  3. data/lib/opnsense_api/core/captive_portal/access.rb +15 -0
  4. data/lib/opnsense_api/core/captive_portal/service.rb +15 -0
  5. data/lib/opnsense_api/core/captive_portal/session.rb +15 -0
  6. data/lib/opnsense_api/core/captive_portal/settings.rb +15 -0
  7. data/lib/opnsense_api/core/captive_portal/voucher.rb +15 -0
  8. data/lib/opnsense_api/core/captive_portal.rb +15 -0
  9. data/lib/opnsense_api/core/core/firmware.rb +43 -0
  10. data/lib/opnsense_api/core/core/menu.rb +15 -0
  11. data/lib/opnsense_api/core/core/system.rb +16 -1
  12. data/lib/opnsense_api/core/core.rb +15 -0
  13. data/lib/opnsense_api/core/cron/service.rb +15 -0
  14. data/lib/opnsense_api/core/cron/settings.rb +15 -0
  15. data/lib/opnsense_api/core/cron.rb +15 -0
  16. data/lib/opnsense_api/core/diagnostics/activity.rb +15 -0
  17. data/lib/opnsense_api/core/diagnostics/dns.rb +15 -0
  18. data/lib/opnsense_api/core/diagnostics/dns_diagnostics.rb +15 -0
  19. data/lib/opnsense_api/core/diagnostics/firewall.rb +15 -0
  20. data/lib/opnsense_api/core/diagnostics/interface.rb +15 -0
  21. data/lib/opnsense_api/core/diagnostics/lv_template.rb +15 -0
  22. data/lib/opnsense_api/core/diagnostics/netflow.rb +15 -0
  23. data/lib/opnsense_api/core/diagnostics/network_insight.rb +15 -0
  24. data/lib/opnsense_api/core/diagnostics/packet_capture.rb +15 -0
  25. data/lib/opnsense_api/core/diagnostics/system.rb +15 -0
  26. data/lib/opnsense_api/core/diagnostics/system_health.rb +15 -0
  27. data/lib/opnsense_api/core/diagnostics/traffic.rb +15 -0
  28. data/lib/opnsense_api/core/diagnostics.rb +15 -0
  29. data/lib/opnsense_api/core/firewall/alias.rb +15 -0
  30. data/lib/opnsense_api/core/firewall/alias_util.rb +15 -0
  31. data/lib/opnsense_api/core/firewall/category.rb +15 -0
  32. data/lib/opnsense_api/core/firewall/filter_util.rb +15 -0
  33. data/lib/opnsense_api/core/firewall.rb +15 -0
  34. data/lib/opnsense_api/core/ids/service.rb +15 -0
  35. data/lib/opnsense_api/core/ids/settings.rb +15 -0
  36. data/lib/opnsense_api/core/ids.rb +15 -0
  37. data/lib/opnsense_api/core/interfaces/base.rb +15 -0
  38. data/lib/opnsense_api/core/interfaces/loopback_settings.rb +15 -0
  39. data/lib/opnsense_api/core/interfaces/vip_settings.rb +15 -0
  40. data/lib/opnsense_api/core/interfaces/vlan_settings.rb +15 -0
  41. data/lib/opnsense_api/core/interfaces/vxlan_settings.rb +15 -0
  42. data/lib/opnsense_api/core/interfaces.rb +15 -0
  43. data/lib/opnsense_api/core/ipsec/key_pairs.rb +15 -0
  44. data/lib/opnsense_api/core/ipsec/leases.rb +15 -0
  45. data/lib/opnsense_api/core/ipsec/legacy_subsystem.rb +15 -0
  46. data/lib/opnsense_api/core/ipsec/pre_shared_keys.rb +15 -0
  47. data/lib/opnsense_api/core/ipsec/sad.rb +15 -0
  48. data/lib/opnsense_api/core/ipsec/service.rb +15 -0
  49. data/lib/opnsense_api/core/ipsec/sessions.rb +15 -0
  50. data/lib/opnsense_api/core/ipsec/spd.rb +15 -0
  51. data/lib/opnsense_api/core/ipsec/tunnel.rb +15 -0
  52. data/lib/opnsense_api/core/ipsec.rb +15 -0
  53. data/lib/opnsense_api/core/monit/service.rb +15 -0
  54. data/lib/opnsense_api/core/monit/settings.rb +15 -0
  55. data/lib/opnsense_api/core/monit/status.rb +15 -0
  56. data/lib/opnsense_api/core/monit.rb +15 -0
  57. data/lib/opnsense_api/core/open_vpn/export.rb +15 -0
  58. data/lib/opnsense_api/core/open_vpn.rb +15 -0
  59. data/lib/opnsense_api/core/proxy/service.rb +15 -0
  60. data/lib/opnsense_api/core/proxy/settings.rb +15 -0
  61. data/lib/opnsense_api/core/proxy/template.rb +15 -0
  62. data/lib/opnsense_api/core/proxy.rb +15 -0
  63. data/lib/opnsense_api/core/routes/gateway.rb +15 -0
  64. data/lib/opnsense_api/core/routes/routes.rb +15 -0
  65. data/lib/opnsense_api/core/routes.rb +15 -0
  66. data/lib/opnsense_api/core/syslog/service.rb +15 -0
  67. data/lib/opnsense_api/core/syslog/settings.rb +15 -0
  68. data/lib/opnsense_api/core/syslog.rb +15 -0
  69. data/lib/opnsense_api/core/traffic_shaping/service.rb +15 -0
  70. data/lib/opnsense_api/core/traffic_shaping/settings.rb +15 -0
  71. data/lib/opnsense_api/core/traffic_shaping.rb +15 -0
  72. data/lib/opnsense_api/core/unbound/diagnostics.rb +15 -0
  73. data/lib/opnsense_api/core/unbound/service.rb +15 -0
  74. data/lib/opnsense_api/core/unbound/settings.rb +15 -0
  75. data/lib/opnsense_api/core/unbound.rb +15 -0
  76. data/lib/opnsense_api/core.rb +15 -0
  77. data/lib/opnsense_api/error.rb +15 -0
  78. data/lib/opnsense_api/version.rb +16 -1
  79. data/lib/opnsense_api.rb +15 -0
  80. data/sig/lib/opnsense_api/client.rbs +1 -1
  81. data/sig/lib/opnsense_api/core/core/firmware.rbs +14 -0
  82. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa0e7a66c7fa38022e9b36abbbfe4b360b6eacf44a3a23882186e5c49cd4c5e7
4
- data.tar.gz: b27402b19cf88535a3e9801258d9f7e483c16ae57279e4e17397414b8a3967a5
3
+ metadata.gz: 7e9db66314870ad608576b21f08fc6fc8c959abc3fc60917f6547658f13bf6cb
4
+ data.tar.gz: a59b14cb12f5acdcc21b73a56bff75e2b28e7519f1fa8580be98784d4fe33b80
5
5
  SHA512:
6
- metadata.gz: 9de15c076d171d616f9842966fb0cc5a7b266269b9f1d540a340d7b152ac381d5eeeae7086498931e553a4b540f99db037c21b0c2a4402bfd2c4465f24462f96
7
- data.tar.gz: 2f3167582c2d1d6d8dc31646f3dbff528760e56e9bf76f98ec7ef602558973d0886c6c1b990e0a9bab3b447ed544424e049195ed2046c736015ea3ae3b59cbc5
6
+ metadata.gz: 3998dd159ec52ca3a7b7e97726a79f7ceb7af3d03bf55e8efb45bd7714d073da1e1192bfcd708c6c53c4904a7b66c532e364e4e8cc93c49f94acfcb8033e7abc
7
+ data.tar.gz: c8454e4d48a7bec69b4850e0c0e9d2d2d5d532b1f4f99be3f50eff97e56ea1930efd6ce0dcf50acb417604839d7961e3bdb478691148724ba0ed8755d82fba91
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  require 'json'
4
19
  require 'net/http'
5
20
 
@@ -9,7 +24,7 @@ module OPNsenseAPI
9
24
 
10
25
  attr_reader :host, :api_key, :api_secret, :options
11
26
 
12
- def initialize(host, api_key, api_secret, **options)
27
+ def initialize(host:, api_key:, api_secret:, **options)
13
28
  @host = host.is_a?(URI) ? host : URI(host)
14
29
  @api_key = api_key
15
30
  @api_secret = api_secret
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class CaptivePortal
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class CaptivePortal
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class CaptivePortal
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class CaptivePortal
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class CaptivePortal
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  # @see https://docs.opnsense.org/development/api/core/captiveportal.html
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Core
@@ -64,6 +79,34 @@ module OPNsenseAPI
64
79
  def changelog(version:)
65
80
  @client.get("#{BASE_PATH}/changelog/#{version}")
66
81
  end
82
+
83
+ def install(pkg_name, body = {})
84
+ @client.post("#{BASE_PATH}/install/#{pkg_name}", body)
85
+ end
86
+
87
+ def reinstall(pkg_name, body = {})
88
+ @client.post("#{BASE_PATH}/reinstall/#{pkg_name}", body)
89
+ end
90
+
91
+ def remove(pkg_name, body = {})
92
+ @client.post("#{BASE_PATH}/remove/#{pkg_name}", body)
93
+ end
94
+
95
+ def lock(pkg_name, body = {})
96
+ @client.post("#{BASE_PATH}/lock/#{pkg_name}", body)
97
+ end
98
+
99
+ def unlock(pkg_name, body = {})
100
+ @client.post("#{BASE_PATH}/unlock/#{pkg_name}", body)
101
+ end
102
+
103
+ def details(pkg_name, body = {})
104
+ @client.post("#{BASE_PATH}/details/#{pkg_name}", body)
105
+ end
106
+
107
+ def license(pkg_name, body = {})
108
+ @client.post("#{BASE_PATH}/license/#{pkg_name}", body)
109
+ end
67
110
  end
68
111
  end
69
112
  end
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Core
@@ -1,12 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Core
6
21
  class System
7
22
  include OPNsenseAPI::Core
8
23
 
9
- BASE_PATH = 'core/system'
24
+ BASE_PATH = '/core/system'
10
25
 
11
26
  def dismiss_status
12
27
  @client.get("#{BASE_PATH}/dismissStatus")
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  # @see https://docs.opnsense.org/development/api/core/core.html
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Cron
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Cron
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  # @see https://docs.opnsense.org/development/api/core/cron.html
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  class Diagnostics
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Copyright (C) 2022 Zach Bensley
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
3
18
  module OPNsenseAPI
4
19
  module Core
5
20
  # @see https://docs.opnsense.org/development/api/core/diagnostics.html