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::Environment
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/environment.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'>environments</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;environments&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
 
440
+ 36
397
441
  37
398
- 38
399
- 39
400
- 40
401
- 41</pre>
442
+ 38</pre>
402
443
  </td>
403
444
  <td>
404
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 37</span>
445
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 36</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/environments</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
 
500
- 60
501
- 61
502
- 62
503
- 63
504
- 64</pre>
564
+ 57
565
+ 58
566
+ 59</pre>
505
567
  </td>
506
568
  <td>
507
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 60</span>
569
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 57</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/environments/: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>
@@ -586,8 +652,9 @@
586
652
 
587
653
  </span>
588
654
 
589
- &mdash; <div class='inline'>
590
- <p>Sort results</p>
655
+ &mdash; <div class='inline'><p>
656
+ Sort results
657
+ </p>
591
658
  </div>
592
659
 
593
660
  </li>
@@ -599,8 +666,9 @@
599
666
 
600
667
  </span>
601
668
 
602
- &mdash; <div class='inline'>
603
- <p>Paginate results</p>
669
+ &mdash; <div class='inline'><p>
670
+ Paginate results
671
+ </p>
604
672
  </div>
605
673
 
606
674
  </li>
@@ -612,8 +680,9 @@
612
680
 
613
681
  </span>
614
682
 
615
- &mdash; <div class='inline'>
616
- <p>Number of entries per request</p>
683
+ &mdash; <div class='inline'><p>
684
+ Number of entries per request
685
+ </p>
617
686
  </div>
618
687
 
619
688
  </li>
@@ -625,8 +694,9 @@
625
694
 
626
695
  </span>
627
696
 
628
- &mdash; <div class='inline'>
629
- <p>Filter results</p>
697
+ &mdash; <div class='inline'><p>
698
+ Filter results
699
+ </p>
630
700
  </div>
631
701
 
632
702
  </li>
@@ -636,6 +706,25 @@
636
706
 
637
707
 
638
708
 
709
+ <p class="tag_title">Returns:</p>
710
+ <ul class="return">
711
+
712
+ <li>
713
+
714
+
715
+ <span class='type'>(<tt>Array</tt>)</span>
716
+
717
+
718
+
719
+ &mdash;
720
+ <div class='inline'><p>
721
+ First item: parsed data; second item: raw body
722
+ </p>
723
+ </div>
724
+
725
+ </li>
726
+
727
+ </ul>
639
728
 
640
729
  </div><table class="source_code">
641
730
  <tr>
@@ -643,20 +732,17 @@
643
732
  <pre class="lines">
644
733
 
645
734
 
646
- 15
647
735
  16
648
736
  17
649
- 18
650
- 19</pre>
737
+ 18</pre>
651
738
  </td>
652
739
  <td>
653
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 15</span>
740
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 16</span>
654
741
 
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/environments</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>
742
+ <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>
743
+ <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>
744
+ <span class='rubyid_end end kw'>end</span>
745
+ </pre>
660
746
  </td>
661
747
  </tr>
662
748
  </table>
@@ -665,7 +751,7 @@
665
751
  <div class="method_details ">
666
752
  <h3 class="signature " id="show-instance_method">
667
753
 
668
- - (<tt>Object</tt>) <strong>show</strong>(params = { }, headers = { })
754
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
669
755
 
670
756
 
671
757
 
@@ -673,7 +759,10 @@
673
759
 
674
760
  </h3><div class="docstring">
675
761
  <div class="discussion">
676
-
762
+ <p>
763
+ First item: parsed data; second item: raw body
764
+ </p>
765
+
677
766
 
678
767
  </div>
679
768
  </div>
@@ -689,12 +778,13 @@
689
778
  <span class='type'>(<tt>Hash</tt>)</span>
690
779
 
691
780
 
692
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
781
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
693
782
 
694
783
 
695
784
  &mdash;
696
- <div class='inline'>
697
- <p>a hash of params to be passed to the service</p>
785
+ <div class='inline'><p>
786
+ a hash of params to be passed to the service
787
+ </p>
698
788
  </div>
699
789
 
700
790
  </li>
@@ -707,12 +797,13 @@
707
797
  <span class='type'>(<tt>Hash</tt>)</span>
708
798
 
709
799
 
710
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
800
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
711
801
 
712
802
 
713
803
  &mdash;
714
- <div class='inline'>
715
- <p>additional http headers</p>
804
+ <div class='inline'><p>
805
+ additional http headers
806
+ </p>
716
807
  </div>
717
808
 
718
809
  </li>
@@ -739,6 +830,25 @@
739
830
 
740
831
 
741
832
 
