foreman_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +2 -0
- data/Rakefile +0 -1
- data/doc/ForemanApi.html +5 -5
- data/doc/ForemanApi/Resources.html +6 -6
- data/doc/ForemanApi/Resources/Architecture.html +260 -127
- data/doc/ForemanApi/Resources/Audit.html +118 -51
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
- data/doc/ForemanApi/Resources/Bookmark.html +266 -131
- data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
- data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
- data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
- data/doc/ForemanApi/Resources/Dashboard.html +53 -27
- data/doc/ForemanApi/Resources/Domain.html +275 -137
- data/doc/ForemanApi/Resources/Environment.html +254 -123
- data/doc/ForemanApi/Resources/FactValue.html +75 -32
- data/doc/ForemanApi/Resources/Home.html +92 -43
- data/doc/ForemanApi/Resources/Host.html +401 -212
- data/doc/ForemanApi/Resources/HostClass.html +698 -0
- data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
- data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
- data/doc/ForemanApi/Resources/Image.html +284 -143
- data/doc/ForemanApi/Resources/LookupKey.html +295 -140
- data/doc/ForemanApi/Resources/Medium.html +278 -145
- data/doc/ForemanApi/Resources/Model.html +272 -135
- data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
- data/doc/ForemanApi/Resources/Parameter.html +1512 -0
- data/doc/ForemanApi/Resources/Ptable.html +266 -131
- data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
- data/doc/ForemanApi/Resources/Report.html +311 -71
- data/doc/ForemanApi/Resources/Role.html +248 -119
- data/doc/ForemanApi/Resources/Setting.html +156 -76
- data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
- data/doc/ForemanApi/Resources/Subnet.html +332 -175
- data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
- data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
- data/doc/ForemanApi/Resources/User.html +287 -145
- data/doc/ForemanApi/Resources/Usergroup.html +272 -115
- data/doc/_index.html +32 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.MIT-LICENSE.html +29 -24
- data/doc/file.README.html +60 -59
- data/doc/frames.html +1 -1
- data/doc/index.html +60 -59
- data/doc/method_list.html +434 -266
- data/doc/top-level-namespace.html +3 -3
- data/lib/foreman_api.rb +0 -13
- data/lib/foreman_api/base.rb +77 -7
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +27 -32
- data/lib/foreman_api/resources/audit.rb +9 -10
- data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
- data/lib/foreman_api/resources/bookmark.rb +31 -36
- data/lib/foreman_api/resources/common_parameter.rb +27 -32
- data/lib/foreman_api/resources/compute_resource.rb +43 -48
- data/lib/foreman_api/resources/config_template.rb +43 -50
- data/lib/foreman_api/resources/dashboard.rb +4 -5
- data/lib/foreman_api/resources/domain.rb +30 -35
- data/lib/foreman_api/resources/environment.rb +25 -30
- data/lib/foreman_api/resources/fact_value.rb +5 -5
- data/lib/foreman_api/resources/home.rb +7 -9
- data/lib/foreman_api/resources/host.rb +63 -69
- data/lib/foreman_api/resources/host_class.rb +39 -0
- data/lib/foreman_api/resources/hostgroup.rb +43 -48
- data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
- data/lib/foreman_api/resources/image.rb +40 -45
- data/lib/foreman_api/resources/lookup_key.rb +36 -40
- data/lib/foreman_api/resources/medium.rb +29 -34
- data/lib/foreman_api/resources/model.rb +31 -36
- data/lib/foreman_api/resources/operating_system.rb +39 -45
- data/lib/foreman_api/resources/parameter.rb +96 -0
- data/lib/foreman_api/resources/ptable.rb +29 -34
- data/lib/foreman_api/resources/puppetclass.rb +31 -34
- data/lib/foreman_api/resources/report.rb +17 -20
- data/lib/foreman_api/resources/role.rb +25 -30
- data/lib/foreman_api/resources/setting.rb +15 -18
- data/lib/foreman_api/resources/smart_proxy.rb +27 -32
- data/lib/foreman_api/resources/subnet.rb +47 -52
- data/lib/foreman_api/resources/template_combination.rb +21 -25
- data/lib/foreman_api/resources/template_kind.rb +4 -5
- data/lib/foreman_api/resources/user.rb +36 -41
- data/lib/foreman_api/resources/usergroup.rb +25 -30
- data/lib/foreman_api/version.rb +1 -1
- metadata +10 -2
@@ -0,0 +1,1512 @@
|
|
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::Parameter
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" 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 (P)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../ForemanApi.html" title="ForemanApi (module)">ForemanApi</a></span></span> » <span class='title'><span class='object_link'><a href="../Resources.html" title="ForemanApi::Resources (module)">Resources</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Parameter</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::Parameter
|
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::Parameter</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/parameter.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'><p>
|
168
|
+
First item: parsed data; second item: raw body.
|
169
|
+
</p>
|
170
|
+
</div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</strong>(params = {}, headers = {}) </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="summary_desc"><div class='inline'><p>
|
193
|
+
First item: parsed data; second item: raw body.
|
194
|
+
</p>
|
195
|
+
</div></span>
|
196
|
+
|
197
|
+
</li>
|
198
|
+
|
199
|
+
|
200
|
+
<li class="public ">
|
201
|
+
<span class="summary_signature">
|
202
|
+
|
203
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<span class="summary_desc"><div class='inline'><p>
|
218
|
+
First item: parsed data; second item: raw body.
|
219
|
+
</p>
|
220
|
+
</div></span>
|
221
|
+
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
<li class="public ">
|
226
|
+
<span class="summary_signature">
|
227
|
+
|
228
|
+
<a href="#reset-instance_method" title="#reset (instance method)">- (Array) <strong>reset</strong>(params = {}, headers = {}) </a>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</span>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<span class="summary_desc"><div class='inline'><p>
|
243
|
+
First item: parsed data; second item: raw body.
|
244
|
+
</p>
|
245
|
+
</div></span>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
|
250
|
+
<li class="public ">
|
251
|
+
<span class="summary_signature">
|
252
|
+
|
253
|
+
<a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
</span>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<span class="summary_desc"><div class='inline'><p>
|
268
|
+
First item: parsed data; second item: raw body.
|
269
|
+
</p>
|
270
|
+
</div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</strong>(params = {}, headers = {}) </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
<span class="summary_desc"><div class='inline'><p>
|
293
|
+
First item: parsed data; second item: raw body.
|
294
|
+
</p>
|
295
|
+
</div></span>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
</ul>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
<div id="class_method_details" class="method_details_list">
|
307
|
+
<h2>Class Method Details</h2>
|
308
|
+
|
309
|
+
|
310
|
+
<div class="method_details first">
|
311
|
+
<h3 class="signature first" id="doc-class_method">
|
312
|
+
|
313
|
+
+ (<tt>Object</tt>) <strong>doc</strong>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</h3><table class="source_code">
|
320
|
+
<tr>
|
321
|
+
<td>
|
322
|
+
<pre class="lines">
|
323
|
+
|
324
|
+
|
325
|
+
4
|
326
|
+
5
|
327
|
+
6</pre>
|
328
|
+
</td>
|
329
|
+
<td>
|
330
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 4</span>
|
331
|
+
|
332
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span>
|
333
|
+
<span class='rubyid_@doc ivar id'>@doc</span> <span class='opasgn op'>||=</span> <span class='rubyid_ForemanApi constant id'>ForemanApi</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='string val'>'resources'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>"parameters"</span><span class='rbrack token'>]</span>
|
334
|
+
<span class='rubyid_end end kw'>end</span>
|
335
|
+
</pre>
|
336
|
+
</td>
|
337
|
+
</tr>
|
338
|
+
</table>
|
339
|
+
</div>
|
340
|
+
|
341
|
+
</div>
|
342
|
+
|
343
|
+
<div id="instance_method_details" class="method_details_list">
|
344
|
+
<h2>Instance Method Details</h2>
|
345
|
+
|
346
|
+
|
347
|
+
<div class="method_details first">
|
348
|
+
<h3 class="signature first" id="create-instance_method">
|
349
|
+
|
350
|
+
- (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
</h3><div class="docstring">
|
357
|
+
<div class="discussion">
|
358
|
+
<p>
|
359
|
+
First item: parsed data; second item: raw body
|
360
|
+
</p>
|
361
|
+
|
362
|
+
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
<div class="tags">
|
366
|
+
<p class="tag_title">Parameters:</p>
|
367
|
+
<ul class="param">
|
368
|
+
|
369
|
+
<li>
|
370
|
+
|
371
|
+
<span class='name'>params</span>
|
372
|
+
|
373
|
+
|
374
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
375
|
+
|
376
|
+
|
377
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
378
|
+
|
379
|
+
|
380
|
+
—
|
381
|
+
<div class='inline'><p>
|
382
|
+
a hash of params to be passed to the service
|
383
|
+
</p>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
</li>
|
387
|
+
|
388
|
+
<li>
|
389
|
+
|
390
|
+
<span class='name'>headers</span>
|
391
|
+
|
392
|
+
|
393
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
394
|
+
|
395
|
+
|
396
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
397
|
+
|
398
|
+
|
399
|
+
—
|
400
|
+
<div class='inline'><p>
|
401
|
+
additional http headers
|
402
|
+
</p>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
</li>
|
406
|
+
|
407
|
+
</ul>
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
413
|
+
<ul class="option">
|
414
|
+
|
415
|
+
<li>
|
416
|
+
<span class="name">id</span>
|
417
|
+
<span class="type">(<tt>String</tt>)</span>
|
418
|
+
<span class="default">
|
419
|
+
|
420
|
+
</span>
|
421
|
+
|
422
|
+
— <div class='inline'><p>
|
423
|
+
Id of parameter
|
424
|
+
</p>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
<li>
|
430
|
+
<span class="name">domain_id</span>
|
431
|
+
<span class="type">(<tt>String</tt>)</span>
|
432
|
+
<span class="default">
|
433
|
+
|
434
|
+
</span>
|
435
|
+
|
436
|
+
— <div class='inline'><p>
|
437
|
+
Id of domain
|
438
|
+
</p>
|
439
|
+
</div>
|
440
|
+
|
441
|
+
</li>
|
442
|
+
|
443
|
+
<li>
|
444
|
+
<span class="name">host_id</span>
|
445
|
+
<span class="type">(<tt>String</tt>)</span>
|
446
|
+
<span class="default">
|
447
|
+
|
448
|
+
</span>
|
449
|
+
|
450
|
+
— <div class='inline'><p>
|
451
|
+
Id of host
|
452
|
+
</p>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
<li>
|
458
|
+
<span class="name">hostgroup_id</span>
|
459
|
+
<span class="type">(<tt>String</tt>)</span>
|
460
|
+
<span class="default">
|
461
|
+
|
462
|
+
</span>
|
463
|
+
|
464
|
+
— <div class='inline'><p>
|
465
|
+
Id of hostgroup
|
466
|
+
</p>
|
467
|
+
</div>
|
468
|
+
|
469
|
+
</li>
|
470
|
+
|
471
|
+
<li>
|
472
|
+
<span class="name">operatingsystem_id</span>
|
473
|
+
<span class="type">(<tt>String</tt>)</span>
|
474
|
+
<span class="default">
|
475
|
+
|
476
|
+
</span>
|
477
|
+
|
478
|
+
— <div class='inline'><p>
|
479
|
+
Id of operating system
|
480
|
+
</p>
|
481
|
+
</div>
|
482
|
+
|
483
|
+
</li>
|
484
|
+
|
485
|
+
<li>
|
486
|
+
<span class="name">parameter</span>
|
487
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
488
|
+
<span class="default">
|
489
|
+
|
490
|
+
</span>
|
491
|
+
|
492
|
+
— <div class='inline'><p>
|
493
|
+
allowed keys are:
|
494
|
+
</p>
|
495
|
+
<ul>
|
496
|
+
<li>name [String]
|
497
|
+
|
498
|
+
</li>
|
499
|
+
<li>value [String]
|
500
|
+
|
501
|
+
</li>
|
502
|
+
</ul>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
</li>
|
506
|
+
|
507
|
+
</ul>
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
<p class="tag_title">Returns:</p>
|
513
|
+
<ul class="return">
|
514
|
+
|
515
|
+
<li>
|
516
|
+
|
517
|
+
|
518
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
—
|
523
|
+
<div class='inline'><p>
|
524
|
+
First item: parsed data; second item: raw body
|
525
|
+
</p>
|
526
|
+
</div>
|
527
|
+
|
528
|
+
</li>
|
529
|
+
|
530
|
+
</ul>
|
531
|
+
|
532
|
+
</div><table class="source_code">
|
533
|
+
<tr>
|
534
|
+
<td>
|
535
|
+
<pre class="lines">
|
536
|
+
|
537
|
+
|
538
|
+
48
|
539
|
+
49
|
540
|
+
50</pre>
|
541
|
+
</td>
|
542
|
+
<td>
|
543
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 48</span>
|
544
|
+
|
545
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_create identifier id'>create</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
546
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
547
|
+
<span class='rubyid_end end kw'>end</span>
|
548
|
+
</pre>
|
549
|
+
</td>
|
550
|
+
</tr>
|
551
|
+
</table>
|
552
|
+
</div>
|
553
|
+
|
554
|
+
<div class="method_details ">
|
555
|
+
<h3 class="signature " id="destroy-instance_method">
|
556
|
+
|
557
|
+
- (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
</h3><div class="docstring">
|
564
|
+
<div class="discussion">
|
565
|
+
<p>
|
566
|
+
First item: parsed data; second item: raw body
|
567
|
+
</p>
|
568
|
+
|
569
|
+
|
570
|
+
</div>
|
571
|
+
</div>
|
572
|
+
<div class="tags">
|
573
|
+
<p class="tag_title">Parameters:</p>
|
574
|
+
<ul class="param">
|
575
|
+
|
576
|
+
<li>
|
577
|
+
|
578
|
+
<span class='name'>params</span>
|
579
|
+
|
580
|
+
|
581
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
582
|
+
|
583
|
+
|
584
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
585
|
+
|
586
|
+
|
587
|
+
—
|
588
|
+
<div class='inline'><p>
|
589
|
+
a hash of params to be passed to the service
|
590
|
+
</p>
|
591
|
+
</div>
|
592
|
+
|
593
|
+
</li>
|
594
|
+
|
595
|
+
<li>
|
596
|
+
|
597
|
+
<span class='name'>headers</span>
|
598
|
+
|
599
|
+
|
600
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
601
|
+
|
602
|
+
|
603
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
604
|
+
|
605
|
+
|
606
|
+
—
|
607
|
+
<div class='inline'><p>
|
608
|
+
additional http headers
|
609
|
+
</p>
|
610
|
+
</div>
|
611
|
+
|
612
|
+
</li>
|
613
|
+
|
614
|
+
</ul>
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
620
|
+
<ul class="option">
|
621
|
+
|
622
|
+
<li>
|
623
|
+
<span class="name">id</span>
|
624
|
+
<span class="type">(<tt>String</tt>)</span>
|
625
|
+
<span class="default">
|
626
|
+
|
627
|
+
</span>
|
628
|
+
|
629
|
+
— <div class='inline'><p>
|
630
|
+
Id of parameter
|
631
|
+
</p>
|
632
|
+
</div>
|
633
|
+
|
634
|
+
</li>
|
635
|
+
|
636
|
+
<li>
|
637
|
+
<span class="name">domain_id</span>
|
638
|
+
<span class="type">(<tt>String</tt>)</span>
|
639
|
+
<span class="default">
|
640
|
+
|
641
|
+
</span>
|
642
|
+
|
643
|
+
— <div class='inline'><p>
|
644
|
+
Id of domain
|
645
|
+
</p>
|
646
|
+
</div>
|
647
|
+
|
648
|
+
</li>
|
649
|
+
|
650
|
+
<li>
|
651
|
+
<span class="name">host_id</span>
|
652
|
+
<span class="type">(<tt>String</tt>)</span>
|
653
|
+
<span class="default">
|
654
|
+
|
655
|
+
</span>
|
656
|
+
|
657
|
+
— <div class='inline'><p>
|
658
|
+
Id of host
|
659
|
+
</p>
|
660
|
+
</div>
|
661
|
+
|
662
|
+
</li>
|
663
|
+
|
664
|
+
<li>
|
665
|
+
<span class="name">hostgroup_id</span>
|
666
|
+
<span class="type">(<tt>String</tt>)</span>
|
667
|
+
<span class="default">
|
668
|
+
|
669
|
+
</span>
|
670
|
+
|
671
|
+
— <div class='inline'><p>
|
672
|
+
Id of hostgroup
|
673
|
+
</p>
|
674
|
+
</div>
|
675
|
+
|
676
|
+
</li>
|
677
|
+
|
678
|
+
<li>
|
679
|
+
<span class="name">operatingsystem_id</span>
|
680
|
+
<span class="type">(<tt>String</tt>)</span>
|
681
|
+
<span class="default">
|
682
|
+
|
683
|
+
</span>
|
684
|
+
|
685
|
+
— <div class='inline'><p>
|
686
|
+
Id of operating system
|
687
|
+
</p>
|
688
|
+
</div>
|
689
|
+
|
690
|
+
</li>
|
691
|
+
|
692
|
+
</ul>
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
<p class="tag_title">Returns:</p>
|
698
|
+
<ul class="return">
|
699
|
+
|
700
|
+
<li>
|
701
|
+
|
702
|
+
|
703
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
—
|
708
|
+
<div class='inline'><p>
|
709
|
+
First item: parsed data; second item: raw body
|
710
|
+
</p>
|
711
|
+
</div>
|
712
|
+
|
713
|
+
</li>
|
714
|
+
|
715
|
+
</ul>
|
716
|
+
|
717
|
+
</div><table class="source_code">
|
718
|
+
<tr>
|
719
|
+
<td>
|
720
|
+
<pre class="lines">
|
721
|
+
|
722
|
+
|
723
|
+
78
|
724
|
+
79
|
725
|
+
80</pre>
|
726
|
+
</td>
|
727
|
+
<td>
|
728
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 78</span>
|
729
|
+
|
730
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_destroy identifier id'>destroy</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
731
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
732
|
+
<span class='rubyid_end end kw'>end</span>
|
733
|
+
</pre>
|
734
|
+
</td>
|
735
|
+
</tr>
|
736
|
+
</table>
|
737
|
+
</div>
|
738
|
+
|
739
|
+
<div class="method_details ">
|
740
|
+
<h3 class="signature " id="index-instance_method">
|
741
|
+
|
742
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
</h3><div class="docstring">
|
749
|
+
<div class="discussion">
|
750
|
+
<p>
|
751
|
+
First item: parsed data; second item: raw body
|
752
|
+
</p>
|
753
|
+
|
754
|
+
|
755
|
+
</div>
|
756
|
+
</div>
|
757
|
+
<div class="tags">
|
758
|
+
<p class="tag_title">Parameters:</p>
|
759
|
+
<ul class="param">
|
760
|
+
|
761
|
+
<li>
|
762
|
+
|
763
|
+
<span class='name'>params</span>
|
764
|
+
|
765
|
+
|
766
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
767
|
+
|
768
|
+
|
769
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
770
|
+
|
771
|
+
|
772
|
+
—
|
773
|
+
<div class='inline'><p>
|
774
|
+
a hash of params to be passed to the service
|
775
|
+
</p>
|
776
|
+
</div>
|
777
|
+
|
778
|
+
</li>
|
779
|
+
|
780
|
+
<li>
|
781
|
+
|
782
|
+
<span class='name'>headers</span>
|
783
|
+
|
784
|
+
|
785
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
786
|
+
|
787
|
+
|
788
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
789
|
+
|
790
|
+
|
791
|
+
—
|
792
|
+
<div class='inline'><p>
|
793
|
+
additional http headers
|
794
|
+
</p>
|
795
|
+
</div>
|
796
|
+
|
797
|
+
</li>
|
798
|
+
|
799
|
+
</ul>
|
800
|
+
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
805
|
+
<ul class="option">
|
806
|
+
|
807
|
+
<li>
|
808
|
+
<span class="name">domain_id</span>
|
809
|
+
<span class="type">(<tt>String</tt>)</span>
|
810
|
+
<span class="default">
|
811
|
+
|
812
|
+
</span>
|
813
|
+
|
814
|
+
— <div class='inline'><p>
|
815
|
+
Id of domain
|
816
|
+
</p>
|
817
|
+
</div>
|
818
|
+
|
819
|
+
</li>
|
820
|
+
|
821
|
+
<li>
|
822
|
+
<span class="name">host_id</span>
|
823
|
+
<span class="type">(<tt>String</tt>)</span>
|
824
|
+
<span class="default">
|
825
|
+
|
826
|
+
</span>
|
827
|
+
|
828
|
+
— <div class='inline'><p>
|
829
|
+
Id of host
|
830
|
+
</p>
|
831
|
+
</div>
|
832
|
+
|
833
|
+
</li>
|
834
|
+
|
835
|
+
<li>
|
836
|
+
<span class="name">hostgroup_id</span>
|
837
|
+
<span class="type">(<tt>String</tt>)</span>
|
838
|
+
<span class="default">
|
839
|
+
|
840
|
+
</span>
|
841
|
+
|
842
|
+
— <div class='inline'><p>
|
843
|
+
Id of hostgroup
|
844
|
+
</p>
|
845
|
+
</div>
|
846
|
+
|
847
|
+
</li>
|
848
|
+
|
849
|
+
<li>
|
850
|
+
<span class="name">operatingsystem_id</span>
|
851
|
+
<span class="type">(<tt>String</tt>)</span>
|
852
|
+
<span class="default">
|
853
|
+
|
854
|
+
</span>
|
855
|
+
|
856
|
+
— <div class='inline'><p>
|
857
|
+
Id of operating system
|
858
|
+
</p>
|
859
|
+
</div>
|
860
|
+
|
861
|
+
</li>
|
862
|
+
|
863
|
+
<li>
|
864
|
+
<span class="name">page</span>
|
865
|
+
<span class="type">(<tt>String</tt>)</span>
|
866
|
+
<span class="default">
|
867
|
+
|
868
|
+
</span>
|
869
|
+
|
870
|
+
— <div class='inline'><p>
|
871
|
+
Paginate results
|
872
|
+
</p>
|
873
|
+
</div>
|
874
|
+
|
875
|
+
</li>
|
876
|
+
|
877
|
+
<li>
|
878
|
+
<span class="name">per_page</span>
|
879
|
+
<span class="type">(<tt>String</tt>)</span>
|
880
|
+
<span class="default">
|
881
|
+
|
882
|
+
</span>
|
883
|
+
|
884
|
+
— <div class='inline'><p>
|
885
|
+
Number of entries per request
|
886
|
+
</p>
|
887
|
+
</div>
|
888
|
+
|
889
|
+
</li>
|
890
|
+
|
891
|
+
</ul>
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
<p class="tag_title">Returns:</p>
|
897
|
+
<ul class="return">
|
898
|
+
|
899
|
+
<li>
|
900
|
+
|
901
|
+
|
902
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
—
|
907
|
+
<div class='inline'><p>
|
908
|
+
First item: parsed data; second item: raw body
|
909
|
+
</p>
|
910
|
+
</div>
|
911
|
+
|
912
|
+
</li>
|
913
|
+
|
914
|
+
</ul>
|
915
|
+
|
916
|
+
</div><table class="source_code">
|
917
|
+
<tr>
|
918
|
+
<td>
|
919
|
+
<pre class="lines">
|
920
|
+
|
921
|
+
|
922
|
+
18
|
923
|
+
19
|
924
|
+
20</pre>
|
925
|
+
</td>
|
926
|
+
<td>
|
927
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 18</span>
|
928
|
+
|
929
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_index identifier id'>index</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
930
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
931
|
+
<span class='rubyid_end end kw'>end</span>
|
932
|
+
</pre>
|
933
|
+
</td>
|
934
|
+
</tr>
|
935
|
+
</table>
|
936
|
+
</div>
|
937
|
+
|
938
|
+
<div class="method_details ">
|
939
|
+
<h3 class="signature " id="reset-instance_method">
|
940
|
+
|
941
|
+
- (<tt>Array</tt>) <strong>reset</strong>(params = {}, headers = {})
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
</h3><div class="docstring">
|
948
|
+
<div class="discussion">
|
949
|
+
<p>
|
950
|
+
First item: parsed data; second item: raw body
|
951
|
+
</p>
|
952
|
+
|
953
|
+
|
954
|
+
</div>
|
955
|
+
</div>
|
956
|
+
<div class="tags">
|
957
|
+
<p class="tag_title">Parameters:</p>
|
958
|
+
<ul class="param">
|
959
|
+
|
960
|
+
<li>
|
961
|
+
|
962
|
+
<span class='name'>params</span>
|
963
|
+
|
964
|
+
|
965
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
966
|
+
|
967
|
+
|
968
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
969
|
+
|
970
|
+
|
971
|
+
—
|
972
|
+
<div class='inline'><p>
|
973
|
+
a hash of params to be passed to the service
|
974
|
+
</p>
|
975
|
+
</div>
|
976
|
+
|
977
|
+
</li>
|
978
|
+
|
979
|
+
<li>
|
980
|
+
|
981
|
+
<span class='name'>headers</span>
|
982
|
+
|
983
|
+
|
984
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
985
|
+
|
986
|
+
|
987
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
988
|
+
|
989
|
+
|
990
|
+
—
|
991
|
+
<div class='inline'><p>
|
992
|
+
additional http headers
|
993
|
+
</p>
|
994
|
+
</div>
|
995
|
+
|
996
|
+
</li>
|
997
|
+
|
998
|
+
</ul>
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
1004
|
+
<ul class="option">
|
1005
|
+
|
1006
|
+
<li>
|
1007
|
+
<span class="name">domain_id</span>
|
1008
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1009
|
+
<span class="default">
|
1010
|
+
|
1011
|
+
</span>
|
1012
|
+
|
1013
|
+
— <div class='inline'><p>
|
1014
|
+
Part of <tt>/api/domain/:domain_id/parameters</tt> path
|
1015
|
+
</p>
|
1016
|
+
</div>
|
1017
|
+
|
1018
|
+
</li>
|
1019
|
+
|
1020
|
+
<li>
|
1021
|
+
<span class="name">host_id</span>
|
1022
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1023
|
+
<span class="default">
|
1024
|
+
|
1025
|
+
</span>
|
1026
|
+
|
1027
|
+
— <div class='inline'><p>
|
1028
|
+
Part of <tt>/api/host/:host_id/parameters</tt> path
|
1029
|
+
</p>
|
1030
|
+
</div>
|
1031
|
+
|
1032
|
+
</li>
|
1033
|
+
|
1034
|
+
<li>
|
1035
|
+
<span class="name">hostgroup_id</span>
|
1036
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1037
|
+
<span class="default">
|
1038
|
+
|
1039
|
+
</span>
|
1040
|
+
|
1041
|
+
— <div class='inline'><p>
|
1042
|
+
Part of <tt>/api/hostgroup/:hostgroup_id/parameters</tt> path
|
1043
|
+
</p>
|
1044
|
+
</div>
|
1045
|
+
|
1046
|
+
</li>
|
1047
|
+
|
1048
|
+
<li>
|
1049
|
+
<span class="name">operatingsystem_id</span>
|
1050
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1051
|
+
<span class="default">
|
1052
|
+
|
1053
|
+
</span>
|
1054
|
+
|
1055
|
+
— <div class='inline'><p>
|
1056
|
+
Part of <tt>/api/operatingsystem/:operatingsystem_id/parameters</tt> path
|
1057
|
+
</p>
|
1058
|
+
</div>
|
1059
|
+
|
1060
|
+
</li>
|
1061
|
+
|
1062
|
+
</ul>
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
<p class="tag_title">Returns:</p>
|
1068
|
+
<ul class="return">
|
1069
|
+
|
1070
|
+
<li>
|
1071
|
+
|
1072
|
+
|
1073
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
—
|
1078
|
+
<div class='inline'><p>
|
1079
|
+
First item: parsed data; second item: raw body
|
1080
|
+
</p>
|
1081
|
+
</div>
|
1082
|
+
|
1083
|
+
</li>
|
1084
|
+
|
1085
|
+
</ul>
|
1086
|
+
|
1087
|
+
</div><table class="source_code">
|
1088
|
+
<tr>
|
1089
|
+
<td>
|
1090
|
+
<pre class="lines">
|
1091
|
+
|
1092
|
+
|
1093
|
+
90
|
1094
|
+
91
|
1095
|
+
92</pre>
|
1096
|
+
</td>
|
1097
|
+
<td>
|
1098
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 90</span>
|
1099
|
+
|
1100
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_reset identifier id'>reset</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
1101
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
1102
|
+
<span class='rubyid_end end kw'>end</span>
|
1103
|
+
</pre>
|
1104
|
+
</td>
|
1105
|
+
</tr>
|
1106
|
+
</table>
|
1107
|
+
</div>
|
1108
|
+
|
1109
|
+
<div class="method_details ">
|
1110
|
+
<h3 class="signature " id="show-instance_method">
|
1111
|
+
|
1112
|
+
- (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
</h3><div class="docstring">
|
1119
|
+
<div class="discussion">
|
1120
|
+
<p>
|
1121
|
+
First item: parsed data; second item: raw body
|
1122
|
+
</p>
|
1123
|
+
|
1124
|
+
|
1125
|
+
</div>
|
1126
|
+
</div>
|
1127
|
+
<div class="tags">
|
1128
|
+
<p class="tag_title">Parameters:</p>
|
1129
|
+
<ul class="param">
|
1130
|
+
|
1131
|
+
<li>
|
1132
|
+
|
1133
|
+
<span class='name'>params</span>
|
1134
|
+
|
1135
|
+
|
1136
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1137
|
+
|
1138
|
+
|
1139
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1140
|
+
|
1141
|
+
|
1142
|
+
—
|
1143
|
+
<div class='inline'><p>
|
1144
|
+
a hash of params to be passed to the service
|
1145
|
+
</p>
|
1146
|
+
</div>
|
1147
|
+
|
1148
|
+
</li>
|
1149
|
+
|
1150
|
+
<li>
|
1151
|
+
|
1152
|
+
<span class='name'>headers</span>
|
1153
|
+
|
1154
|
+
|
1155
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1156
|
+
|
1157
|
+
|
1158
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1159
|
+
|
1160
|
+
|
1161
|
+
—
|
1162
|
+
<div class='inline'><p>
|
1163
|
+
additional http headers
|
1164
|
+
</p>
|
1165
|
+
</div>
|
1166
|
+
|
1167
|
+
</li>
|
1168
|
+
|
1169
|
+
</ul>
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
1175
|
+
<ul class="option">
|
1176
|
+
|
1177
|
+
<li>
|
1178
|
+
<span class="name">id</span>
|
1179
|
+
<span class="type">(<tt>String</tt>)</span>
|
1180
|
+
<span class="default">
|
1181
|
+
|
1182
|
+
</span>
|
1183
|
+
|
1184
|
+
— <div class='inline'><p>
|
1185
|
+
Id of parameter
|
1186
|
+
</p>
|
1187
|
+
</div>
|
1188
|
+
|
1189
|
+
</li>
|
1190
|
+
|
1191
|
+
<li>
|
1192
|
+
<span class="name">domain_id</span>
|
1193
|
+
<span class="type">(<tt>String</tt>)</span>
|
1194
|
+
<span class="default">
|
1195
|
+
|
1196
|
+
</span>
|
1197
|
+
|
1198
|
+
— <div class='inline'><p>
|
1199
|
+
Id of domain
|
1200
|
+
</p>
|
1201
|
+
</div>
|
1202
|
+
|
1203
|
+
</li>
|
1204
|
+
|
1205
|
+
<li>
|
1206
|
+
<span class="name">host_id</span>
|
1207
|
+
<span class="type">(<tt>String</tt>)</span>
|
1208
|
+
<span class="default">
|
1209
|
+
|
1210
|
+
</span>
|
1211
|
+
|
1212
|
+
— <div class='inline'><p>
|
1213
|
+
Id of host
|
1214
|
+
</p>
|
1215
|
+
</div>
|
1216
|
+
|
1217
|
+
</li>
|
1218
|
+
|
1219
|
+
<li>
|
1220
|
+
<span class="name">hostgroup_id</span>
|
1221
|
+
<span class="type">(<tt>String</tt>)</span>
|
1222
|
+
<span class="default">
|
1223
|
+
|
1224
|
+
</span>
|
1225
|
+
|
1226
|
+
— <div class='inline'><p>
|
1227
|
+
Id of hostgroup
|
1228
|
+
</p>
|
1229
|
+
</div>
|
1230
|
+
|
1231
|
+
</li>
|
1232
|
+
|
1233
|
+
<li>
|
1234
|
+
<span class="name">operatingsystem_id</span>
|
1235
|
+
<span class="type">(<tt>String</tt>)</span>
|
1236
|
+
<span class="default">
|
1237
|
+
|
1238
|
+
</span>
|
1239
|
+
|
1240
|
+
— <div class='inline'><p>
|
1241
|
+
Id of operating system
|
1242
|
+
</p>
|
1243
|
+
</div>
|
1244
|
+
|
1245
|
+
</li>
|
1246
|
+
|
1247
|
+
</ul>
|
1248
|
+
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
<p class="tag_title">Returns:</p>
|
1253
|
+
<ul class="return">
|
1254
|
+
|
1255
|
+
<li>
|
1256
|
+
|
1257
|
+
|
1258
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
—
|
1263
|
+
<div class='inline'><p>
|
1264
|
+
First item: parsed data; second item: raw body
|
1265
|
+
</p>
|
1266
|
+
</div>
|
1267
|
+
|
1268
|
+
</li>
|
1269
|
+
|
1270
|
+
</ul>
|
1271
|
+
|
1272
|
+
</div><table class="source_code">
|
1273
|
+
<tr>
|
1274
|
+
<td>
|
1275
|
+
<pre class="lines">
|
1276
|
+
|
1277
|
+
|
1278
|
+
31
|
1279
|
+
32
|
1280
|
+
33</pre>
|
1281
|
+
</td>
|
1282
|
+
<td>
|
1283
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 31</span>
|
1284
|
+
|
1285
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_show identifier id'>show</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
1286
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
1287
|
+
<span class='rubyid_end end kw'>end</span>
|
1288
|
+
</pre>
|
1289
|
+
</td>
|
1290
|
+
</tr>
|
1291
|
+
</table>
|
1292
|
+
</div>
|
1293
|
+
|
1294
|
+
<div class="method_details ">
|
1295
|
+
<h3 class="signature " id="update-instance_method">
|
1296
|
+
|
1297
|
+
- (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
</h3><div class="docstring">
|
1304
|
+
<div class="discussion">
|
1305
|
+
<p>
|
1306
|
+
First item: parsed data; second item: raw body
|
1307
|
+
</p>
|
1308
|
+
|
1309
|
+
|
1310
|
+
</div>
|
1311
|
+
</div>
|
1312
|
+
<div class="tags">
|
1313
|
+
<p class="tag_title">Parameters:</p>
|
1314
|
+
<ul class="param">
|
1315
|
+
|
1316
|
+
<li>
|
1317
|
+
|
1318
|
+
<span class='name'>params</span>
|
1319
|
+
|
1320
|
+
|
1321
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1322
|
+
|
1323
|
+
|
1324
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1325
|
+
|
1326
|
+
|
1327
|
+
—
|
1328
|
+
<div class='inline'><p>
|
1329
|
+
a hash of params to be passed to the service
|
1330
|
+
</p>
|
1331
|
+
</div>
|
1332
|
+
|
1333
|
+
</li>
|
1334
|
+
|
1335
|
+
<li>
|
1336
|
+
|
1337
|
+
<span class='name'>headers</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'><p>
|
1348
|
+
additional http headers
|
1349
|
+
</p>
|
1350
|
+
</div>
|
1351
|
+
|
1352
|
+
</li>
|
1353
|
+
|
1354
|
+
</ul>
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
|
1359
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
1360
|
+
<ul class="option">
|
1361
|
+
|
1362
|
+
<li>
|
1363
|
+
<span class="name">id</span>
|
1364
|
+
<span class="type">(<tt>String</tt>)</span>
|
1365
|
+
<span class="default">
|
1366
|
+
|
1367
|
+
</span>
|
1368
|
+
|
1369
|
+
— <div class='inline'><p>
|
1370
|
+
Id of parameter
|
1371
|
+
</p>
|
1372
|
+
</div>
|
1373
|
+
|
1374
|
+
</li>
|
1375
|
+
|
1376
|
+
<li>
|
1377
|
+
<span class="name">domain_id</span>
|
1378
|
+
<span class="type">(<tt>String</tt>)</span>
|
1379
|
+
<span class="default">
|
1380
|
+
|
1381
|
+
</span>
|
1382
|
+
|
1383
|
+
— <div class='inline'><p>
|
1384
|
+
Id of domain
|
1385
|
+
</p>
|
1386
|
+
</div>
|
1387
|
+
|
1388
|
+
</li>
|
1389
|
+
|
1390
|
+
<li>
|
1391
|
+
<span class="name">host_id</span>
|
1392
|
+
<span class="type">(<tt>String</tt>)</span>
|
1393
|
+
<span class="default">
|
1394
|
+
|
1395
|
+
</span>
|
1396
|
+
|
1397
|
+
— <div class='inline'><p>
|
1398
|
+
Id of host
|
1399
|
+
</p>
|
1400
|
+
</div>
|
1401
|
+
|
1402
|
+
</li>
|
1403
|
+
|
1404
|
+
<li>
|
1405
|
+
<span class="name">hostgroup_id</span>
|
1406
|
+
<span class="type">(<tt>String</tt>)</span>
|
1407
|
+
<span class="default">
|
1408
|
+
|
1409
|
+
</span>
|
1410
|
+
|
1411
|
+
— <div class='inline'><p>
|
1412
|
+
Id of hostgroup
|
1413
|
+
</p>
|
1414
|
+
</div>
|
1415
|
+
|
1416
|
+
</li>
|
1417
|
+
|
1418
|
+
<li>
|
1419
|
+
<span class="name">operatingsystem_id</span>
|
1420
|
+
<span class="type">(<tt>String</tt>)</span>
|
1421
|
+
<span class="default">
|
1422
|
+
|
1423
|
+
</span>
|
1424
|
+
|
1425
|
+
— <div class='inline'><p>
|
1426
|
+
Id of operating system
|
1427
|
+
</p>
|
1428
|
+
</div>
|
1429
|
+
|
1430
|
+
</li>
|
1431
|
+
|
1432
|
+
<li>
|
1433
|
+
<span class="name">parameter</span>
|
1434
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
1435
|
+
<span class="default">
|
1436
|
+
|
1437
|
+
</span>
|
1438
|
+
|
1439
|
+
— <div class='inline'><p>
|
1440
|
+
allowed keys are:
|
1441
|
+
</p>
|
1442
|
+
<ul>
|
1443
|
+
<li>name [String]
|
1444
|
+
|
1445
|
+
</li>
|
1446
|
+
<li>value [String]
|
1447
|
+
|
1448
|
+
</li>
|
1449
|
+
</ul>
|
1450
|
+
</div>
|
1451
|
+
|
1452
|
+
</li>
|
1453
|
+
|
1454
|
+
</ul>
|
1455
|
+
|
1456
|
+
|
1457
|
+
|
1458
|
+
|
1459
|
+
<p class="tag_title">Returns:</p>
|
1460
|
+
<ul class="return">
|
1461
|
+
|
1462
|
+
<li>
|
1463
|
+
|
1464
|
+
|
1465
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1466
|
+
|
1467
|
+
|
1468
|
+
|
1469
|
+
—
|
1470
|
+
<div class='inline'><p>
|
1471
|
+
First item: parsed data; second item: raw body
|
1472
|
+
</p>
|
1473
|
+
</div>
|
1474
|
+
|
1475
|
+
</li>
|
1476
|
+
|
1477
|
+
</ul>
|
1478
|
+
|
1479
|
+
</div><table class="source_code">
|
1480
|
+
<tr>
|
1481
|
+
<td>
|
1482
|
+
<pre class="lines">
|
1483
|
+
|
1484
|
+
|
1485
|
+
65
|
1486
|
+
66
|
1487
|
+
67</pre>
|
1488
|
+
</td>
|
1489
|
+
<td>
|
1490
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/parameter.rb', line 65</span>
|
1491
|
+
|
1492
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_update identifier id'>update</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
1493
|
+
<span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
|
1494
|
+
<span class='rubyid_end end kw'>end</span>
|
1495
|
+
</pre>
|
1496
|
+
</td>
|
1497
|
+
</tr>
|
1498
|
+
</table>
|
1499
|
+
</div>
|
1500
|
+
|
1501
|
+
</div>
|
1502
|
+
|
1503
|
+
</div>
|
1504
|
+
|
1505
|
+
<div id="footer">
|
1506
|
+
Generated on Tue Mar 19 09:50:26 2013 by
|
1507
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1508
|
+
0.8.5.2 (ruby-1.8.7).
|
1509
|
+
</div>
|
1510
|
+
|
1511
|
+
</body>
|
1512
|
+
</html>
|