foreman_api 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/doc/ForemanApi.html +3 -3
  3. data/doc/ForemanApi/Resources.html +4 -4
  4. data/doc/ForemanApi/Resources/Architecture.html +7 -7
  5. data/doc/ForemanApi/Resources/Audit.html +5 -5
  6. data/doc/ForemanApi/Resources/AuthSourceLdap.html +15 -15
  7. data/doc/ForemanApi/Resources/Bookmark.html +3 -3
  8. data/doc/ForemanApi/Resources/CommonParameter.html +5 -5
  9. data/doc/ForemanApi/Resources/ComputeResource.html +167 -24
  10. data/doc/ForemanApi/Resources/ConfigTemplate.html +14 -14
  11. data/doc/ForemanApi/Resources/Dashboard.html +2 -2
  12. data/doc/ForemanApi/Resources/Domain.html +14 -14
  13. data/doc/ForemanApi/Resources/Environment.html +199 -25
  14. data/doc/ForemanApi/Resources/FactValue.html +5 -5
  15. data/doc/ForemanApi/Resources/Home.html +1 -1
  16. data/doc/ForemanApi/Resources/Host.html +509 -10
  17. data/doc/ForemanApi/Resources/HostClass.html +5 -5
  18. data/doc/ForemanApi/Resources/Hostgroup.html +5 -5
  19. data/doc/ForemanApi/Resources/HostgroupClass.html +5 -5
  20. data/doc/ForemanApi/Resources/Image.html +5 -5
  21. data/doc/ForemanApi/Resources/Interface.html +1045 -0
  22. data/doc/ForemanApi/Resources/Location.html +5 -5
  23. data/doc/ForemanApi/Resources/LookupKey.html +62 -811
  24. data/doc/ForemanApi/Resources/Medium.html +13 -13
  25. data/doc/ForemanApi/Resources/Model.html +5 -5
  26. data/doc/ForemanApi/Resources/OperatingSystem.html +5 -5
  27. data/doc/ForemanApi/Resources/Organization.html +5 -5
  28. data/doc/ForemanApi/Resources/OverrideValue.html +1060 -0
  29. data/doc/ForemanApi/Resources/Parameter.html +26 -26
  30. data/doc/ForemanApi/Resources/Ptable.html +5 -5
  31. data/doc/ForemanApi/Resources/Puppetclass.html +80 -28
  32. data/doc/ForemanApi/Resources/Report.html +164 -6
  33. data/doc/ForemanApi/Resources/Role.html +3 -3
  34. data/doc/ForemanApi/Resources/Setting.html +5 -5
  35. data/doc/ForemanApi/Resources/SmartClassParameter.html +747 -0
  36. data/doc/ForemanApi/Resources/SmartProxy.html +341 -24
  37. data/doc/ForemanApi/Resources/SmartVariable.html +1043 -0
  38. data/doc/ForemanApi/Resources/Statistic.html +330 -0
  39. data/doc/ForemanApi/Resources/Subnet.html +33 -33
  40. data/doc/ForemanApi/Resources/TemplateCombination.html +3 -3
  41. data/doc/ForemanApi/Resources/TemplateKind.html +3 -3
  42. data/doc/ForemanApi/Resources/User.html +7 -7
  43. data/doc/ForemanApi/Resources/Usergroup.html +5 -5
  44. data/doc/_index.html +36 -1
  45. data/doc/class_list.html +1 -1
  46. data/doc/file.MIT-LICENSE.html +1 -1
  47. data/doc/file.README.html +1 -1
  48. data/doc/index.html +1 -1
  49. data/doc/method_list.html +515 -347
  50. data/doc/top-level-namespace.html +1 -1
  51. data/lib/foreman_api/base.rb +2 -1
  52. data/lib/foreman_api/documentation.json +1 -1
  53. data/lib/foreman_api/resources/architecture.rb +6 -6
  54. data/lib/foreman_api/resources/audit.rb +4 -4
  55. data/lib/foreman_api/resources/auth_source_ldap.rb +14 -14
  56. data/lib/foreman_api/resources/bookmark.rb +2 -2
  57. data/lib/foreman_api/resources/common_parameter.rb +4 -4
  58. data/lib/foreman_api/resources/compute_resource.rb +29 -20
  59. data/lib/foreman_api/resources/config_template.rb +13 -13
  60. data/lib/foreman_api/resources/dashboard.rb +1 -1
  61. data/lib/foreman_api/resources/domain.rb +13 -13
  62. data/lib/foreman_api/resources/environment.rb +16 -4
  63. data/lib/foreman_api/resources/fact_value.rb +4 -4
  64. data/lib/foreman_api/resources/host.rb +40 -8
  65. data/lib/foreman_api/resources/host_class.rb +4 -4
  66. data/lib/foreman_api/resources/hostgroup.rb +4 -4
  67. data/lib/foreman_api/resources/hostgroup_class.rb +4 -4
  68. data/lib/foreman_api/resources/image.rb +4 -4
  69. data/lib/foreman_api/resources/interface.rb +80 -0
  70. data/lib/foreman_api/resources/location.rb +4 -4
  71. data/lib/foreman_api/resources/lookup_key.rb +6 -65
  72. data/lib/foreman_api/resources/medium.rb +10 -10
  73. data/lib/foreman_api/resources/model.rb +4 -4
  74. data/lib/foreman_api/resources/operating_system.rb +4 -4
  75. data/lib/foreman_api/resources/organization.rb +4 -4
  76. data/lib/foreman_api/resources/override_value.rb +73 -0
  77. data/lib/foreman_api/resources/parameter.rb +25 -25
  78. data/lib/foreman_api/resources/ptable.rb +4 -4
  79. data/lib/foreman_api/resources/puppetclass.rb +11 -7
  80. data/lib/foreman_api/resources/report.rb +19 -4
  81. data/lib/foreman_api/resources/role.rb +2 -2
  82. data/lib/foreman_api/resources/setting.rb +4 -4
  83. data/lib/foreman_api/resources/smart_class_parameter.rb +55 -0
  84. data/lib/foreman_api/resources/smart_proxy.rb +24 -3
  85. data/lib/foreman_api/resources/smart_variable.rb +80 -0
  86. data/lib/foreman_api/resources/statistic.rb +18 -0
  87. data/lib/foreman_api/resources/subnet.rb +32 -32
  88. data/lib/foreman_api/resources/template_combination.rb +2 -2
  89. data/lib/foreman_api/resources/template_kind.rb +2 -2
  90. data/lib/foreman_api/resources/user.rb +6 -6
  91. data/lib/foreman_api/resources/usergroup.rb +4 -4
  92. data/lib/foreman_api/version.rb +1 -1
  93. metadata +13 -3
