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
@@ -635,7 +635,7 @@
635
635
  </span>
636
636
 
637
637
  &mdash; <div class='inline'>
638
- <p>Sort results</p>
638
+ <p>sort results</p>
639
639
  </div>
640
640
 
641
641
  </li>
@@ -648,7 +648,7 @@
648
648
  </span>
649
649
 
650
650
  &mdash; <div class='inline'>
651
- <p>Paginate results</p>
651
+ <p>paginate results</p>
652
652
  </div>
653
653
 
654
654
  </li>
@@ -661,7 +661,7 @@
661
661
  </span>
662
662
 
663
663
  &mdash; <div class='inline'>
664
- <p>Number of entries per request</p>
664
+ <p>number of entries per request</p>
665
665
  </div>
666
666
 
667
667
  </li>
@@ -674,7 +674,7 @@
674
674
  </span>
675
675
 
676
676
  &mdash; <div class='inline'>
677
- <p>Filter results</p>
677
+ <p>filter results</p>
678
678
  </div>
679
679
 
680
680
  </li>
@@ -991,7 +991,7 @@
991
991
  </div>
992
992
 
993
993
  <div id="footer">
994
- Generated on Mon Aug 26 13:05:13 2013 by
994
+ Generated on Mon Oct 21 11:10:44 2013 by
995
995
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
996
996
  0.8.7 (ruby-2.0.0).
997
997
  </div>
@@ -188,54 +188,6 @@
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="#host_or_hostgroup_smart_class_parameters-instance_method" title="#host_or_hostgroup_smart_class_parameters (instance method)">- (Array) <strong>host_or_hostgroup_smart_class_parameters</strong>(params = {}, headers = {}) </a>
202
-
203
-
204
-
205
- </span>
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
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="#host_or_hostgroup_smart_parameters-instance_method" title="#host_or_hostgroup_smart_parameters (instance method)">- (Array) <strong>host_or_hostgroup_smart_parameters</strong>(params = {}, headers = {}) </a>
226
-
227
-
228
-
229
- </span>
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
191
  <span class="summary_desc"><div class='inline'>
240
192
  <p>First item: parsed data; second item: raw body.</p>
241
193
  </div></span>
@@ -260,54 +212,6 @@
260
212
 
261
213
 
262
214
 
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="#puppet_smart_class_parameters-instance_method" title="#puppet_smart_class_parameters (instance method)">- (Array) <strong>puppet_smart_class_parameters</strong>(params = {}, headers = {}) </a>
274
-
275
-
276
-
277
- </span>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
- <span class="summary_desc"><div class='inline'>
288
- <p>First item: parsed data; second item: raw body.</p>
289
- </div></span>
290
-
291
- </li>
292
-
293
-
294
- <li class="public ">
295
- <span class="summary_signature">
296
-
297
- <a href="#puppet_smart_parameters-instance_method" title="#puppet_smart_parameters (instance method)">- (Array) <strong>puppet_smart_parameters</strong>(params = {}, headers = {}) </a>
298
-
299
-
300
-
301
- </span>
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
215
  <span class="summary_desc"><div class='inline'>
312
216
  <p>First item: parsed data; second item: raw body.</p>
313
217
  </div></span>
@@ -490,21 +394,11 @@
490
394
  </li><li>
491
395
  <p>description [String]</p>
492
396
  </li><li>
493
- <p>is_param [String]</p>
494
- </li><li>
495
397
  <p>key [String]</p>
496
398
  </li><li>
497
- <p>key_type [String]</p>
498
- </li><li>
499
- <p>override [String]</p>
399
+ <p>lookup_values_count [String]</p>
500
400
  </li><li>
501
401
  <p>path [String]</p>
502
- </li><li>
503
- <p>required [String]</p>
504
- </li><li>
505
- <p>validator_rule [String]</p>
506
- </li><li>
507
- <p>validator_type [String]</p>
508
402
  </li></ul>
509
403
  </div>
510
404
 
@@ -540,12 +434,12 @@
540
434
  <pre class="lines">
