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::Audit
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="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong>(params = { }, headers = { }) </a>
153
+ <a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</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="#show-instance_method" title="#show (instance method)">- (Object) <strong>show</strong>(params = { }, headers = { }) </a>
178
+ <a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</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
 
@@ -223,9 +229,10 @@
223
229
  <td>
224
230
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/audit.rb', line 4</span>
225
231
 
226
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
227
- <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'>audits</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
228
- <span class='kw'>end</span></pre>
232
+ <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>
233
+ <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;audits&quot;</span><span class='rbrack token'>]</span>
234
+ <span class='rubyid_end end kw'>end</span>
235
+ </pre>
229
236
  </td>
230
237
  </tr>
231
238
  </table>
@@ -240,7 +247,7 @@
240
247
  <div class="method_details first">
241
248
  <h3 class="signature first" id="index-instance_method">
242
249
 
243
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
250
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
244
251
 
245
252
 
246
253
 
@@ -248,7 +255,10 @@
248
255
 
249
256
  </h3><div class="docstring">
250
257
  <div class="discussion">
251
-
258
+ <p>
259
+ First item: parsed data; second item: raw body
260
+ </p>
261
+
252
262
 
253
263
  </div>
254
264
  </div>
@@ -264,12 +274,13 @@
264
274
  <span class='type'>(<tt>Hash</tt>)</span>
265
275
 
266
276
 
267
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
277
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
268
278
 
269
279
 
270
280
  &mdash;
271
- <div class='inline'>
272
- <p>a hash of params to be passed to the service</p>
281
+ <div class='inline'><p>
282
+ a hash of params to be passed to the service
283
+ </p>
273
284
  </div>
274
285
 
275
286
  </li>
@@ -282,12 +293,13 @@
282
293
  <span class='type'>(<tt>Hash</tt>)</span>
283
294
 
284
295
 
285
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
296
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
286
297
 
287
298
 
288
299
  &mdash;
289
- <div class='inline'>
290
- <p>additional http headers</p>
300
+ <div class='inline'><p>
301
+ additional http headers
302
+ </p>
291
303
  </div>
292
304
 
293
305
  </li>
@@ -300,6 +312,20 @@
300
312
  <p class="tag_title">Options Hash (<tt>params</tt>):</p>
301
313
  <ul class="option">
302
314
 
315
+ <li>
316
+ <span class="name">host_id</span>
317
+ <span class="type">(<tt>Object</tt>)</span>
318
+ <span class="default">
319
+
320
+ </span>
321
+
322
+ &mdash; <div class='inline'><p>
323
+ Part of <tt>/api/hosts/:host_id/audits</tt> path
324
+ </p>
325
+ </div>
326
+
327
+ </li>
328
+
303
329
  <li>
304
330
  <span class="name">order</span>
305
331
  <span class="type">(<tt>String</tt>)</span>
@@ -307,8 +333,9 @@
307
333
 
308
334
  </span>
309
335
 
310
- &mdash; <div class='inline'>
311
- <p>Sort results</p>
336
+ &mdash; <div class='inline'><p>
337
+ Sort results
338
+ </p>
312
339
  </div>
313
340
 
314
341
  </li>
@@ -320,8 +347,9 @@
320
347
 
321
348
  </span>
322
349
 
323
- &mdash; <div class='inline'>
324
- <p>Paginate results</p>
350
+ &mdash; <div class='inline'><p>
351
+ Paginate results
352
+ </p>
325
353
  </div>
326
354
 
327
355
  </li>
@@ -333,8 +361,9 @@
333
361
 
334
362
  </span>
335
363
 
336
- &mdash; <div class='inline'>
337
- <p>Number of entries per request</p>
364
+ &mdash; <div class='inline'><p>
365
+ Number of entries per request
366
+ </p>
338
367
  </div>
339
368
 
340
369
  </li>
@@ -346,8 +375,9 @@
346
375
 
