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
@@ -188,6 +188,30 @@
188
188
 
189
189
 
190
190
 
191
+ <span class="summary_desc"><div class='inline'>
192
+ <p>First item: parsed data; second item: raw body.</p>
193
+ </div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#import_puppetclasses-instance_method" title="#import_puppetclasses (instance method)">- (Array) <strong>import_puppetclasses</strong>(params = {}, headers = {}) </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
191
215
  <span class="summary_desc"><div class='inline'>
192
216
  <p>First item: parsed data; second item: raw body.</p>
193
217
  </div></span>
@@ -212,6 +236,30 @@
212
236
 
213
237
 
214
238
 
239
+ <span class="summary_desc"><div class='inline'>
240
+ <p>First item: parsed data; second item: raw body.</p>
241
+ </div></span>
242
+
243
+ </li>
244
+
245
+
246
+ <li class="public ">
247
+ <span class="summary_signature">
248
+
249
+ <a href="#refresh-instance_method" title="#refresh (instance method)">- (Array) <strong>refresh</strong>(params = {}, headers = {}) </a>
250
+
251
+
252
+
253
+ </span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
215
263
  <span class="summary_desc"><div class='inline'>
216
264
  <p>First item: parsed data; second item: raw body.</p>
217
265
  </div></span>
@@ -426,12 +474,12 @@
426
474
  <pre class="lines">
427
475
 
428
476
 
429
- 36
430
- 37
431
- 38</pre>
477
+ 48
478
+ 49
479
+ 50</pre>
432
480
  </td>
433
481
  <td>
434
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 36</span>
482
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 48</span>
435
483
 
436
484
  <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>
437
485
  <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>
@@ -545,12 +593,12 @@
545
593
  <pre class="lines">
546
594
 
547
595
 
548
- 58
549
- 59
550
- 60</pre>
596
+ 70
597
+ 71
598
+ 72</pre>
551
599
  </td>
552
600
  <td>
553
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 58</span>
601
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 70</span>
554
602
 
555
603
  <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>
556
604
  <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>
@@ -558,6 +606,156 @@
558
606
  </td>
559
607
  </tr>
560
608
  </table>
609
+ </div>
610
+
611
+ <div class="method_details ">
612
+ <h3 class="signature " id="import_puppetclasses-instance_method">
613
+
614
+ - (<tt>Array</tt>) <strong>import_puppetclasses</strong>(params = {}, headers = {})
615
+
616
+
617
+
618
+
619
+
620
+ </h3><div class="docstring">
621
+ <div class="discussion">
622
+
623
+ <p>Returns First item: parsed data; second item: raw body</p>
624
+
625
+
626
+ </div>
627
+ </div>
628
+ <div class="tags">
629
+ <p class="tag_title">Parameters:</p>
630
+ <ul class="param">
631
+
632
+ <li>
633
+
634
+ <span class='name'>params</span>
635
+
636
+
637
+ <span class='type'>(<tt>Hash</tt>)</span>
638
+
639
+
640
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
641
+
642
+
643
+ &mdash;
644
+ <div class='inline'>
645
+ <p>a hash of params to be passed to the service</p>
646
+ </div>
647
+
648
+ </li>
649
+
650
+ <li>
651
+
652
+ <span class='name'>headers</span>
653
+
654
+
655
+ <span class='type'>(<tt>Hash</tt>)</span>
656
+
657
+
658
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
659
+
660
+
661
+ &mdash;
662
+ <div class='inline'>
663
+ <p>additional http headers</p>
664
+ </div>
665
+
666
+ </li>
667
+
668
+ </ul>
669
+
670
+
671
+
672
+
673
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
674
+ <ul class="option">
675
+
676
+ <li>
677
+ <span class="name">id</span>
678
+ <span class="type">(<tt>Object</tt>)</span>
679
+ <span class="default">
680
+
681
+ </span>
682
+
683
+ &mdash; <div class='inline'>
684
+ <p>Part of <tt>/api/smart_proxies/:id/import_puppetclasses</tt> path</p>
685
+ </div>
686
+
687
+ </li>
688
+
689
+ <li>
690
+ <span class="name">environment_id</span>
691
+ <span class="type">(<tt>String</tt>)</span>
692
+ <span class="default">
693
+
694
+ </span>
695
+
696
+ </li>
697
+
698
+ <li>
699
+ <span class="name">smart_proxy_id</span>
700
+ <span class="type">(<tt>String</tt>)</span>
701
+ <span class="default">
702
+
703
+ </span>
704
+
705
+ </li>
706
+
707
+ <li>
708
+ <span class="name">dryrun</span>
709
+ <span class="type">(<tt>String</tt>)</span>
710
+ <span class="default">
711
+
712
+ </span>
713
+
714
+ </li>
715
+
716
+ </ul>
717
+
718
+
719
+
720
+
721
+ <p class="tag_title">Returns:</p>
722
+ <ul class="return">
723
+
724
+ <li>
725
+
726
+
727
+ <span class='type'>(<tt>Array</tt>)</span>
728
+
729
+
730
+
731
+ &mdash;
732
+ <div class='inline'>
733
+ <p>First item: parsed data; second item: raw body</p>
734
+ </div>
735
+
736
+ </li>
737
+
738
+ </ul>
739
+
740
+ </div><table class="source_code">
741
+ <tr>
742
+ <td>
743
+ <pre class="lines">
744
+
745
+
746
+ 16
747
+ 17
748
+ 18</pre>
749
+ </td>
750
+ <td>
751
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 16</span>
752
+
753
+ <span class='kw'>def</span> <span class='id identifier rubyid_import_puppetclasses'>import_puppetclasses</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>
754
+ <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>
755
+ <span class='kw'>end</span></pre>
756
+ </td>
757
+ </tr>
758
+ </table>
561
759
  </div>