541
435
 
542
436
 
543
- 46
544
- 47
545
- 48</pre>
437
+ 41
438
+ 42
439
+ 43</pre>
546
440
  </td>
547
441
  <td>
548
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 46</span>
442
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 41</span>
549
443
 
550
444
  <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>
551
445
  <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>
@@ -659,12 +553,12 @@
659
553
  <pre class="lines">
660
554
 
661
555
 
662
- 77
663
- 78
664
- 79</pre>
556
+ 67
557
+ 68
558
+ 69</pre>
665
559
  </td>
666
560
  <td>
667
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 77</span>
561
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 67</span>
668
562
 
669
563
  <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>
670
564
  <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>
@@ -675,9 +569,9 @@
675
569
  </div>
676
570
 
677
571
  <div class="method_details ">
678
- <h3 class="signature " id="host_or_hostgroup_smart_class_parameters-instance_method">
572
+ <h3 class="signature " id="index-instance_method">
679
573
 
680
- - (<tt>Array</tt>) <strong>host_or_hostgroup_smart_class_parameters</strong>(params = {}, headers = {})
574
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
681
575
 
682
576
 
683
577
 
@@ -740,45 +634,53 @@
740
634
  <ul class="option">
741
635
 
742
636
  <li>
743
- <span class="name">host_id</span>
637
+ <span class="name">order</span>
744
638
  <span class="type">(<tt>String</tt>)</span>
745
639
  <span class="default">
746
640
 
747
641
  </span>
748
642
 
643
+ &mdash; <div class='inline'>
644
+ <p>sort results</p>
645
+ </div>
646
+
749
647
  </li>
750
648
 
751
649
  <li>
752
- <span class="name">hostgroup_id</span>
650
+ <span class="name">page</span>
753
651
  <span class="type">(<tt>String</tt>)</span>
754
652
  <span class="default">
755
653
 
756
654
  </span>
757
655
 
656
+ &mdash; <div class='inline'>
657
+ <p>paginate results</p>
658
+ </div>
659
+
758
660
  </li>
759
661
 
760
662
  <li>
761
- <span class="name">page</span>
663
+ <span class="name">per_page</span>
762
664
  <span class="type">(<tt>String</tt>)</span>
763
665
  <span class="default">
764
666
 
765
667
  </span>
766
668
 
767
669
  &mdash; <div class='inline'>
768
- <p>Paginate results</p>
670
+ <p>number of entries per request</p>
769
671
  </div>
770
672
 
771
673
  </li>
772
674
 
773
675
  <li>
774
- <span class="name">per_page</span>
676
+ <span class="name">search</span>
775
677
  <span class="type">(<tt>String</tt>)</span>
776
678
  <span class="default">
777
679
 
778
680
  </span>
779
681
 
780
682
  &mdash; <div class='inline'>
781
- <p>Number of entries per request</p>
683
+ <p>filter results</p>
782
684
  </div>
783
685
 
784
686
  </li>
@@ -813,14 +715,14 @@
813
715
  <pre class="lines">
814
716
 
815
717
 
816
- 101
817
- 102
818
- 103</pre>
718
+ 16
719
+ 17
720
+ 18</pre>
819
721
  </td>
820
722
  <td>
821
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 101</span>
723
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 16</span>
822
724
 
823
- <span class='kw'>def</span> <span class='id identifier rubyid_host_or_hostgroup_smart_class_parameters'>host_or_hostgroup_smart_class_parameters</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>
725
+ <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>
824
726
  <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>
825
727
  <span class='kw'>end</span></pre>
826
728
  </td>
@@ -829,9 +731,9 @@
829
731
  </div>
830
732
 
831
733
  <div class="method_details ">
832
- <h3 class="signature " id="host_or_hostgroup_smart_parameters-instance_method">
734
+ <h3 class="signature " id="show-instance_method">
833
735
 
834
- - (<tt>Array</tt>) <strong>host_or_hostgroup_smart_parameters</strong>(params = {}, headers = {})
736
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
835
737
 
