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.
Files changed (85) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +2 -0
  3. data/Rakefile +0 -1
  4. data/doc/ForemanApi.html +5 -5
  5. data/doc/ForemanApi/Resources.html +6 -6
  6. data/doc/ForemanApi/Resources/Architecture.html +260 -127
  7. data/doc/ForemanApi/Resources/Audit.html +118 -51
  8. data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
  9. data/doc/ForemanApi/Resources/Bookmark.html +266 -131
  10. data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
  11. data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
  12. data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
  13. data/doc/ForemanApi/Resources/Dashboard.html +53 -27
  14. data/doc/ForemanApi/Resources/Domain.html +275 -137
  15. data/doc/ForemanApi/Resources/Environment.html +254 -123
  16. data/doc/ForemanApi/Resources/FactValue.html +75 -32
  17. data/doc/ForemanApi/Resources/Home.html +92 -43
  18. data/doc/ForemanApi/Resources/Host.html +401 -212
  19. data/doc/ForemanApi/Resources/HostClass.html +698 -0
  20. data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
  21. data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
  22. data/doc/ForemanApi/Resources/Image.html +284 -143
  23. data/doc/ForemanApi/Resources/LookupKey.html +295 -140
  24. data/doc/ForemanApi/Resources/Medium.html +278 -145
  25. data/doc/ForemanApi/Resources/Model.html +272 -135
  26. data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
  27. data/doc/ForemanApi/Resources/Parameter.html +1512 -0
  28. data/doc/ForemanApi/Resources/Ptable.html +266 -131
  29. data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
  30. data/doc/ForemanApi/Resources/Report.html +311 -71
  31. data/doc/ForemanApi/Resources/Role.html +248 -119
  32. data/doc/ForemanApi/Resources/Setting.html +156 -76
  33. data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
  34. data/doc/ForemanApi/Resources/Subnet.html +332 -175
  35. data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
  36. data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
  37. data/doc/ForemanApi/Resources/User.html +287 -145
  38. data/doc/ForemanApi/Resources/Usergroup.html +272 -115
  39. data/doc/_index.html +32 -4
  40. data/doc/class_list.html +1 -1
  41. data/doc/css/style.css +10 -0
  42. data/doc/file.MIT-LICENSE.html +29 -24
  43. data/doc/file.README.html +60 -59
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +60 -59
  46. data/doc/method_list.html +434 -266
  47. data/doc/top-level-namespace.html +3 -3
  48. data/lib/foreman_api.rb +0 -13
  49. data/lib/foreman_api/base.rb +77 -7
  50. data/lib/foreman_api/documentation.json +1 -1
  51. data/lib/foreman_api/resources/architecture.rb +27 -32
  52. data/lib/foreman_api/resources/audit.rb +9 -10
  53. data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
  54. data/lib/foreman_api/resources/bookmark.rb +31 -36
  55. data/lib/foreman_api/resources/common_parameter.rb +27 -32
  56. data/lib/foreman_api/resources/compute_resource.rb +43 -48
  57. data/lib/foreman_api/resources/config_template.rb +43 -50
  58. data/lib/foreman_api/resources/dashboard.rb +4 -5
  59. data/lib/foreman_api/resources/domain.rb +30 -35
  60. data/lib/foreman_api/resources/environment.rb +25 -30
  61. data/lib/foreman_api/resources/fact_value.rb +5 -5
  62. data/lib/foreman_api/resources/home.rb +7 -9
  63. data/lib/foreman_api/resources/host.rb +63 -69
  64. data/lib/foreman_api/resources/host_class.rb +39 -0
  65. data/lib/foreman_api/resources/hostgroup.rb +43 -48
  66. data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
  67. data/lib/foreman_api/resources/image.rb +40 -45
  68. data/lib/foreman_api/resources/lookup_key.rb +36 -40
  69. data/lib/foreman_api/resources/medium.rb +29 -34
  70. data/lib/foreman_api/resources/model.rb +31 -36
  71. data/lib/foreman_api/resources/operating_system.rb +39 -45
  72. data/lib/foreman_api/resources/parameter.rb +96 -0
  73. data/lib/foreman_api/resources/ptable.rb +29 -34
  74. data/lib/foreman_api/resources/puppetclass.rb +31 -34
  75. data/lib/foreman_api/resources/report.rb +17 -20
  76. data/lib/foreman_api/resources/role.rb +25 -30
  77. data/lib/foreman_api/resources/setting.rb +15 -18
  78. data/lib/foreman_api/resources/smart_proxy.rb +27 -32
  79. data/lib/foreman_api/resources/subnet.rb +47 -52
  80. data/lib/foreman_api/resources/template_combination.rb +21 -25
  81. data/lib/foreman_api/resources/template_kind.rb +4 -5
  82. data/lib/foreman_api/resources/user.rb +36 -41
  83. data/lib/foreman_api/resources/usergroup.rb +25 -30
  84. data/lib/foreman_api/version.rb +1 -1
  85. metadata +10 -2
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ForemanApi::Resources::Medium
8
8
 
