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
@@ -338,7 +338,7 @@
338
338
  </span>
339
339
 
340
340
  &mdash; <div class='inline'>
341
- <p>Id of host</p>
341
+ <p>id of host</p>
342
342
  </div>
343
343
 
344
344
  </li>
@@ -351,7 +351,7 @@
351
351
  </span>
352
352
 
353
353
  &mdash; <div class='inline'>
354
- <p>Id of puppetclass</p>
354
+ <p>id of puppetclass</p>
355
355
  </div>
356
356
 
357
357
  </li>
@@ -474,7 +474,7 @@
474
474
  </span>
475
475
 
476
476
  &mdash; <div class='inline'>
477
- <p>Id of puppetclass</p>
477
+ <p>id of puppetclass</p>
478
478
  </div>
479
479
 
480
480
  </li>
@@ -487,7 +487,7 @@
487
487
  </span>
488
488
 
489
489
  &mdash; <div class='inline'>
490
- <p>Id of host</p>
490
+ <p>id of host</p>
491
491
  </div>
492
492
 
493
493
  </li>
@@ -665,7 +665,7 @@
665
665
  </div>
666
666
 
667
667
  <div id="footer">
668
- Generated on Mon Aug 26 13:05:14 2013 by
668
+ Generated on Mon Oct 21 11:10:45 2013 by
669
669
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
670
670
  0.8.7 (ruby-2.0.0).
671
671
  </div>
@@ -651,7 +651,7 @@
651
651
  </span>
652
652
 
653
653
  &mdash; <div class='inline'>
654
- <p>Sort results</p>
654
+ <p>sort results</p>
655
655
  </div>
656
656
 
657
657
  </li>
@@ -664,7 +664,7 @@
664
664
  </span>
665
665
 
666
666
  &mdash; <div class='inline'>
667
- <p>Paginate results</p>
667
+ <p>paginate results</p>
668
668
  </div>
669
669
 
670
670
  </li>
@@ -677,7 +677,7 @@
677
677
  </span>
678
678
 
679
679
  &mdash; <div class='inline'>
680
- <p>Number of entries per request</p>
680
+ <p>number of entries per request</p>
681
681
  </div>
682
682
 
683
683
  </li>
@@ -690,7 +690,7 @@
690
690
  </span>
691
691
 
692
692
  &mdash; <div class='inline'>
693
- <p>Filter results</p>
693
+ <p>filter results</p>
694
694
  </div>
695
695
 
696
696
  </li>
@@ -1019,7 +1019,7 @@
1019
1019
  </div>
1020
1020
 
1021
1021
  <div id="footer">
1022
- Generated on Mon Aug 26 13:05:13 2013 by
1022
+ Generated on Mon Oct 21 11:10:44 2013 by
1023
1023
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1024
1024
  0.8.7 (ruby-2.0.0).
1025
1025
  </div>
@@ -338,7 +338,7 @@
338
338
  </span>
339
339
 
340
340
  &mdash; <div class='inline'>
341
- <p>Id of hostgroup</p>
341
+ <p>id of hostgroup</p>
342
342
  </div>
343
343
 
344
344
  </li>
@@ -351,7 +351,7 @@
351
351
  </span>
352
352
 
353
353
  &mdash; <div class='inline'>
354
- <p>Id of puppetclass</p>
354
+ <p>id of puppetclass</p>
355
355
  </div>
356
356
 
357
357
  </li>
@@ -487,7 +487,7 @@
487
487
  </span>
488
488
 
489
489
  &mdash; <div class='inline'>
490
- <p>Id of hostgroup</p>
490
+ <p>id of hostgroup</p>
491
491
  </div>
492
492
 
493
493
  </li>
@@ -500,7 +500,7 @@
500
500
  </span>
501
501
 
502
502
  &mdash; <div class='inline'>
503
- <p>Id of puppetclass</p>
503
+ <p>id of puppetclass</p>
504
504
  </div>
505
505
 
506
506
  </li>
@@ -678,7 +678,7 @@
678
678
  </div>
679
679
 
680
680
  <div id="footer">
681
- Generated on Mon Aug 26 13:05:14 2013 by
681
+ Generated on Mon Oct 21 11:10:46 2013 by
682
682
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
683
683
  0.8.7 (ruby-2.0.0).
684
684
  </div>
@@ -668,7 +668,7 @@
668
668
  </span>
669
669
 