836
738
 
837
739
 
@@ -894,47 +796,12 @@
894
796
  <ul class="option">
895
797
 
896
798
  <li>
897
- <span class="name">host_id</span>
898
- <span class="type">(<tt>String</tt>)</span>
899
- <span class="default">
900
-
901
- </span>
902
-
903
- </li>
904
-
905
- <li>
906
- <span class="name">hostgroup_id</span>
907
- <span class="type">(<tt>String</tt>)</span>
908
- <span class="default">
909
-
910
- </span>
911
-
912
- </li>
913
-
914
- <li>
915
- <span class="name">page</span>
916
- <span class="type">(<tt>String</tt>)</span>
917
- <span class="default">
918
-
919
- </span>
920
-
921
- &mdash; <div class='inline'>
922
- <p>Paginate results</p>
923
- </div>
924
-
925
- </li>
926
-
927
- <li>
928
- <span class="name">per_page</span>
799
+ <span class="name">id</span>
929
800
  <span class="type">(<tt>String</tt>)</span>
930
801
  <span class="default">
931
802
 
932
803
  </span>
933
804
 
934
- &mdash; <div class='inline'>
935
- <p>Number of entries per request</p>
936
- </div>
937
-
938
805
  </li>
939
806
 
940
807
  </ul>
@@ -967,14 +834,14 @@
967
834
  <pre class="lines">
968
835
 
969
836
 
970
- 89
971
- 90
972
- 91</pre>
837
+ 25
838
+ 26
839
+ 27</pre>
973
840
  </td>
974
841
  <td>
975
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 89</span>
842
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 25</span>
976
843
 
977
- <span class='kw'>def</span> <span class='id identifier rubyid_host_or_hostgroup_smart_parameters'>host_or_hostgroup_smart_parameters</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>
844
+ <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>
978
845
  <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>
979
846
  <span class='kw'>end</span></pre>
980
847
  </td>
@@ -983,9 +850,9 @@
983
850
  </div>
984
851
 
985
852
  <div class="method_details ">
986
- <h3 class="signature " id="index-instance_method">
853
+ <h3 class="signature " id="update-instance_method">
987
854
 
988
- - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
855
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
989
856
 
990
857
 
991
858
 
@@ -1048,53 +915,36 @@
1048
915
  <ul class="option">
1049
916
 
1050
917
  <li>
1051
- <span class="name">order</span>
1052
- <span class="type">(<tt>String</tt>)</span>
1053
- <span class="default">
1054
-
1055
- </span>
1056
-
1057
- &mdash; <div class='inline'>
1058
- <p>Sort results</p>
1059
- </div>
1060
-
1061
- </li>
1062
-
1063
- <li>
1064
- <span class="name">page</span>
1065
- <span class="type">(<tt>String</tt>)</span>
1066
- <span class="default">
1067
-
1068
- </span>
1069
-
1070
- &mdash; <div class='inline'>
1071
- <p>Paginate results</p>
1072
- </div>
1073
-
1074
- </li>
1075
-
1076
- <li>
1077
- <span class="name">per_page</span>
918
+ <span class="name">id</span>
1078
919
  <span class="type">(<tt>String</tt>)</span>
1079
920
  <span class="default">
1080
921
 
1081
922
  </span>
1082
923
 
1083
- &mdash; <div class='inline'>
1084
- <p>Number of entries per request</p>
1085
- </div>
1086
-
1087
924
  </li>
1088
925
 
1089
926
  <li>
1090
- <span class="name">search</span>
1091
- <span class="type">(<tt>String</tt>)</span>
927
+ <span class="name">lookup_key</span>
928
+ <span class="type">(<tt>Hash</tt>)</span>
1092
929
  <span class="default">
1093
930
 
1094
931
  </span>
1095
932
 
1096
933
  &mdash; <div class='inline'>
