foreman_api 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -0
- data/doc/ForemanApi.html +5 -5
- data/doc/ForemanApi/Resources.html +5 -5
- data/doc/ForemanApi/Resources/Architecture.html +13 -13
- data/doc/ForemanApi/Resources/Audit.html +8 -8
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +11 -11
- data/doc/ForemanApi/Resources/Bookmark.html +11 -11
- data/doc/ForemanApi/Resources/CommonParameter.html +11 -11
- data/doc/ForemanApi/Resources/ComputeResource.html +11 -11
- data/doc/ForemanApi/Resources/ConfigTemplate.html +17 -17
- data/doc/ForemanApi/Resources/Dashboard.html +7 -7
- data/doc/ForemanApi/Resources/Domain.html +13 -13
- data/doc/ForemanApi/Resources/Environment.html +11 -11
- data/doc/ForemanApi/Resources/FactValue.html +7 -7
- data/doc/ForemanApi/Resources/Home.html +8 -8
- data/doc/ForemanApi/Resources/Host.html +15 -15
- data/doc/ForemanApi/Resources/HostClass.html +9 -9
- data/doc/ForemanApi/Resources/Hostgroup.html +26 -22
- data/doc/ForemanApi/Resources/HostgroupClass.html +9 -9
- data/doc/ForemanApi/Resources/Image.html +11 -11
- data/doc/ForemanApi/Resources/Location.html +98 -35
- data/doc/ForemanApi/Resources/LookupKey.html +817 -81
- data/doc/ForemanApi/Resources/Medium.html +17 -19
- data/doc/ForemanApi/Resources/Model.html +11 -11
- data/doc/ForemanApi/Resources/OperatingSystem.html +12 -12
- data/doc/ForemanApi/Resources/Organization.html +96 -33
- data/doc/ForemanApi/Resources/Parameter.html +28 -41
- data/doc/ForemanApi/Resources/Ptable.html +11 -11
- data/doc/ForemanApi/Resources/Puppetclass.html +11 -11
- data/doc/ForemanApi/Resources/Report.html +10 -10
- data/doc/ForemanApi/Resources/Role.html +11 -11
- data/doc/ForemanApi/Resources/Setting.html +9 -9
- data/doc/ForemanApi/Resources/SmartProxy.html +11 -11
- data/doc/ForemanApi/Resources/Subnet.html +13 -13
- data/doc/ForemanApi/Resources/TemplateCombination.html +10 -10
- data/doc/ForemanApi/Resources/TemplateKind.html +7 -7
- data/doc/ForemanApi/Resources/User.html +11 -11
- data/doc/ForemanApi/Resources/Usergroup.html +11 -11
- data/doc/_index.html +6 -6
- data/doc/class_list.html +2 -1
- data/doc/css/style.css +10 -0
- data/doc/file.MIT-LICENSE.html +8 -8
- data/doc/file.README.html +36 -36
- data/doc/file_list.html +3 -2
- data/doc/frames.html +1 -1
- data/doc/index.html +36 -36
- data/doc/js/full_list.js +7 -2
- data/doc/method_list.html +367 -722
- data/doc/top-level-namespace.html +5 -5
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +2 -2
- data/lib/foreman_api/resources/config_template.rb +4 -4
- data/lib/foreman_api/resources/domain.rb +2 -2
- data/lib/foreman_api/resources/host.rb +2 -2
- data/lib/foreman_api/resources/hostgroup.rb +2 -0
- data/lib/foreman_api/resources/location.rb +8 -4
- data/lib/foreman_api/resources/lookup_key.rb +61 -3
- data/lib/foreman_api/resources/medium.rb +2 -2
- data/lib/foreman_api/resources/organization.rb +6 -2
- data/lib/foreman_api/resources/parameter.rb +4 -5
- data/lib/foreman_api/resources/subnet.rb +2 -2
- data/lib/foreman_api/version.rb +1 -1
- metadata +13 -21
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ForemanApi::Resources::Location
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -300,7 +300,7 @@
|
|
300
300
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 4</span>
|
301
301
|
|
302
302
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
|
303
|
-
<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'
|
303
|
+
<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'>"</span><span class='tstring_content'>locations</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
304
304
|
<span class='kw'>end</span></pre>
|
305
305
|
</td>
|
306
306
|
</tr>
|
@@ -325,7 +325,7 @@
|
|
325
325
|
</h3><div class="docstring">
|
326
326
|
<div class="discussion">
|
327
327
|
|
328
|
-
<p>First item: parsed data; second item: raw body</p>
|
328
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
329
329
|
|
330
330
|
|
331
331
|
</div>
|
@@ -379,7 +379,7 @@
|
|
379
379
|
<ul class="option">
|
380
380
|
|
381
381
|
<li>
|
382
|
-
<span class="name">
|
382
|
+
<span class="name">location</span>
|
383
383
|
<span class="type">(<tt>Hash</tt>)</span>
|
384
384
|
<span class="default">
|
385
385
|
|
@@ -388,7 +388,7 @@
|
|
388
388
|
— <div class='inline'>
|
389
389
|
<p>allowed keys are:</p>
|
390
390
|
<ul><li>
|
391
|
-
<p
|
391
|
+
<p>name [String]</p>
|
392
392
|
</li></ul>
|
393
393
|
</div>
|
394
394
|
|
@@ -424,12 +424,12 @@
|
|
424
424
|
<pre class="lines">
|
425
425
|
|
426
426
|
|
427
|
-
|
428
|
-
|
429
|
-
|
427
|
+
36
|
428
|
+
37
|
429
|
+
38</pre>
|
430
430
|
</td>
|
431
431
|
<td>
|
432
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line
|
432
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 36</span>
|
433
433
|
|
434
434
|
<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>
|
435
435
|
<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>
|
@@ -451,7 +451,7 @@
|
|
451
451
|
</h3><div class="docstring">
|
452
452
|
<div class="discussion">
|
453
453
|
|
454
|
-
<p>First item: parsed data; second item: raw body</p>
|
454
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
455
455
|
|
456
456
|
|
457
457
|
</div>
|
@@ -547,12 +547,12 @@
|
|
547
547
|
<pre class="lines">
|
548
548
|
|
549
549
|
|
550
|
-
|
551
|
-
|
552
|
-
|
550
|
+
57
|
551
|
+
58
|
552
|
+
59</pre>
|
553
553
|
</td>
|
554
554
|
<td>
|
555
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line
|
555
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 57</span>
|
556
556
|
|
557
557
|
<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>
|
558
558
|
<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>
|
@@ -574,7 +574,7 @@
|
|
574
574
|
</h3><div class="docstring">
|
575
575
|
<div class="discussion">
|
576
576
|
|
577
|
-
<p>First item: parsed data; second item: raw body</p>
|
577
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
578
578
|
|
579
579
|
|
580
580
|
</div>
|
@@ -621,6 +621,69 @@
|
|
621
621
|
|
622
622
|
</ul>
|
623
623
|
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
628
|
+
<ul class="option">
|
629
|
+
|
630
|
+
<li>
|
631
|
+
<span class="name">order</span>
|
632
|
+
<span class="type">(<tt>String</tt>)</span>
|
633
|
+
<span class="default">
|
634
|
+
|
635
|
+
</span>
|
636
|
+
|
637
|
+
— <div class='inline'>
|
638
|
+
<p>Sort results</p>
|
639
|
+
</div>
|
640
|
+
|
641
|
+
</li>
|
642
|
+
|
643
|
+
<li>
|
644
|
+
<span class="name">page</span>
|
645
|
+
<span class="type">(<tt>String</tt>)</span>
|
646
|
+
<span class="default">
|
647
|
+
|
648
|
+
</span>
|
649
|
+
|
650
|
+
— <div class='inline'>
|
651
|
+
<p>Paginate results</p>
|
652
|
+
</div>
|
653
|
+
|
654
|
+
</li>
|
655
|
+
|
656
|
+
<li>
|
657
|
+
<span class="name">per_page</span>
|
658
|
+
<span class="type">(<tt>String</tt>)</span>
|
659
|
+
<span class="default">
|
660
|
+
|
661
|
+
</span>
|
662
|
+
|
663
|
+
— <div class='inline'>
|
664
|
+
<p>Number of entries per request</p>
|
665
|
+
</div>
|
666
|
+
|
667
|
+
</li>
|
668
|
+
|
669
|
+
<li>
|
670
|
+
<span class="name">search</span>
|
671
|
+
<span class="type">(<tt>String</tt>)</span>
|
672
|
+
<span class="default">
|
673
|
+
|
674
|
+
</span>
|
675
|
+
|
676
|
+
— <div class='inline'>
|
677
|
+
<p>Filter results</p>
|
678
|
+
</div>
|
679
|
+
|
680
|
+
</li>
|
681
|
+
|
682
|
+
</ul>
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
624
687
|
<p class="tag_title">Returns:</p>
|
625
688
|
<ul class="return">
|
626
689
|
|
@@ -646,12 +709,12 @@
|
|
646
709
|
<pre class="lines">
|
647
710
|
|
648
711
|
|
649
|
-
|
650
|
-
|
651
|
-
|
712
|
+
16
|
713
|
+
17
|
714
|
+
18</pre>
|
652
715
|
</td>
|
653
716
|
<td>
|
654
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line
|
717
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 16</span>
|
655
718
|
|
656
719
|
<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>
|
657
720
|
<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>
|
@@ -673,7 +736,7 @@
|
|
673
736
|
</h3><div class="docstring">
|
674
737
|
<div class="discussion">
|
675
738
|
|
676
|
-
<p>First item: parsed data; second item: raw body</p>
|
739
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
677
740
|
|
678
741
|
|
679
742
|
</div>
|
@@ -769,12 +832,12 @@
|
|
769
832
|
<pre class="lines">
|
770
833
|
|
771
834
|
|
772
|
-
|
773
|
-
|
774
|
-
|
835
|
+
25
|
836
|
+
26
|
837
|
+
27</pre>
|
775
838
|
</td>
|
776
839
|
<td>
|
777
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line
|
840
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 25</span>
|
778
841
|
|
779
842
|
<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>
|
780
843
|
<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>
|
@@ -796,7 +859,7 @@
|
|
796
859
|
</h3><div class="docstring">
|
797
860
|
<div class="discussion">
|
798
861
|
|
799
|
-
<p>First item: parsed data; second item: raw body</p>
|
862
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
800
863
|
|
801
864
|
|
802
865
|
</div>
|
@@ -863,7 +926,7 @@
|
|
863
926
|
</li>
|
864
927
|
|
865
928
|
<li>
|
866
|
-
<span class="name">
|
929
|
+
<span class="name">location</span>
|
867
930
|
<span class="type">(<tt>Hash</tt>)</span>
|
868
931
|
<span class="default">
|
869
932
|
|
@@ -872,7 +935,7 @@
|
|
872
935
|
— <div class='inline'>
|
873
936
|
<p>allowed keys are:</p>
|
874
937
|
<ul><li>
|
875
|
-
<p
|
938
|
+
<p>name [String]</p>
|
876
939
|
</li></ul>
|
877
940
|
</div>
|
878
941
|
|
@@ -908,12 +971,12 @@
|
|
908
971
|
<pre class="lines">
|
909
972
|
|
910
973
|
|
911
|
-
|
912
|
-
|
913
|
-
|
974
|
+
48
|
975
|
+
49
|
976
|
+
50</pre>
|
914
977
|
</td>
|
915
978
|
<td>
|
916
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line
|
979
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/location.rb', line 48</span>
|
917
980
|
|
918
981
|
<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>
|
919
982
|
<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>
|
@@ -928,9 +991,9 @@
|
|
928
991
|
</div>
|
929
992
|
|
930
993
|
<div id="footer">
|
931
|
-
Generated on
|
994
|
+
Generated on Tue Jul 30 15:43:16 2013 by
|
932
995
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
933
|
-
0.8.
|
996
|
+
0.8.7 (ruby-2.0.0).
|
934
997
|
</div>
|
935
998
|
|
936
999
|
</body>
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ForemanApi::Resources::LookupKey
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -188,6 +188,54 @@
|
|
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
|
+
|
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,54 @@
|
|
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="#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
|
+
|
215
311
|
<span class="summary_desc"><div class='inline'>
|
216
312
|
<p>First item: parsed data; second item: raw body.</p>
|
217
313
|
</div></span>
|
@@ -300,7 +396,7 @@
|
|
300
396
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 4</span>
|
301
397
|
|
302
398
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
|
303
|
-
<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'
|
399
|
+
<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'>"</span><span class='tstring_content'>lookup_keys</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
304
400
|
<span class='kw'>end</span></pre>
|
305
401
|
</td>
|
306
402
|
</tr>
|
@@ -325,7 +421,7 @@
|
|
325
421
|
</h3><div class="docstring">
|
326
422
|
<div class="discussion">
|
327
423
|
|
328
|
-
<p>First item: parsed data; second item: raw body</p>
|
424
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
329
425
|
|
330
426
|
|
331
427
|
</div>
|
@@ -394,11 +490,21 @@
|
|
394
490
|
</li><li>
|
395
491
|
<p>description [String]</p>
|
396
492
|
</li><li>
|
493
|
+
<p>is_param [String]</p>
|
494
|
+
</li><li>
|
397
495
|
<p>key [String]</p>
|
398
496
|
</li><li>
|
399
|
-
<p>
|
497
|
+
<p>key_type [String]</p>
|
498
|
+
</li><li>
|
499
|
+
<p>override [String]</p>
|
400
500
|
</li><li>
|
401
501
|
<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>
|
402
508
|
</li></ul>
|
403
509
|
</div>
|
404
510
|
|
@@ -434,12 +540,12 @@
|
|
434
540
|
<pre class="lines">
|
435
541
|
|
436
542
|
|
437
|
-
|
438
|
-
|
439
|
-
|
543
|
+
46
|
544
|
+
47
|
545
|
+
48</pre>
|
440
546
|
</td>
|
441
547
|
<td>
|
442
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line
|
548
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 46</span>
|
443
549
|
|
444
550
|
<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>
|
445
551
|
<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>
|
@@ -461,7 +567,7 @@
|
|
461
567
|
</h3><div class="docstring">
|
462
568
|
<div class="discussion">
|
463
569
|
|
464
|
-
<p>First item: parsed data; second item: raw body</p>
|
570
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
465
571
|
|
466
572
|
|
467
573
|
</div>
|
@@ -553,12 +659,12 @@
|
|
553
659
|
<pre class="lines">
|
554
660
|
|
555
661
|
|
556
|
-
|
557
|
-
|
558
|
-
|
662
|
+
77
|
663
|
+
78
|
664
|
+
79</pre>
|
559
665
|
</td>
|
560
666
|
<td>
|
561
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line
|
667
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 77</span>
|
562
668
|
|
563
669
|
<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>
|
564
670
|
<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>
|
@@ -569,9 +675,9 @@
|
|
569
675
|
</div>
|
570
676
|
|
571
677
|
<div class="method_details ">
|
572
|
-
<h3 class="signature " id="
|
678
|
+
<h3 class="signature " id="host_or_hostgroup_smart_class_parameters-instance_method">
|
573
679
|
|
574
|
-
- (<tt>Array</tt>) <strong>
|
680
|
+
- (<tt>Array</tt>) <strong>host_or_hostgroup_smart_class_parameters</strong>(params = {}, headers = {})
|
575
681
|
|
576
682
|
|
577
683
|
|
@@ -580,7 +686,7 @@
|
|
580
686
|
</h3><div class="docstring">
|
581
687
|
<div class="discussion">
|
582
688
|
|
583
|
-
<p>First item: parsed data; second item: raw body</p>
|
689
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
584
690
|
|
585
691
|
|
586
692
|
</div>
|
@@ -635,28 +741,20 @@
|
|
635
741
|
|
636
742
|
<li>
|
637
743
|
<span class="name">host_id</span>
|
638
|
-
<span class="type">(<tt>
|
744
|
+
<span class="type">(<tt>String</tt>)</span>
|
639
745
|
<span class="default">
|
640
746
|
|
641
747
|
</span>
|
642
748
|
|
643
|
-
— <div class='inline'>
|
644
|
-
<p>Part of <tt>/api/hosts/:host_id/lookup_keys</tt> path</p>
|
645
|
-
</div>
|
646
|
-
|
647
749
|
</li>
|
648
750
|
|
649
751
|
<li>
|
650
|
-
<span class="name">
|
752
|
+
<span class="name">hostgroup_id</span>
|
651
753
|
<span class="type">(<tt>String</tt>)</span>
|
652
754
|
<span class="default">
|
653
755
|
|
654
756
|
</span>
|
655
757
|
|
656
|
-
— <div class='inline'>
|
657
|
-
<p>Sort results</p>
|
658
|
-
</div>
|
659
|
-
|
660
758
|
</li>
|
661
759
|
|
662
760
|
<li>
|
@@ -681,19 +779,6 @@
|
|
681
779
|
|
682
780
|
— <div class='inline'>
|
683
781
|
<p>Number of entries per request</p>
|
684
|
-
</div>
|
685
|
-
|
686
|
-
</li>
|
687
|
-
|
688
|
-
<li>
|
689
|
-
<span class="name">search</span>
|
690
|
-
<span class="type">(<tt>String</tt>)</span>
|
691
|
-
<span class="default">
|
692
|
-
|
693
|
-
</span>
|
694
|
-
|
695
|
-
— <div class='inline'>
|
696
|
-
<p>Filter results</p>
|
697
782
|
</div>
|
698
783
|
|
699
784
|
</li>
|
@@ -728,14 +813,14 @@
|
|
728
813
|
<pre class="lines">
|
729
814
|
|
730
815
|
|
731
|
-
|
732
|
-
|
733
|
-
|
816
|
+
101
|
817
|
+
102
|
818
|
+
103</pre>
|
734
819
|
</td>
|
735
820
|
<td>
|
736
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line
|
821
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 101</span>
|
737
822
|
|
738
|
-
<span class='kw'>def</span> <span class='id identifier
|
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>
|
739
824
|
<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>
|
740
825
|
<span class='kw'>end</span></pre>
|
741
826
|
</td>
|
@@ -744,9 +829,9 @@
|
|
744
829
|
</div>
|
745
830
|
|
746
831
|
<div class="method_details ">
|
747
|
-
<h3 class="signature " id="
|
832
|
+
<h3 class="signature " id="host_or_hostgroup_smart_parameters-instance_method">
|
748
833
|
|
749
|
-
- (<tt>Array</tt>) <strong>
|
834
|
+
- (<tt>Array</tt>) <strong>host_or_hostgroup_smart_parameters</strong>(params = {}, headers = {})
|
750
835
|
|
751
836
|
|
752
837
|
|
@@ -755,7 +840,7 @@
|
|
755
840
|
</h3><div class="docstring">
|
756
841
|
<div class="discussion">
|
757
842
|
|
758
|
-
<p>First item: parsed data; second item: raw body</p>
|
843
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
759
844
|
|
760
845
|
|
761
846
|
</div>
|
@@ -809,12 +894,47 @@
|
|
809
894
|
<ul class="option">
|
810
895
|
|
811
896
|
<li>
|
812
|
-
<span class="name">
|
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
|
+
— <div class='inline'>
|
922
|
+
<p>Paginate results</p>
|
923
|
+
</div>
|
924
|
+
|
925
|
+
</li>
|
926
|
+
|
927
|
+
<li>
|
928
|
+
<span class="name">per_page</span>
|
813
929
|
<span class="type">(<tt>String</tt>)</span>
|
814
930
|
<span class="default">
|
815
931
|
|
816
932
|
</span>
|
817
933
|
|
934
|
+
— <div class='inline'>
|
935
|
+
<p>Number of entries per request</p>
|
936
|
+
</div>
|
937
|
+
|
818
938
|
</li>
|
819
939
|
|
820
940
|
</ul>
|
@@ -847,14 +967,14 @@
|
|
847
967
|
<pre class="lines">
|
848
968
|
|
849
969
|
|
850
|
-
|
851
|
-
|
852
|
-
|
970
|
+
89
|
971
|
+
90
|
972
|
+
91</pre>
|
853
973
|
</td>
|
854
974
|
<td>
|
855
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line
|
975
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 89</span>
|
856
976
|
|
857
|
-
<span class='kw'>def</span> <span class='id identifier
|
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>
|
858
978
|
<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>
|
859
979
|
<span class='kw'>end</span></pre>
|
860
980
|
</td>
|
@@ -863,9 +983,9 @@
|
|
863
983
|
</div>
|
864
984
|
|
865
985
|
<div class="method_details ">
|
866
|
-
<h3 class="signature " id="
|
986
|
+
<h3 class="signature " id="index-instance_method">
|
867
987
|
|
868
|
-
- (<tt>Array</tt>) <strong>
|
988
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
869
989
|
|
870
990
|
|
871
991
|
|
@@ -874,7 +994,7 @@
|
|
874
994
|
</h3><div class="docstring">
|
875
995
|
<div class="discussion">
|
876
996
|
|
877
|
-
<p>First item: parsed data; second item: raw body</p>
|
997
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
878
998
|
|
879
999
|
|
880
1000
|
</div>
|
@@ -928,36 +1048,53 @@
|
|
928
1048
|
<ul class="option">
|
929
1049
|
|
930
1050
|
<li>
|
931
|
-
<span class="name">
|
1051
|
+
<span class="name">order</span>
|
932
1052
|
<span class="type">(<tt>String</tt>)</span>
|
933
1053
|
<span class="default">
|
934
1054
|
|
935
1055
|
</span>
|
936
1056
|
|
1057
|
+
— <div class='inline'>
|
1058
|
+
<p>Sort results</p>
|
1059
|
+
</div>
|
1060
|
+
|
937
1061
|
</li>
|
938
1062
|
|
939
1063
|
<li>
|
940
|
-
<span class="name">
|
941
|
-
<span class="type">(<tt>
|
1064
|
+
<span class="name">page</span>
|
1065
|
+
<span class="type">(<tt>String</tt>)</span>
|
942
1066
|
<span class="default">
|
943
1067
|
|
944
1068
|
</span>
|
945
1069
|
|
946
1070
|
— <div class='inline'>
|
947
|
-
<p>
|
948
|
-
|
949
|
-
|
950
|
-
</li
|
951
|
-
|
952
|
-
|
953
|
-
<
|
954
|
-
</
|
955
|
-
<
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
<
|
960
|
-
</
|
1071
|
+
<p>Paginate results</p>
|
1072
|
+
</div>
|
1073
|
+
|
1074
|
+
</li>
|
1075
|
+
|
1076
|
+
<li>
|
1077
|
+
<span class="name">per_page</span>
|
1078
|
+
<span class="type">(<tt>String</tt>)</span>
|
1079
|
+
<span class="default">
|
1080
|
+
|
1081
|
+
</span>
|
1082
|
+
|
1083
|
+
— <div class='inline'>
|
1084
|
+
<p>Number of entries per request</p>
|
1085
|
+
</div>
|
1086
|
+
|
1087
|
+
</li>
|
1088
|
+
|
1089
|
+
<li>
|
1090
|
+
<span class="name">search</span>
|
1091
|
+
<span class="type">(<tt>String</tt>)</span>
|
1092
|
+
<span class="default">
|
1093
|
+
|
1094
|
+
</span>
|
1095
|
+
|
1096
|
+
— <div class='inline'>
|
1097
|
+
<p>Filter results</p>
|
961
1098
|
</div>
|
962
1099
|
|
963
1100
|
</li>
|
@@ -992,12 +1129,611 @@
|
|
992
1129
|
<pre class="lines">
|
993
1130
|
|
994
1131
|
|
995
|
-
|
996
|
-
|
997
|
-
|
1132
|
+
16
|
1133
|
+
17
|
1134
|
+
18</pre>
|
998
1135
|
</td>
|
999
1136
|
<td>
|
1000
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line
|
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
|
+
—
|
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
|
+
—
|
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
|
+
— <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
|
+
— <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
|
+
— <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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
— <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
|
+
— <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
|
+
— <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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
— <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
|
+
—
|
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>
|
1734
|
+
</td>
|
1735
|
+
<td>
|
1736
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/lookup_key.rb', line 68</span>
|
1001
1737
|
|
1002
1738
|
<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>
|
1003
1739
|
<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>
|
@@ -1012,9 +1748,9 @@
|
|
1012
1748
|
</div>
|
1013
1749
|
|
1014
1750
|
<div id="footer">
|
1015
|
-
Generated on
|
1751
|
+
Generated on Tue Jul 30 15:43:17 2013 by
|
1016
1752
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1017
|
-
0.8.
|
1753
|
+
0.8.7 (ruby-2.0.0).
|
1018
1754
|
</div>
|
1019
1755
|
|
1020
1756
|
</body>
|