wazuh-ruby-client 0.2.3 → 0.2.4

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/docs/Wazuh.html +4 -4
  4. data/docs/Wazuh/Api.html +2 -2
  5. data/docs/Wazuh/Api/Endpoints.html +3 -3
  6. data/docs/Wazuh/Api/Endpoints/ActiveResponse.html +1 -1
  7. data/docs/Wazuh/Api/Endpoints/Agents.html +3218 -594
  8. data/docs/Wazuh/Api/Endpoints/Cache.html +1 -1
  9. data/docs/Wazuh/Api/Endpoints/Ciscat.html +5 -3
  10. data/docs/Wazuh/Api/Endpoints/Cluster.html +48 -44
  11. data/docs/Wazuh/Api/Endpoints/Decoders.html +25 -17
  12. data/docs/Wazuh/Api/Endpoints/Experimental.html +60 -42
  13. data/docs/Wazuh/Api/Endpoints/Lists.html +15 -11
  14. data/docs/Wazuh/Api/Endpoints/Manager.html +26 -24
  15. data/docs/Wazuh/Api/Endpoints/Rootcheck.html +26 -20
  16. data/docs/Wazuh/Api/Endpoints/Rules.html +60 -42
  17. data/docs/Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html +11 -7
  18. data/docs/Wazuh/Api/Endpoints/Summary.html +1 -1
  19. data/docs/Wazuh/Api/Endpoints/Syscheck.html +29 -30
  20. data/docs/Wazuh/Api/Endpoints/Syscollector.html +43 -31
  21. data/docs/Wazuh/Api/Errors.html +3 -5
  22. data/docs/Wazuh/Api/Errors/WazuhError.html +79 -7
  23. data/docs/Wazuh/Client.html +6 -6
  24. data/docs/Wazuh/Config.html +1 -1
  25. data/docs/Wazuh/Logger.html +1 -1
  26. data/docs/Wazuh/{Faraday.html → Sawyer.html} +9 -9
  27. data/docs/Wazuh/{Faraday → Sawyer}/Connection.html +6 -6
  28. data/docs/Wazuh/{Faraday → Sawyer}/Request.html +10 -10
  29. data/docs/WazuhRubyClient.html +2 -2
  30. data/docs/_index.html +15 -52
  31. data/docs/class_list.html +1 -1
  32. data/docs/file.README.html +138 -2
  33. data/docs/index.html +138 -2
  34. data/docs/method_list.html +219 -83
  35. data/docs/top-level-namespace.html +1 -1
  36. data/lib/wazuh-ruby-client/version.rb +1 -1
  37. data/lib/wazuh/api/endpoints/agents.rb +2 -1
  38. data/lib/wazuh/version.rb +1 -1
  39. metadata +6 -11
  40. data/docs/.nojekyll +0 -0
  41. data/docs/Wazuh/Api/Errors/TooManyRequestsError.html +0 -398
  42. data/docs/Wazuh/Faraday/Response.html +0 -115
  43. data/docs/Wazuh/Faraday/Response/RaiseError.html +0 -191
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Sat Jan 25 00:19:39 2020 by
103
+ Generated on Tue Feb 18 20:12:27 2020 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.16 (ruby-2.5.1).
106
106
  </div>
@@ -1,3 +1,3 @@
1
1
  module WazuhRubyClient
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -290,7 +290,8 @@ module Wazuh
290
290
  # @option options [String] q
291
291
  # @see https://documentation.wazuh.com/3.11/user-manual/api/reference.html#get-agents-in-a-group
292
292
  def agents_by_group(group_id, options = {})
293
- get "/agents/groups/#{group_id}", options
293
+ data = get "/agents/groups/#{group_id}", options
294
+ data.items
294
295
  end
295
296
 
296
297
  # Get agents without group
data/lib/wazuh/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Wazuh
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wazuh-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrtc0
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,7 +152,6 @@ files:
152
152
  - LICENSE
153
153
  - README.md
154
154
  - Rakefile
155
- - docs/.nojekyll
156
155
  - docs/Wazuh.html
157
156
  - docs/Wazuh/Api.html
158
157
  - docs/Wazuh/Api/Endpoints.html
@@ -172,16 +171,13 @@ files:
172
171
  - docs/Wazuh/Api/Endpoints/Syscheck.html
173
172
  - docs/Wazuh/Api/Endpoints/Syscollector.html
174
173
  - docs/Wazuh/Api/Errors.html
175
- - docs/Wazuh/Api/Errors/TooManyRequestsError.html
176
174
  - docs/Wazuh/Api/Errors/WazuhError.html
177
175
  - docs/Wazuh/Client.html
178
176
  - docs/Wazuh/Config.html
179
- - docs/Wazuh/Faraday.html
180
- - docs/Wazuh/Faraday/Connection.html
181
- - docs/Wazuh/Faraday/Request.html
182
- - docs/Wazuh/Faraday/Response.html
183
- - docs/Wazuh/Faraday/Response/RaiseError.html
184
177
  - docs/Wazuh/Logger.html
178
+ - docs/Wazuh/Sawyer.html
179
+ - docs/Wazuh/Sawyer/Connection.html
180
+ - docs/Wazuh/Sawyer/Request.html
185
181
  - docs/WazuhRubyClient.html
186
182
  - docs/_index.html
187
183
  - docs/class_list.html
@@ -246,8 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
242
  - !ruby/object:Gem::Version
247
243
  version: '0'
248
244
  requirements: []
249
- rubyforge_project:
250
- rubygems_version: 2.7.6
245
+ rubygems_version: 3.0.3
251
246
  signing_key:
252
247
  specification_version: 4
253
248
  summary: Wazuh API client for Ruby