562
760
 
563
761
  <div class="method_details ">
@@ -633,7 +831,7 @@
633
831
  </span>
634
832
 
635
833
  &mdash; <div class='inline'>
636
- <p>Paginate results</p>
834
+ <p>paginate results</p>
637
835
  </div>
638
836
 
639
837
  </li>
@@ -646,7 +844,7 @@
646
844
  </span>
647
845
 
648
846
  &mdash; <div class='inline'>
649
- <p>Number of entries per request</p>
847
+ <p>number of entries per request</p>
650
848
  </div>
651
849
 
652
850
  </li>
@@ -659,7 +857,7 @@
659
857
  </span>
660
858
 
661
859
  &mdash; <div class='inline'>
662
- <p>Filter by type</p>
860
+ <p>filter by type</p>
663
861
  </div>
664
862
 
665
863
  </li>
@@ -694,12 +892,12 @@
694
892
  <pre class="lines">
695
893
 
696
894
 
697
- 15
698
- 16
699
- 17</pre>
895
+ 27
896
+ 28
897
+ 29</pre>
700
898
  </td>
701
899
  <td>
702
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 15</span>
900
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 27</span>
703
901
 
704
902
  <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>
705
903
  <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>
@@ -707,6 +905,125 @@
707
905
  </td>
708
906
  </tr>
709
907
  </table>
908
+ </div>
909
+
910
+ <div class="method_details ">
911
+ <h3 class="signature " id="refresh-instance_method">
912
+
913
+ - (<tt>Array</tt>) <strong>refresh</strong>(params = {}, headers = {})
914
+
915
+
916
+
917
+
918
+
919
+ </h3><div class="docstring">
920
+ <div class="discussion">
921
+
922
+ <p>Returns First item: parsed data; second item: raw body</p>
923
+
924
+
925
+ </div>
926
+ </div>
927
+ <div class="tags">
928
+ <p class="tag_title">Parameters:</p>
929
+ <ul class="param">
930
+
931
+ <li>
932
+
933
+ <span class='name'>params</span>
934
+
935
+
936
+ <span class='type'>(<tt>Hash</tt>)</span>
937
+
938
+
939
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
940
+
941
+
942
+ &mdash;
943
+ <div class='inline'>
944
+ <p>a hash of params to be passed to the service</p>
945
+ </div>
946
+
947
+ </li>
948
+
949
+ <li>
950
+
951
+ <span class='name'>headers</span>
952
+
953
+
954
+ <span class='type'>(<tt>Hash</tt>)</span>
955
+
956
+
957
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
958
+
959
+
960
+ &mdash;
961
+ <div class='inline'>
962
+ <p>additional http headers</p>
963
+ </div>
964
+
965
+ </li>
966
+
967
+ </ul>
968
+
969
+
970
+
971
+
972
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
973
+ <ul class="option">
974
+
975
+ <li>
976
+ <span class="name">id</span>
977
+ <span class="type">(<tt>String</tt>)</span>
978
+ <span class="default">
979
+
980
+ </span>
981
+
982
+ </li>
983
+
984
+ </ul>
985
+
986
+
987
+
988
+
989
+ <p class="tag_title">Returns:</p>
990
+ <ul class="return">
991
+
992
+ <li>
993
+
994
+
995
+ <span class='type'>(<tt>Array</tt>)</span>
996
+
997
+
998
+
999
+ &mdash;
1000
+ <div class='inline'>
1001
+ <p>First item: parsed data; second item: raw body</p>
1002
+ </div>
1003
+
1004
+ </li>
1005
+
1006
+ </ul>
1007
+
1008
+ </div><table class="source_code">
1009
+ <tr>
1010
+ <td>
1011
+ <pre class="lines">
1012
+
1013
+
1014
+ 79
1015
+ 80
1016
+ 81</pre>
1017
+ </td>
1018
+ <td>
1019
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 79</span>
1020
+
1021
+ <span class='kw'>def</span> <span class='id identifier rubyid_refresh'>refresh</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>
1022
+ <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>
1023
+ <span class='kw'>end</span></pre>
1024
+ </td>
1025
+ </tr>
1026
+ </table>
710
1027
  </div>
711
1028
 
712
1029
  <div class="method_details ">
@@ -813,12 +1130,12 @@
813
1130
  <pre class="lines">
814
1131
 
815
1132
 
816
- 24
817
- 25
818
- 26</pre>
1133
+ 36
1134
+ 37
1135
+ 38</pre>
819
1136
  </td>
820
1137
  <td>
821
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 24</span>
1138
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 36</span>
822
1139
 
823
1140
  <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>
824
1141
  <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>
@@ -950,12 +1267,12 @@
950
1267
  <pre class="lines">
951
1268
 
952
1269
 
953
- 49
954
- 50
955
- 51</pre>
1270
+ 61
1271
+ 62
1272
+ 63</pre>
956
1273
  </td>
957
1274
  <td>
958
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 49</span>
1275
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 61</span>
959
1276
 
960
1277
  <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>
961
1278
  <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>
@@ -970,7 +1287,7 @@
970
1287
  </div>
971
1288
 
972
1289
  <div id="footer">
973
- Generated on Mon Aug 26 13:05:14 2013 by
1290
+ Generated on Mon Oct 21 11:10:45 2013 by
974
1291
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
975
1292
  0.8.7 (ruby-2.0.0).
976
1293
  </div>