670
670
  &mdash; <div class='inline'>
671
- <p>Sort results</p>
671
+ <p>sort results</p>
672
672
  </div>
673
673
 
674
674
  </li>
@@ -681,7 +681,7 @@
681
681
  </span>
682
682
 
683
683
  &mdash; <div class='inline'>
684
- <p>Paginate results</p>
684
+ <p>paginate results</p>
685
685
  </div>
686
686
 
687
687
  </li>
@@ -694,7 +694,7 @@
694
694
  </span>
695
695
 
696
696
  &mdash; <div class='inline'>
697
- <p>Number of entries per request</p>
697
+ <p>number of entries per request</p>
698
698
  </div>
699
699
 
700
700
  </li>
@@ -707,7 +707,7 @@
707
707
  </span>
708
708
 
709
709
  &mdash; <div class='inline'>
710
- <p>Filter results</p>
710
+ <p>filter results</p>
711
711
  </div>
712
712
 
713
713
  </li>
@@ -1044,7 +1044,7 @@
1044
1044
  </div>
1045
1045
 
1046
1046
  <div id="footer">
1047
- Generated on Mon Aug 26 13:05:12 2013 by
1047
+ Generated on Mon Oct 21 11:10:43 2013 by
1048
1048
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1049
1049
  0.8.7 (ruby-2.0.0).
1050
1050
  </div>
