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::Puppetclass
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/puppetclass.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'>puppetclasses</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;puppetclasses&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,11 +394,14 @@
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],</p>
380
- </li></ul>
397
+ &mdash; <div class='inline'><p>
398
+ allowed keys are:
399
+ </p>
400
+ <ul>
401
+ <li>name [String]
402
+
403
+ </li>
404
+ </ul>
381
405
  </div>
382
406
 
383
407
  </li>
@@ -387,6 +411,25 @@
387
411
 
388
412
 
389
413
 
414
+ <p class="tag_title">Returns:</p>
415
+ <ul class="return">
416
+
417
+ <li>
418
+
419
+
420
+ <span class='type'>(<tt>Array</tt>)</span>
421
+
422
+
423
+
424
+ &mdash;
425
+ <div class='inline'><p>
426
+ First item: parsed data; second item: raw body
427
+ </p>
428
+ </div>
429
+
430
+ </li>
431
+
432
+ </ul>
390
433
 
391
434
  </div><table class="source_code">
392
435
  <tr>
@@ -394,20 +437,17 @@
394
437
  <pre class="lines">
395
438
 
396
439
 
397
- 37
398
440
  38
399
441
  39
400
- 40
401
- 41</pre>
442
+ 40</pre>
402
443
  </td>
403
444
  <td>
404
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 37</span>
445
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 38</span>
405
446
 
406
- <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>
407
- <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>
408
- <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/puppetclasses</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
409
- <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>
410
- <span class='kw'>end</span></pre>
447
+ <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>
448
+ <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>
449
+ <span class='rubyid_end end kw'>end</span>
450
+ </pre>
411
451
  </td>
412
452
  </tr>
413
453
  </table>
@@ -416,7 +456,7 @@
416
456
  <div class="method_details ">
417
457
  <h3 class="signature " id="destroy-instance_method">
418
458
 
