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
@@ -0,0 +1,1043 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: ForemanApi::Resources::SmartVariable
8
+
9
+ &mdash; Documentation by YARD 0.8.7
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (S)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../ForemanApi.html" title="ForemanApi (module)">ForemanApi</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Resources.html" title="ForemanApi::Resources (module)">Resources</a></span></span>
36
+ &raquo;
37
+ <span class="title">SmartVariable</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: ForemanApi::Resources::SmartVariable
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Base</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Base</li>
82
+
83
+ <li class="next">ForemanApi::Resources::SmartVariable</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/foreman_api/resources/smart_variable.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h2>
113
+ Class Method Summary
114
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
115
+ </h2>
116
+
117
+ <ul class="summary">
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#doc-class_method" title="doc (class method)">+ (Object) <strong>doc</strong> </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <span class="summary_desc"><div class='inline'></div></span>
137
+
138
+ </li>
139
+
140
+
141
+ </ul>
142
+
143
+ <h2>
144
+ Instance Method Summary
145
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
146
+ </h2>
147
+
148
+ <ul class="summary">
149
+
150
+ <li class="public ">
151
+ <span class="summary_signature">
152
+
153
+ <a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</strong>(params = {}, headers = {}) </a>
154
+
155
+
156
+
157
+ </span>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <span class="summary_desc"><div class='inline'>
168
+ <p>First item: parsed data; second item: raw body.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</strong>(params = {}, headers = {}) </a>
178
+
179
+
180
+
181
+ </span>
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
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="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</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="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
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="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</strong>(params = {}, headers = {}) </a>
250
+
251
+
252
+
253
+ </span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
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
+ </ul>
271
+
272
+
273
+
274
+
275
+
276
+ <div id="class_method_details" class="method_details_list">
277
+ <h2>Class Method Details</h2>
278
+
279
+
280
+ <div class="method_details first">
281
+ <h3 class="signature first" id="doc-class_method">
282
+
283
+ + (<tt>Object</tt>) <strong>doc</strong>
284
+
285
+
286
+
287
+
288
+
289
+ </h3><table class="source_code">
290
+ <tr>
291
+ <td>
292
+ <pre class="lines">
293
+
294
+
295
+ 4
296
+ 5
297
+ 6</pre>
298
+ </td>
299
+ <td>
300
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 4</span>
301
+
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'>&#39;</span><span class='tstring_content'>resources</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>smart_variables</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
304
+ <span class='kw'>end</span></pre>
305
+ </td>
306
+ </tr>
307
+ </table>
308
+ </div>
309
+
310
+ </div>
311
+
312
+ <div id="instance_method_details" class="method_details_list">
313
+ <h2>Instance Method Details</h2>
314
+
315
+
316
+ <div class="method_details first">
317
+ <h3 class="signature first" id="create-instance_method">
318
+
319
+ - (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
320
+
321
+
322
+
323
+
324
+
325
+ </h3><div class="docstring">
326
+ <div class="discussion">
327
+
328
+ <p>Returns First item: parsed data; second item: raw body</p>
329
+
330
+
331
+ </div>
332
+ </div>
333
+ <div class="tags">
334
+ <p class="tag_title">Parameters:</p>
335
+ <ul class="param">
336
+
337
+ <li>
338
+
339
+ <span class='name'>params</span>
340
+
341
+
342
+ <span class='type'>(<tt>Hash</tt>)</span>
343
+
344
+
345
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
346
+
347
+
348
+ &mdash;
349
+ <div class='inline'>
350
+ <p>a hash of params to be passed to the service</p>
351
+ </div>
352
+
353
+ </li>
354
+
355
+ <li>
356
+
357
+ <span class='name'>headers</span>
358
+
359
+
360
+ <span class='type'>(<tt>Hash</tt>)</span>
361
+
362
+
363
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
364
+
365
+
366
+ &mdash;
367
+ <div class='inline'>
368
+ <p>additional http headers</p>
369
+ </div>
370
+
371
+ </li>
372
+
373
+ </ul>
374
+
375
+
376
+
377
+
378
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
379
+ <ul class="option">
380
+
381
+ <li>
382
+ <span class="name">smart_variable</span>
383
+ <span class="type">(<tt>Hash</tt>)</span>
384
+ <span class="default">
385
+
386
+ </span>
387
+
388
+ &mdash; <div class='inline'>
389
+ <p>allowed keys are:</p>
390
+ <ul><li>
391
+ <p>puppetclass_id [String]</p>
392
+ </li><li>
393
+ <p>default_value [String]</p>
394
+ </li><li>
395
+ <p>description [String]</p>
396
+ </li><li>
397
+ <p>override_value_order [String]</p>
398
+ </li><li>
399
+ <p>validator_rule [String]</p>
400
+ </li><li>
401
+ <p>validator_type [String]</p>
402
+ </li><li>
403
+ <p>variable [String]</p>
404
+ </li><li>
405
+ <p>variable_type [String]</p>
406
+ </li></ul>
407
+ </div>
408
+
409
+ </li>
410
+
411
+ </ul>
412
+
413
+
414
+
415
+
416
+ <p class="tag_title">Returns:</p>
417
+ <ul class="return">
418
+
419
+ <li>
420
+
421
+
422
+ <span class='type'>(<tt>Array</tt>)</span>
423
+
424
+
425
+
426
+ &mdash;
427
+ <div class='inline'>
428
+ <p>First item: parsed data; second item: raw body</p>
429
+ </div>
430
+
431
+ </li>
432
+
433
+ </ul>
434
+
435
+ </div><table class="source_code">
436
+ <tr>
437
+ <td>
438
+ <pre class="lines">
439
+
440
+
441
+ 46
442
+ 47
443
+ 48</pre>
444
+ </td>
445
+ <td>
446
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 46</span>
447
+
448
+ <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>
449
+ <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>
450
+ <span class='kw'>end</span></pre>
451
+ </td>
452
+ </tr>
453
+ </table>
454
+ </div>
455
+
456
+ <div class="method_details ">
457
+ <h3 class="signature " id="destroy-instance_method">
458
+
459
+ - (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
460
+
461
+
462
+
463
+
464
+
465
+ </h3><div class="docstring">
466
+ <div class="discussion">
467
+
468
+ <p>Returns First item: parsed data; second item: raw body</p>
469
+
470
+
471
+ </div>
472
+ </div>
473
+ <div class="tags">
474
+ <p class="tag_title">Parameters:</p>
475
+ <ul class="param">
476
+
477
+ <li>
478
+
479
+ <span class='name'>params</span>
480
+
481
+
482
+ <span class='type'>(<tt>Hash</tt>)</span>
483
+
484
+
485
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
486
+
487
+
488
+ &mdash;
489
+ <div class='inline'>
490
+ <p>a hash of params to be passed to the service</p>
491
+ </div>
492
+
493
+ </li>
494
+
495
+ <li>
496
+
497
+ <span class='name'>headers</span>
498
+
499
+
500
+ <span class='type'>(<tt>Hash</tt>)</span>
501
+
502
+
503
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
504
+
505
+
506
+ &mdash;
507
+ <div class='inline'>
508
+ <p>additional http headers</p>
509
+ </div>
510
+
511
+ </li>
512
+
513
+ </ul>
514
+
515
+
516
+
517
+
518
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
519
+ <ul class="option">
520
+
521
+ <li>
522
+ <span class="name">id</span>
523
+ <span class="type">(<tt>String</tt>)</span>
524
+ <span class="default">
525
+
526
+ </span>
527
+
528
+ </li>
529
+
530
+ </ul>
531
+
532
+
533
+
534
+
535
+ <p class="tag_title">Returns:</p>
536
+ <ul class="return">
537
+
538
+ <li>
539
+
540
+
541
+ <span class='type'>(<tt>Array</tt>)</span>
542
+
543
+
544
+
545
+ &mdash;
546
+ <div class='inline'>
547
+ <p>First item: parsed data; second item: raw body</p>
548
+ </div>
549
+
550
+ </li>
551
+
552
+ </ul>
553
+
554
+ </div><table class="source_code">
555
+ <tr>
556
+ <td>
557
+ <pre class="lines">
558
+
559
+
560
+ 74
561
+ 75
562
+ 76</pre>
563
+ </td>
564
+ <td>
565
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 74</span>
566
+
567
+ <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>
568
+ <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
+ <span class='kw'>end</span></pre>
570
+ </td>
571
+ </tr>
572
+ </table>
573
+ </div>
574
+
575
+ <div class="method_details ">
576
+ <h3 class="signature " id="index-instance_method">
577
+
578
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
579
+
580
+
581
+
582
+
583
+
584
+ </h3><div class="docstring">
585
+ <div class="discussion">
586
+
587
+ <p>Returns First item: parsed data; second item: raw body</p>
588
+
589
+
590
+ </div>
591
+ </div>
592
+ <div class="tags">
593
+ <p class="tag_title">Parameters:</p>
594
+ <ul class="param">
595
+
596
+ <li>
597
+
598
+ <span class='name'>params</span>
599
+
600
+
601
+ <span class='type'>(<tt>Hash</tt>)</span>
602
+
603
+
604
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
605
+
606
+
607
+ &mdash;
608
+ <div class='inline'>
609
+ <p>a hash of params to be passed to the service</p>
610
+ </div>
611
+
612
+ </li>
613
+
614
+ <li>
615
+
616
+ <span class='name'>headers</span>
617
+
618
+
619
+ <span class='type'>(<tt>Hash</tt>)</span>
620
+
621
+
622
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
623
+
624
+
625
+ &mdash;
626
+ <div class='inline'>
627
+ <p>additional http headers</p>
628
+ </div>
629
+
630
+ </li>
631
+
632
+ </ul>
633
+
634
+
635
+
636
+
637
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
638
+ <ul class="option">
639
+
640
+ <li>
641
+ <span class="name">host_id</span>
642
+ <span class="type">(<tt>String</tt>)</span>
643
+ <span class="default">
644
+
645
+ </span>
646
+
647
+ </li>
648
+
649
+ <li>
650
+ <span class="name">hostgroup_id</span>
651
+ <span class="type">(<tt>String</tt>)</span>
652
+ <span class="default">
653
+
654
+ </span>
655
+
656
+ </li>
657
+
658
+ <li>
659
+ <span class="name">puppetclass_id</span>
660
+ <span class="type">(<tt>String</tt>)</span>
661
+ <span class="default">
662
+
663
+ </span>
664
+
665
+ </li>
666
+
667
+ <li>
668
+ <span class="name">order</span>
669
+ <span class="type">(<tt>String</tt>)</span>
670
+ <span class="default">
671
+
672
+ </span>
673
+
674
+ &mdash; <div class='inline'>
675
+ <p>sort results</p>
676
+ </div>
677
+
678
+ </li>
679
+
680
+ <li>
681
+ <span class="name">page</span>
682
+ <span class="type">(<tt>String</tt>)</span>
683
+ <span class="default">
684
+
685
+ </span>
686
+
687
+ &mdash; <div class='inline'>
688
+ <p>paginate results</p>
689
+ </div>
690
+
691
+ </li>
692
+
693
+ <li>
694
+ <span class="name">per_page</span>
695
+ <span class="type">(<tt>String</tt>)</span>
696
+ <span class="default">
697
+
698
+ </span>
699
+
700
+ &mdash; <div class='inline'>
701
+ <p>number of entries per request</p>
702
+ </div>
703
+
704
+ </li>
705
+
706
+ <li>
707
+ <span class="name">search</span>
708
+ <span class="type">(<tt>String</tt>)</span>
709
+ <span class="default">
710
+
711
+ </span>
712
+
713
+ &mdash; <div class='inline'>
714
+ <p>filter results</p>
715
+ </div>
716
+
717
+ </li>
718
+
719
+ </ul>
720
+
721
+
722
+
723
+
724
+ <p class="tag_title">Returns:</p>
725
+ <ul class="return">
726
+
727
+ <li>
728
+
729
+
730
+ <span class='type'>(<tt>Array</tt>)</span>
731
+
732
+
733
+
734
+ &mdash;
735
+ <div class='inline'>
736
+ <p>First item: parsed data; second item: raw body</p>
737
+ </div>
738
+
739
+ </li>
740
+
741
+ </ul>
742
+
743
+ </div><table class="source_code">
744
+ <tr>
745
+ <td>
746
+ <pre class="lines">
747
+
748
+
749
+ 19
750
+ 20
751
+ 21</pre>
752
+ </td>
753
+ <td>
754
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 19</span>
755
+
756
+ <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>
757
+ <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>
758
+ <span class='kw'>end</span></pre>
759
+ </td>
760
+ </tr>
761
+ </table>
762
+ </div>
763
+
764
+ <div class="method_details ">
765
+ <h3 class="signature " id="show-instance_method">
766
+
767
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
768
+
769
+
770
+
771
+
772
+
773
+ </h3><div class="docstring">
774
+ <div class="discussion">
775
+
776
+ <p>Returns First item: parsed data; second item: raw body</p>
777
+
778
+
779
+ </div>
780
+ </div>
781
+ <div class="tags">
782
+ <p class="tag_title">Parameters:</p>
783
+ <ul class="param">
784
+
785
+ <li>
786
+
787
+ <span class='name'>params</span>
788
+
789
+
790
+ <span class='type'>(<tt>Hash</tt>)</span>
791
+
792
+
793
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
794
+
795
+
796
+ &mdash;
797
+ <div class='inline'>
798
+ <p>a hash of params to be passed to the service</p>
799
+ </div>
800
+
801
+ </li>
802
+
803
+ <li>
804
+
805
+ <span class='name'>headers</span>
806
+
807
+
808
+ <span class='type'>(<tt>Hash</tt>)</span>
809
+
810
+
811
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
812
+
813
+
814
+ &mdash;
815
+ <div class='inline'>
816
+ <p>additional http headers</p>
817
+ </div>
818
+
819
+ </li>
820
+
821
+ </ul>
822
+
823
+
824
+
825
+
826
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
827
+ <ul class="option">
828
+
829
+ <li>
830
+ <span class="name">id</span>
831
+ <span class="type">(<tt>String</tt>)</span>
832
+ <span class="default">
833
+
834
+ </span>
835
+
836
+ </li>
837
+
838
+ </ul>
839
+
840
+
841
+
842
+
843
+ <p class="tag_title">Returns:</p>
844
+ <ul class="return">
845
+
846
+ <li>
847
+
848
+
849
+ <span class='type'>(<tt>Array</tt>)</span>
850
+
851
+
852
+
853
+ &mdash;
854
+ <div class='inline'>
855
+ <p>First item: parsed data; second item: raw body</p>
856
+ </div>
857
+
858
+ </li>
859
+
860
+ </ul>
861
+
862
+ </div><table class="source_code">
863
+ <tr>
864
+ <td>
865
+ <pre class="lines">
866
+
867
+
868
+ 28
869
+ 29
870
+ 30</pre>
871
+ </td>
872
+ <td>
873
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 28</span>
874
+
875
+ <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>
876
+ <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>
877
+ <span class='kw'>end</span></pre>
878
+ </td>
879
+ </tr>
880
+ </table>
881
+ </div>
882
+
883
+ <div class="method_details ">
884
+ <h3 class="signature " id="update-instance_method">
885
+
886
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
887
+
888
+
889
+
890
+
891
+
892
+ </h3><div class="docstring">
893
+ <div class="discussion">
894
+
895
+ <p>Returns First item: parsed data; second item: raw body</p>
896
+
897
+
898
+ </div>
899
+ </div>
900
+ <div class="tags">
901
+ <p class="tag_title">Parameters:</p>
902
+ <ul class="param">
903
+
904
+ <li>
905
+
906
+ <span class='name'>params</span>
907
+
908
+
909
+ <span class='type'>(<tt>Hash</tt>)</span>
910
+
911
+
912
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
913
+
914
+
915
+ &mdash;
916
+ <div class='inline'>
917
+ <p>a hash of params to be passed to the service</p>
918
+ </div>
919
+
920
+ </li>
921
+
922
+ <li>
923
+
924
+ <span class='name'>headers</span>
925
+
926
+
927
+ <span class='type'>(<tt>Hash</tt>)</span>
928
+
929
+
930
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
931
+
932
+
933
+ &mdash;
934
+ <div class='inline'>
935
+ <p>additional http headers</p>
936
+ </div>
937
+
938
+ </li>
939
+
940
+ </ul>
941
+
942
+
943
+
944
+
945
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
946
+ <ul class="option">
947
+
948
+ <li>
949
+ <span class="name">id</span>
950
+ <span class="type">(<tt>String</tt>)</span>
951
+ <span class="default">
952
+
953
+ </span>
954
+
955
+ </li>
956
+
957
+ <li>
958
+ <span class="name">smart_variable</span>
959
+ <span class="type">(<tt>Hash</tt>)</span>
960
+ <span class="default">
961
+
962
+ </span>
963
+
964
+ &mdash; <div class='inline'>
965
+ <p>allowed keys are:</p>
966
+ <ul><li>
967
+ <p>puppetclass_id [String]</p>
968
+ </li><li>
969
+ <p>default_value [String]</p>
970
+ </li><li>
971
+ <p>description [String]</p>
972
+ </li><li>
973
+ <p>override_value_order [String]</p>
974
+ </li><li>
975
+ <p>validator_rule [String]</p>
976
+ </li><li>
977
+ <p>validator_type [String]</p>
978
+ </li><li>
979
+ <p>variable [String]</p>
980
+ </li><li>
981
+ <p>variable_type [String]</p>
982
+ </li></ul>
983
+ </div>
984
+
985
+ </li>
986
+
987
+ </ul>
988
+
989
+
990
+
991
+
992
+ <p class="tag_title">Returns:</p>
993
+ <ul class="return">
994
+
995
+ <li>
996
+
997
+
998
+ <span class='type'>(<tt>Array</tt>)</span>
999
+
1000
+
1001
+
1002
+ &mdash;
1003
+ <div class='inline'>
1004
+ <p>First item: parsed data; second item: raw body</p>
1005
+ </div>
1006
+
1007
+ </li>
1008
+
1009
+ </ul>
1010
+
1011
+ </div><table class="source_code">
1012
+ <tr>
1013
+ <td>
1014
+ <pre class="lines">
1015
+
1016
+
1017
+ 65
1018
+ 66
1019
+ 67</pre>
1020
+ </td>
1021
+ <td>
1022
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_variable.rb', line 65</span>
1023
+
1024
+ <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>
1025
+ <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>
1026
+ <span class='kw'>end</span></pre>
1027
+ </td>
1028
+ </tr>
1029
+ </table>
1030
+ </div>
1031
+
1032
+ </div>
1033
+
1034
+ </div>
1035
+
1036
+ <div id="footer">
1037
+ Generated on Mon Oct 21 11:10:46 2013 by
1038
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1039
+ 0.8.7 (ruby-2.0.0).
1040
+ </div>
1041
+
1042
+ </body>
1043
+ </html>