9
- &mdash; Documentation by YARD 0.8.3
9
+ &mdash; 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="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong>(params = { }, headers = { }) </a>
153
+ <a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</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'></div></span>
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="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong>(params = { }, headers = { }) </a>
178
+ <a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</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'></div></span>
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="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong>(params = { }, headers = { }) </a>
203
+ <a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
198
204
 
199
205
 
200
206
 
@@ -208,7 +214,10 @@
208
214
 
209
215
 
210
216
 
211
- <span class="summary_desc"><div class='inline'></div></span>
217
+ <span class="summary_desc"><div class='inline'><p>
218
+ First item: parsed data; second item: raw body.
219
+ </p>
220
+ </div></span>
212
221
 
213
222
  </li>
214
223
 
@@ -216,7 +225,7 @@
216
225
  <li class="public ">
217
226
  <span class="summary_signature">
218
227
 
219
- <a href="#show-instance_method" title="#show (instance method)">- (Object) <strong>show</strong>(params = { }, headers = { }) </a>
228
+ <a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
220
229
 
221
230
 
222
231
 
@@ -230,7 +239,10 @@
230
239
 
231
240
 
232
241
 
233
- <span class="summary_desc"><div class='inline'></div></span>
242
+ <span class="summary_desc"><div class='inline'><p>
243
+ First item: parsed data; second item: raw body.
244
+ </p>
245
+ </div></span>
234
246
 
235
247
  </li>
236
248
 
@@ -238,7 +250,7 @@
238
250
  <li class="public ">
239
251
  <span class="summary_signature">
240
252
 
241
- <a href="#update-instance_method" title="#update (instance method)">- (Object) <strong>update</strong>(params = { }, headers = { }) </a>
253
+ <a href="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</strong>(params = {}, headers = {}) </a>
242
254
 
243
255
 
244
256
 
@@ -252,7 +264,10 @@
252
264
 
253
265
 
254
266
 
255
- <span class="summary_desc"><div class='inline'></div></span>
267
+ <span class="summary_desc"><div class='inline'><p>
268
+ First item: parsed data; second item: raw body.
269
+ </p>
270
+ </div></span>
256
271
 
257
272
  </li>
258
273
 
@@ -289,9 +304,10 @@
289
304
  <td>
290
305
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 4</span>
291
306
 
292
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
293
- <span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='const'>ForemanApi</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>resources</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>media</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
294
- <span class='kw'>end</span></pre>
307
+ <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>
308
+ <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'>&quot;media&quot;</span><span class='rbrack token'>]</span>
309
+ <span class='rubyid_end end kw'>end</span>
310
+ </pre>
295
311
  </td>
296
312
  </tr>
297
313
  </table>
@@ -306,7 +322,7 @@
306
322
  <div class="method_details first">