347
376
  </span>
348
377
 
349
- &mdash; <div class='inline'>
350
- <p>Filter results</p>
378
+ &mdash; <div class='inline'><p>
379
+ Filter results
380
+ </p>
351
381
  </div>
352
382
 
353
383
  </li>
@@ -357,6 +387,25 @@
357
387
 
358
388
 
359
389
 
390
+ <p class="tag_title">Returns:</p>
391
+ <ul class="return">
392
+
393
+ <li>
394
+
395
+
396
+ <span class='type'>(<tt>Array</tt>)</span>
397
+
398
+
399
+
400
+ &mdash;
401
+ <div class='inline'><p>
402
+ First item: parsed data; second item: raw body
403
+ </p>
404
+ </div>
405
+
406
+ </li>
407
+
408
+ </ul>
360
409
 
361
410
  </div><table class="source_code">
362
411
  <tr>
@@ -364,20 +413,17 @@
364
413
  <pre class="lines">
365
414
 
366
415
 
367
- 15
368
- 16
369
416
  17
370
417
  18
371
418
  19</pre>
372
419
  </td>
373
420
  <td>
374
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/audit.rb', line 15</span>
421
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/audit.rb', line 17</span>
375
422
 
376
- <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>
377
- <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>
378
- <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/audits</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
379
- <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>
380
- <span class='kw'>end</span></pre>
423
+ <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>
424
+ <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>
425
+ <span class='rubyid_end end kw'>end</span>
426
+ </pre>
381
427
  </td>
382
428
  </tr>
383
429
  </table>
@@ -386,7 +432,7 @@
386
432
  <div class="method_details ">
387
433
  <h3 class="signature " id="show-instance_method">
388
434
 
389
- - (<tt>Object</tt>) <strong>show</strong>(params = { }, headers = { })
435
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
390
436
 
391
437
 
392
438
 
@@ -394,7 +440,10 @@
394
440
 
395
441
  </h3><div class="docstring">
396
442
  <div class="discussion">
397
-
443
+ <p>
444
+ First item: parsed data; second item: raw body
445
+ </p>
446
+
398
447
 
399
448
  </div>
400
449
  </div>
@@ -410,12 +459,13 @@
410
459
  <span class='type'>(<tt>Hash</tt>)</span>
411
460
 
412
461
 
413
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
462
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
414
463
 
415
464
 
416
465
  &mdash;
417
- <div class='inline'>
418
- <p>a hash of params to be passed to the service</p>
466
+ <div class='inline'><p>
467
+ a hash of params to be passed to the service
468
+ </p>
419
469
  </div>
420
470
 
421
471
  </li>
@@ -428,12 +478,13 @@
428
478
  <span class='type'>(<tt>Hash</tt>)</span>
429
479
 
430
480
 
431
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
481
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
432
482
 
433
483
 
434
484
  &mdash;
435
- <div class='inline'>
436
- <p>additional http headers</p>
485
+ <div class='inline'><p>
486
+ additional http headers
487
+ </p>
437
488
  </div>
438
489
 
439
490
  </li>
@@ -460,6 +511,25 @@
460
511
 
461
512
 
462
513
 
514
+ <p class="tag_title">Returns:</p>
515
+ <ul class="return">
516
+
517
+ <li>
518
+
519
+
520
+ <span class='type'>(<tt>Array</tt>)</span>
521
+
522
+
523
+
524
+ &mdash;
525
+ <div class='inline'><p>
526
+ First item: parsed data; second item: raw body
527
+ </p>
528
+ </div>
529
+
530
+ </li>
531
+
532
+ </ul>
463
533
 
464
534
  </div><table class="source_code">
465
535
  <tr>
@@ -467,20 +537,17 @@
467
537
  <pre class="lines">
468
538
 
469
539
 
470
- 25
471
540
  26
472
541
  27
