wazuh-ruby-client 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57ef8d1a92fc16dc1b46148569a6b6b4f3c9fe4ca1729ad705205efc5952f15c
4
- data.tar.gz: 5303f74c914950dcf658b69922dfae54940456dee9f60c30441f1971a9b9e849
3
+ metadata.gz: 12ff65b6ff7cd8db4eb54f34b9fee287cf470b834128660fec3a916c3f087e2e
4
+ data.tar.gz: 346f08089605c17c7912eb7566911b9a5668f8111bd8d37eaaf2e05b829f7dc9
5
5
  SHA512:
6
- metadata.gz: 7d81defd979d50b0d95d3654e95a61085a866018a513e0281e15036eb97bb8a1b30d42969db9d8f496329b6f7002aa21f3e6931b5c805adb8c4f7924113fcfa3
7
- data.tar.gz: dafe1028ee3baf8ab58621abdbef71bd8793bd1fadc866021c0b6f729be5349e93d07b52f0b395e8f498bdf2e72a3310573376435a42cc658bb8da5950ae1c97
6
+ metadata.gz: 62967df96da9b6733360621c2e9ef893853aa48723d92527105e1e14d43ce58272fb6b5702212e67f2981040ced1f7e203d4f181ff6add5520b01296302a2b03
7
+ data.tar.gz: d8ac38fbd67b25e6deeb1214b5ff1fa083869fd4465345b204d24498a87f86596f19ea9943242eaf8a4d54875caef0b1bd1a145a90fef3a5be5b242c9348a781
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.6]
11
+
12
+ - Support agent upgrade endpoint
13
+ - `/agents/:agent_id/upgrade_custom`
14
+ - `/agents/:agent_id/upgrade`
15
+
10
16
  ## [0.2.5]
11
17
 
12
18
  - Get all items with `offset_request`
@@ -131,6 +131,36 @@ module Wazuh
131
131
  get "/agents/#{agent_id}/upgrade_result", options
132
132
  end
133
133
 
134
+ # Upgrade agent using custom file.
135
+ #
136
+ # @param [String] :agent_id
137
+ # Agent unique ID.
138
+ # @option options [String] :file_path
139
+ # Path to the WPK file. The file must be on a folder on the Wazuh’s installation directory (by default, <code>/var/ossec</code>).
140
+ # @option options [String] :installer
141
+ # Installation script.
142
+ # @see https://documentation.wazuh.com/3.12/user-manual/api/reference.html#upgrade-agent-using-custom-file
143
+ def agent_upgrade_custom(agent_id, options = {})
144
+ put "/agents/#{agent_id}/upgrade_custom", options
145
+ end
146
+
147
+ # Upgrade agent using online repository
148
+ #
149
+ # Upgrade the agent using a WPK file from online repository.
150
+ # @param [String] :agent_id
151
+ # @option options [String] :wpk_repo
152
+ # WPK repository.
153
+ # @option options [String] :version
154
+ # Wazuh version
155
+ # @option options [Boolean] :use_http
156
+ # Use protocol HTTP. If it is false use HTTPS. By default the value is set to false.
157
+ # @option options [Integer] :force
158
+ # Force upgrade. Allow values: 0 or 1.
159
+ # @see https://documentation.wazuh.com/3.12/user-manual/api/reference.html#upgrade-agent-using-online-repository
160
+ def agent_upgrade(agent_id, options = {})
161
+ put "/agents/#{agent_id}/upgrade", options
162
+ end
163
+
134
164
  # Add a new agent
135
165
  #
136
166
  # @option options [name] :name
data/lib/wazuh/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Wazuh
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module WazuhRubyClient
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wazuh-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrtc0