foreman_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +2 -0
- data/Rakefile +0 -1
- data/doc/ForemanApi.html +5 -5
- data/doc/ForemanApi/Resources.html +6 -6
- data/doc/ForemanApi/Resources/Architecture.html +260 -127
- data/doc/ForemanApi/Resources/Audit.html +118 -51
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
- data/doc/ForemanApi/Resources/Bookmark.html +266 -131
- data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
- data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
- data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
- data/doc/ForemanApi/Resources/Dashboard.html +53 -27
- data/doc/ForemanApi/Resources/Domain.html +275 -137
- data/doc/ForemanApi/Resources/Environment.html +254 -123
- data/doc/ForemanApi/Resources/FactValue.html +75 -32
- data/doc/ForemanApi/Resources/Home.html +92 -43
- data/doc/ForemanApi/Resources/Host.html +401 -212
- data/doc/ForemanApi/Resources/HostClass.html +698 -0
- data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
- data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
- data/doc/ForemanApi/Resources/Image.html +284 -143
- data/doc/ForemanApi/Resources/LookupKey.html +295 -140
- data/doc/ForemanApi/Resources/Medium.html +278 -145
- data/doc/ForemanApi/Resources/Model.html +272 -135
- data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
- data/doc/ForemanApi/Resources/Parameter.html +1512 -0
- data/doc/ForemanApi/Resources/Ptable.html +266 -131
- data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
- data/doc/ForemanApi/Resources/Report.html +311 -71
- data/doc/ForemanApi/Resources/Role.html +248 -119
- data/doc/ForemanApi/Resources/Setting.html +156 -76
- data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
- data/doc/ForemanApi/Resources/Subnet.html +332 -175
- data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
- data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
- data/doc/ForemanApi/Resources/User.html +287 -145
- data/doc/ForemanApi/Resources/Usergroup.html +272 -115
- data/doc/_index.html +32 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.MIT-LICENSE.html +29 -24
- data/doc/file.README.html +60 -59
- data/doc/frames.html +1 -1
- data/doc/index.html +60 -59
- data/doc/method_list.html +434 -266
- data/doc/top-level-namespace.html +3 -3
- data/lib/foreman_api.rb +0 -13
- data/lib/foreman_api/base.rb +77 -7
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +27 -32
- data/lib/foreman_api/resources/audit.rb +9 -10
- data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
- data/lib/foreman_api/resources/bookmark.rb +31 -36
- data/lib/foreman_api/resources/common_parameter.rb +27 -32
- data/lib/foreman_api/resources/compute_resource.rb +43 -48
- data/lib/foreman_api/resources/config_template.rb +43 -50
- data/lib/foreman_api/resources/dashboard.rb +4 -5
- data/lib/foreman_api/resources/domain.rb +30 -35
- data/lib/foreman_api/resources/environment.rb +25 -30
- data/lib/foreman_api/resources/fact_value.rb +5 -5
- data/lib/foreman_api/resources/home.rb +7 -9
- data/lib/foreman_api/resources/host.rb +63 -69
- data/lib/foreman_api/resources/host_class.rb +39 -0
- data/lib/foreman_api/resources/hostgroup.rb +43 -48
- data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
- data/lib/foreman_api/resources/image.rb +40 -45
- data/lib/foreman_api/resources/lookup_key.rb +36 -40
- data/lib/foreman_api/resources/medium.rb +29 -34
- data/lib/foreman_api/resources/model.rb +31 -36
- data/lib/foreman_api/resources/operating_system.rb +39 -45
- data/lib/foreman_api/resources/parameter.rb +96 -0
- data/lib/foreman_api/resources/ptable.rb +29 -34
- data/lib/foreman_api/resources/puppetclass.rb +31 -34
- data/lib/foreman_api/resources/report.rb +17 -20
- data/lib/foreman_api/resources/role.rb +25 -30
- data/lib/foreman_api/resources/setting.rb +15 -18
- data/lib/foreman_api/resources/smart_proxy.rb +27 -32
- data/lib/foreman_api/resources/subnet.rb +47 -52
- data/lib/foreman_api/resources/template_combination.rb +21 -25
- data/lib/foreman_api/resources/template_kind.rb +4 -5
- data/lib/foreman_api/resources/user.rb +36 -41
- data/lib/foreman_api/resources/usergroup.rb +25 -30
- data/lib/foreman_api/version.rb +1 -1
- metadata +10 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ForemanApi::Resources::Report
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
<li class="public ">
|
151
151
|
<span class="summary_signature">
|
152
152
|
|
153
|
-
<a href="#destroy-instance_method" title="#destroy (instance method)">- (
|
153
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</strong>(params = {}, headers = {}) </a>
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -164,7 +164,10 @@
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
<span class="summary_desc"><div class='inline'
|
167
|
+
<span class="summary_desc"><div class='inline'><p>
|
168
|
+
First item: parsed data; second item: raw body.
|
169
|
+
</p>
|
170
|
+
</div></span>
|
168
171
|
|
169
172
|
</li>
|
170
173
|
|
@@ -172,7 +175,7 @@
|
|
172
175
|
<li class="public ">
|
173
176
|
<span class="summary_signature">
|
174
177
|
|
175
|
-
<a href="#index-instance_method" title="#index (instance method)">- (
|
178
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
|
176
179
|
|
177
180
|
|
178
181
|
|
@@ -186,7 +189,10 @@
|
|
186
189
|
|
187
190
|
|
188
191
|
|
189
|
-
<span class="summary_desc"><div class='inline'
|
192
|
+
<span class="summary_desc"><div class='inline'><p>
|
193
|
+
First item: parsed data; second item: raw body.
|
194
|
+
</p>
|
195
|
+
</div></span>
|
190
196
|
|
191
197
|
</li>
|
192
198
|
|
@@ -194,7 +200,7 @@
|
|
194
200
|
<li class="public ">
|
195
201
|
<span class="summary_signature">
|
196
202
|
|
197
|
-
<a href="#
|
203
|
+
<a href="#last-instance_method" title="#last (instance method)">- (Array) <strong>last</strong>(params = {}, headers = {}) </a>
|
198
204
|
|
199
205
|
|
200
206
|
|
@@ -208,7 +214,35 @@
|
|
208
214
|
|
209
215
|
|
210
216
|
|
211
|
-
<span class="summary_desc"><div class='inline'
|
217
|
+
<span class="summary_desc"><div class='inline'><p>
|
218
|
+
First item: parsed data; second item: raw body.
|
219
|
+
</p>
|
220
|
+
</div></span>
|
221
|
+
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
<li class="public ">
|
226
|
+
<span class="summary_signature">
|
227
|
+
|
228
|
+
<a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</span>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<span class="summary_desc"><div class='inline'><p>
|
243
|
+
First item: parsed data; second item: raw body.
|
244
|
+
</p>
|
245
|
+
</div></span>
|
212
246
|
|
213
247
|
</li>
|
214
248
|
|
@@ -245,9 +279,10 @@
|
|
245
279
|
<td>
|
246
280
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line 4</span>
|
247
281
|
|
248
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='
|
249
|
-
<span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='
|
250
|
-
<span class='kw'>end</span
|
282
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span>
|
283
|
+
<span class='rubyid_@doc ivar id'>@doc</span> <span class='opasgn op'>||=</span> <span class='rubyid_ForemanApi constant id'>ForemanApi</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='string val'>'resources'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>"reports"</span><span class='rbrack token'>]</span>
|
284
|
+
<span class='rubyid_end end kw'>end</span>
|
285
|
+
</pre>
|
251
286
|
</td>
|
252
287
|
</tr>
|
253
288
|
</table>
|
@@ -262,7 +297,7 @@
|
|
262
297
|
<div class="method_details first">
|
263
298
|
<h3 class="signature first" id="destroy-instance_method">
|
264
299
|
|
265
|
-
- (<tt>
|
300
|
+
- (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
|
266
301
|
|
267
302
|
|
268
303
|
|
@@ -270,7 +305,10 @@
|
|
270
305
|
|
271
306
|
</h3><div class="docstring">
|
272
307
|
<div class="discussion">
|
273
|
-
|
308
|
+
<p>
|
309
|
+
First item: parsed data; second item: raw body
|
310
|
+
</p>
|
311
|
+
|
274
312
|
|
275
313
|
</div>
|
276
314
|
</div>
|
@@ -286,12 +324,13 @@
|
|
286
324
|
<span class='type'>(<tt>Hash</tt>)</span>
|
287
325
|
|
288
326
|
|
289
|
-
<em class="default">(defaults to: <tt>{
|
327
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
290
328
|
|
291
329
|
|
292
330
|
—
|
293
|
-
<div class='inline'>
|
294
|
-
|
331
|
+
<div class='inline'><p>
|
332
|
+
a hash of params to be passed to the service
|
333
|
+
</p>
|
295
334
|
</div>
|
296
335
|
|
297
336
|
</li>
|
@@ -304,12 +343,13 @@
|
|
304
343
|
<span class='type'>(<tt>Hash</tt>)</span>
|
305
344
|
|
306
345
|
|
307
|
-
<em class="default">(defaults to: <tt>{
|
346
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
308
347
|
|
309
348
|
|
310
349
|
—
|
311
|
-
<div class='inline'>
|
312
|
-
|
350
|
+
<div class='inline'><p>
|
351
|
+
additional http headers
|
352
|
+
</p>
|
313
353
|
</div>
|
314
354
|
|
315
355
|
</li>
|
@@ -336,6 +376,25 @@
|
|
336
376
|
|
337
377
|
|
338
378
|
|
379
|
+
<p class="tag_title">Returns:</p>
|
380
|
+
<ul class="return">
|
381
|
+
|
382
|
+
<li>
|
383
|
+
|
384
|
+
|
385
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
—
|
390
|
+
<div class='inline'><p>
|
391
|
+
First item: parsed data; second item: raw body
|
392
|
+
</p>
|
393
|
+
</div>
|
394
|
+
|
395
|
+
</li>
|
396
|
+
|
397
|
+
</ul>
|
339
398
|
|
340
399
|
</div><table class="source_code">
|
341
400
|
<tr>
|
@@ -343,20 +402,17 @@
|
|
343
402
|
<pre class="lines">
|
344
403
|
|
345
404
|
|
405
|
+
34
|
346
406
|
35
|
347
|
-
36
|
348
|
-
37
|
349
|
-
38
|
350
|
-
39</pre>
|
407
|
+
36</pre>
|
351
408
|
</td>
|
352
409
|
<td>
|
353
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line
|
410
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line 34</span>
|
354
411
|
|
355
|
-
<span class='kw'>def</span> <span class='
|
356
|
-
<span class='
|
357
|
-
|
358
|
-
|
359
|
-
<span class='kw'>end</span></pre>
|
412
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_destroy identifier id'>destroy</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
413
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
414
|
+
<span class='rubyid_end end kw'>end</span>
|
415
|
+
</pre>
|
360
416
|
</td>
|
361
417
|
</tr>
|
362
418
|
</table>
|
@@ -365,7 +421,7 @@
|
|
365
421
|
<div class="method_details ">
|
366
422
|
<h3 class="signature " id="index-instance_method">
|
367
423
|
|
368
|
-
- (<tt>
|
424
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
369
425
|
|
370
426
|
|
371
427
|
|
@@ -373,7 +429,10 @@
|
|
373
429
|
|
374
430
|
</h3><div class="docstring">
|
375
431
|
<div class="discussion">
|
376
|
-
|
432
|
+
<p>
|
433
|
+
First item: parsed data; second item: raw body
|
434
|
+
</p>
|
435
|
+
|
377
436
|
|
378
437
|
</div>
|
379
438
|
</div>
|
@@ -389,12 +448,13 @@
|
|
389
448
|
<span class='type'>(<tt>Hash</tt>)</span>
|
390
449
|
|
391
450
|
|
392
|
-
<em class="default">(defaults to: <tt>{
|
451
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
393
452
|
|
394
453
|
|
395
454
|
—
|
396
|
-
<div class='inline'>
|
397
|
-
|
455
|
+
<div class='inline'><p>
|
456
|
+
a hash of params to be passed to the service
|
457
|
+
</p>
|
398
458
|
</div>
|
399
459
|
|
400
460
|
</li>
|
@@ -407,12 +467,13 @@
|
|
407
467
|
<span class='type'>(<tt>Hash</tt>)</span>
|
408
468
|
|
409
469
|
|
410
|
-
<em class="default">(defaults to: <tt>{
|
470
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
411
471
|
|
412
472
|
|
413
473
|
—
|
414
|
-
<div class='inline'>
|
415
|
-
|
474
|
+
<div class='inline'><p>
|
475
|
+
additional http headers
|
476
|
+
</p>
|
416
477
|
</div>
|
417
478
|
|
418
479
|
</li>
|
@@ -432,8 +493,9 @@
|
|
432
493
|
|
433
494
|
</span>
|
434
495
|
|
435
|
-
— <div class='inline'>
|
436
|
-
|
496
|
+
— <div class='inline'><p>
|
497
|
+
Sort results
|
498
|
+
</p>
|
437
499
|
</div>
|
438
500
|
|
439
501
|
</li>
|
@@ -445,8 +507,9 @@
|
|
445
507
|
|
446
508
|
</span>
|
447
509
|
|
448
|
-
— <div class='inline'>
|
449
|
-
|
510
|
+
— <div class='inline'><p>
|
511
|
+
Paginate results
|
512
|
+
</p>
|
450
513
|
</div>
|
451
514
|
|
452
515
|
</li>
|
@@ -458,8 +521,9 @@
|
|
458
521
|
|
459
522
|
</span>
|
460
523
|
|
461
|
-
— <div class='inline'>
|
462
|
-
|
524
|
+
— <div class='inline'><p>
|
525
|
+
Number of entries per request
|
526
|
+
</p>
|
463
527
|
</div>
|
464
528
|
|
465
529
|
</li>
|
@@ -471,8 +535,9 @@
|
|
471
535
|
|
472
536
|
</span>
|
473
537
|
|
474
|
-
— <div class='inline'>
|
475
|
-
|
538
|
+
— <div class='inline'><p>
|
539
|
+
Filter results
|
540
|
+
</p>
|
476
541
|
</div>
|
477
542
|
|
478
543
|
</li>
|
@@ -482,6 +547,25 @@
|
|
482
547
|
|
483
548
|
|
484
549
|
|
550
|
+
<p class="tag_title">Returns:</p>
|
551
|
+
<ul class="return">
|
552
|
+
|
553
|
+
<li>
|
554
|
+
|
555
|
+
|
556
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'><p>
|
562
|
+
First item: parsed data; second item: raw body
|
563
|
+
</p>
|
564
|
+
</div>
|
565
|
+
|
566
|
+
</li>
|
567
|
+
|
568
|
+
</ul>
|
485
569
|
|
486
570
|
</div><table class="source_code">
|
487
571
|
<tr>
|
@@ -489,29 +573,26 @@
|
|
489
573
|
<pre class="lines">
|
490
574
|
|
491
575
|
|
492
|
-
15
|
493
576
|
16
|
494
577
|
17
|
495
|
-
18
|
496
|
-
19</pre>
|
578
|
+
18</pre>
|
497
579
|
</td>
|
498
580
|
<td>
|
499
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line
|
581
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line 16</span>
|
500
582
|
|
501
|
-
<span class='kw'>def</span> <span class='
|
502
|
-
<span class='
|
503
|
-
|
504
|
-
|
505
|
-
<span class='kw'>end</span></pre>
|
583
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_index identifier id'>index</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
584
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
585
|
+
<span class='rubyid_end end kw'>end</span>
|
586
|
+
</pre>
|
506
587
|
</td>
|
507
588
|
</tr>
|
508
589
|
</table>
|
509
590
|
</div>
|
510
591
|
|
511
592
|
<div class="method_details ">
|
512
|
-
<h3 class="signature " id="
|
593
|
+
<h3 class="signature " id="last-instance_method">
|
513
594
|
|
514
|
-
- (<tt>
|
595
|
+
- (<tt>Array</tt>) <strong>last</strong>(params = {}, headers = {})
|
515
596
|
|
516
597
|
|
517
598
|
|
@@ -519,8 +600,149 @@
|
|
519
600
|
|
520
601
|
</h3><div class="docstring">
|
521
602
|
<div class="discussion">
|
603
|
+
<p>
|
604
|
+
First item: parsed data; second item: raw body
|
605
|
+
</p>
|
606
|
+
|
607
|
+
|
608
|
+
</div>
|
609
|
+
</div>
|
610
|
+
<div class="tags">
|
611
|
+
<p class="tag_title">Parameters:</p>
|
612
|
+
<ul class="param">
|
613
|
+
|
614
|
+
<li>
|
615
|
+
|
616
|
+
<span class='name'>params</span>
|
617
|
+
|
618
|
+
|
619
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
620
|
+
|
621
|
+
|
622
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
623
|
+
|
624
|
+
|
625
|
+
—
|
626
|
+
<div class='inline'><p>
|
627
|
+
a hash of params to be passed to the service
|
628
|
+
</p>
|
629
|
+
</div>
|
630
|
+
|
631
|
+
</li>
|
632
|
+
|
633
|
+
<li>
|
634
|
+
|
635
|
+
<span class='name'>headers</span>
|
636
|
+
|
637
|
+
|
638
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
639
|
+
|
640
|
+
|
641
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
642
|
+
|
643
|
+
|
644
|
+
—
|
645
|
+
<div class='inline'><p>
|
646
|
+
additional http headers
|
647
|
+
</p>
|
648
|
+
</div>
|
649
|
+
|
650
|
+
</li>
|
651
|
+
|
652
|
+
</ul>
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
658
|
+
<ul class="option">
|
659
|
+
|
660
|
+
<li>
|
661
|
+
<span class="name">id</span>
|
662
|
+
<span class="type">(<tt>String</tt>)</span>
|
663
|
+
<span class="default">
|
664
|
+
|
665
|
+
</span>
|
666
|
+
|
667
|
+
</li>
|
668
|
+
|
669
|
+
<li>
|
670
|
+
<span class="name">host_id</span>
|
671
|
+
<span class="type">(<tt>Object</tt>)</span>
|
672
|
+
<span class="default">
|
673
|
+
|
674
|
+
</span>
|
675
|
+
|
676
|
+
— <div class='inline'><p>
|
677
|
+
Part of <tt>/api/hosts/:host_id/reports/last</tt> path
|
678
|
+
</p>
|
679
|
+
</div>
|
680
|
+
|
681
|
+
</li>
|
682
|
+
|
683
|
+
</ul>
|
684
|
+
|
685
|
+
|
522
686
|
|
523
687
|
|
688
|
+
<p class="tag_title">Returns:</p>
|
689
|
+
<ul class="return">
|
690
|
+
|
691
|
+
<li>
|
692
|
+
|
693
|
+
|
694
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
—
|
699
|
+
<div class='inline'><p>
|
700
|
+
First item: parsed data; second item: raw body
|
701
|
+
</p>
|
702
|
+
</div>
|
703
|
+
|
704
|
+
</li>
|
705
|
+
|
706
|
+
</ul>
|
707
|
+
|
708
|
+
</div><table class="source_code">
|
709
|
+
<tr>
|
710
|
+
<td>
|
711
|
+
<pre class="lines">
|
712
|
+
|
713
|
+
|
714
|
+
44
|
715
|
+
45
|
716
|
+
46</pre>
|
717
|
+
</td>
|
718
|
+
<td>
|
719
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line 44</span>
|
720
|
+
|
721
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_last identifier id'>last</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
722
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
723
|
+
<span class='rubyid_end end kw'>end</span>
|
724
|
+
</pre>
|
725
|
+
</td>
|
726
|
+
</tr>
|
727
|
+
</table>
|
728
|
+
</div>
|
729
|
+
|
730
|
+
<div class="method_details ">
|
731
|
+
<h3 class="signature " id="show-instance_method">
|
732
|
+
|
733
|
+
- (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
</h3><div class="docstring">
|
740
|
+
<div class="discussion">
|
741
|
+
<p>
|
742
|
+
First item: parsed data; second item: raw body
|
743
|
+
</p>
|
744
|
+
|
745
|
+
|
524
746
|
</div>
|
525
747
|
</div>
|
526
748
|
<div class="tags">
|
@@ -535,12 +757,13 @@
|
|
535
757
|
<span class='type'>(<tt>Hash</tt>)</span>
|
536
758
|
|
537
759
|
|
538
|
-
<em class="default">(defaults to: <tt>{
|
760
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
539
761
|
|
540
762
|
|
541
763
|
—
|
542
|
-
<div class='inline'>
|
543
|
-
|
764
|
+
<div class='inline'><p>
|
765
|
+
a hash of params to be passed to the service
|
766
|
+
</p>
|
544
767
|
</div>
|
545
768
|
|
546
769
|
</li>
|
@@ -553,12 +776,13 @@
|
|
553
776
|
<span class='type'>(<tt>Hash</tt>)</span>
|
554
777
|
|
555
778
|
|
556
|
-
<em class="default">(defaults to: <tt>{
|
779
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
557
780
|
|
558
781
|
|
559
782
|
—
|
560
|
-
<div class='inline'>
|
561
|
-
|
783
|
+
<div class='inline'><p>
|
784
|
+
additional http headers
|
785
|
+
</p>
|
562
786
|
</div>
|
563
787
|
|
564
788
|
</li>
|
@@ -585,6 +809,25 @@
|
|
585
809
|
|
586
810
|
|
587
811
|
|
812
|
+
<p class="tag_title">Returns:</p>
|
813
|
+
<ul class="return">
|
814
|
+
|
815
|
+
<li>
|
816
|
+
|
817
|
+
|
818
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
—
|
823
|
+
<div class='inline'><p>
|
824
|
+
First item: parsed data; second item: raw body
|
825
|
+
</p>
|
826
|
+
</div>
|
827
|
+
|
828
|
+
</li>
|
829
|
+
|
830
|
+
</ul>
|
588
831
|
|
589
832
|
</div><table class="source_code">
|
590
833
|
<tr>
|
@@ -594,18 +837,15 @@
|
|
594
837
|
|
595
838
|
25
|
596
839
|
26
|
597
|
-
27
|
598
|
-
28
|
599
|
-
29</pre>
|
840
|
+
27</pre>
|
600
841
|
</td>
|
601
842
|
<td>
|
602
843
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/report.rb', line 25</span>
|
603
844
|
|
604
|
-
<span class='kw'>def</span> <span class='
|
605
|
-
<span class='
|
606
|
-
|
607
|
-
|
608
|
-
<span class='kw'>end</span></pre>
|
845
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_show identifier id'>show</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
846
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
847
|
+
<span class='rubyid_end end kw'>end</span>
|
848
|
+
</pre>
|
609
849
|
</td>
|
610
850
|
</tr>
|
611
851
|
</table>
|
@@ -616,9 +856,9 @@
|
|
616
856
|
</div>
|
617
857
|
|
618
858
|
<div id="footer">
|
619
|
-
Generated on
|
859
|
+
Generated on Tue Mar 19 09:50:24 2013 by
|
620
860
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
621
|
-
0.8.
|
861
|
+
0.8.5.2 (ruby-1.8.7).
|
622
862
|
</div>
|
623
863
|
|
624
864
|
</body>
|