@@ -303,7 +303,7 @@
303
303
  </span>
304
304
 
305
305
  &mdash; <div class='inline'>
306
- <p>Sort results</p>
306
+ <p>sort results</p>
307
307
  </div>
308
308
 
309
309
  </li>
@@ -316,7 +316,7 @@
316
316
  </span>
317
317
 
318
318
  &mdash; <div class='inline'>
319
- <p>Paginate results</p>
319
+ <p>paginate results</p>
320
320
  </div>
321
321
 
322
322
  </li>
@@ -329,7 +329,7 @@
329
329
  </span>
330
330
 
331
331
  &mdash; <div class='inline'>
332
- <p>Number of entries per request</p>
332
+ <p>number of entries per request</p>
333
333
  </div>
334
334
 
335
335
  </li>
@@ -342,7 +342,7 @@
342
342
  </span>
343
343
 
344
344
  &mdash; <div class='inline'>
345
- <p>Filter results</p>
345
+ <p>filter results</p>
346
346
  </div>
347
347
 
348
348
  </li>
@@ -397,7 +397,7 @@
397
397
  </div>
398
398
 
399
399
  <div id="footer">
400
- Generated on Mon Aug 26 13:05:13 2013 by
400
+ Generated on Mon Oct 21 11:10:45 2013 by
401
401
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
402
402
  0.8.7 (ruby-2.0.0).