data/docs/.nojekyll DELETED
File without changes
@@ -1,398 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Wazuh::Api::Errors::TooManyRequestsError
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "Wazuh::Api::Errors::TooManyRequestsError";
19
- relpath = '../../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../../_index.html">Index (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Api.html" title="Wazuh::Api (module)">Api</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Errors.html" title="Wazuh::Api::Errors (module)">Errors</a></span></span>
41
- &raquo;
42
- <span class="title">TooManyRequestsError</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Wazuh::Api::Errors::TooManyRequestsError
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Faraday::Error</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Faraday::Error</li>
78
-
79
- <li class="next">Wazuh::Api::Errors::TooManyRequestsError</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/wazuh/api/errors/too_many_requests_error.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
109
- <ul class="summary">
110
-
111
- <li class="public ">
112
- <span class="summary_signature">
113
-
114
- <a href="#response-instance_method" title="#response (instance method)">#<strong>response</strong> &#x21d2; Object </a>
115
-
116
-
117
-
118
- </span>
119
-
120
-
121
-
122
-
123
- <span class="note title readonly">readonly</span>
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- <span class="summary_desc"><div class='inline'>
134
- <p>Returns the value of attribute response.</p>
135
- </div></span>
136
-
137
- </li>
138
-
139
-
140
- </ul>
141
-
142
-
143
-
144
-
145
-
146
- <h2>
147
- Instance Method Summary
148
- <small><a href="#" class="summary_toggle">collapse</a></small>
149
- </h2>
150
-
151
- <ul class="summary">
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(response) &#x21d2; TooManyRequestsError </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
- <span class="note title constructor">constructor</span>
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <span class="summary_desc"><div class='inline'>
173
- <p>A new instance of TooManyRequestsError.</p>
174
- </div></span>
175
-
176
- </li>
177
-
178
-
179
- <li class="public ">
180
- <span class="summary_signature">
181
-
182
- <a href="#message-instance_method" title="#message (instance method)">#<strong>message</strong> &#x21d2; Object </a>
183
-
184
-
185
-
186
- </span>
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
- <span class="summary_desc"><div class='inline'></div></span>
197
-
198
- </li>
199
-
200
-
201
- <li class="public ">
202
- <span class="summary_signature">
203
-
204
- <a href="#retry_after-instance_method" title="#retry_after (instance method)">#<strong>retry_after</strong> &#x21d2; Object </a>
205
-
206
-
207
-
208
- </span>
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- <span class="summary_desc"><div class='inline'></div></span>
219
-
220
- </li>
221
-
222
-
223
- </ul>
224
-
225
-
226
-
227
- <div id="constructor_details" class="method_details_list">
228
- <h2>Constructor Details</h2>
229
-
230
- <div class="method_details first">
231
- <h3 class="signature first" id="initialize-instance_method">
232
-
233
- #<strong>initialize</strong>(response) &#x21d2; <tt><span class='object_link'><a href="" title="Wazuh::Api::Errors::TooManyRequestsError (class)">TooManyRequestsError</a></span></tt>
234
-
235
-
236
-
237
-
238
-
239
- </h3><div class="docstring">
240
- <div class="discussion">
241
-
242
- <p>Returns a new instance of TooManyRequestsError</p>
243
-
244
-
245
- </div>
246
- </div>
247
- <div class="tags">
248
-
249
-
250
- </div><table class="source_code">
251
- <tr>
252
- <td>
253
- <pre class="lines">
254
-
255
-
256
- 8
257
- 9
258
- 10</pre>
259
- </td>
260
- <td>
261
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/errors/too_many_requests_error.rb', line 8</span>
262
-
263
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
264
- <span class='ivar'>@response</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span>
265
- <span class='kw'>end</span></pre>
266
- </td>
267
- </tr>
268
- </table>
269
- </div>
270
-
271
- </div>
272
-
273
- <div id="instance_attr_details" class="attr_details">
274
- <h2>Instance Attribute Details</h2>
275
-
276
-
277
- <span id=""></span>
278
- <div class="method_details first">
279
- <h3 class="signature first" id="response-instance_method">
280
-
281
- #<strong>response</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
282
-
283
-
284
-
285
-
286
-
287
- </h3><div class="docstring">
288
- <div class="discussion">
289
-
290
- <p>Returns the value of attribute response</p>
291
-
292
-
293
- </div>
294
- </div>
295
- <div class="tags">
296
-
297
-
298
- </div><table class="source_code">
299
- <tr>
300
- <td>
301
- <pre class="lines">
302
-
303
-
304
- 6
305
- 7
306
- 8</pre>
307
- </td>
308
- <td>
309
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/errors/too_many_requests_error.rb', line 6</span>
310
-
311
- <span class='kw'>def</span> <span class='id identifier rubyid_response'>response</span>
312
- <span class='ivar'>@response</span>
313
- <span class='kw'>end</span></pre>
314
- </td>
315
- </tr>
316
- </table>
317
- </div>
318
-
319
- </div>
320
-
321
-
322
- <div id="instance_method_details" class="method_details_list">
323
- <h2>Instance Method Details</h2>
324
-
325
-
326
- <div class="method_details first">
327
- <h3 class="signature first" id="message-instance_method">
328
-
329
- #<strong>message</strong> &#x21d2; <tt>Object</tt>
330
-
331
-
332
-
333
-
334
-
335
- </h3><table class="source_code">
336
- <tr>
337
- <td>
338
- <pre class="lines">
339
-
340
-
341
- 12
342
- 13
343
- 14</pre>
344
- </td>
345
- <td>
346
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/errors/too_many_requests_error.rb', line 12</span>
347
-
348
- <span class='kw'>def</span> <span class='id identifier rubyid_message'>message</span>
349
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Retry after </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_retry_after'>retry_after</span><span class='embexpr_end'>}</span><span class='tstring_content'> seconds</span><span class='tstring_end'>&quot;</span></span>
350
- <span class='kw'>end</span></pre>
351
- </td>
352
- </tr>
353
- </table>
354
- </div>
355
-
356
- <div class="method_details ">
357
- <h3 class="signature " id="retry_after-instance_method">
358
-
359
- #<strong>retry_after</strong> &#x21d2; <tt>Object</tt>
360
-
361
-
362
-
363
-
364
-
365
- </h3><table class="source_code">
366
- <tr>
367
- <td>
368
- <pre class="lines">
369
-
370
-
371
- 16
372
- 17
373
- 18</pre>
374
- </td>
375
- <td>
376
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/errors/too_many_requests_error.rb', line 16</span>
377
-
378
- <span class='kw'>def</span> <span class='id identifier rubyid_retry_after'>retry_after</span>
379
- <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>retry-after</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
380
- <span class='kw'>end</span></pre>
381
- </td>
382
- </tr>
383
- </table>
384
- </div>
385
-
386
- </div>
387
-
388
- </div>
389
-
390
- <div id="footer">
391
- Generated on Sat Jan 25 00:19:41 2020 by
392
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
393
- 0.9.16 (ruby-2.5.1).
394
- </div>
395
-
396
- </div>
397
- </body>
398
- </html>