833
+ <p class="tag_title">Returns:</p>
834
+ <ul class="return">
835
+
836
+ <li>
837
+
838
+
839
+ <span class='type'>(<tt>Array</tt>)</span>
840
+
841
+
842
+
843
+ &mdash;
844
+ <div class='inline'><p>
845
+ First item: parsed data; second item: raw body
846
+ </p>
847
+ </div>
848
+
849
+ </li>
850
+
851
+ </ul>
742
852
 
743
853
  </div><table class="source_code">
744
854
  <tr>
@@ -748,18 +858,15 @@
748
858
 
749
859
  25
750
860
  26
751
- 27
752
- 28
753
- 29</pre>
861
+ 27</pre>
754
862
  </td>
755
863
  <td>
756
864
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 25</span>
757
865
 
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/environments/: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>
866
+ <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>
867
+ <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>
868
+ <span class='rubyid_end end kw'>end</span>
869
+ </pre>
763
870
  </td>
764
871
  </tr>
765
872
  </table>
@@ -768,7 +875,7 @@
768
875
  <div class="method_details ">
769
876
  <h3 class="signature " id="update-instance_method">
770
877
 
771
- - (<tt>Object</tt>) <strong>update</strong>(params = { }, headers = { })
878
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
772
879
 
773
880
 
774
881
 
@@ -776,7 +883,10 @@
776
883
 
777
884
  </h3><div class="docstring">
778
885
  <div class="discussion">
779
-
886
+ <p>
887
+ First item: parsed data; second item: raw body
888
+ </p>
889
+
780
890
 
781
891
  </div>
782
892
  </div>
@@ -792,12 +902,13 @@
792
902
  <span class='type'>(<tt>Hash</tt>)</span>
793
903
 
794
904
 
795
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
905
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
796
906
 
797
907
 
798
908
  &mdash;
799
- <div class='inline'>
800
- <p>a hash of params to be passed to the service</p>
909
+ <div class='inline'><p>
910
+ a hash of params to be passed to the service
911
+ </p>
801
912
  </div>
802
913
 
803
914
  </li>
@@ -810,12 +921,13 @@
810
921
  <span class='type'>(<tt>Hash</tt>)</span>
811
922
 
812
923
 
813
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
924
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
814
925
 
815
926
 
816
927
  &mdash;
817
- <div class='inline'>
818
- <p>additional http headers</p>
928
+ <div class='inline'><p>
929
+ additional http headers
930
+ </p>
819
931
  </div>
820
932
 
821
933
  </li>
@@ -844,11 +956,14 @@
844
956
 
845
957
  </span>
846
958
 
847
- &mdash; <div class='inline'>
848
- <p>allowed keys are:</p>
849
- <ul><li>
850
- <p>name [String],</p>
851
- </li></ul>
959
+ &mdash; <div class='inline'><p>
960
+ allowed keys are:
961
+ </p>
962
+ <ul>
963
+ <li>name [String]
964
+
965
+ </li>
966
+ </ul>
852
967
  </div>
853
968
 
854
969
  </li>
@@ -858,6 +973,25 @@
858
973
 
859
974
 
860
975
 
976
+ <p class="tag_title">Returns:</p>
977
+ <ul class="return">
978
+
979
+ <li>
980
+
981
+
982
+ <span class='type'>(<tt>Array</tt>)</span>
983
+
984
+
985
+
986
+ &mdash;
987
+ <div class='inline'><p>
988
+ First item: parsed data; second item: raw body
989
+ </p>
990
+ </div>
991
+
992
+ </li>
993
+
994
+ </ul>
861
995
 
862
996
  </div><table class="source_code">
863
997
  <tr>
@@ -865,20 +999,17 @@
865
999
  <pre class="lines">
866
1000
 
867
1001
 
868
- 50
869
- 51
870
- 52
871
- 53
872
- 54</pre>
1002
+ 48
1003
+ 49
1004
+ 50</pre>
873
1005
  </td>
874
1006
  <td>
875
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 50</span>
1007
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/environment.rb', line 48</span>
876
1008
 
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/environments/: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>
1009
+ <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>
1010
+ <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>
1011
+ <span class='rubyid_end end kw'>end</span>
1012
+ </pre>
882
1013
  </td>
883
1014
  </tr>
884
1015
  </table>
@@ -889,9 +1020,9 @@
889
1020
  </div>
890
1021
 
891
1022
  <div id="footer">
892
- Generated on Mon Jan 21 15:44:36 2013 by
1023
+ Generated on Tue Mar 19 09:50:27 2013 by
893
1024
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
894
- 0.8.3 (ruby-1.9.3).
1025
+ 0.8.5.2 (ruby-1.8.7).
895
1026
  </div>
896
1027
 
897
1028
  </body>