403
403
  </div>
@@ -444,7 +444,7 @@
444
444
  </div>
445
445
 
446
446
  <div id="footer">
447
- Generated on Mon Aug 26 13:05:12 2013 by
447
+ Generated on Mon Oct 21 11:10:43 2013 by
448
448
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
449
  0.8.7 (ruby-2.0.0).
450
450
  </div>
@@ -150,6 +150,30 @@
150
150
  <li class="public ">
151
151
  <span class="summary_signature">
152
152
 
153
+ <a href="#boot-instance_method" title="#boot (instance method)">- (Array) <strong>boot</strong>(params = {}, headers = {}) </a>
154
+
155
+
156
+
157
+ </span>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <span class="summary_desc"><div class='inline'>
168
+ <p>First item: parsed data; second item: raw body.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
153
177
  <a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</strong>(params = {}, headers = {}) </a>
154
178
 
155
179
 
@@ -188,6 +212,30 @@
188
212
 
189
213
 
190
214
 
215
+ <span class="summary_desc"><div class='inline'>
216
+ <p>First item: parsed data; second item: raw body.</p>
217
+ </div></span>
218
+
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#facts-instance_method" title="#facts (instance method)">- (Array) <strong>facts</strong>(params = {}, headers = {}) </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
191
239
  <span class="summary_desc"><div class='inline'>
192
240
  <p>First item: parsed data; second item: raw body.</p>
193
241
  </div></span>
@@ -212,6 +260,30 @@
212
260
 
213
261
 
214
262
 
263
+ <span class="summary_desc"><div class='inline'>
264
+ <p>First item: parsed data; second item: raw body.</p>
265
+ </div></span>
266
+
267
+ </li>
268
+
269
+
270
+ <li class="public ">
271
+ <span class="summary_signature">
272
+
273
+ <a href="#power-instance_method" title="#power (instance method)">- (Array) <strong>power</strong>(params = {}, headers = {}) </a>
274
+
275
+
276
+
277
+ </span>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
215
287
  <span class="summary_desc"><div class='inline'>
216
288
  <p>First item: parsed data; second item: raw body.</p>
217
289
  </div></span>
@@ -362,7 +434,139 @@
362
434
 
363
435
 
364
436
  <div class="method_details first">
365
- <h3 class="signature first" id="create-instance_method">
437
+ <h3 class="signature first" id="boot-instance_method">
438
+
439
+ - (<tt>Array</tt>) <strong>boot</strong>(params = {}, headers = {})
440
+
441
+
442
+
443
+
444
+
445
+ </h3><div class="docstring">
446
+ <div class="discussion">
447
+
448
+ <p>Returns First item: parsed data; second item: raw body</p>
449
+
450
+
451
+ </div>
452
+ </div>
453
+ <div class="tags">
454
+ <p class="tag_title">Parameters:</p>
455
+ <ul class="param">
456
+
457
+ <li>
458
+
459
+ <span class='name'>params</span>
460
+
461
+
462
+ <span class='type'>(<tt>Hash</tt>)</span>
463
+
464
+
465
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
466
+
467
+
468
+ &mdash;
469
+ <div class='inline'>
470
+ <p>a hash of params to be passed to the service</p>
471
+ </div>
472
+
473
+ </li>
474
+
475
+ <li>
476
+
477
+ <span class='name'>headers</span>
478
+
479
+
480
+ <span class='type'>(<tt>Hash</tt>)</span>
481
+
482
+
483
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
484
+
485
+
486
+ &mdash;
487
+ <div class='inline'>
488
+ <p>additional http headers</p>
489
+ </div>
490
+
491
+ </li>
492
+
493
+ </ul>
494
+
495
+
496
+
497
+
498
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
499
+ <ul class="option">
500
+
501
+ <li>
502
+ <span class="name">id</span>
503
+ <span class="type">(<tt>String</tt>)</span>
504
+ <span class="default">
505
+
506
+ </span>
507
+
508
+ </li>
509
+
510
+ <li>
511
+ <span class="name">device</span>
512
+ <span class="type">(<tt>String</tt>)</span>
513
+ <span class="default">
514
+
515
+ </span>
516
+
517
+ &mdash; <div class='inline'>
518
+ <p>boot device, valid devices are disk, cdrom, pxe, bios</p>
519
+ </div>
520
+
521
+ </li>
522
+
523
+ </ul>
524
+
525
+
526
+
527
+
528
+ <p class="tag_title">Returns:</p>
529
+ <ul class="return">
530
+
531
+ <li>
532
+
533
+
534
+ <span class='type'>(<tt>Array</tt>)</span>
535
+
536
+
537
+
538
+ &mdash;
539
+ <div class='inline'>
540
+ <p>First item: parsed data; second item: raw body</p>
541
+ </div>
542
+
543
+ </li>
544
+
545
+ </ul>
546
+
547
+ </div><table class="source_code">
548
+ <tr>
549
+ <td>
550
+ <pre class="lines">
551
+
552
+
553
+ 146
554
+ 147
555
+ 148</pre>
556
+ </td>
557
+ <td>
558
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/host.rb', line 146</span>
559
+
560
+ <span class='kw'>def</span> <span class='id identifier rubyid_boot'>boot</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>
561
+ <span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</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>
562
+ <span class='kw'>end</span></pre>
563
+ </td>
564
+ </tr>
565
+ </table>
566
+ </div>
567
+
568
+ <div class="method_details ">
569
+ <h3 class="signature " id="create-instance_method">
366
570
 