@@ -0,0 +1,1045 @@
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::Interface
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 (I)</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">Interface</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::Interface
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::Interface</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/interface.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/interface.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'>interfaces</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">host_id</span>
383
+ <span class="type">(<tt>String</tt>)</span>
384
+ <span class="default">
385
+
386
+ </span>
387
+
388
+ &mdash; <div class='inline'>
389
+ <p>id or name of host</p>
390
+ </div>
391
+
392
+ </li>
393
+
394
+ <li>
395
+ <span class="name">interface</span>
396
+ <span class="type">(<tt>Hash</tt>)</span>
397
+ <span class="default">
398
+
399
+ </span>
400
+
401
+ &mdash; <div class='inline'>
402
+ <p>interface information allowed keys are:</p>
403
+ <ul><li>
404
+ <p>domain_id [Numeric] foreman domain id of interface</p>
405
+ </li><li>
406
+ <p>subnet_id [Numeric] foreman subnet id of interface</p>
407
+ </li><li>
408
+ <p>ip [String] ip address of interface</p>
409
+ </li><li>
410
+ <p>mac [String] mac address of interface</p>
411
+ </li><li>
412
+ <p>name [String] interface name</p>
413
+ </li><li>
414
+ <p>password [String]</p>
415
+ </li><li>
416
+ <p>provider [String] interface provider, i.e: ipmi</p>
417
+ </li><li>
418
+ <p>type [String] interface type, i.e: nic::bmc</p>
419
+ </li><li>
420
+ <p>username [String]</p>
421
+ </li></ul>
422
+ </div>
423
+
424
+ </li>
425
+
426
+ </ul>
427
+
428
+
429
+
430
+
431
+ <p class="tag_title">Returns:</p>
432
+ <ul class="return">
433
+
434
+ <li>
435
+
436
+
437
+ <span class='type'>(<tt>Array</tt>)</span>
438
+
439
+
440
+
441
+ &mdash;
442
+ <div class='inline'>
443
+ <p>First item: parsed data; second item: raw body</p>
444
+ </div>
445
+
446
+ </li>
447
+
448
+ </ul>
449
+
450
+ </div><table class="source_code">
451
+ <tr>
452
+ <td>
453
+ <pre class="lines">
454
+
455
+
456
+ 43
457
+ 44
458
+ 45</pre>
459
+ </td>
460
+ <td>
461
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/interface.rb', line 43</span>
462
+
463
+ <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>
464
+ <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>
465
+ <span class='kw'>end</span></pre>
466
+ </td>
467
+ </tr>
468
+ </table>
469
+ </div>
470
+
471
+ <div class="method_details ">
472
+ <h3 class="signature " id="destroy-instance_method">
473
+
474
+ - (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
475
+
476
+
477
+
478
+
479
+
480
+ </h3><div class="docstring">
481
+ <div class="discussion">
482
+
483
+ <p>Returns First item: parsed data; second item: raw body</p>
484
+
485
+
486
+ </div>
487
+ </div>
488
+ <div class="tags">
489
+ <p class="tag_title">Parameters:</p>
490
+ <ul class="param">
491
+
492
+ <li>
493
+
494
+ <span class='name'>params</span>
495
+
496
+
497
+ <span class='type'>(<tt>Hash</tt>)</span>
498
+
499
+
500
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
501
+
502
+
503
+ &mdash;
504
+ <div class='inline'>
505
+ <p>a hash of params to be passed to the service</p>
506
+ </div>
507
+
508
+ </li>
509
+
510
+ <li>
511
+
512
+ <span class='name'>headers</span>
513
+
514
+
515
+ <span class='type'>(<tt>Hash</tt>)</span>
516
+
517
+
518
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
519
+
520
+
521
+ &mdash;
522
+ <div class='inline'>
523
+ <p>additional http headers</p>
524
+ </div>
525
+
526
+ </li>
527
+
528
+ </ul>
529
+
530
+
531
+
532
+
533
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
534
+ <ul class="option">
535
+
536
+ <li>
537
+ <span class="name">id</span>
538
+ <span class="type">(<tt>String</tt>)</span>
539
+ <span class="default">
540
+
541
+ </span>
542
+
543
+ &mdash; <div class='inline'>
544
+ <p>id of interface</p>
545
+ </div>
546
+
547
+ </li>
548
+
549
+ <li>
550
+ <span class="name">host_id</span>
551
+ <span class="type">(<tt>Object</tt>)</span>
552
+ <span class="default">
553
+
554
+ </span>
555
+
556
+ &mdash; <div class='inline'>
557
+ <p>Part of <tt>/api/hosts/:host_id/interfaces/:id</tt> path</p>
558
+ </div>
559
+
560
+ </li>
561
+
562
+ </ul>
563
+
564
+
565
+
566
+
567
+ <p class="tag_title">Returns:</p>
568
+ <ul class="return">
569
+
570
+ <li>
571
+
572
+
573
+ <span class='type'>(<tt>Array</tt>)</span>
574
+
575
+
576
+
577
+ &mdash;
578
+ <div class='inline'>
579
+ <p>First item: parsed data; second item: raw body</p>
580
+ </div>
581
+
582
+ </li>
583
+
584
+ </ul>
585
+
586
+ </div><table class="source_code">
587
+ <tr>
588
+ <td>
589
+ <pre class="lines">
590
+
591
+
592
+ 74
593
+ 75
594
+ 76</pre>
595
+ </td>
596
+ <td>
597
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/interface.rb', line 74</span>
598
+
599
+ <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>
600
+ <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>
601
+ <span class='kw'>end</span></pre>
602
+ </td>
603
+ </tr>
604
+ </table>
605
+ </div>
606
+
607
+ <div class="method_details ">
608
+ <h3 class="signature " id="index-instance_method">
609
+
610
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
611
+
612
+
613
+
614
+
615
+
616
+ </h3><div class="docstring">
617
+ <div class="discussion">
618
+
619
+ <p>Returns First item: parsed data; second item: raw body</p>
620
+
621
+
622
+ </div>
623
+ </div>
624
+ <div class="tags">
625
+ <p class="tag_title">Parameters:</p>
626
+ <ul class="param">
627
+
628
+ <li>
629
+
630
+ <span class='name'>params</span>
631
+
632
+
633
+ <span class='type'>(<tt>Hash</tt>)</span>
634
+
635
+
636
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
637
+
638
+
639
+ &mdash;
640
+ <div class='inline'>
641
+ <p>a hash of params to be passed to the service</p>
642
+ </div>
643
+
644
+ </li>
645
+
646
+ <li>
647
+
648
+ <span class='name'>headers</span>
649
+
650
+
651
+ <span class='type'>(<tt>Hash</tt>)</span>
652
+
653
+
654
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
655
+
656
+
657
+ &mdash;
658
+ <div class='inline'>
659
+ <p>additional http headers</p>
660
+ </div>
661
+
662
+ </li>
663
+
664
+ </ul>
665
+
666
+
667
+
668
+
669
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
670
+ <ul class="option">
671
+
672
+ <li>
673
+ <span class="name">host_id</span>
674
+ <span class="type">(<tt>String</tt>)</span>
675
+ <span class="default">
676
+
677
+ </span>
678
+
679
+ &mdash; <div class='inline'>
680
+ <p>id or name of host</p>
681
+ </div>
682
+
683
+ </li>
684
+
685
+ </ul>
686
+
687
+
688
+
689
+
690
+ <p class="tag_title">Returns:</p>
691
+ <ul class="return">
692
+
693
+ <li>
694
+
695
+
696
+ <span class='type'>(<tt>Array</tt>)</span>
697
+
698
+
699
+
700
+ &mdash;
701
+ <div class='inline'>
702
+ <p>First item: parsed data; second item: raw body</p>
703
+ </div>
704
+
705
+ </li>
706
+
707
+ </ul>
708
+
709
+ </div><table class="source_code">
710
+ <tr>
711
+ <td>
712
+ <pre class="lines">
713
+
714
+
715
+ 13
716
+ 14
717
+ 15</pre>
718
+ </td>
719
+ <td>
720
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/interface.rb', line 13</span>
721
+
722
+ <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>
723
+ <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>
724
+ <span class='kw'>end</span></pre>
725
+ </td>
726
+ </tr>
727
+ </table>
728
+ </div>
729
+
730
+ <div class="method_details ">
731
+ <h3 class="signature " id="show-instance_method">
732
+
733
+ - (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
734
+
735
+
736
+
737
+
738
+
739
+ </h3><div class="docstring">
740
+ <div class="discussion">
741
+
742
+ <p>Returns First item: parsed data; second item: raw body</p>
743
+
744
+
745
+ </div>
746
+ </div>
747
+ <div class="tags">
748
+ <p class="tag_title">Parameters:</p>
749
+ <ul class="param">
750
+
751
+ <li>
752
+
753
+ <span class='name'>params</span>
754
+
755
+
756
+ <span class='type'>(<tt>Hash</tt>)</span>
757
+
758
+
759
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
760
+
761
+
762
+ &mdash;
763
+ <div class='inline'>
764
+ <p>a hash of params to be passed to the service</p>
765
+ </div>
766
+
767
+ </li>
768
+
769
+ <li>
770
+
771
+ <span class='name'>headers</span>
772
+
773
+
774
+ <span class='type'>(<tt>Hash</tt>)</span>
775
+
776
+
777
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
778
+
779
+
780
+ &mdash;
781
+ <div class='inline'>
782
+ <p>additional http headers</p>
783
+ </div>
784
+
785
+ </li>
786
+
787
+ </ul>
788
+
789
+
790
+
791
+
792
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
793
+ <ul class="option">
794
+
795
+ <li>
796
+ <span class="name">id</span>
797
+ <span class="type">(<tt>String</tt>)</span>
798
+ <span class="default">
799
+
800
+ </span>
801
+
802
+ &mdash; <div class='inline'>
803
+ <p>id or name of interface</p>
804
+ </div>
805
+
806
+ </li>
807
+
808
+ <li>
809
+ <span class="name">host_id</span>
810
+ <span class="type">(<tt>String</tt>)</span>
811
+ <span class="default">
812
+
813
+ </span>
814
+
815
+ &mdash; <div class='inline'>
816
+ <p>id or name of nested host</p>
817
+ </div>
818
+
819
+ </li>
820
+
821
+ </ul>
822
+
823
+
824
+
825
+
826
+ <p class="tag_title">Returns:</p>
827
+ <ul class="return">
828
+
829
+ <li>
830
+
831
+
832
+ <span class='type'>(<tt>Array</tt>)</span>
833
+
834
+
835
+
836
+ &mdash;
837
+ <div class='inline'>
838
+ <p>First item: parsed data; second item: raw body</p>
839
+ </div>
840
+
841
+ </li>
842
+
843
+ </ul>
844
+
845
+ </div><table class="source_code">
846
+ <tr>
847
+ <td>
848
+ <pre class="lines">
849
+
850
+
851
+ 23
852
+ 24
853
+ 25</pre>
854
+ </td>
855
+ <td>
856
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/interface.rb', line 23</span>
857
+
858
+ <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>
859
+ <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>
860
+ <span class='kw'>end</span></pre>
861
+ </td>
862
+ </tr>
863
+ </table>
864
+ </div>
865
+
866
+ <div class="method_details ">
867
+ <h3 class="signature " id="update-instance_method">
868
+
869
+ - (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
870
+
871
+
872
+
873
+
874
+
875
+ </h3><div class="docstring">
876
+ <div class="discussion">
877
+
878
+ <p>Returns First item: parsed data; second item: raw body</p>
879
+
880
+
881
+ </div>
882
+ </div>
883
+ <div class="tags">
884
+ <p class="tag_title">Parameters:</p>
885
+ <ul class="param">
886
+
887
+ <li>
888
+
889
+ <span class='name'>params</span>
890
+
891
+
892
+ <span class='type'>(<tt>Hash</tt>)</span>
893
+
894
+
895
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
896
+
897
+
898
+ &mdash;
899
+ <div class='inline'>
900
+ <p>a hash of params to be passed to the service</p>
901
+ </div>
902
+
903
+ </li>
904
+
905
+ <li>
906
+
907
+ <span class='name'>headers</span>
908
+
909
+
910
+ <span class='type'>(<tt>Hash</tt>)</span>
911
+
912
+
913
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
914
+
915
+
916
+ &mdash;
917
+ <div class='inline'>
918
+ <p>additional http headers</p>
919
+ </div>
920
+
921
+ </li>
922
+
923
+ </ul>
924
+
925
+
926
+
927
+
928
+ <p class="tag_title">Options Hash (<tt>params</tt>):</p>
929
+ <ul class="option">
930
+
931
+ <li>
932
+ <span class="name">id</span>
933
+ <span class="type">(<tt>Object</tt>)</span>
934
+ <span class="default">
935
+
936
+ </span>
937
+
938
+ &mdash; <div class='inline'>
939
+ <p>Part of <tt>/api/hosts/:host_id/interfaces/:id</tt> path</p>
940
+ </div>
941
+
942
+ </li>
943
+
944
+ <li>
945
+ <span class="name">host_id</span>
946
+ <span class="type">(<tt>String</tt>)</span>
947
+ <span class="default">
948
+
949
+ </span>
950
+
951
+ &mdash; <div class='inline'>
952
+ <p>id or name of host</p>
953
+ </div>
954
+
955
+ </li>
956
+
957
+ <li>
958
+ <span class="name">interface</span>
959
+ <span class="type">(<tt>Hash</tt>)</span>
960
+ <span class="default">
961
+
962
+ </span>
963
+
964
+ &mdash; <div class='inline'>
965
+ <p>interface information allowed keys are:</p>
966
+ <ul><li>
967
+ <p>domain_id [Numeric] foreman domain id of interface</p>
968
+ </li><li>
969
+ <p>subnet_id [Numeric] foreman subnet id of interface</p>
970
+ </li><li>
971
+ <p>ip [String] ip address of interface</p>
972
+ </li><li>
973
+ <p>mac [String] mac address of interface</p>
974
+ </li><li>
975
+ <p>name [String] interface name</p>
976
+ </li><li>
977
+ <p>password [String]</p>
978
+ </li><li>
979
+ <p>provider [String] interface provider, i.e: ipmi</p>
980
+ </li><li>
981
+ <p>type [String] interface type, i.e: nic::bmc</p>
982
+ </li><li>
983
+ <p>username [String]</p>
984
+ </li></ul>
985
+ </div>
986
+
987
+ </li>
988
+
989
+ </ul>
990
+
991
+
992
+
993
+
994
+ <p class="tag_title">Returns:</p>
995
+ <ul class="return">
996
+
997
+ <li>
998
+
999
+
1000
+ <span class='type'>(<tt>Array</tt>)</span>
1001
+
1002
+
1003
+
1004
+ &mdash;
1005
+ <div class='inline'>
1006
+ <p>First item: parsed data; second item: raw body</p>
1007
+ </div>
1008
+
1009
+ </li>
1010
+
1011
+ </ul>
1012
+
1013
+ </div><table class="source_code">
1014
+ <tr>
1015
+ <td>
1016
+ <pre class="lines">
1017
+
1018
+
1019
+ 64
1020
+ 65
1021
+ 66</pre>
1022
+ </td>
1023
+ <td>
1024
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/interface.rb', line 64</span>
1025
+
1026
+ <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>
1027
+ <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>
1028
+ <span class='kw'>end</span></pre>
1029
+ </td>
1030
+ </tr>
1031
+ </table>
1032
+ </div>
1033
+
1034
+ </div>
1035
+
1036
+ </div>
1037
+
1038
+ <div id="footer">
1039
+ Generated on Mon Oct 21 11:10:44 2013 by
1040
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1041
+ 0.8.7 (ruby-2.0.0).
1042
+ </div>
1043
+
1044
+ </body>
1045
+ </html>