473
- 28
474
- 29</pre>
542
+ 28</pre>
475
543
  </td>
476
544
  <td>
477
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/audit.rb', line 25</span>
545
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/audit.rb', line 26</span>
478
546
 
479
- <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>
480
- <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>
481
- <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/audits/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
482
- <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>
483
- <span class='kw'>end</span></pre>
547
+ <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>
548
+ <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>
549
+ <span class='rubyid_end end kw'>end</span>
550
+ </pre>
484
551
  </td>
485
552
  </tr>
486
553
  </table>
@@ -491,9 +558,9 @@
491
558
  </div>
492
559
 
493
560
  <div id="footer">
494
- Generated on Mon Jan 21 15:44:34 2013 by
561
+ Generated on Tue Mar 19 09:50:23 2013 by
495
562
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
496
- 0.8.3 (ruby-1.9.3).
563
+ 0.8.5.2 (ruby-1.8.7).
497
564
  </div>
498
565
 
499
566
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ForemanApi::Resources::AuthSourceLdap
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/auth_source_ldap.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'>auth_source_ldaps</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;auth_source_ldaps&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,33 +394,47 @@
373
394
 
374
395
  </span>
375
396
 
376
- &mdash; <div class='inline'>
377
- <p>allowed keys are:</p>
378
- <ul><li>
379
- <p>account [String],</p>
380
- </li><li>
381
- <p>account_password [String] Required if onthefly_register is true ,</p>
382
- </li><li>
383
- <p>attr_firstname [String] Required if onthefly_register is true ,</p>
384
- </li><li>
385
- <p>attr_lastname [String] Required if onthefly_register is true ,</p>
386
- </li><li>
387
- <p>attr_login [String] Required if onthefly_register is true ,</p>
388
- </li><li>
389
- <p>attr_mail [String] Required if onthefly_register is true ,</p>
390
- </li><li>
391
- <p>base_dn [String],</p>
392
- </li><li>
393
- <p>host [String],</p>
394
- </li><li>
395
- <p>name [String],</p>
396
- </li><li>
397
- <p>onthefly_register [String],</p>
398
- </li><li>
399
- <p>port [String] Defaults to 389 ,</p>
400
- </li><li>
401
- <p>tls [String],</p>
402
- </li></ul>
397
+ &mdash; <div class='inline'><p>
398
+ allowed keys are:
399
+ </p>
400
+ <ul>
401
+ <li>account [String]
402
+
403
+ </li>
404
+ <li>account_password [String] Required if onthefly_register is true
405
+
406
+ </li>
407
+ <li>attr_firstname [String] Required if onthefly_register is true
408
+
409
+ </li>
410
+ <li>attr_lastname [String] Required if onthefly_register is true
411
+
412
+ </li>
413
+ <li>attr_login [String] Required if onthefly_register is true
414
+
415
+ </li>
416
+ <li>attr_mail [String] Required if onthefly_register is true
417
+
418
+ </li>
419
+ <li>base_dn [String]
420
+
421
+ </li>
422
+ <li>host [String]
423
+
424
+ </li>
425
+ <li>name [String]
426
+
427
+ </li>
428
+ <li>onthefly_register [String]
429
+
430
+ </li>
431
+ <li>port [String] Defaults to 389
432
+
433
+ </li>
434
+ <li>tls [String]
435
+
436
+ </li>
437
+ </ul>
403
438
  </div>
404
439
 
405
440
  </li>
@@ -409,6 +444,25 @@
409
444
 
410
445
 
411
446
 
447
+ <p class="tag_title">Returns:</p>
448
+ <ul class="return">
449
+
450
+ <li>
451
+
452
+
453
+ <span class='type'>(<tt>Array</tt>)</span>
454
+
455
+
456
+
457
+ &mdash;
458
+ <div class='inline'><p>
459
+ First item: parsed data; second item: raw body
460
+ </p>
461
+ </div>
462
+
463
+ </li>
464
+
465
+ </ul>
412
466
 