367
571
  - (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
368
572
 
@@ -480,9 +684,9 @@
480
684
  </li><li>
481
685
  <p>interfaces_attributes [Hash]</p>
482
686
  </li><li>
483
- <p>ip [String] Not required if using a subnet with dhcp proxy</p>
687
+ <p>ip [String] not required if using a subnet with dhcp proxy</p>
484
688
  </li><li>
485
- <p>mac [String] Not required if its a virtual machine</p>
689
+ <p>mac [String] not required if its a virtual machine</p>
486
690
  </li><li>
487
691
  <p>managed [String]</p>
488
692
  </li><li>
@@ -656,6 +860,168 @@
656
860
  </td>
657
861
  </tr>
658
862
  </table>
863
+ </div>
864
+
865
+ <div class="method_details ">
866
+ <h3 class="signature " id="facts-instance_method">
867
+
868
+ - (<tt>Array</tt>) <strong>facts</strong>(params = {}, headers = {})
869
+
870
+
871
+
872
+
873
+
874
+ </h3><div class="docstring">
875
+ <div class="discussion">
876
+
877
+ <p>Returns First item: parsed data; second item: raw body</p>
878
+
879
+
880
+ </div>
881
+ </div>
882
+ <div class="tags">
883
+ <p class="tag_title">Parameters:</p>
884
+ <ul class="param">
885
+
886
+ <li>
887
+
888
+ <span class='name'>params</span>
889
+
890
+
891
+ <span class='type'>(<tt>Hash</tt>)</span>
892
+
893
+
894
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
895
+
896
+
897
+ &mdash;
898
+ <div class='inline'>
899
+ <p>a hash of params to be passed to the service</p>
900
+ </div>
901
+
902
+ </li>
903
+
904
+ <li>
905
+
906
+ <span class='name'>headers</span>
907
+
908
+
909
+ <span class='type'>(<tt>Hash</tt>)</span>
910
+
911
+
912
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
913
+
914
+
915
+ &mdash;
916
+ <div class='inline'>
917
+ <p>additional http headers</p>
918
+ </div>
919
+
920
+ </li>
921
+
922
+ </ul>
923
+
924
+
925
+
926
+
927
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
928
+ <ul class="option">
929
+
930
+ <li>
931
+ <span class="name">certname</span>
932
+ <span class="type">(<tt>String</tt>)</span>
933
+ <span class="default">
934
+
935
+ </span>
936
+
937
+ &mdash; <div class='inline'>
938
+ <p>optional: certname of the host</p>
939
+ </div>
940
+
941
+ </li>
942
+
943
+ <li>
944
+ <span class="name">facts</span>
945
+ <span class="type">(<tt>Hash</tt>)</span>
946
+ <span class="default">
947
+
948
+ </span>
949
+
950
+ &mdash; <div class='inline'>
951
+ <p>hash containing the facts for the host</p>
952
+ </div>
953
+
954
+ </li>
955
+
956
+ <li>
957
+ <span class="name">name</span>
958
+ <span class="type">(<tt>String</tt>)</span>
959
+ <span class="default">
960
+
961
+ </span>
962
+
963
+ &mdash; <div class='inline'>
964
+ <p>hostname of the host</p>
965
+ </div>
966
+
967
+ </li>
968
+
969
+ <li>
970
+ <span class="name">type</span>
971
+ <span class="type">(<tt>String</tt>)</span>
972
+ <span class="default">
973
+
974
+ </span>
975
+
976
+ &mdash; <div class='inline'>
977
+ <p>optional: the sti type of host to create</p>
978
+ </div>
979
+
980
+ </li>
981
+
982
+ </ul>
983
+
984
+
985
+
986
+
987
+ <p class="tag_title">Returns:</p>
988
+ <ul class="return">
989
+
990
+ <li>
991
+
992
+
993
+ <span class='type'>(<tt>Array</tt>)</span>
994
+
995
+
996
+
997
+ &mdash;
998
+ <div class='inline'>
999
+ <p>First item: parsed data; second item: raw body</p>
1000
+ </div>
1001
+
1002
+ </li>
1003
+
1004
+ </ul>
1005
+
1006
+ </div><table class="source_code">
1007
+ <tr>
1008
+ <td>
1009
+ <pre class="lines">
1010
+
1011
+
1012
+ 158
1013
+ 159
1014
+ 160</pre>
1015
+ </td>
1016
+ <td>
1017
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/host.rb', line 158</span>
1018
+
1019
+ <span class='kw'>def</span> <span class='id identifier rubyid_facts'>facts</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>
1020
+ <span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</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>
1021
+ <span class='kw'>end</span></pre>
1022
+ </td>
1023
+ </tr>
1024
+ </table>
659
1025
  </div>
660
1026
 
661
1027
  <div class="method_details ">
@@ -731,7 +1097,7 @@
731
1097
  </span>
732
1098
 
733
1099
  &mdash; <div class='inline'>
734
- <p>Sort results</p>
1100
+ <p>sort results</p>
735
1101
  </div>
736
1102
 
737
1103
  </li>
@@ -744,7 +1110,7 @@
744
1110
  </span>
745
1111
 
746
1112
  &mdash; <div class='inline'>
747
- <p>Paginate results</p>
1113
+ <p>paginate results</p>
748
1114
  </div>
749
1115
 
750
1116
  </li>
@@ -757,7 +1123,7 @@
757
1123
  </span>
758
1124
 
759
1125
  &mdash; <div class='inline'>
760
- <p>Number of entries per request</p>
1126
+ <p>number of entries per request</p>
761
1127
  </div>
762
1128
 
763
1129
  </li>
@@ -770,7 +1136,7 @@
770
1136
  </span>
771
1137
 
772
1138
  &mdash; <div class='inline'>
773
- <p>Filter results</p>
1139
+ <p>filter results</p>
774
1140
  </div>
775
1141
 
776
1142
  </li>
@@ -818,6 +1184,139 @@
818
1184
  </td>
819
1185
  </tr>
820
1186
  </table>
1187
+ </div>
1188
+
1189
+ <div class="method_details ">
1190
+ <h3 class="signature " id="power-instance_method">
1191
+
1192
+ - (<tt>Array</tt>) <strong>power</strong>(params = {}, headers = {})
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+ </h3><div class="docstring">
1199
+ <div class="discussion">
1200
+
1201
+ <p>Returns First item: parsed data; second item: raw body</p>
1202
+
1203
+
1204
+ </div>
1205
+ </div>
1206
+ <div class="tags">
1207
+ <p class="tag_title">Parameters:</p>
1208
+ <ul class="param">
1209
+
1210
+ <li>
1211
+
1212
+ <span class='name'>params</span>
1213
+
1214
+
1215
+ <span class='type'>(<tt>Hash</tt>)</span>
1216
+
1217
+
1218
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
1219
+
1220
+
1221
+ &mdash;
1222
+ <div class='inline'>
1223
+ <p>a hash of params to be passed to the service</p>
1224
+ </div>
1225
+
1226
+ </li>
1227
+
1228
+ <li>
1229
+
1230
+ <span class='name'>headers</span>
1231
+
1232
+
1233
+ <span class='type'>(<tt>Hash</tt>)</span>
1234
+
1235
+
1236
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
1237
+
1238
+
1239
+ &mdash;
1240
+ <div class='inline'>
1241
+ <p>additional http headers</p>
1242
+ </div>
1243
+
1244
+ </li>
1245
+
1246
+ </ul>
1247
+
1248
+
1249
+
1250
+
1251
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1252
+ <ul class="option">
1253
+
1254
+ <li>
1255
+ <span class="name">id</span>
1256
+ <span class="type">(<tt>String</tt>)</span>
1257
+ <span class="default">
1258
+
1259
+ </span>
1260
+
1261
+ </li>
1262
+
1263
+ <li>
1264
+ <span class="name">power_action</span>
1265
+ <span class="type">(<tt>String</tt>)</span>
1266
+ <span class="default">
1267
+
1268
+ </span>
1269
+
1270
+ &mdash; <div class='inline'>
1271
+ <p>power action, valid actions are (‘on’, ‘start’)’, (‘off’, ‘stop’), (‘soft’,
1272
+ ‘reboot’), (‘cycle’, ‘reset’), (‘state’, ‘status’)</p>
1273
+ </div>
1274
+
1275
+ </li>
1276
+
1277
+ </ul>
1278
+
1279
+
1280
+
1281
+
1282
+ <p class="tag_title">Returns:</p>
1283
+ <ul class="return">
1284
+
1285
+ <li>
1286
+
1287
+
1288
+ <span class='type'>(<tt>Array</tt>)</span>
1289
+
1290
+
1291
+
1292
+ &mdash;
1293
+ <div class='inline'>
1294
+ <p>First item: parsed data; second item: raw body</p>
1295
+ </div>
1296
+
1297
+ </li>
1298
+
1299
+ </ul>
1300
+
1301
+ </div><table class="source_code">
1302
+ <tr>
1303
+ <td>
1304
+ <pre class="lines">
1305
+
1306
+
1307
+ 136
1308
+ 137
1309
+ 138</pre>
1310
+ </td>
1311
+ <td>
1312
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/host.rb', line 136</span>
1313
+
1314
+ <span class='kw'>def</span> <span class='id identifier rubyid_power'>power</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>
1315
+ <span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</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>
1316
+ <span class='kw'>end</span></pre>
1317
+ </td>
1318
+ </tr>
1319
+ </table>
821
1320
  </div>
822
1321
 
823
1322
  <div class="method_details ">
@@ -1307,9 +1806,9 @@
1307
1806
  </li><li>
1308
1807
  <p>host_parameters_attributes [Array]</p>
1309
1808
  </li><li>
1310
- <p>ip [String] Not required if using a subnet with dhcp proxy</p>
1809
+ <p>ip [String] not required if using a subnet with dhcp proxy</p>
1311
1810
  </li><li>
1312
- <p>mac [String] Not required if its a virtual machine</p>
1811
+ <p>mac [String] not required if its a virtual machine</p>
1313
1812
  </li><li>
1314
1813
  <p>managed [String]</p>
1315
1814
  </li><li>
@@ -1371,7 +1870,7 @@
1371
1870
  </div>
1372
1871
 
1373
1872
  <div id="footer">
1374
- Generated on Mon Aug 26 13:05:12 2013 by
1873
+ Generated on Mon Oct 21 11:10:43 2013 by
1375
1874
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1376
1875
  0.8.7 (ruby-2.0.0).
1377
1876
  </div>