1097
- <p>Filter results</p>
934
+ <p>allowed keys are:</p>
935
+ <ul><li>
936
+ <p>puppetclass_id [String]</p>
937
+ </li><li>
938
+ <p>default_value [String]</p>
939
+ </li><li>
940
+ <p>description [String]</p>
941
+ </li><li>
942
+ <p>key [String]</p>
943
+ </li><li>
944
+ <p>lookup_values_count [String]</p>
945
+ </li><li>
946
+ <p>path [String]</p>
947
+ </li></ul>
1098
948
  </div>
1099
949
 
1100
950
  </li>
@@ -1129,611 +979,12 @@
1129
979
  <pre class="lines">
1130
980
 
1131
981
 
1132
- 16
1133
- 17
1134
- 18</pre>
1135
- </td>
1136
- <td>
1137
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 16</span>
1138
-
1139
- <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>
1140
- <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>
1141
- <span class='kw'>end</span></pre>
1142
- </td>
1143
- </tr>
1144
- </table>
1145
- </div>
1146
-
1147
- <div class="method_details ">
1148
- <h3 class="signature " id="puppet_smart_class_parameters-instance_method">
1149
-
1150
- - (<tt>Array</tt>) <strong>puppet_smart_class_parameters</strong>(params = {}, headers = {})
1151
-
1152
-
1153
-
1154
-
1155
-
1156
- </h3><div class="docstring">
1157
- <div class="discussion">
1158
-
1159
- <p>Returns First item: parsed data; second item: raw body</p>
1160
-
1161
-
1162
- </div>
1163
- </div>
1164
- <div class="tags">
1165
- <p class="tag_title">Parameters:</p>
1166
- <ul class="param">
1167
-
1168
- <li>
1169
-
1170
- <span class='name'>params</span>
1171
-
1172
-
1173
- <span class='type'>(<tt>Hash</tt>)</span>
1174
-
1175
-
1176
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1177
-
1178
-
1179
- &mdash;
1180
- <div class='inline'>
1181
- <p>a hash of params to be passed to the service</p>
1182
- </div>
1183
-
1184
- </li>
1185
-
1186
- <li>
1187
-
1188
- <span class='name'>headers</span>
1189
-
1190
-
1191
- <span class='type'>(<tt>Hash</tt>)</span>
1192
-
1193
-
1194
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1195
-
1196
-
1197
- &mdash;
1198
- <div class='inline'>
1199
- <p>additional http headers</p>
1200
- </div>
1201
-
1202
- </li>
1203
-
1204
- </ul>
1205
-
1206
-
1207
-
1208
-
1209
- <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1210
- <ul class="option">
1211
-
1212
- <li>
1213
- <span class="name">environment_id</span>
1214
- <span class="type">(<tt>String</tt>)</span>
1215
- <span class="default">
1216
-
1217
- </span>
1218
-
1219
- </li>
1220
-
1221
- <li>
1222
- <span class="name">puppetclass_id</span>
1223
- <span class="type">(<tt>String</tt>)</span>
1224
- <span class="default">
1225
-
1226
- </span>
1227
-
1228
- </li>
1229
-
1230
- <li>
1231
- <span class="name">order</span>
1232
- <span class="type">(<tt>String</tt>)</span>
1233
- <span class="default">
1234
-
1235
- </span>
1236
-
1237
- &mdash; <div class='inline'>
1238
- <p>Sort results</p>
1239
- </div>
1240
-
1241
- </li>
1242
-
1243
- <li>
1244
- <span class="name">page</span>
1245
- <span class="type">(<tt>String</tt>)</span>
1246
- <span class="default">
1247
-
1248
- </span>
1249
-
1250
- &mdash; <div class='inline'>
1251
- <p>Paginate results</p>
1252
- </div>
1253
-
1254
- </li>
1255
-
1256
- <li>
1257
- <span class="name">per_page</span>
1258
- <span class="type">(<tt>String</tt>)</span>
1259
- <span class="default">
1260
-
1261
- </span>
1262
-
1263
- &mdash; <div class='inline'>
1264
- <p>Number of entries per request</p>
1265
- </div>
1266
-
1267
- </li>
1268
-
1269
- </ul>
1270
-
1271
-
1272
-
1273
-
1274
- <p class="tag_title">Returns:</p>
1275
- <ul class="return">
1276
-
1277
- <li>
1278
-
1279
-
1280
- <span class='type'>(<tt>Array</tt>)</span>
1281
-
1282
-
1283
-
1284
- &mdash;
1285
- <div class='inline'>
1286
- <p>First item: parsed data; second item: raw body</p>
1287
- </div>
1288
-
1289
- </li>
1290
-
1291
- </ul>
1292
-
1293
- </div><table class="source_code">
1294
- <tr>
1295
- <td>
1296
- <pre class="lines">
1297
-
1298
-
1299
- 126
1300
- 127
1301
- 128</pre>
1302
- </td>
1303
- <td>
1304
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 126</span>
1305
-
1306
- <span class='kw'>def</span> <span class='id identifier rubyid_puppet_smart_class_parameters'>puppet_smart_class_parameters</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>
1307
- <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>
1308
- <span class='kw'>end</span></pre>
1309
- </td>
1310
- </tr>
1311
- </table>
1312
- </div>
1313
-
1314
- <div class="method_details ">
1315
- <h3 class="signature " id="puppet_smart_parameters-instance_method">
1316
-
1317
- - (<tt>Array</tt>) <strong>puppet_smart_parameters</strong>(params = {}, headers = {})
1318
-
1319
-
1320
-
1321
-
1322
-
1323
- </h3><div class="docstring">
1324
- <div class="discussion">
1325
-
1326
- <p>Returns First item: parsed data; second item: raw body</p>
1327
-
1328
-
1329
- </div>
1330
- </div>
1331
- <div class="tags">
1332
- <p class="tag_title">Parameters:</p>
1333
- <ul class="param">
1334
-
1335
- <li>
1336
-
1337
- <span class='name'>params</span>
1338
-
1339
-
1340
- <span class='type'>(<tt>Hash</tt>)</span>
1341
-
1342
-
1343
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1344
-
1345
-
1346
- &mdash;
1347
- <div class='inline'>
1348
- <p>a hash of params to be passed to the service</p>
1349
- </div>
1350
-
1351
- </li>
1352
-
1353
- <li>
1354
-
1355
- <span class='name'>headers</span>
1356
-
1357
-
1358
- <span class='type'>(<tt>Hash</tt>)</span>
1359
-
1360
-
1361
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1362
-
1363
-
1364
- &mdash;
1365
- <div class='inline'>
1366
- <p>additional http headers</p>
1367
- </div>
1368
-
1369
- </li>
1370
-
1371
- </ul>
1372
-
1373
-
1374
-
1375
-
1376
- <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1377
- <ul class="option">
1378
-
1379
- <li>
1380
- <span class="name">puppetclass_id</span>
1381
- <span class="type">(<tt>String</tt>)</span>
1382
- <span class="default">
1383
-
1384
- </span>
1385
-
1386
- </li>
1387
-
1388
- <li>
1389
- <span class="name">order</span>
1390
- <span class="type">(<tt>String</tt>)</span>
1391
- <span class="default">
1392
-
1393
- </span>
1394
-
1395
- &mdash; <div class='inline'>
1396
- <p>Sort results</p>
1397
- </div>
1398
-
1399
- </li>
1400
-
1401
- <li>
1402
- <span class="name">page</span>
1403
- <span class="type">(<tt>String</tt>)</span>
1404
- <span class="default">
1405
-
1406
- </span>
1407
-
1408
- &mdash; <div class='inline'>
1409
- <p>Paginate results</p>
1410
- </div>
1411
-
1412
- </li>
1413
-
1414
- <li>
1415
- <span class="name">per_page</span>
1416
- <span class="type">(<tt>String</tt>)</span>
1417
- <span class="default">
1418
-
1419
- </span>
1420
-
1421
- &mdash; <div class='inline'>
1422
- <p>Number of entries per request</p>
1423
- </div>
1424
-
1425
- </li>
1426
-
1427
- </ul>
1428
-
1429
-
1430
-
1431
-
1432
- <p class="tag_title">Returns:</p>
1433
- <ul class="return">
1434
-
1435
- <li>
1436
-
1437
-
1438
- <span class='type'>(<tt>Array</tt>)</span>
1439
-
1440
-
1441
-
1442
- &mdash;
1443
- <div class='inline'>
1444
- <p>First item: parsed data; second item: raw body</p>
1445
- </div>
1446
-
1447
- </li>
1448
-
1449
- </ul>
1450
-
1451
- </div><table class="source_code">
1452
- <tr>
1453
- <td>
1454
- <pre class="lines">
1455
-
1456
-
1457
- 113
1458
- 114
1459
- 115</pre>
1460
- </td>
1461
- <td>
1462
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 113</span>
1463
-
1464
- <span class='kw'>def</span> <span class='id identifier rubyid_puppet_smart_parameters'>puppet_smart_parameters</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>
1465
- <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>
1466
- <span class='kw'>end</span></pre>
1467
- </td>
1468
- </tr>
1469
- </table>
1470
- </div>
1471
-
1472
- <div class="method_details ">
1473
- <h3 class="signature " id="show-instance_method">
1474
-
1475
- - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
1476
-
1477
-
1478
-
1479
-
1480
-
1481
- </h3><div class="docstring">
1482
- <div class="discussion">
1483
-
1484
- <p>Returns First item: parsed data; second item: raw body</p>
1485
-
1486
-
1487
- </div>
1488
- </div>
1489
- <div class="tags">
1490
- <p class="tag_title">Parameters:</p>
1491
- <ul class="param">
1492
-
1493
- <li>
1494
-
1495
- <span class='name'>params</span>
1496
-
1497
-
1498
- <span class='type'>(<tt>Hash</tt>)</span>
1499
-
1500
-
1501
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1502
-
1503
-
1504
- &mdash;
1505
- <div class='inline'>
1506
- <p>a hash of params to be passed to the service</p>
1507
- </div>
1508
-
1509
- </li>
1510
-
1511
- <li>
1512
-
1513
- <span class='name'>headers</span>
1514
-
1515
-
1516
- <span class='type'>(<tt>Hash</tt>)</span>
1517
-
1518
-
1519
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1520
-
1521
-
1522
- &mdash;
1523
- <div class='inline'>
1524
- <p>additional http headers</p>
1525
- </div>
1526
-
1527
- </li>
1528
-
1529
- </ul>
1530
-
1531
-
1532
-
1533
-
1534
- <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1535
- <ul class="option">
1536
-
1537
- <li>
1538
- <span class="name">id</span>
1539
- <span class="type">(<tt>String</tt>)</span>
1540
- <span class="default">
1541
-
1542
- </span>
1543
-
1544
- </li>
1545
-
1546
- </ul>
1547
-
1548
-
1549
-
1550
-
1551
- <p class="tag_title">Returns:</p>
1552
- <ul class="return">
1553
-
1554
- <li>
1555
-
1556
-
1557
- <span class='type'>(<tt>Array</tt>)</span>
1558
-
1559
-
1560
-
1561
- &mdash;
1562
- <div class='inline'>
1563
- <p>First item: parsed data; second item: raw body</p>
1564
- </div>
1565
-
1566
- </li>
1567
-
1568
- </ul>
1569
-
1570
- </div><table class="source_code">
1571
- <tr>
1572
- <td>
1573
- <pre class="lines">
1574
-
1575
-
1576
- 25
1577
- 26
1578
- 27</pre>
1579
- </td>
1580
- <td>
1581
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 25</span>
1582
-
1583
- <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>
1584
- <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>
1585
- <span class='kw'>end</span></pre>
1586
- </td>
1587
- </tr>
1588
- </table>
1589
- </div>
1590
-
1591
- <div class="method_details ">
1592
- <h3 class="signature " id="update-instance_method">
1593
-
1594
- - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
1595
-
1596
-
1597
-
1598
-
1599
-
1600
- </h3><div class="docstring">
1601
- <div class="discussion">
1602
-
1603
- <p>Returns First item: parsed data; second item: raw body</p>
1604
-
1605
-
1606
- </div>
1607
- </div>
1608
- <div class="tags">
1609
- <p class="tag_title">Parameters:</p>
1610
- <ul class="param">
1611
-
1612
- <li>
1613
-
1614
- <span class='name'>params</span>
1615
-
1616
-
1617
- <span class='type'>(<tt>Hash</tt>)</span>
1618
-
1619
-
1620
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1621
-
1622
-
1623
- &mdash;
1624
- <div class='inline'>
1625
- <p>a hash of params to be passed to the service</p>
1626
- </div>
1627
-
1628
- </li>
1629
-
1630
- <li>
1631
-
1632
- <span class='name'>headers</span>
1633
-
1634
-
1635
- <span class='type'>(<tt>Hash</tt>)</span>
1636
-
1637
-
1638
- <em class="default">(defaults to: <tt>{}</tt>)</em>
1639
-
1640
-
1641
- &mdash;
1642
- <div class='inline'>
1643
- <p>additional http headers</p>
1644
- </div>
1645
-
1646
- </li>
1647
-
1648
- </ul>
1649
-
1650
-
1651
-
1652
-
1653
- <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1654
- <ul class="option">
1655
-
1656
- <li>
1657
- <span class="name">id</span>
1658
- <span class="type">(<tt>String</tt>)</span>
1659
- <span class="default">
1660
-
1661
- </span>
1662
-
1663
- </li>
1664
-
1665
- <li>
1666
- <span class="name">lookup_key</span>
1667
- <span class="type">(<tt>Hash</tt>)</span>
1668
- <span class="default">
1669
-
1670
- </span>
1671
-
1672
- &mdash; <div class='inline'>
1673
- <p>allowed keys are:</p>
1674
- <ul><li>
1675
- <p>puppetclass_id [String]</p>
1676
- </li><li>
1677
- <p>default_value [String]</p>
1678
- </li><li>
1679
- <p>description [String]</p>
1680
- </li><li>
1681
- <p>is_param [String]</p>
1682
- </li><li>
1683
- <p>key [String]</p>
1684
- </li><li>
1685
- <p>key_type [String]</p>
1686
- </li><li>
1687
- <p>override [String]</p>
1688
- </li><li>
1689
- <p>path [String]</p>
1690
- </li><li>
1691
- <p>required [String]</p>
1692
- </li><li>
1693
- <p>validator_rule [String]</p>
1694
- </li><li>
1695
- <p>validator_type [String]</p>
1696
- </li></ul>
1697
- </div>
1698
-
1699
- </li>
1700
-
1701
- </ul>
1702
-
1703
-
1704
-
1705
-
1706
- <p class="tag_title">Returns:</p>
1707
- <ul class="return">
1708
-
1709
- <li>
1710
-
1711
-
1712
- <span class='type'>(<tt>Array</tt>)</span>
1713
-
1714
-
1715
-
1716
- &mdash;
1717
- <div class='inline'>
1718
- <p>First item: parsed data; second item: raw body</p>
1719
- </div>
1720
-
1721
- </li>
1722
-
1723
- </ul>
1724
-
1725
- </div><table class="source_code">
1726
- <tr>
1727
- <td>
1728
- <pre class="lines">
1729
-
1730
-
1731
- 68
1732
- 69
1733
- 70</pre>
982
+ 58
983
+ 59
984
+ 60</pre>
1734
985
  </td>
1735
986
  <td>
1736
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 68</span>
987
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 58</span>
1737
988
 
1738
989
  <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>
1739
990
  <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>
@@ -1748,7 +999,7 @@
1748
999
  </div>
1749
1000
 
1750
1001
  <div id="footer">
1751
- Generated on Mon Aug 26 13:05:14 2013 by
1002
+ Generated on Mon Oct 21 11:10:45 2013 by
1752
1003
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1753
1004
  0.8.7 (ruby-2.0.0).
1754
1005
  </div>