419
- - (<tt>Object</tt>) <strong>destroy</strong>(params = { }, headers = { })
459
+ - (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
420
460
 
421
461
 
422
462
 
@@ -424,7 +464,10 @@
424
464
 
425
465
  </h3><div class="docstring">
426
466
  <div class="discussion">
427
-
467
+ <p>
468
+ First item: parsed data; second item: raw body
469
+ </p>
470
+
428
471
 
429
472
  </div>
430
473
  </div>
@@ -440,12 +483,13 @@
440
483
  <span class='type'>(<tt>Hash</tt>)</span>
441
484
 
442
485
 
443
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
486
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
444
487
 
445
488
 
446
489
  &mdash;
447
- <div class='inline'>
448
- <p>a hash of params to be passed to the service</p>
490
+ <div class='inline'><p>
491
+ a hash of params to be passed to the service
492
+ </p>
449
493
  </div>
450
494
 
451
495
  </li>
@@ -458,12 +502,13 @@
458
502
  <span class='type'>(<tt>Hash</tt>)</span>
459
503
 
460
504
 
461
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
505
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
462
506
 
463
507
 
464
508
  &mdash;
465
- <div class='inline'>
466
- <p>additional http headers</p>
509
+ <div class='inline'><p>
510
+ additional http headers
511
+ </p>
467
512
  </div>
468
513
 
469
514
  </li>
@@ -490,6 +535,25 @@
490
535
 
491
536
 
492
537
 
538
+ <p class="tag_title">Returns:</p>
539
+ <ul class="return">
540
+
541
+ <li>
542
+
543
+
544
+ <span class='type'>(<tt>Array</tt>)</span>
545
+
546
+
547
+
548
+ &mdash;
549
+ <div class='inline'><p>
550
+ First item: parsed data; second item: raw body
551
+ </p>
552
+ </div>
553
+
554
+ </li>
555
+
556
+ </ul>
493
557
 
494
558
  </div><table class="source_code">
495
559
  <tr>
@@ -497,20 +561,17 @@
497
561
  <pre class="lines">
498
562
 
499
563
 
564
+ 59
500
565
  60
501
- 61
502
- 62
503
- 63
504
- 64</pre>
566
+ 61</pre>
505
567
  </td>
506
568
  <td>
507
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 60</span>
569
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 59</span>
508
570
 
509
- <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>
510
- <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>
511
- <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/puppetclasses/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
512
- <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>
513
- <span class='kw'>end</span></pre>
571
+ <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>
572
+ <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>
573
+ <span class='rubyid_end end kw'>end</span>
574
+ </pre>
514
575
  </td>
515
576
  </tr>
516
577
  </table>
@@ -519,7 +580,7 @@
519
580
  <div class="method_details ">
520
581
  <h3 class="signature " id="index-instance_method">
521
582
 
522
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
583
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
523
584
 
524
585
 
525
586
 
@@ -527,7 +588,10 @@
527
588
 
528
589
  </h3><div class="docstring">
529
590
  <div class="discussion">
530
-
591
+ <p>
592
+ First item: parsed data; second item: raw body
593
+ </p>
594
+
531
595
 
532
596
  </div>
533
597
  </div>
@@ -543,12 +607,13 @@
543
607
  <span class='type'>(<tt>Hash</tt>)</span>
544
608
 
545
609
 
546
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
610
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
547
611
 
548
612
 
549
613
  &mdash;
550
- <div class='inline'>
551
- <p>a hash of params to be passed to the service</p>
614
+ <div class='inline'><p>
615
+ a hash of params to be passed to the service
616
+ </p>
552
617
  </div>
553
618
 
554
619
  </li>
@@ -561,12 +626,13 @@
561
626
  <span class='type'>(<tt>Hash</tt>)</span>
562
627
 
563
628
 
564
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
629
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
565
630
 
566
631
 
567
632
  &mdash;
568
- <div class='inline'>
569
- <p>additional http headers</p>
633
+ <div class='inline'><p>
634
+ additional http headers
635
+ </p>
570
636
  </div>
571
637
 
572
638
  </li>
@@ -580,53 +646,43 @@
580
646
  <ul class="option">
581
647
 
582
648
  <li>
583
- <span class="name">order</span>
584
- <span class="type">(<tt>String</tt>)</span>
585
- <span class="default">
586
-
587
- </span>
588
-
589
- &mdash; <div class='inline'>
590
- <p>Sort results</p>
591
- </div>
592
-
593
- </li>
594
-
595
- <li>
596
- <span class="name">page</span>
649
+ <span class="name">environment_id</span>
597
650
  <span class="type">(<tt>String</tt>)</span>
598
651
  <span class="default">
599
652
 
600
653
  </span>
601
654
 
602
- &mdash; <div class='inline'>
603
- <p>Paginate results</p>
655
+ &mdash; <div class='inline'><p>
656
+ Id of nested environment
657
+ </p>
604
658
  </div>
605
659
 
606
660
  </li>
607
661
 
608
662
  <li>
609
- <span class="name">per_page</span>
663
+ <span class="name">host_id</span>
610
664
  <span class="type">(<tt>String</tt>)</span>
611
665
  <span class="default">
612
666
 
613
667
  </span>
614
668
 
615
- &mdash; <div class='inline'>
616
- <p>Number of entries per request</p>
669
+ &mdash; <div class='inline'><p>
670
+ Id of nested host
671
+ </p>
617
672
  </div>
618
673
 
619
674
  </li>
620
675
 
621
676
  <li>
622
- <span class="name">search</span>
677
+ <span class="name">hostgroup_id</span>
623
678
  <span class="type">(<tt>String</tt>)</span>
624
679
  <span class="default">
625
680
 
626
681
  </span>
627
682
 
628
- &mdash; <div class='inline'>
629
- <p>Filter results</p>
683
+ &mdash; <div class='inline'><p>
684
+ Id of nested hostgroup
685
+ </p>
630
686
  </div>
631
687
 
632
688
  </li>
@@ -636,6 +692,25 @@
636
692
 
637
693
 
638
694
 
695
+ <p class="tag_title">Returns:</p>
696
+ <ul class="return">
697
+
698
+ <li>
699
+
700
+
701
+ <span class='type'>(<tt>Array</tt>)</span>
702
+
703
+
704
+
705
+ &mdash;
706
+ <div class='inline'><p>
707
+ First item: parsed data; second item: raw body
708
+ </p>
709
+ </div>
710
+
711
+ </li>
712
+
713
+ </ul>
639
714
 
640
715
  </div><table class="source_code">
641
716
  <tr>
@@ -645,18 +720,15 @@
645
720
 
646
721
  15
647
722
  16
648
- 17
649
- 18
650
- 19</pre>
723
+ 17</pre>
651
724
  </td>
652
725
  <td>
653
726
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 15</span>
654
727
 
655
- <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>
656
- <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>
657
- <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/puppetclasses</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
658
- <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>
659
- <span class='kw'>end</span></pre>
728
+ <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>
729
+ <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>
730
+ <span class='rubyid_end end kw'>end</span>
731
+ </pre>
660
732
  </td>
661
733
  </tr>
662
734
  </table>
@@ -665,7 +737,7 @@
665
737
  <div class="method_details ">
666
738
  <h3 class="signature " id="show-instance_method">
667
739
 
668
- - (<tt>Object</tt>) <strong>show</strong>(params = { }, headers = { })
740
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
669
741
 
670
742
 
671
743
 
@@ -673,7 +745,10 @@
673
745
 
674
746
  </h3><div class="docstring">
675
747
  <div class="discussion">
676
-
748
+ <p>
749
+ First item: parsed data; second item: raw body
750
+ </p>
751
+
677
752
 
678
753
  </div>
679
754
  </div>
@@ -689,12 +764,13 @@
689
764
  <span class='type'>(<tt>Hash</tt>)</span>
690
765
 
691
766
 
692
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
767
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
693
768
 
694
769
 
695
770
  &mdash;
696
- <div class='inline'>
697
- <p>a hash of params to be passed to the service</p>
771
+ <div class='inline'><p>
772
+ a hash of params to be passed to the service
773
+ </p>
698
774
  </div>
699
775
 
700
776
  </li>
@@ -707,12 +783,13 @@
707
783
  <span class='type'>(<tt>Hash</tt>)</span>
708
784
 
709
785
 
710
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
786
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
711
787
 
712
788
 
713
789
  &mdash;
714
- <div class='inline'>
715
- <p>additional http headers</p>
790
+ <div class='inline'><p>
791
+ additional http headers
792
+ </p>
716
793
  </div>
717
794
 
718
795
  </li>
@@ -732,6 +809,53 @@
732
809
 
733
810
  </span>
734
811
 
812
+ &mdash; <div class='inline'><p>
813
+ Id of puppetclass
814
+ </p>
815
+ </div>
816
+
817
+ </li>
818
+
819
+ <li>
820
+ <span class="name">environment_id</span>
821
+ <span class="type">(<tt>String</tt>)</span>
822
+ <span class="default">
823
+
824
+ </span>
825
+
826
+ &mdash; <div class='inline'><p>
827
+ Id of nested environment
828
+ </p>
829
+ </div>
830
+
831
+ </li>
832
+
833
+ <li>
834
+ <span class="name">host_id</span>
835
+ <span class="type">(<tt>String</tt>)</span>
836
+ <span class="default">
837
+
838
+ </span>
839
+
840
+ &mdash; <div class='inline'><p>
841
+ Id of nested host
842
+ </p>
843
+ </div>
844
+
845
+ </li>
846
+
847
+ <li>
848
+ <span class="name">hostgroup_id</span>
849
+ <span class="type">(<tt>String</tt>)</span>
850
+ <span class="default">
851
+
852
+ </span>
853
+
854
+ &mdash; <div class='inline'><p>
855
+ Id of nested hostgroup
856
+ </p>
857
+ </div>
858
+
735
859
  </li>
736
860
 
737
861
  </ul>
@@ -739,6 +863,25 @@
739
863
 
740
864
 
741
865
 
866
+ <p class="tag_title">Returns:</p>
867
+ <ul class="return">
868
+
869
+ <li>
870
+
871
+
872
+ <span class='type'>(<tt>Array</tt>)</span>
873
+
874
+
875
+
876
+ &mdash;
877
+ <div class='inline'><p>
878
+ First item: parsed data; second item: raw body
879
+ </p>
880
+ </div>
881
+
882
+ </li>
883
+
884
+ </ul>
742
885
 
743
886
  </div><table class="source_code">
744
887
  <tr>
@@ -746,20 +889,17 @@
746
889
  <pre class="lines">
747
890
 
748
891
 
749
- 25
750
- 26
751
892
  27
752
893
  28
753
894
  29</pre>
754
895
  </td>
755
896
  <td>
756
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 25</span>
897
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 27</span>
757
898
 
758
- <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>
759
- <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>
760
- <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/puppetclasses/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
761
- <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>
762
- <span class='kw'>end</span></pre>
899
+ <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>
900
+ <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>
901
+ <span class='rubyid_end end kw'>end</span>
902
+ </pre>
763
903
  </td>
764
904
  </tr>
765
905
  </table>
@@ -768,7 +908,7 @@
768
908
  <div class="method_details ">
769
909
  <h3 class="signature " id="update-instance_method">
770
910
 
771
- - (<tt>Object</tt>) <strong>update</strong>(params = { }, headers = { })
911
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
772
912
 
773
913
 
774
914
 
@@ -776,7 +916,10 @@
776
916
 
777
917
  </h3><div class="docstring">
778
918
  <div class="discussion">
779
-
919
+ <p>
920
+ First item: parsed data; second item: raw body
921
+ </p>
922
+
780
923
 
781
924
  </div>
782
925
  </div>
@@ -792,12 +935,13 @@
792
935
  <span class='type'>(<tt>Hash</tt>)</span>
793
936
 
794
937
 
795
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
938
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
796
939
 
797
940
 
798
941
  &mdash;
799
- <div class='inline'>
800
- <p>a hash of params to be passed to the service</p>
942
+ <div class='inline'><p>
943
+ a hash of params to be passed to the service
944
+ </p>
801
945
  </div>
802
946
 
803
947
  </li>
@@ -810,12 +954,13 @@
810
954
  <span class='type'>(<tt>Hash</tt>)</span>
811
955
 
812
956
 
813
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
957
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
814
958
 
815
959
 
816
960
  &mdash;
817
- <div class='inline'>
818
- <p>additional http headers</p>
961
+ <div class='inline'><p>
962
+ additional http headers
963
+ </p>
819
964
  </div>
820
965
 
821
966
  </li>
@@ -844,11 +989,14 @@
844
989
 
845
990
  </span>
846
991
 
847
- &mdash; <div class='inline'>
848
- <p>allowed keys are:</p>
849
- <ul><li>
850
- <p>name [String],</p>
851
- </li></ul>
992
+ &mdash; <div class='inline'><p>
993
+ allowed keys are:
994
+ </p>
995
+ <ul>
996
+ <li>name [String]
997
+
998
+ </li>
999
+ </ul>
852
1000
  </div>
853
1001
 
854
1002
  </li>
@@ -858,6 +1006,25 @@
858
1006
 
859
1007
 
860
1008
 
1009
+ <p class="tag_title">Returns:</p>
1010
+ <ul class="return">
1011
+
1012
+ <li>
1013
+
1014
+
1015
+ <span class='type'>(<tt>Array</tt>)</span>
1016
+
1017
+
1018
+
1019
+ &mdash;
1020
+ <div class='inline'><p>
1021
+ First item: parsed data; second item: raw body
1022
+ </p>
1023
+ </div>
1024
+
1025
+ </li>
1026
+
1027
+ </ul>
861
1028
 
862
1029
  </div><table class="source_code">
863
1030
  <tr>
@@ -867,18 +1034,15 @@
867
1034
 
868
1035
  50
869
1036
  51
870
- 52
871
- 53
872
- 54</pre>
1037
+ 52</pre>
873
1038
  </td>
874
1039
  <td>
875
1040
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/puppetclass.rb', line 50</span>
876
1041
 
877
- <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>
878
- <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>
879
- <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/puppetclasses/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
880
- <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>
881
- <span class='kw'>end</span></pre>
1042
+ <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>
1043
+ <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>
1044
+ <span class='rubyid_end end kw'>end</span>
1045
+ </pre>
882
1046
  </td>
883
1047
  </tr>
884
1048
  </table>
@@ -889,9 +1053,9 @@
889
1053
  </div>
890
1054
 
891
1055
  <div id="footer">
892
- Generated on Mon Jan 21 15:44:36 2013 by
1056
+ Generated on Tue Mar 19 09:50:26 2013 by
893
1057
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
894
- 0.8.3 (ruby-1.9.3).
1058
+ 0.8.5.2 (ruby-1.8.7).
895
1059
  </div>
896
1060
 
897
1061
  </body>