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.
- checksums.yaml +4 -4
- data/lib/opnsense_api/client.rb +16 -1
- data/lib/opnsense_api/core/captive_portal/access.rb +15 -0
- data/lib/opnsense_api/core/captive_portal/service.rb +15 -0
- data/lib/opnsense_api/core/captive_portal/session.rb +15 -0
- data/lib/opnsense_api/core/captive_portal/settings.rb +15 -0
- data/lib/opnsense_api/core/captive_portal/voucher.rb +15 -0
- data/lib/opnsense_api/core/captive_portal.rb +15 -0
- data/lib/opnsense_api/core/core/firmware.rb +43 -0
- data/lib/opnsense_api/core/core/menu.rb +15 -0
- data/lib/opnsense_api/core/core/system.rb +16 -1
- data/lib/opnsense_api/core/core.rb +15 -0
- data/lib/opnsense_api/core/cron/service.rb +15 -0
- data/lib/opnsense_api/core/cron/settings.rb +15 -0
- data/lib/opnsense_api/core/cron.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/activity.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/dns.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/dns_diagnostics.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/firewall.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/interface.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/lv_template.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/netflow.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/network_insight.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/packet_capture.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/system.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/system_health.rb +15 -0
- data/lib/opnsense_api/core/diagnostics/traffic.rb +15 -0
- data/lib/opnsense_api/core/diagnostics.rb +15 -0
- data/lib/opnsense_api/core/firewall/alias.rb +15 -0
- data/lib/opnsense_api/core/firewall/alias_util.rb +15 -0
- data/lib/opnsense_api/core/firewall/category.rb +15 -0
- data/lib/opnsense_api/core/firewall/filter_util.rb +15 -0
- data/lib/opnsense_api/core/firewall.rb +15 -0
- data/lib/opnsense_api/core/ids/service.rb +15 -0
- data/lib/opnsense_api/core/ids/settings.rb +15 -0
- data/lib/opnsense_api/core/ids.rb +15 -0
- data/lib/opnsense_api/core/interfaces/base.rb +15 -0
- data/lib/opnsense_api/core/interfaces/loopback_settings.rb +15 -0
- data/lib/opnsense_api/core/interfaces/vip_settings.rb +15 -0
- data/lib/opnsense_api/core/interfaces/vlan_settings.rb +15 -0
- data/lib/opnsense_api/core/interfaces/vxlan_settings.rb +15 -0
- data/lib/opnsense_api/core/interfaces.rb +15 -0
- data/lib/opnsense_api/core/ipsec/key_pairs.rb +15 -0
- data/lib/opnsense_api/core/ipsec/leases.rb +15 -0
- data/lib/opnsense_api/core/ipsec/legacy_subsystem.rb +15 -0
- data/lib/opnsense_api/core/ipsec/pre_shared_keys.rb +15 -0
- data/lib/opnsense_api/core/ipsec/sad.rb +15 -0
- data/lib/opnsense_api/core/ipsec/service.rb +15 -0
- data/lib/opnsense_api/core/ipsec/sessions.rb +15 -0
- data/lib/opnsense_api/core/ipsec/spd.rb +15 -0
- data/lib/opnsense_api/core/ipsec/tunnel.rb +15 -0
- data/lib/opnsense_api/core/ipsec.rb +15 -0
- data/lib/opnsense_api/core/monit/service.rb +15 -0
- data/lib/opnsense_api/core/monit/settings.rb +15 -0
- data/lib/opnsense_api/core/monit/status.rb +15 -0
- data/lib/opnsense_api/core/monit.rb +15 -0
- data/lib/opnsense_api/core/open_vpn/export.rb +15 -0
- data/lib/opnsense_api/core/open_vpn.rb +15 -0
- data/lib/opnsense_api/core/proxy/service.rb +15 -0
- data/lib/opnsense_api/core/proxy/settings.rb +15 -0
- data/lib/opnsense_api/core/proxy/template.rb +15 -0
- data/lib/opnsense_api/core/proxy.rb +15 -0
- data/lib/opnsense_api/core/routes/gateway.rb +15 -0
- data/lib/opnsense_api/core/routes/routes.rb +15 -0
- data/lib/opnsense_api/core/routes.rb +15 -0
- data/lib/opnsense_api/core/syslog/service.rb +15 -0
- data/lib/opnsense_api/core/syslog/settings.rb +15 -0
- data/lib/opnsense_api/core/syslog.rb +15 -0
- data/lib/opnsense_api/core/traffic_shaping/service.rb +15 -0
- data/lib/opnsense_api/core/traffic_shaping/settings.rb +15 -0
- data/lib/opnsense_api/core/traffic_shaping.rb +15 -0
- data/lib/opnsense_api/core/unbound/diagnostics.rb +15 -0
- data/lib/opnsense_api/core/unbound/service.rb +15 -0
- data/lib/opnsense_api/core/unbound/settings.rb +15 -0
- data/lib/opnsense_api/core/unbound.rb +15 -0
- data/lib/opnsense_api/core.rb +15 -0
- data/lib/opnsense_api/error.rb +15 -0
- data/lib/opnsense_api/version.rb +16 -1
- data/lib/opnsense_api.rb +15 -0
- data/sig/lib/opnsense_api/client.rbs +1 -1
- data/sig/lib/opnsense_api/core/core/firmware.rbs +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9db66314870ad608576b21f08fc6fc8c959abc3fc60917f6547658f13bf6cb
|
4
|
+
data.tar.gz: a59b14cb12f5acdcc21b73a56bff75e2b28e7519f1fa8580be98784d4fe33b80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3998dd159ec52ca3a7b7e97726a79f7ceb7af3d03bf55e8efb45bd7714d073da1e1192bfcd708c6c53c4904a7b66c532e364e4e8cc93c49f94acfcb8033e7abc
|
7
|
+
data.tar.gz: c8454e4d48a7bec69b4850e0c0e9d2d2d5d532b1f4f99be3f50eff97e56ea1930efd6ce0dcf50acb417604839d7961e3bdb478691148724ba0ed8755d82fba91
|
data/lib/opnsense_api/client.rb
CHANGED
@@ -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
|
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
|