307
323
  <h3 class="signature first" id="create-instance_method">
308
324
 
309
- - (<tt>Object</tt>) <strong>create</strong>(params = { }, headers = { })
325
+ - (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
310
326
 
311
327
 
312
328
 
@@ -314,7 +330,10 @@
314
330
 
315
331
  </h3><div class="docstring">
316
332
  <div class="discussion">
317
-
333
+ <p>
334
+ First item: parsed data; second item: raw body
335
+ </p>
336
+
318
337
 
319
338
  </div>
320
339
  </div>
@@ -330,12 +349,13 @@
330
349
  <span class='type'>(<tt>Hash</tt>)</span>
331
350
 
332
351
 
333
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
352
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
334
353
 
335
354
 
336
355
  &mdash;
337
- <div class='inline'>
338
- <p>a hash of params to be passed to the service</p>
356
+ <div class='inline'><p>
357
+ a hash of params to be passed to the service
358
+ </p>
339
359
  </div>
340
360
 
341
361
  </li>
@@ -348,12 +368,13 @@
348
368
  <span class='type'>(<tt>Hash</tt>)</span>
349
369
 
350
370
 
351
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
371
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
352
372
 
353
373
 
354
374
  &mdash;
355
- <div class='inline'>
356
- <p>additional http headers</p>
375
+ <div class='inline'><p>
376
+ additional http headers
377
+ </p>
357
378
  </div>
358
379
 
359
380
  </li>
@@ -373,22 +394,26 @@
373
394
 
374
395
  </span>
375
396
 
376
- &mdash; <div class='inline'>
377
- <p>allowed keys are:</p>
378
- <ul><li>
379
- <p>name [String] Name of media ,</p>
380
- </li><li>
381
- <p>os_family [String] The family that the operating system belongs to.
382
- available families: archlinux debian redhat solaris suse windows ,</p>
383
- </li><li>
384
- <p>path [String] The path to the medium, can be a url or a valid nfs server
385
- (exclusive of the architecture). for example <a
386
- href="http://mirror.averse.net/centos/$version/os/$arch">mirror.averse.net/centos/$version/os/$arch</a>
387
- where $arch will be substituted for the host&amp;#39;s actual os
388
- architecture and $version, $major and $minor will be substituted for the
389
- version of the operating system. solaris and debian media may also use
390
- $release. ,</p>
391
- </li></ul>
397
+ &mdash; <div class='inline'><p>
398
+ allowed keys are:
399
+ </p>
400
+ <ul>
401
+ <li>name [String] Name of media
402
+
403
+ </li>
404
+ <li>os_family [String] The family that the operating system belongs to.
405
+ available families: archlinux debian redhat solaris suse windows
406
+
407
+ </li>
408
+ <li>path [String] The path to the medium, can be a url or a valid nfs server
409
+ (exclusive of the architecture). for example
410
+ http://mirror.averse.net/centos/$version/os/$arch where $arch will be
411
+ substituted for the host&amp;#8217;s actual os architecture and $version,
412
+ $major and $minor will be substituted for the version of the operating
413
+ system. solaris and debian media may also use $release.
414
+
415
+ </li>
416
+ </ul>
392
417
  </div>
393
418
 
394
419
  </li>
@@ -398,6 +423,25 @@ $release. ,</p>
398
423
 
399
424
 
400
425
 
426
+ <p class="tag_title">Returns:</p>
427
+ <ul class="return">
428
+
429
+ <li>
430
+
431
+
432
+ <span class='type'>(<tt>Array</tt>)</span>
433
+
434
+
435
+
436
+ &mdash;
437
+ <div class='inline'><p>
438
+ First item: parsed data; second item: raw body
439
+ </p>
440
+ </div>
441
+
442
+ </li>
443
+
444
+ </ul>
401
445
 
402
446
  </div><table class="source_code">
403
447
  <tr>
@@ -405,20 +449,17 @@ $release. ,</p>
405
449
  <pre class="lines">
406
450
 
407
451
 
452
+ 38
408
453
  39
409
- 40
410
- 41
411
- 42
412
- 43</pre>
454
+ 40</pre>
413
455
  </td>
414
456
  <td>
415
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 39</span>
457
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 38</span>
416
458
 
417
- <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
418
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
419
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/media</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
420
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:post</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
421
- <span class='kw'>end</span></pre>
459
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_create identifier id'>create</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>
460
+ <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>
461
+ <span class='rubyid_end end kw'>end</span>
462
+ </pre>
422
463
  </td>
423
464
  </tr>
424
465
  </table>
@@ -427,7 +468,7 @@ $release. ,</p>
427
468
  <div class="method_details ">
428
469
  <h3 class="signature " id="destroy-instance_method">
429
470
 
430
- - (<tt>Object</tt>) <strong>destroy</strong>(params = { }, headers = { })
471
+ - (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
431
472
 
432
473
 
433
474
 
@@ -435,7 +476,10 @@ $release. ,</p>
435
476
 
436
477
  </h3><div class="docstring">
437
478
  <div class="discussion">
438
-
479
+ <p>
480
+ First item: parsed data; second item: raw body
481
+ </p>
482
+
439
483
 
440
484
  </div>
441
485
  </div>
@@ -451,12 +495,13 @@ $release. ,</p>
451
495
  <span class='type'>(<tt>Hash</tt>)</span>
452
496
 
453
497
 
454
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
498
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
455
499
 
456
500
 
457
501
  &mdash;
458
- <div class='inline'>
459
- <p>a hash of params to be passed to the service</p>
502
+ <div class='inline'><p>
503
+ a hash of params to be passed to the service
504
+ </p>
460
505
  </div>
461
506
 
462
507
  </li>
@@ -469,12 +514,13 @@ $release. ,</p>
469
514
  <span class='type'>(<tt>Hash</tt>)</span>
470
515
 
471
516
 
472
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
517
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
473
518
 
474
519
 
475
520
  &mdash;
476
- <div class='inline'>
477
- <p>additional http headers</p>
521
+ <div class='inline'><p>
522
+ additional http headers
523
+ </p>
478
524
  </div>
479
525
 
480
526
  </li>
@@ -501,6 +547,25 @@ $release. ,</p>
501
547
 
502
548
 
503
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
+ &mdash;
561
+ <div class='inline'><p>
562
+ First item: parsed data; second item: raw body
563
+ </p>
564
+ </div>
565
+
566
+ </li>
567
+
568
+ </ul>
504
569
 
505
570
  </div><table class="source_code">
506
571
  <tr>
@@ -508,20 +573,17 @@ $release. ,</p>
508
573
  <pre class="lines">
509
574
 
510
575
 
511
- 64
512
- 65
513
- 66
514
- 67
515
- 68</pre>
576
+ 61
577
+ 62
578
+ 63</pre>
516
579
  </td>
517
580
  <td>
518
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 64</span>
581
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 61</span>
519
582
 
520
- <span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
521
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
522
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/media/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
523
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:delete</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
524
- <span class='kw'>end</span></pre>
583
+ <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>
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>
525
587
  </td>
526
588
  </tr>
527
589
  </table>
@@ -530,7 +592,7 @@ $release. ,</p>
530
592
  <div class="method_details ">
531
593
  <h3 class="signature " id="index-instance_method">
532
594
 
533
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
595
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
534
596
 
535
597
 
536
598
 
@@ -538,7 +600,10 @@ $release. ,</p>
538
600
 
539
601
  </h3><div class="docstring">
540
602
  <div class="discussion">
541
-
603
+ <p>
604
+ First item: parsed data; second item: raw body
605
+ </p>
606
+
542
607
 
543
608
  </div>
544
609
  </div>
@@ -554,12 +619,13 @@ $release. ,</p>
554
619
  <span class='type'>(<tt>Hash</tt>)</span>
555
620
 
556
621
 
557
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
622
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
558
623
 
559
624
 
560
625
  &mdash;
561
- <div class='inline'>
562
- <p>a hash of params to be passed to the service</p>
626
+ <div class='inline'><p>
627
+ a hash of params to be passed to the service
628
+ </p>
563
629
  </div>
564
630
 
565
631
  </li>
@@ -572,12 +638,13 @@ $release. ,</p>
572
638
  <span class='type'>(<tt>Hash</tt>)</span>
573
639
 
574
640
 
575
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
641
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
576
642
 
577
643
 
578
644
  &mdash;
579
- <div class='inline'>
580
- <p>additional http headers</p>
645
+ <div class='inline'><p>
646
+ additional http headers
647
+ </p>
581
648
  </div>
582
649
 
583
650
  </li>
@@ -597,8 +664,9 @@ $release. ,</p>
597
664
 
598
665
  </span>
599
666
 
600
- &mdash; <div class='inline'>
601
- <p>For example, name asc, or name desc</p>
667
+ &mdash; <div class='inline'><p>
668
+ For example, name asc, or name desc
669
+ </p>
602
670
  </div>
603
671
 
604
672
  </li>
@@ -610,8 +678,9 @@ $release. ,</p>
610
678
 
611
679
  </span>
612
680
 
613
- &mdash; <div class='inline'>
614
- <p>Paginate results</p>
681
+ &mdash; <div class='inline'><p>
682
+ Paginate results
683
+ </p>
615
684
  </div>
616
685
 
617
686
  </li>
@@ -623,8 +692,9 @@ $release. ,</p>
623
692
 
624
693
  </span>
625
694
 
626
- &mdash; <div class='inline'>
627
- <p>Number of entries per request</p>
695
+ &mdash; <div class='inline'><p>
696
+ Number of entries per request
697
+ </p>
628
698
  </div>
629
699
 
630
700
  </li>
@@ -636,8 +706,9 @@ $release. ,</p>
636
706
 
637
707
  </span>
638
708
 
639
- &mdash; <div class='inline'>
640
- <p>Filter results</p>
709
+ &mdash; <div class='inline'><p>
710
+ Filter results
711
+ </p>
641
712
  </div>
642
713
 
643
714
  </li>
@@ -647,6 +718,25 @@ $release. ,</p>
647
718
 
648
719
 
649
720
 
721
+ <p class="tag_title">Returns:</p>
722
+ <ul class="return">
723
+
724
+ <li>
725
+
726
+
727
+ <span class='type'>(<tt>Array</tt>)</span>
728
+
729
+
730
+
731
+ &mdash;
732
+ <div class='inline'><p>
733
+ First item: parsed data; second item: raw body
734
+ </p>
735
+ </div>
736
+
737
+ </li>
738
+
739
+ </ul>
650
740
 
651
741
  </div><table class="source_code">
652
742
  <tr>
@@ -654,20 +744,17 @@ $release. ,</p>
654
744
  <pre class="lines">
655
745
 
656
746
 
657
- 15
658
747
  16
659
748
  17
660
- 18
661
- 19</pre>
749
+ 18</pre>
662
750
  </td>
663
751
  <td>
664
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 15</span>
752
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 16</span>
665
753
 
666
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
667
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
668
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/media</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
669
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
670
- <span class='kw'>end</span></pre>
754
+ <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>
755
+ <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>
756
+ <span class='rubyid_end end kw'>end</span>
757
+ </pre>
671
758
  </td>
672
759
  </tr>
673
760
  </table>
@@ -676,7 +763,7 @@ $release. ,</p>
676
763
  <div class="method_details ">
677
764
  <h3 class="signature " id="show-instance_method">
678
765
 
679
- - (<tt>Object</tt>) <strong>show</strong>(params = { }, headers = { })
766
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
680
767
 
681
768
 
682
769
 
@@ -684,7 +771,10 @@ $release. ,</p>
684
771
 
685
772
  </h3><div class="docstring">
686
773
  <div class="discussion">
687
-
774
+ <p>
775
+ First item: parsed data; second item: raw body
776
+ </p>
777
+
688
778
 
689
779
  </div>
690
780
  </div>
@@ -700,12 +790,13 @@ $release. ,</p>
700
790
  <span class='type'>(<tt>Hash</tt>)</span>
701
791
 
702
792
 
703
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
793
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
704
794
 
705
795
 
706
796
  &mdash;
707
- <div class='inline'>
708
- <p>a hash of params to be passed to the service</p>
797
+ <div class='inline'><p>
798
+ a hash of params to be passed to the service
799
+ </p>
709
800
  </div>
710
801
 
711
802
  </li>
@@ -718,12 +809,13 @@ $release. ,</p>
718
809
  <span class='type'>(<tt>Hash</tt>)</span>
719
810
 
720
811
 
721
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
812
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
722
813
 
723
814
 
724
815
  &mdash;
725
- <div class='inline'>
726
- <p>additional http headers</p>
816
+ <div class='inline'><p>
817
+ additional http headers
818
+ </p>
727
819
  </div>
728
820
 
729
821
  </li>
@@ -750,6 +842,25 @@ $release. ,</p>
750
842
 
751
843
 
752
844
 
845
+ <p class="tag_title">Returns:</p>
846
+ <ul class="return">
847
+
848
+ <li>
849
+
850
+
851
+ <span class='type'>(<tt>Array</tt>)</span>
852
+
853
+
854
+
855
+ &mdash;
856
+ <div class='inline'><p>
857
+ First item: parsed data; second item: raw body
858
+ </p>
859
+ </div>
860
+
861
+ </li>
862
+
863
+ </ul>
753
864
 
754
865
  </div><table class="source_code">
755
866
  <tr>
@@ -759,18 +870,15 @@ $release. ,</p>
759
870
 
760
871
  25
761
872
  26
762
- 27
763
- 28
764
- 29</pre>
873
+ 27</pre>
765
874
  </td>
766
875
  <td>
767
876
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 25</span>
768
877
 
769
- <span class='kw'>def</span> <span class='id identifier rubyid_show'>show</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
770
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
771
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/media/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
772
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
773
- <span class='kw'>end</span></pre>
878
+ <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>
879
+ <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>
880
+ <span class='rubyid_end end kw'>end</span>
881
+ </pre>
774
882
  </td>
775
883
  </tr>
776
884
  </table>
@@ -779,7 +887,7 @@ $release. ,</p>
779
887
  <div class="method_details ">
780
888
  <h3 class="signature " id="update-instance_method">
781
889
 
782
- - (<tt>Object</tt>) <strong>update</strong>(params = { }, headers = { })
890
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
783
891
 
784
892
 
785
893
 
@@ -787,7 +895,10 @@ $release. ,</p>
787
895
 
788
896
  </h3><div class="docstring">
789
897
  <div class="discussion">
790
-
898
+ <p>
899
+ First item: parsed data; second item: raw body
900
+ </p>
901
+
791
902
 
792
903
  </div>
793
904
  </div>
@@ -803,12 +914,13 @@ $release. ,</p>
803
914
  <span class='type'>(<tt>Hash</tt>)</span>
804
915
 
805
916
 
806
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
917
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
807
918
 
808
919
 
809
920
  &mdash;
810
- <div class='inline'>
811
- <p>a hash of params to be passed to the service</p>
921
+ <div class='inline'><p>
922
+ a hash of params to be passed to the service
923
+ </p>
812
924
  </div>
813
925
 
814
926
  </li>
@@ -821,12 +933,13 @@ $release. ,</p>
821
933
  <span class='type'>(<tt>Hash</tt>)</span>
822
934
 
823
935
 
824
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
936
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
825
937
 
826
938
 
827
939
  &mdash;
828
- <div class='inline'>
829
- <p>additional http headers</p>
940
+ <div class='inline'><p>
941
+ additional http headers
942
+ </p>
830
943
  </div>
831
944
 
832
945
  </li>
@@ -855,22 +968,26 @@ $release. ,</p>
855
968
 
856
969
  </span>
857
970
 
858
- &mdash; <div class='inline'>
859
- <p>allowed keys are:</p>
860
- <ul><li>
861
- <p>name [String] Name of media ,</p>
862
- </li><li>
863
- <p>os_family [String, nil] The family that the operating system belongs to.
864
- available families: archlinux debian redhat solaris suse windows ,</p>
865
- </li><li>
866
- <p>path [String] The path to the medium, can be a url or a valid nfs server
867
- (exclusive of the architecture). for example <a
868
- href="http://mirror.averse.net/centos/$version/os/$arch">mirror.averse.net/centos/$version/os/$arch</a>
869
- where $arch will be substituted for the host&amp;#39;s actual os
870
- architecture and $version, $major and $minor will be substituted for the
871
- version of the operating system. solaris and debian media may also use
872
- $release. ,</p>
873
- </li></ul>
971
+ &mdash; <div class='inline'><p>
972
+ allowed keys are:
973
+ </p>
974
+ <ul>
975
+ <li>name [String] Name of media
976
+
977
+ </li>
978
+ <li>os_family [String, nil] The family that the operating system belongs to.
979
+ available families: archlinux debian redhat solaris suse windows
980
+
981
+ </li>
982
+ <li>path [String] The path to the medium, can be a url or a valid nfs server
983
+ (exclusive of the architecture). for example
984
+ http://mirror.averse.net/centos/$version/os/$arch where $arch will be
985
+ substituted for the host&amp;#8217;s actual os architecture and $version,
986
+ $major and $minor will be substituted for the version of the operating
987
+ system. solaris and debian media may also use $release.
988
+
989
+ </li>
990
+ </ul>
874
991
  </div>
875
992
 
876
993
  </li>
@@ -880,6 +997,25 @@ $release. ,</p>
880
997
 
881
998
 
882
999
 
1000
+ <p class="tag_title">Returns:</p>
1001
+ <ul class="return">
1002
+
1003
+ <li>
1004
+
1005
+
1006
+ <span class='type'>(<tt>Array</tt>)</span>
1007
+
1008
+
1009
+
1010
+ &mdash;
1011
+ <div class='inline'><p>
1012
+ First item: parsed data; second item: raw body
1013
+ </p>
1014
+ </div>
1015
+
1016
+ </li>
1017
+
1018
+ </ul>
883
1019
 
884
1020
  </div><table class="source_code">
885
1021
  <tr>
@@ -887,20 +1023,17 @@ $release. ,</p>
887
1023
  <pre class="lines">
888
1024
 
889
1025
 
890
- 54
891
- 55
892
- 56
893
- 57
894
- 58</pre>
1026
+ 52
1027
+ 53
1028
+ 54</pre>
895
1029
  </td>
896
1030
  <td>
897
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 54</span>
1031
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/medium.rb', line 52</span>
898
1032
 
899
- <span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
900
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
901
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/media/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
902
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:put</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
903
- <span class='kw'>end</span></pre>
1033
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update identifier id'>update</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>
1034
+ <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>
1035
+ <span class='rubyid_end end kw'>end</span>
1036
+ </pre>
904
1037
  </td>
905
1038
  </tr>
906
1039
  </table>
@@ -911,9 +1044,9 @@ $release. ,</p>
911
1044
  </div>
912
1045
 
913
1046
  <div id="footer">
914
- Generated on Mon Jan 21 15:44:35 2013 by
1047
+ Generated on Tue Mar 19 09:50:24 2013 by
915
1048
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
916
- 0.8.3 (ruby-1.9.3).
1049
+ 0.8.5.2 (ruby-1.8.7).
917
1050
  </div>
918
1051
 
919
1052
  </body>