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
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ForemanApi::Resources::ConfigTemplate
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
<li class="public ">
|
151
151
|
<span class="summary_signature">
|
152
152
|
|
153
|
-
<a href="#build_pxe_default-instance_method" title="#build_pxe_default (instance method)">- (
|
153
|
+
<a href="#build_pxe_default-instance_method" title="#build_pxe_default (instance method)">- (Array) <strong>build_pxe_default</strong>(params = {}, headers = {}) </a>
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -164,7 +164,10 @@
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
<span class="summary_desc"><div class='inline'
|
167
|
+
<span class="summary_desc"><div class='inline'><p>
|
168
|
+
First item: parsed data; second item: raw body.
|
169
|
+
</p>
|
170
|
+
</div></span>
|
168
171
|
|
169
172
|
</li>
|
170
173
|
|
@@ -172,7 +175,7 @@
|
|
172
175
|
<li class="public ">
|
173
176
|
<span class="summary_signature">
|
174
177
|
|
175
|
-
<a href="#create-instance_method" title="#create (instance method)">- (
|
178
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</strong>(params = {}, headers = {}) </a>
|
176
179
|
|
177
180
|
|
178
181
|
|
@@ -186,7 +189,10 @@
|
|
186
189
|
|
187
190
|
|
188
191
|
|
189
|
-
<span class="summary_desc"><div class='inline'
|
192
|
+
<span class="summary_desc"><div class='inline'><p>
|
193
|
+
First item: parsed data; second item: raw body.
|
194
|
+
</p>
|
195
|
+
</div></span>
|
190
196
|
|
191
197
|
</li>
|
192
198
|
|
@@ -194,7 +200,7 @@
|
|
194
200
|
<li class="public ">
|
195
201
|
<span class="summary_signature">
|
196
202
|
|
197
|
-
<a href="#destroy-instance_method" title="#destroy (instance method)">- (
|
203
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</strong>(params = {}, headers = {}) </a>
|
198
204
|
|
199
205
|
|
200
206
|
|
@@ -208,7 +214,10 @@
|
|
208
214
|
|
209
215
|
|
210
216
|
|
211
|
-
<span class="summary_desc"><div class='inline'
|
217
|
+
<span class="summary_desc"><div class='inline'><p>
|
218
|
+
First item: parsed data; second item: raw body.
|
219
|
+
</p>
|
220
|
+
</div></span>
|
212
221
|
|
213
222
|
</li>
|
214
223
|
|
@@ -216,7 +225,7 @@
|
|
216
225
|
<li class="public ">
|
217
226
|
<span class="summary_signature">
|
218
227
|
|
219
|
-
<a href="#index-instance_method" title="#index (instance method)">- (
|
228
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
|
220
229
|
|
221
230
|
|
222
231
|
|
@@ -230,7 +239,10 @@
|
|
230
239
|
|
231
240
|
|
232
241
|
|
233
|
-
<span class="summary_desc"><div class='inline'
|
242
|
+
<span class="summary_desc"><div class='inline'><p>
|
243
|
+
First item: parsed data; second item: raw body.
|
244
|
+
</p>
|
245
|
+
</div></span>
|
234
246
|
|
235
247
|
</li>
|
236
248
|
|
@@ -238,7 +250,7 @@
|
|
238
250
|
<li class="public ">
|
239
251
|
<span class="summary_signature">
|
240
252
|
|
241
|
-
<a href="#revision-instance_method" title="#revision (instance method)">- (
|
253
|
+
<a href="#revision-instance_method" title="#revision (instance method)">- (Array) <strong>revision</strong>(params = {}, headers = {}) </a>
|
242
254
|
|
243
255
|
|
244
256
|
|
@@ -252,7 +264,10 @@
|
|
252
264
|
|
253
265
|
|
254
266
|
|
255
|
-
<span class="summary_desc"><div class='inline'
|
267
|
+
<span class="summary_desc"><div class='inline'><p>
|
268
|
+
First item: parsed data; second item: raw body.
|
269
|
+
</p>
|
270
|
+
</div></span>
|
256
271
|
|
257
272
|
</li>
|
258
273
|
|
@@ -260,7 +275,7 @@
|
|
260
275
|
<li class="public ">
|
261
276
|
<span class="summary_signature">
|
262
277
|
|
263
|
-
<a href="#show-instance_method" title="#show (instance method)">- (
|
278
|
+
<a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
|
264
279
|
|
265
280
|
|
266
281
|
|
@@ -274,7 +289,10 @@
|
|
274
289
|
|
275
290
|
|
276
291
|
|
277
|
-
<span class="summary_desc"><div class='inline'
|
292
|
+
<span class="summary_desc"><div class='inline'><p>
|
293
|
+
First item: parsed data; second item: raw body.
|
294
|
+
</p>
|
295
|
+
</div></span>
|
278
296
|
|
279
297
|
</li>
|
280
298
|
|
@@ -282,7 +300,7 @@
|
|
282
300
|
<li class="public ">
|
283
301
|
<span class="summary_signature">
|
284
302
|
|
285
|
-
<a href="#update-instance_method" title="#update (instance method)">- (
|
303
|
+
<a href="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</strong>(params = {}, headers = {}) </a>
|
286
304
|
|
287
305
|
|
288
306
|
|
@@ -296,7 +314,10 @@
|
|
296
314
|
|
297
315
|
|
298
316
|
|
299
|
-
<span class="summary_desc"><div class='inline'
|
317
|
+
<span class="summary_desc"><div class='inline'><p>
|
318
|
+
First item: parsed data; second item: raw body.
|
319
|
+
</p>
|
320
|
+
</div></span>
|
300
321
|
|
301
322
|
</li>
|
302
323
|
|
@@ -333,9 +354,10 @@
|
|
333
354
|
<td>
|
334
355
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 4</span>
|
335
356
|
|
336
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='
|
337
|
-
<span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='
|
338
|
-
<span class='kw'>end</span
|
357
|
+
<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>
|
358
|
+
<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'>"config_templates"</span><span class='rbrack token'>]</span>
|
359
|
+
<span class='rubyid_end end kw'>end</span>
|
360
|
+
</pre>
|
339
361
|
</td>
|
340
362
|
</tr>
|
341
363
|
</table>
|
@@ -350,7 +372,7 @@
|
|
350
372
|
<div class="method_details first">
|
351
373
|
<h3 class="signature first" id="build_pxe_default-instance_method">
|
352
374
|
|
353
|
-
- (<tt>
|
375
|
+
- (<tt>Array</tt>) <strong>build_pxe_default</strong>(params = {}, headers = {})
|
354
376
|
|
355
377
|
|
356
378
|
|
@@ -358,7 +380,10 @@
|
|
358
380
|
|
359
381
|
</h3><div class="docstring">
|
360
382
|
<div class="discussion">
|
361
|
-
|
383
|
+
<p>
|
384
|
+
First item: parsed data; second item: raw body
|
385
|
+
</p>
|
386
|
+
|
362
387
|
|
363
388
|
</div>
|
364
389
|
</div>
|
@@ -374,12 +399,13 @@
|
|
374
399
|
<span class='type'>(<tt>Hash</tt>)</span>
|
375
400
|
|
376
401
|
|
377
|
-
<em class="default">(defaults to: <tt>{
|
402
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
378
403
|
|
379
404
|
|
380
405
|
—
|
381
|
-
<div class='inline'>
|
382
|
-
|
406
|
+
<div class='inline'><p>
|
407
|
+
a hash of params to be passed to the service
|
408
|
+
</p>
|
383
409
|
</div>
|
384
410
|
|
385
411
|
</li>
|
@@ -392,18 +418,38 @@
|
|
392
418
|
<span class='type'>(<tt>Hash</tt>)</span>
|
393
419
|
|
394
420
|
|
395
|
-
<em class="default">(defaults to: <tt>{
|
421
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
396
422
|
|
397
423
|
|
398
424
|
—
|
399
|
-
<div class='inline'>
|
400
|
-
|
425
|
+
<div class='inline'><p>
|
426
|
+
additional http headers
|
427
|
+
</p>
|
401
428
|
</div>
|
402
429
|
|
403
430
|
</li>
|
404
431
|
|
405
432
|
</ul>
|
406
433
|
|
434
|
+
<p class="tag_title">Returns:</p>
|
435
|
+
<ul class="return">
|
436
|
+
|
437
|
+
<li>
|
438
|
+
|
439
|
+
|
440
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
—
|
445
|
+
<div class='inline'><p>
|
446
|
+
First item: parsed data; second item: raw body
|
447
|
+
</p>
|
448
|
+
</div>
|
449
|
+
|
450
|
+
</li>
|
451
|
+
|
452
|
+
</ul>
|
407
453
|
|
408
454
|
</div><table class="source_code">
|
409
455
|
<tr>
|
@@ -411,20 +457,17 @@
|
|
411
457
|
<pre class="lines">
|
412
458
|
|
413
459
|
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
94
|
418
|
-
95</pre>
|
460
|
+
86
|
461
|
+
87
|
462
|
+
88</pre>
|
419
463
|
</td>
|
420
464
|
<td>
|
421
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
465
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 86</span>
|
422
466
|
|
423
|
-
<span class='kw'>def</span> <span class='
|
424
|
-
<span class='
|
425
|
-
|
426
|
-
|
427
|
-
<span class='kw'>end</span></pre>
|
467
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_build_pxe_default identifier id'>build_pxe_default</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>
|
468
|
+
<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>
|
469
|
+
<span class='rubyid_end end kw'>end</span>
|
470
|
+
</pre>
|
428
471
|
</td>
|
429
472
|
</tr>
|
430
473
|
</table>
|
@@ -433,7 +476,7 @@
|
|
433
476
|
<div class="method_details ">
|
434
477
|
<h3 class="signature " id="create-instance_method">
|
435
478
|
|
436
|
-
- (<tt>
|
479
|
+
- (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
|
437
480
|
|
438
481
|
|
439
482
|
|
@@ -441,7 +484,10 @@
|
|
441
484
|
|
442
485
|
</h3><div class="docstring">
|
443
486
|
<div class="discussion">
|
444
|
-
|
487
|
+
<p>
|
488
|
+
First item: parsed data; second item: raw body
|
489
|
+
</p>
|
490
|
+
|
445
491
|
|
446
492
|
</div>
|
447
493
|
</div>
|
@@ -457,12 +503,13 @@
|
|
457
503
|
<span class='type'>(<tt>Hash</tt>)</span>
|
458
504
|
|
459
505
|
|
460
|
-
<em class="default">(defaults to: <tt>{
|
506
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
461
507
|
|
462
508
|
|
463
509
|
—
|
464
|
-
<div class='inline'>
|
465
|
-
|
510
|
+
<div class='inline'><p>
|
511
|
+
a hash of params to be passed to the service
|
512
|
+
</p>
|
466
513
|
</div>
|
467
514
|
|
468
515
|
</li>
|
@@ -475,12 +522,13 @@
|
|
475
522
|
<span class='type'>(<tt>Hash</tt>)</span>
|
476
523
|
|
477
524
|
|
478
|
-
<em class="default">(defaults to: <tt>{
|
525
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
479
526
|
|
480
527
|
|
481
528
|
—
|
482
|
-
<div class='inline'>
|
483
|
-
|
529
|
+
<div class='inline'><p>
|
530
|
+
additional http headers
|
531
|
+
</p>
|
484
532
|
</div>
|
485
533
|
|
486
534
|
</li>
|
@@ -500,25 +548,34 @@
|
|
500
548
|
|
501
549
|
</span>
|
502
550
|
|
503
|
-
— <div class='inline'>
|
504
|
-
|
505
|
-
|
506
|
-
<
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
</li
|
517
|
-
<
|
518
|
-
|
519
|
-
</li
|
520
|
-
<
|
521
|
-
|
551
|
+
— <div class='inline'><p>
|
552
|
+
allowed keys are:
|
553
|
+
</p>
|
554
|
+
<ul>
|
555
|
+
<li>operatingsystem_ids [String] Array of operating systems id to associate the
|
556
|
+
template with
|
557
|
+
|
558
|
+
</li>
|
559
|
+
<li>template_kind_id [String, nil] Not relevant for snippet
|
560
|
+
|
561
|
+
</li>
|
562
|
+
<li>audit_comment [String, nil]
|
563
|
+
|
564
|
+
</li>
|
565
|
+
<li>name [String] Template name
|
566
|
+
|
567
|
+
</li>
|
568
|
+
<li>snippet [String, nil]
|
569
|
+
|
570
|
+
</li>
|
571
|
+
<li>template [String]
|
572
|
+
|
573
|
+
</li>
|
574
|
+
<li>template_combinations_attributes [String] Array of template combinations
|
575
|
+
(hostgroup_id, environment_id)
|
576
|
+
|
577
|
+
</li>
|
578
|
+
</ul>
|
522
579
|
</div>
|
523
580
|
|
524
581
|
</li>
|
@@ -528,6 +585,25 @@ template with ,</p>
|
|
528
585
|
|
529
586
|
|
530
587
|
|
588
|
+
<p class="tag_title">Returns:</p>
|
589
|
+
<ul class="return">
|
590
|
+
|
591
|
+
<li>
|
592
|
+
|
593
|
+
|
594
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
—
|
599
|
+
<div class='inline'><p>
|
600
|
+
First item: parsed data; second item: raw body
|
601
|
+
</p>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
</li>
|
605
|
+
|
606
|
+
</ul>
|
531
607
|
|
532
608
|
</div><table class="source_code">
|
533
609
|
<tr>
|
@@ -535,20 +611,17 @@ template with ,</p>
|
|
535
611
|
<pre class="lines">
|
536
612
|
|
537
613
|
|
614
|
+
42
|
538
615
|
43
|
539
|
-
44
|
540
|
-
45
|
541
|
-
46
|
542
|
-
47</pre>
|
616
|
+
44</pre>
|
543
617
|
</td>
|
544
618
|
<td>
|
545
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
619
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 42</span>
|
546
620
|
|
547
|
-
<span class='kw'>def</span> <span class='
|
548
|
-
<span class='
|
549
|
-
|
550
|
-
|
551
|
-
<span class='kw'>end</span></pre>
|
621
|
+
<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>
|
622
|
+
<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>
|
623
|
+
<span class='rubyid_end end kw'>end</span>
|
624
|
+
</pre>
|
552
625
|
</td>
|
553
626
|
</tr>
|
554
627
|
</table>
|
@@ -557,7 +630,7 @@ template with ,</p>
|
|
557
630
|
<div class="method_details ">
|
558
631
|
<h3 class="signature " id="destroy-instance_method">
|
559
632
|
|
560
|
-
- (<tt>
|
633
|
+
- (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
|
561
634
|
|
562
635
|
|
563
636
|
|
@@ -565,7 +638,10 @@ template with ,</p>
|
|
565
638
|
|
566
639
|
</h3><div class="docstring">
|
567
640
|
<div class="discussion">
|
568
|
-
|
641
|
+
<p>
|
642
|
+
First item: parsed data; second item: raw body
|
643
|
+
</p>
|
644
|
+
|
569
645
|
|
570
646
|
</div>
|
571
647
|
</div>
|
@@ -581,12 +657,13 @@ template with ,</p>
|
|
581
657
|
<span class='type'>(<tt>Hash</tt>)</span>
|
582
658
|
|
583
659
|
|
584
|
-
<em class="default">(defaults to: <tt>{
|
660
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
585
661
|
|
586
662
|
|
587
663
|
—
|
588
|
-
<div class='inline'>
|
589
|
-
|
664
|
+
<div class='inline'><p>
|
665
|
+
a hash of params to be passed to the service
|
666
|
+
</p>
|
590
667
|
</div>
|
591
668
|
|
592
669
|
</li>
|
@@ -599,12 +676,13 @@ template with ,</p>
|
|
599
676
|
<span class='type'>(<tt>Hash</tt>)</span>
|
600
677
|
|
601
678
|
|
602
|
-
<em class="default">(defaults to: <tt>{
|
679
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
603
680
|
|
604
681
|
|
605
682
|
—
|
606
|
-
<div class='inline'>
|
607
|
-
|
683
|
+
<div class='inline'><p>
|
684
|
+
additional http headers
|
685
|
+
</p>
|
608
686
|
</div>
|
609
687
|
|
610
688
|
</li>
|
@@ -631,6 +709,25 @@ template with ,</p>
|
|
631
709
|
|
632
710
|
|
633
711
|
|
712
|
+
<p class="tag_title">Returns:</p>
|
713
|
+
<ul class="return">
|
714
|
+
|
715
|
+
<li>
|
716
|
+
|
717
|
+
|
718
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
—
|
723
|
+
<div class='inline'><p>
|
724
|
+
First item: parsed data; second item: raw body
|
725
|
+
</p>
|
726
|
+
</div>
|
727
|
+
|
728
|
+
</li>
|
729
|
+
|
730
|
+
</ul>
|
634
731
|
|
635
732
|
</div><table class="source_code">
|
636
733
|
<tr>
|
@@ -638,20 +735,17 @@ template with ,</p>
|
|
638
735
|
<pre class="lines">
|
639
736
|
|
640
737
|
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
85
|
645
|
-
86</pre>
|
738
|
+
78
|
739
|
+
79
|
740
|
+
80</pre>
|
646
741
|
</td>
|
647
742
|
<td>
|
648
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 78</span>
|
649
744
|
|
650
|
-
<span class='kw'>def</span> <span class='
|
651
|
-
<span class='
|
652
|
-
|
653
|
-
|
654
|
-
<span class='kw'>end</span></pre>
|
745
|
+
<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>
|
746
|
+
<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>
|
747
|
+
<span class='rubyid_end end kw'>end</span>
|
748
|
+
</pre>
|
655
749
|
</td>
|
656
750
|
</tr>
|
657
751
|
</table>
|
@@ -660,7 +754,7 @@ template with ,</p>
|
|
660
754
|
<div class="method_details ">
|
661
755
|
<h3 class="signature " id="index-instance_method">
|
662
756
|
|
663
|
-
- (<tt>
|
757
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
664
758
|
|
665
759
|
|
666
760
|
|
@@ -668,7 +762,10 @@ template with ,</p>
|
|
668
762
|
|
669
763
|
</h3><div class="docstring">
|
670
764
|
<div class="discussion">
|
671
|
-
|
765
|
+
<p>
|
766
|
+
First item: parsed data; second item: raw body
|
767
|
+
</p>
|
768
|
+
|
672
769
|
|
673
770
|
</div>
|
674
771
|
</div>
|
@@ -684,12 +781,13 @@ template with ,</p>
|
|
684
781
|
<span class='type'>(<tt>Hash</tt>)</span>
|
685
782
|
|
686
783
|
|
687
|
-
<em class="default">(defaults to: <tt>{
|
784
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
688
785
|
|
689
786
|
|
690
787
|
—
|
691
|
-
<div class='inline'>
|
692
|
-
|
788
|
+
<div class='inline'><p>
|
789
|
+
a hash of params to be passed to the service
|
790
|
+
</p>
|
693
791
|
</div>
|
694
792
|
|
695
793
|
</li>
|
@@ -702,12 +800,13 @@ template with ,</p>
|
|
702
800
|
<span class='type'>(<tt>Hash</tt>)</span>
|
703
801
|
|
704
802
|
|
705
|
-
<em class="default">(defaults to: <tt>{
|
803
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
706
804
|
|
707
805
|
|
708
806
|
—
|
709
|
-
<div class='inline'>
|
710
|
-
|
807
|
+
<div class='inline'><p>
|
808
|
+
additional http headers
|
809
|
+
</p>
|
711
810
|
</div>
|
712
811
|
|
713
812
|
</li>
|
@@ -727,8 +826,9 @@ template with ,</p>
|
|
727
826
|
|
728
827
|
</span>
|
729
828
|
|
730
|
-
— <div class='inline'>
|
731
|
-
|
829
|
+
— <div class='inline'><p>
|
830
|
+
Sort results
|
831
|
+
</p>
|
732
832
|
</div>
|
733
833
|
|
734
834
|
</li>
|
@@ -740,8 +840,9 @@ template with ,</p>
|
|
740
840
|
|
741
841
|
</span>
|
742
842
|
|
743
|
-
— <div class='inline'>
|
744
|
-
|
843
|
+
— <div class='inline'><p>
|
844
|
+
Paginate results
|
845
|
+
</p>
|
745
846
|
</div>
|
746
847
|
|
747
848
|
</li>
|
@@ -753,8 +854,9 @@ template with ,</p>
|
|
753
854
|
|
754
855
|
</span>
|
755
856
|
|
756
|
-
— <div class='inline'>
|
757
|
-
|
857
|
+
— <div class='inline'><p>
|
858
|
+
Number of entries per request
|
859
|
+
</p>
|
758
860
|
</div>
|
759
861
|
|
760
862
|
</li>
|
@@ -766,8 +868,9 @@ template with ,</p>
|
|
766
868
|
|
767
869
|
</span>
|
768
870
|
|
769
|
-
— <div class='inline'>
|
770
|
-
|
871
|
+
— <div class='inline'><p>
|
872
|
+
Filter results
|
873
|
+
</p>
|
771
874
|
</div>
|
772
875
|
|
773
876
|
</li>
|
@@ -777,6 +880,25 @@ template with ,</p>
|
|
777
880
|
|
778
881
|
|
779
882
|
|
883
|
+
<p class="tag_title">Returns:</p>
|
884
|
+
<ul class="return">
|
885
|
+
|
886
|
+
<li>
|
887
|
+
|
888
|
+
|
889
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
—
|
894
|
+
<div class='inline'><p>
|
895
|
+
First item: parsed data; second item: raw body
|
896
|
+
</p>
|
897
|
+
</div>
|
898
|
+
|
899
|
+
</li>
|
900
|
+
|
901
|
+
</ul>
|
780
902
|
|
781
903
|
</div><table class="source_code">
|
782
904
|
<tr>
|
@@ -784,20 +906,17 @@ template with ,</p>
|
|
784
906
|
<pre class="lines">
|
785
907
|
|
786
908
|
|
787
|
-
15
|
788
909
|
16
|
789
910
|
17
|
790
|
-
18
|
791
|
-
19</pre>
|
911
|
+
18</pre>
|
792
912
|
</td>
|
793
913
|
<td>
|
794
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
914
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 16</span>
|
795
915
|
|
796
|
-
<span class='kw'>def</span> <span class='
|
797
|
-
<span class='
|
798
|
-
|
799
|
-
|
800
|
-
<span class='kw'>end</span></pre>
|
916
|
+
<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>
|
917
|
+
<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>
|
918
|
+
<span class='rubyid_end end kw'>end</span>
|
919
|
+
</pre>
|
801
920
|
</td>
|
802
921
|
</tr>
|
803
922
|
</table>
|
@@ -806,7 +925,7 @@ template with ,</p>
|
|
806
925
|
<div class="method_details ">
|
807
926
|
<h3 class="signature " id="revision-instance_method">
|
808
927
|
|
809
|
-
- (<tt>
|
928
|
+
- (<tt>Array</tt>) <strong>revision</strong>(params = {}, headers = {})
|
810
929
|
|
811
930
|
|
812
931
|
|
@@ -814,7 +933,10 @@ template with ,</p>
|
|
814
933
|
|
815
934
|
</h3><div class="docstring">
|
816
935
|
<div class="discussion">
|
817
|
-
|
936
|
+
<p>
|
937
|
+
First item: parsed data; second item: raw body
|
938
|
+
</p>
|
939
|
+
|
818
940
|
|
819
941
|
</div>
|
820
942
|
</div>
|
@@ -830,12 +952,13 @@ template with ,</p>
|
|
830
952
|
<span class='type'>(<tt>Hash</tt>)</span>
|
831
953
|
|
832
954
|
|
833
|
-
<em class="default">(defaults to: <tt>{
|
955
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
834
956
|
|
835
957
|
|
836
958
|
—
|
837
|
-
<div class='inline'>
|
838
|
-
|
959
|
+
<div class='inline'><p>
|
960
|
+
a hash of params to be passed to the service
|
961
|
+
</p>
|
839
962
|
</div>
|
840
963
|
|
841
964
|
</li>
|
@@ -848,12 +971,13 @@ template with ,</p>
|
|
848
971
|
<span class='type'>(<tt>Hash</tt>)</span>
|
849
972
|
|
850
973
|
|
851
|
-
<em class="default">(defaults to: <tt>{
|
974
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
852
975
|
|
853
976
|
|
854
977
|
—
|
855
|
-
<div class='inline'>
|
856
|
-
|
978
|
+
<div class='inline'><p>
|
979
|
+
additional http headers
|
980
|
+
</p>
|
857
981
|
</div>
|
858
982
|
|
859
983
|
</li>
|
@@ -873,8 +997,9 @@ template with ,</p>
|
|
873
997
|
|
874
998
|
</span>
|
875
999
|
|
876
|
-
— <div class='inline'>
|
877
|
-
|
1000
|
+
— <div class='inline'><p>
|
1001
|
+
Template version
|
1002
|
+
</p>
|
878
1003
|
</div>
|
879
1004
|
|
880
1005
|
</li>
|
@@ -884,6 +1009,25 @@ template with ,</p>
|
|
884
1009
|
|
885
1010
|
|
886
1011
|
|
1012
|
+
<p class="tag_title">Returns:</p>
|
1013
|
+
<ul class="return">
|
1014
|
+
|
1015
|
+
<li>
|
1016
|
+
|
1017
|
+
|
1018
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
1022
|
+
—
|
1023
|
+
<div class='inline'><p>
|
1024
|
+
First item: parsed data; second item: raw body
|
1025
|
+
</p>
|
1026
|
+
</div>
|
1027
|
+
|
1028
|
+
</li>
|
1029
|
+
|
1030
|
+
</ul>
|
887
1031
|
|
888
1032
|
</div><table class="source_code">
|
889
1033
|
<tr>
|
@@ -891,20 +1035,17 @@ template with ,</p>
|
|
891
1035
|
<pre class="lines">
|
892
1036
|
|
893
1037
|
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
75
|
898
|
-
76</pre>
|
1038
|
+
69
|
1039
|
+
70
|
1040
|
+
71</pre>
|
899
1041
|
</td>
|
900
1042
|
<td>
|
901
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
1043
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 69</span>
|
902
1044
|
|
903
|
-
<span class='kw'>def</span> <span class='
|
904
|
-
<span class='
|
905
|
-
|
906
|
-
|
907
|
-
<span class='kw'>end</span></pre>
|
1045
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_revision identifier id'>revision</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>
|
1046
|
+
<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>
|
1047
|
+
<span class='rubyid_end end kw'>end</span>
|
1048
|
+
</pre>
|
908
1049
|
</td>
|
909
1050
|
</tr>
|
910
1051
|
</table>
|
@@ -913,7 +1054,7 @@ template with ,</p>
|
|
913
1054
|
<div class="method_details ">
|
914
1055
|
<h3 class="signature " id="show-instance_method">
|
915
1056
|
|
916
|
-
- (<tt>
|
1057
|
+
- (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
|
917
1058
|
|
918
1059
|
|
919
1060
|
|
@@ -921,7 +1062,10 @@ template with ,</p>
|
|
921
1062
|
|
922
1063
|
</h3><div class="docstring">
|
923
1064
|
<div class="discussion">
|
924
|
-
|
1065
|
+
<p>
|
1066
|
+
First item: parsed data; second item: raw body
|
1067
|
+
</p>
|
1068
|
+
|
925
1069
|
|
926
1070
|
</div>
|
927
1071
|
</div>
|
@@ -937,12 +1081,13 @@ template with ,</p>
|
|
937
1081
|
<span class='type'>(<tt>Hash</tt>)</span>
|
938
1082
|
|
939
1083
|
|
940
|
-
<em class="default">(defaults to: <tt>{
|
1084
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
941
1085
|
|
942
1086
|
|
943
1087
|
—
|
944
|
-
<div class='inline'>
|
945
|
-
|
1088
|
+
<div class='inline'><p>
|
1089
|
+
a hash of params to be passed to the service
|
1090
|
+
</p>
|
946
1091
|
</div>
|
947
1092
|
|
948
1093
|
</li>
|
@@ -955,12 +1100,13 @@ template with ,</p>
|
|
955
1100
|
<span class='type'>(<tt>Hash</tt>)</span>
|
956
1101
|
|
957
1102
|
|
958
|
-
<em class="default">(defaults to: <tt>{
|
1103
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
959
1104
|
|
960
1105
|
|
961
1106
|
—
|
962
|
-
<div class='inline'>
|
963
|
-
|
1107
|
+
<div class='inline'><p>
|
1108
|
+
additional http headers
|
1109
|
+
</p>
|
964
1110
|
</div>
|
965
1111
|
|
966
1112
|
</li>
|
@@ -987,6 +1133,25 @@ template with ,</p>
|
|
987
1133
|
|
988
1134
|
|
989
1135
|
|
1136
|
+
<p class="tag_title">Returns:</p>
|
1137
|
+
<ul class="return">
|
1138
|
+
|
1139
|
+
<li>
|
1140
|
+
|
1141
|
+
|
1142
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
—
|
1147
|
+
<div class='inline'><p>
|
1148
|
+
First item: parsed data; second item: raw body
|
1149
|
+
</p>
|
1150
|
+
</div>
|
1151
|
+
|
1152
|
+
</li>
|
1153
|
+
|
1154
|
+
</ul>
|
990
1155
|
|
991
1156
|
</div><table class="source_code">
|
992
1157
|
<tr>
|
@@ -996,18 +1161,15 @@ template with ,</p>
|
|
996
1161
|
|
997
1162
|
25
|
998
1163
|
26
|
999
|
-
27
|
1000
|
-
28
|
1001
|
-
29</pre>
|
1164
|
+
27</pre>
|
1002
1165
|
</td>
|
1003
1166
|
<td>
|
1004
1167
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 25</span>
|
1005
1168
|
|
1006
|
-
<span class='kw'>def</span> <span class='
|
1007
|
-
<span class='
|
1008
|
-
|
1009
|
-
|
1010
|
-
<span class='kw'>end</span></pre>
|
1169
|
+
<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>
|
1170
|
+
<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>
|
1171
|
+
<span class='rubyid_end end kw'>end</span>
|
1172
|
+
</pre>
|
1011
1173
|
</td>
|
1012
1174
|
</tr>
|
1013
1175
|
</table>
|
@@ -1016,7 +1178,7 @@ template with ,</p>
|
|
1016
1178
|
<div class="method_details ">
|
1017
1179
|
<h3 class="signature " id="update-instance_method">
|
1018
1180
|
|
1019
|
-
- (<tt>
|
1181
|
+
- (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
|
1020
1182
|
|
1021
1183
|
|
1022
1184
|
|
@@ -1024,7 +1186,10 @@ template with ,</p>
|
|
1024
1186
|
|
1025
1187
|
</h3><div class="docstring">
|
1026
1188
|
<div class="discussion">
|
1027
|
-
|
1189
|
+
<p>
|
1190
|
+
First item: parsed data; second item: raw body
|
1191
|
+
</p>
|
1192
|
+
|
1028
1193
|
|
1029
1194
|
</div>
|
1030
1195
|
</div>
|
@@ -1040,12 +1205,13 @@ template with ,</p>
|
|
1040
1205
|
<span class='type'>(<tt>Hash</tt>)</span>
|
1041
1206
|
|
1042
1207
|
|
1043
|
-
<em class="default">(defaults to: <tt>{
|
1208
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1044
1209
|
|
1045
1210
|
|
1046
1211
|
—
|
1047
|
-
<div class='inline'>
|
1048
|
-
|
1212
|
+
<div class='inline'><p>
|
1213
|
+
a hash of params to be passed to the service
|
1214
|
+
</p>
|
1049
1215
|
</div>
|
1050
1216
|
|
1051
1217
|
</li>
|
@@ -1058,12 +1224,13 @@ template with ,</p>
|
|
1058
1224
|
<span class='type'>(<tt>Hash</tt>)</span>
|
1059
1225
|
|
1060
1226
|
|
1061
|
-
<em class="default">(defaults to: <tt>{
|
1227
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1062
1228
|
|
1063
1229
|
|
1064
1230
|
—
|
1065
|
-
<div class='inline'>
|
1066
|
-
|
1231
|
+
<div class='inline'><p>
|
1232
|
+
additional http headers
|
1233
|
+
</p>
|
1067
1234
|
</div>
|
1068
1235
|
|
1069
1236
|
</li>
|
@@ -1092,25 +1259,34 @@ template with ,</p>
|
|
1092
1259
|
|
1093
1260
|
</span>
|
1094
1261
|
|
1095
|
-
— <div class='inline'>
|
1096
|
-
|
1097
|
-
|
1098
|
-
<
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
</li
|
1109
|
-
<
|
1110
|
-
|
1111
|
-
</li
|
1112
|
-
<
|
1113
|
-
|
1262
|
+
— <div class='inline'><p>
|
1263
|
+
allowed keys are:
|
1264
|
+
</p>
|
1265
|
+
<ul>
|
1266
|
+
<li>operatingsystem_ids [String] Array of operating systems id to associate the
|
1267
|
+
template with
|
1268
|
+
|
1269
|
+
</li>
|
1270
|
+
<li>template_kind_id [String, nil] Not relevant for snippet
|
1271
|
+
|
1272
|
+
</li>
|
1273
|
+
<li>audit_comment [String, nil]
|
1274
|
+
|
1275
|
+
</li>
|
1276
|
+
<li>name [String] Template name
|
1277
|
+
|
1278
|
+
</li>
|
1279
|
+
<li>snippet [String]
|
1280
|
+
|
1281
|
+
</li>
|
1282
|
+
<li>template [String]
|
1283
|
+
|
1284
|
+
</li>
|
1285
|
+
<li>template_combinations_attributes [String] Array of template combinations
|
1286
|
+
(hostgroup_id, environment_id)
|
1287
|
+
|
1288
|
+
</li>
|
1289
|
+
</ul>
|
1114
1290
|
</div>
|
1115
1291
|
|
1116
1292
|
</li>
|
@@ -1120,6 +1296,25 @@ template with ,</p>
|
|
1120
1296
|
|
1121
1297
|
|
1122
1298
|
|
1299
|
+
<p class="tag_title">Returns:</p>
|
1300
|
+
<ul class="return">
|
1301
|
+
|
1302
|
+
<li>
|
1303
|
+
|
1304
|
+
|
1305
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1306
|
+
|
1307
|
+
|
1308
|
+
|
1309
|
+
—
|
1310
|
+
<div class='inline'><p>
|
1311
|
+
First item: parsed data; second item: raw body
|
1312
|
+
</p>
|
1313
|
+
</div>
|
1314
|
+
|
1315
|
+
</li>
|
1316
|
+
|
1317
|
+
</ul>
|
1123
1318
|
|
1124
1319
|
</div><table class="source_code">
|
1125
1320
|
<tr>
|
@@ -1127,20 +1322,17 @@ template with ,</p>
|
|
1127
1322
|
<pre class="lines">
|
1128
1323
|
|
1129
1324
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
65
|
1134
|
-
66</pre>
|
1325
|
+
60
|
1326
|
+
61
|
1327
|
+
62</pre>
|
1135
1328
|
</td>
|
1136
1329
|
<td>
|
1137
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line
|
1330
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/config_template.rb', line 60</span>
|
1138
1331
|
|
1139
|
-
<span class='kw'>def</span> <span class='
|
1140
|
-
<span class='
|
1141
|
-
|
1142
|
-
|
1143
|
-
<span class='kw'>end</span></pre>
|
1332
|
+
<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>
|
1333
|
+
<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>
|
1334
|
+
<span class='rubyid_end end kw'>end</span>
|
1335
|
+
</pre>
|
1144
1336
|
</td>
|
1145
1337
|
</tr>
|
1146
1338
|
</table>
|
@@ -1151,9 +1343,9 @@ template with ,</p>
|
|
1151
1343
|
</div>
|
1152
1344
|
|
1153
1345
|
<div id="footer">
|
1154
|
-
Generated on
|
1346
|
+
Generated on Tue Mar 19 09:50:27 2013 by
|
1155
1347
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1156
|
-
0.8.
|
1348
|
+
0.8.5.2 (ruby-1.8.7).
|
1157
1349
|
</div>
|
1158
1350
|
|
1159
1351
|
</body>
|