413
467
  </div><table class="source_code">
414
468
  <tr>
@@ -416,20 +470,17 @@
416
470
  <pre class="lines">
417
471
 
418
472
 
473
+ 45
419
474
  46
420
- 47
421
- 48
422
- 49
423
- 50</pre>
475
+ 47</pre>
424
476
  </td>
425
477
  <td>
426
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 46</span>
478
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 45</span>
427
479
 
428
- <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>
429
- <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>
430
- <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/auth_source_ldaps</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
431
- <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>
432
- <span class='kw'>end</span></pre>
480
+ <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>
481
+ <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>
482
+ <span class='rubyid_end end kw'>end</span>
483
+ </pre>
433
484
  </td>
434
485
  </tr>
435
486
  </table>
@@ -438,7 +489,7 @@
438
489
  <div class="method_details ">
439
490
  <h3 class="signature " id="destroy-instance_method">
440
491
 
441
- - (<tt>Object</tt>) <strong>destroy</strong>(params = { }, headers = { })
492
+ - (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
442
493
 
443
494
 
444
495
 
@@ -446,7 +497,10 @@
446
497
 
447
498
  </h3><div class="docstring">
448
499
  <div class="discussion">
449
-
500
+ <p>
501
+ First item: parsed data; second item: raw body
502
+ </p>
503
+
450
504
 
451
505
  </div>
452
506
  </div>
@@ -462,12 +516,13 @@
462
516
  <span class='type'>(<tt>Hash</tt>)</span>
463
517
 
464
518
 
465
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
519
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
466
520
 
467
521
 
468
522
  &mdash;
469
- <div class='inline'>
470
- <p>a hash of params to be passed to the service</p>
523
+ <div class='inline'><p>
524
+ a hash of params to be passed to the service
525
+ </p>
471
526
  </div>
472
527
 
473
528
  </li>
@@ -480,12 +535,13 @@
480
535
  <span class='type'>(<tt>Hash</tt>)</span>
481
536
 
482
537
 
483
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
538
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
484
539
 
485
540
 
486
541
  &mdash;
487
- <div class='inline'>
488
- <p>additional http headers</p>
542
+ <div class='inline'><p>
543
+ additional http headers
544
+ </p>
489
545
  </div>
490
546
 
491
547
  </li>
@@ -512,6 +568,25 @@
512
568
 
513
569
 
514
570
 
571
+ <p class="tag_title">Returns:</p>
572
+ <ul class="return">
573
+
574
+ <li>
575
+
576
+
577
+ <span class='type'>(<tt>Array</tt>)</span>
578
+
579
+
580
+
581
+ &mdash;
582
+ <div class='inline'><p>
583
+ First item: parsed data; second item: raw body
584
+ </p>
585
+ </div>
586
+
587
+ </li>
588
+
589
+ </ul>
515
590
 
516
591
  </div><table class="source_code">
517
592
  <tr>
@@ -519,20 +594,17 @@
519
594
  <pre class="lines">
520
595
 
521
596
 
522
- 80
523
- 81
524
- 82
525
- 83
526
- 84</pre>
597
+ 77
598
+ 78
599
+ 79</pre>
527
600
  </td>
528
601
  <td>
529
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 80</span>
602
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 77</span>
530
603
 
531
- <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>
532
- <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>
533
- <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/auth_source_ldaps/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
534
- <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>
535
- <span class='kw'>end</span></pre>
604
+ <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>
605
+ <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>
606
+ <span class='rubyid_end end kw'>end</span>
607
+ </pre>
536
608
  </td>
537
609
  </tr>
538
610
  </table>
@@ -541,7 +613,7 @@
541
613
  <div class="method_details ">
542
614
  <h3 class="signature " id="index-instance_method">
543
615
 
544
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
616
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
545
617
 
546
618
 
547
619
 
@@ -549,7 +621,10 @@
549
621
 
550
622
  </h3><div class="docstring">
551
623
  <div class="discussion">
552
-
624
+ <p>
625
+ First item: parsed data; second item: raw body
626
+ </p>
627
+
553
628
 
554
629
  </div>
555
630
  </div>
@@ -565,12 +640,13 @@
565
640
  <span class='type'>(<tt>Hash</tt>)</span>
566
641
 
567
642
 
568
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
643
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
569
644
 
570
645
 
571
646
  &mdash;
572
- <div class='inline'>
573
- <p>a hash of params to be passed to the service</p>
647
+ <div class='inline'><p>
648
+ a hash of params to be passed to the service
649
+ </p>
574
650
  </div>
575
651
 
576
652
  </li>
@@ -583,12 +659,13 @@
583
659
  <span class='type'>(<tt>Hash</tt>)</span>
584
660
 
585
661
 
586
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
662
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
587
663
 
588
664
 
589
665
  &mdash;
590
- <div class='inline'>
591
- <p>additional http headers</p>
666
+ <div class='inline'><p>
667
+ additional http headers
668
+ </p>
592
669
  </div>
593
670
 
594
671
  </li>
@@ -608,8 +685,9 @@
608
685
 
609
686
  </span>
610
687
 
611
- &mdash; <div class='inline'>
612
- <p>Paginate results</p>
688
+ &mdash; <div class='inline'><p>
689
+ Paginate results
690
+ </p>
613
691
  </div>
614
692
 
615
693
  </li>
@@ -621,8 +699,9 @@
621
699
 
622
700
  </span>
623
701
 
624
- &mdash; <div class='inline'>
625
- <p>Number of entries per request</p>
702
+ &mdash; <div class='inline'><p>
703
+ Number of entries per request
704
+ </p>
626
705
  </div>
627
706
 
628
707
  </li>
@@ -632,6 +711,25 @@
632
711
 
633
712
 
634
713
 
714
+ <p class="tag_title">Returns:</p>
715
+ <ul class="return">
716
+
717
+ <li>
718
+
719
+
720
+ <span class='type'>(<tt>Array</tt>)</span>
721
+
722
+
723
+
724
+ &mdash;
725
+ <div class='inline'><p>
726
+ First item: parsed data; second item: raw body
727
+ </p>
728
+ </div>
729
+
730
+ </li>
731
+
732
+ </ul>
635
733
 
636
734
  </div><table class="source_code">
637
735
  <tr>
@@ -639,20 +737,17 @@
639
737
  <pre class="lines">
640
738
 
641
739
 
642
- 13
643
740
  14
644
741
  15
645
- 16
646
- 17</pre>
742
+ 16</pre>
647
743
  </td>
648
744
  <td>
649
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 13</span>
745
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 14</span>
650
746
 
651
- <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>
652
- <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>
653
- <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/auth_source_ldaps</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
654
- <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>
655
- <span class='kw'>end</span></pre>
747
+ <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>
748
+ <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>
749
+ <span class='rubyid_end end kw'>end</span>
750
+ </pre>
656
751
  </td>
657
752
  </tr>
658
753
  </table>
@@ -661,7 +756,7 @@
661
756
  <div class="method_details ">
662
757
  <h3 class="signature " id="show-instance_method">
663
758
 
664
- - (<tt>Object</tt>) <strong>show</strong>(params = { }, headers = { })
759
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
665
760
 
666
761
 
667
762
 
@@ -669,7 +764,10 @@
669
764
 
670
765
  </h3><div class="docstring">
671
766
  <div class="discussion">
672
-
767
+ <p>
768
+ First item: parsed data; second item: raw body
769
+ </p>
770
+
673
771
 
674
772
  </div>
675
773
  </div>
@@ -685,12 +783,13 @@
685
783
  <span class='type'>(<tt>Hash</tt>)</span>
686
784
 
687
785
 
688
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
786
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
689
787
 
690
788
 
691
789
  &mdash;
692
- <div class='inline'>
693
- <p>a hash of params to be passed to the service</p>
790
+ <div class='inline'><p>
791
+ a hash of params to be passed to the service
792
+ </p>
694
793
  </div>
695
794
 
696
795
  </li>
@@ -703,12 +802,13 @@
703
802
  <span class='type'>(<tt>Hash</tt>)</span>
704
803
 
705
804
 
706
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
805
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
707
806
 
708
807
 
709
808
  &mdash;
710
- <div class='inline'>
711
- <p>additional http headers</p>
809
+ <div class='inline'><p>
810
+ additional http headers
811
+ </p>
712
812
  </div>
713
813
 
714
814
  </li>
@@ -735,6 +835,25 @@
735
835
 
736
836
 
737
837
 
838
+ <p class="tag_title">Returns:</p>
839
+ <ul class="return">
840
+
841
+ <li>
842
+
843
+
844
+ <span class='type'>(<tt>Array</tt>)</span>
845
+
846
+
847
+
848
+ &mdash;
849
+ <div class='inline'><p>
850
+ First item: parsed data; second item: raw body
851
+ </p>
852
+ </div>
853
+
854
+ </li>
855
+
856
+ </ul>
738
857
 
739
858
  </div><table class="source_code">
740
859
  <tr>
@@ -744,18 +863,15 @@
744
863
 
745
864
  23
746
865
  24
747
- 25
748
- 26
749
- 27</pre>
866
+ 25</pre>
750
867
  </td>
751
868
  <td>
752
869
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 23</span>
753
870
 
754
- <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>
755
- <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>
756
- <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/auth_source_ldaps/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
757
- <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>
758
- <span class='kw'>end</span></pre>
871
+ <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>
872
+ <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>
873
+ <span class='rubyid_end end kw'>end</span>
874
+ </pre>
759
875
  </td>
760
876
  </tr>
761
877
  </table>
@@ -764,7 +880,7 @@
764
880
  <div class="method_details ">
765
881
  <h3 class="signature " id="update-instance_method">
766
882
 
767
- - (<tt>Object</tt>) <strong>update</strong>(params = { }, headers = { })
883
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
768
884
 
769
885
 
770
886
 
@@ -772,7 +888,10 @@
772
888
 
773
889
  </h3><div class="docstring">
774
890
  <div class="discussion">
775
-
891
+ <p>
892
+ First item: parsed data; second item: raw body
893
+ </p>
894
+
776
895
 
777
896
  </div>
778
897
  </div>
@@ -788,12 +907,13 @@
788
907
  <span class='type'>(<tt>Hash</tt>)</span>
789
908
 
790
909
 
791
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
910
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
792
911
 
793
912
 
794
913
  &mdash;
795
- <div class='inline'>
796
- <p>a hash of params to be passed to the service</p>
914
+ <div class='inline'><p>
915
+ a hash of params to be passed to the service
916
+ </p>
797
917
  </div>
798
918
 
799
919
  </li>
@@ -806,12 +926,13 @@
806
926
  <span class='type'>(<tt>Hash</tt>)</span>
807
927
 
808
928
 
809
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
929
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
810
930
 
811
931
 
812
932
  &mdash;
813
- <div class='inline'>
814
- <p>additional http headers</p>
933
+ <div class='inline'><p>
934
+ additional http headers
935
+ </p>
815
936
  </div>
816
937
 
817
938
  </li>
@@ -840,33 +961,47 @@
840
961
 
841
962
  </span>
842
963
 
843
- &mdash; <div class='inline'>
844
- <p>allowed keys are:</p>
845
- <ul><li>
846
- <p>account [String],</p>
847
- </li><li>
848
- <p>account_password [String] Required if onthefly_register is true ,</p>
849
- </li><li>
850
- <p>attr_firstname [String] Required if onthefly_register is true ,</p>
851
- </li><li>
852
- <p>attr_lastname [String] Required if onthefly_register is true ,</p>
853
- </li><li>
854
- <p>attr_login [String] Required if onthefly_register is true ,</p>
855
- </li><li>
856
- <p>attr_mail [String] Required if onthefly_register is true ,</p>
857
- </li><li>
858
- <p>base_dn [String],</p>
859
- </li><li>
860
- <p>host [String],</p>
861
- </li><li>
862
- <p>name [String],</p>
863
- </li><li>
864
- <p>onthefly_register [String],</p>
865
- </li><li>
866
- <p>port [String] Defaults to 389 ,</p>
867
- </li><li>
868
- <p>tls [String],</p>
869
- </li></ul>
964
+ &mdash; <div class='inline'><p>
965
+ allowed keys are:
966
+ </p>
967
+ <ul>
968
+ <li>account [String]
969
+
970
+ </li>
971
+ <li>account_password [String] Required if onthefly_register is true
972
+
973
+ </li>
974
+ <li>attr_firstname [String] Required if onthefly_register is true
975
+
976
+ </li>
977
+ <li>attr_lastname [String] Required if onthefly_register is true
978
+
979
+ </li>
980
+ <li>attr_login [String] Required if onthefly_register is true
981
+
982
+ </li>
983
+ <li>attr_mail [String] Required if onthefly_register is true
984
+
985
+ </li>
986
+ <li>base_dn [String]
987
+
988
+ </li>
989
+ <li>host [String]
990
+
991
+ </li>
992
+ <li>name [String]
993
+
994
+ </li>
995
+ <li>onthefly_register [String]
996
+
997
+ </li>
998
+ <li>port [String] Defaults to 389
999
+
1000
+ </li>
1001
+ <li>tls [String]
1002
+
1003
+ </li>
1004
+ </ul>
870
1005
  </div>
871
1006
 
872
1007
  </li>
@@ -876,6 +1011,25 @@
876
1011
 
877
1012
 
878
1013
 
1014
+ <p class="tag_title">Returns:</p>
1015
+ <ul class="return">
1016
+
1017
+ <li>
1018
+
1019
+
1020
+ <span class='type'>(<tt>Array</tt>)</span>
1021
+
1022
+
1023
+
1024
+ &mdash;
1025
+ <div class='inline'><p>
1026
+ First item: parsed data; second item: raw body
1027
+ </p>
1028
+ </div>
1029
+
1030
+ </li>
1031
+
1032
+ </ul>
879
1033
 
880
1034
  </div><table class="source_code">
881
1035
  <tr>
@@ -883,20 +1037,17 @@
883
1037
  <pre class="lines">
884
1038
 
885
1039
 
886
- 70
887
- 71
888
- 72
889
- 73
890
- 74</pre>
1040
+ 68
1041
+ 69
1042
+ 70</pre>
891
1043
  </td>
892
1044
  <td>
893
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 70</span>
1045
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/auth_source_ldap.rb', line 68</span>
894
1046
 
895
- <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>
896
- <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>
897
- <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/auth_source_ldaps/:id</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
898
- <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>
899
- <span class='kw'>end</span></pre>
1047
+ <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>
1048
+ <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>
1049
+ <span class='rubyid_end end kw'>end</span>
1050
+ </pre>
900
1051
  </td>
901
1052
  </tr>
902
1053
  </table>
@@ -907,9 +1058,9 @@
907
1058
  </div>
908
1059
 
909
1060
  <div id="footer">
910
- Generated on Mon Jan 21 15:44:36 2013 by
1061
+ Generated on Tue Mar 19 09:50:28 2013 by
911
1062
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
912
- 0.8.3 (ruby-1.9.3).
1063
+ 0.8.5.2 (ruby-1.8.7).
913
1064
  </div>
914
1065
 
915
1066
  </body>