foreman_api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +35 -18
- data/doc/ForemanApi/Resources/Architecture.html +93 -136
- data/doc/ForemanApi/Resources/Audit.html +42 -60
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +129 -190
- data/doc/ForemanApi/Resources/Bookmark.html +97 -142
- data/doc/ForemanApi/Resources/CommonParameter.html +93 -136
- data/doc/ForemanApi/Resources/ComputeResource.html +131 -190
- data/doc/ForemanApi/Resources/ConfigTemplate.html +145 -211
- data/doc/ForemanApi/Resources/Dashboard.html +21 -29
- data/doc/ForemanApi/Resources/Domain.html +103 -151
- data/doc/ForemanApi/Resources/Environment.html +89 -130
- data/doc/ForemanApi/Resources/FactValue.html +29 -41
- data/doc/ForemanApi/Resources/Home.html +32 -45
- data/doc/ForemanApi/Resources/Host.html +317 -251
- data/doc/ForemanApi/Resources/HostClass.html +55 -79
- data/doc/ForemanApi/Resources/Hostgroup.html +125 -184
- data/doc/ForemanApi/Resources/HostgroupClass.html +57 -82
- data/doc/ForemanApi/Resources/Image.html +109 -160
- data/doc/ForemanApi/Resources/Location.html +937 -0
- data/doc/ForemanApi/Resources/LookupKey.html +111 -163
- data/doc/ForemanApi/Resources/Medium.html +113 -154
- data/doc/ForemanApi/Resources/Model.html +101 -148
- data/doc/ForemanApi/Resources/OperatingSystem.html +118 -173
- data/doc/ForemanApi/Resources/Organization.html +937 -0
- data/doc/ForemanApi/Resources/Parameter.html +158 -233
- data/doc/ForemanApi/Resources/Ptable.html +97 -142
- data/doc/ForemanApi/Resources/Puppetclass.html +95 -139
- data/doc/ForemanApi/Resources/Report.html +68 -98
- data/doc/ForemanApi/Resources/Role.html +85 -124
- data/doc/ForemanApi/Resources/Setting.html +58 -84
- data/doc/ForemanApi/Resources/SmartProxy.html +91 -133
- data/doc/ForemanApi/Resources/Subnet.html +141 -208
- data/doc/ForemanApi/Resources/TemplateCombination.html +65 -94
- data/doc/ForemanApi/Resources/TemplateKind.html +23 -32
- data/doc/ForemanApi/Resources/User.html +111 -163
- data/doc/ForemanApi/Resources/Usergroup.html +89 -130
- data/doc/ForemanApi/Resources.html +6 -6
- data/doc/ForemanApi.html +5 -5
- data/doc/_index.html +18 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +0 -10
- data/doc/file.MIT-LICENSE.html +24 -29
- data/doc/file.README.html +81 -60
- data/doc/frames.html +1 -1
- data/doc/index.html +81 -60
- data/doc/method_list.html +416 -312
- data/doc/top-level-namespace.html +3 -3
- data/lib/foreman_api/base.rb +16 -8
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/host.rb +9 -0
- data/lib/foreman_api/resources/location.rb +59 -0
- data/lib/foreman_api/resources/medium.rb +2 -2
- data/lib/foreman_api/resources/organization.rb +59 -0
- data/lib/foreman_api/version.rb +1 -1
- metadata +7 -3
data/README.rdoc
CHANGED
@@ -2,17 +2,20 @@
|
|
2
2
|
|
3
3
|
== Summary
|
4
4
|
|
5
|
+
Usage:
|
6
|
+
|
5
7
|
require 'foreman_api'
|
6
|
-
|
7
|
-
|
8
|
-
|
8
|
+
require 'logger' # optional
|
9
|
+
|
10
|
+
architectures = ForemanApi::Resources::Architecture.new(
|
11
|
+
{
|
12
|
+
:logger => Logger.new(STDOUT), # optional
|
13
|
+
:base_url => 'http://foreman-url',
|
14
|
+
:username => 'admin',
|
15
|
+
:password => 'changeme'
|
16
|
+
})
|
9
17
|
|
10
|
-
|
11
|
-
[[{"architecture"=>{"id"=>5, "name"=>"i386"}},
|
12
|
-
{"architecture"=>{"id"=>9, "name"=>"ppc"}},
|
13
|
-
{"architecture"=>{"id"=>14, "name"=>"x86_64"}}],
|
14
|
-
"[{\"architecture\":{\"name\":\"i386\",\"id\":5}},{\"architecture\":{\"name\":\"ppc\",\"id\":9}},{\"architecture\":{\"name\":\"x86_64\",\"id\":14}}]"]
|
15
|
-
=> nil
|
18
|
+
puts architectures.index.inspect
|
16
19
|
|
17
20
|
== Description
|
18
21
|
|
@@ -40,17 +43,31 @@ Only files under +lib/foreman_api/resources+ are touched by the generator.
|
|
40
43
|
|
41
44
|
=== Authentication
|
42
45
|
|
43
|
-
Foreman API
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
:oauth => { :consumer_key => 'mykey',
|
48
|
-
:consumer_secret => 'shhhh' })
|
49
|
-
|
50
|
-
== License
|
46
|
+
Foreman API uses OAuth for authentication, you need to provide url, key and
|
47
|
+
secret. Also, it is required to provide user which will be used for the request
|
48
|
+
if oauth_map_users setting in the Foreman instance is set, otherwise 401 error
|
49
|
+
will occur and Foreman log will state "users mapping error".
|
51
50
|
|
52
|
-
|
51
|
+
When setting base_url make sure it *does not* include trailing slash, otherwise
|
52
|
+
request can be refused with 401.
|
53
53
|
|
54
|
+
require 'foreman_api'
|
54
55
|
|
56
|
+
architectures = ForemanApi::Resources::Architecture.new(
|
57
|
+
{
|
58
|
+
:base_url => 'http://foreman-url',
|
59
|
+
:oauth => {
|
60
|
+
:consumer_key => 'katello',
|
61
|
+
:consumer_secret => "shhhh"
|
62
|
+
}
|
63
|
+
},{
|
64
|
+
:headers => {
|
65
|
+
:foreman_user => "admin",
|
66
|
+
}
|
67
|
+
})
|
68
|
+
|
69
|
+
puts architectures.index.inspect
|
55
70
|
|
71
|
+
== License
|
56
72
|
|
73
|
+
The bindings are released under MIT license
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ForemanApi::Resources::Architecture
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -164,9 +164,8 @@
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
<span class="summary_desc"><div class='inline'
|
168
|
-
First item: parsed data; second item: raw body
|
169
|
-
</p>
|
167
|
+
<span class="summary_desc"><div class='inline'>
|
168
|
+
<p>First item: parsed data; second item: raw body.</p>
|
170
169
|
</div></span>
|
171
170
|
|
172
171
|
</li>
|
@@ -189,9 +188,8 @@ First item: parsed data; second item: raw body.
|
|
189
188
|
|
190
189
|
|
191
190
|
|
192
|
-
<span class="summary_desc"><div class='inline'
|
193
|
-
First item: parsed data; second item: raw body
|
194
|
-
</p>
|
191
|
+
<span class="summary_desc"><div class='inline'>
|
192
|
+
<p>First item: parsed data; second item: raw body.</p>
|
195
193
|
</div></span>
|
196
194
|
|
197
195
|
</li>
|
@@ -214,9 +212,8 @@ First item: parsed data; second item: raw body.
|
|
214
212
|
|
215
213
|
|
216
214
|
|
217
|
-
<span class="summary_desc"><div class='inline'
|
218
|
-
First item: parsed data; second item: raw body
|
219
|
-
</p>
|
215
|
+
<span class="summary_desc"><div class='inline'>
|
216
|
+
<p>First item: parsed data; second item: raw body.</p>
|
220
217
|
</div></span>
|
221
218
|
|
222
219
|
</li>
|
@@ -239,9 +236,8 @@ First item: parsed data; second item: raw body.
|
|
239
236
|
|
240
237
|
|
241
238
|
|
242
|
-
<span class="summary_desc"><div class='inline'
|
243
|
-
First item: parsed data; second item: raw body
|
244
|
-
</p>
|
239
|
+
<span class="summary_desc"><div class='inline'>
|
240
|
+
<p>First item: parsed data; second item: raw body.</p>
|
245
241
|
</div></span>
|
246
242
|
|
247
243
|
</li>
|
@@ -264,9 +260,8 @@ First item: parsed data; second item: raw body.
|
|
264
260
|
|
265
261
|
|
266
262
|
|
267
|
-
<span class="summary_desc"><div class='inline'
|
268
|
-
First item: parsed data; second item: raw body
|
269
|
-
</p>
|
263
|
+
<span class="summary_desc"><div class='inline'>
|
264
|
+
<p>First item: parsed data; second item: raw body.</p>
|
270
265
|
</div></span>
|
271
266
|
|
272
267
|
</li>
|
@@ -304,10 +299,9 @@ First item: parsed data; second item: raw body.
|
|
304
299
|
<td>
|
305
300
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 4</span>
|
306
301
|
|
307
|
-
<span class='
|
308
|
-
<span class='
|
309
|
-
<span class='
|
310
|
-
</pre>
|
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'>'</span><span class='tstring_content'>resources</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>architectures</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
304
|
+
<span class='kw'>end</span></pre>
|
311
305
|
</td>
|
312
306
|
</tr>
|
313
307
|
</table>
|
@@ -330,9 +324,8 @@ First item: parsed data; second item: raw body.
|
|
330
324
|
|
331
325
|
</h3><div class="docstring">
|
332
326
|
<div class="discussion">
|
333
|
-
|
334
|
-
First item: parsed data; second item: raw body
|
335
|
-
</p>
|
327
|
+
|
328
|
+
<p>First item: parsed data; second item: raw body</p>
|
336
329
|
|
337
330
|
|
338
331
|
</div>
|
@@ -353,9 +346,8 @@ First item: parsed data; second item: raw body
|
|
353
346
|
|
354
347
|
|
355
348
|
—
|
356
|
-
<div class='inline'
|
357
|
-
a hash of params to be passed to the service
|
358
|
-
</p>
|
349
|
+
<div class='inline'>
|
350
|
+
<p>a hash of params to be passed to the service</p>
|
359
351
|
</div>
|
360
352
|
|
361
353
|
</li>
|
@@ -372,9 +364,8 @@ a hash of params to be passed to the service
|
|
372
364
|
|
373
365
|
|
374
366
|
—
|
375
|
-
<div class='inline'
|
376
|
-
additional http headers
|
377
|
-
</p>
|
367
|
+
<div class='inline'>
|
368
|
+
<p>additional http headers</p>
|
378
369
|
</div>
|
379
370
|
|
380
371
|
</li>
|
@@ -394,17 +385,13 @@ additional http headers
|
|
394
385
|
|
395
386
|
</span>
|
396
387
|
|
397
|
-
— <div class='inline'
|
398
|
-
allowed keys are
|
399
|
-
|
400
|
-
<
|
401
|
-
|
402
|
-
|
403
|
-
</li>
|
404
|
-
<li>name [String]
|
405
|
-
|
406
|
-
</li>
|
407
|
-
</ul>
|
388
|
+
— <div class='inline'>
|
389
|
+
<p>allowed keys are:</p>
|
390
|
+
<ul><li>
|
391
|
+
<p>operatingsystem_ids [String] Operatingsystem id&#8217;s</p>
|
392
|
+
</li><li>
|
393
|
+
<p>name [String]</p>
|
394
|
+
</li></ul>
|
408
395
|
</div>
|
409
396
|
|
410
397
|
</li>
|
@@ -425,9 +412,8 @@ allowed keys are:
|
|
425
412
|
|
426
413
|
|
427
414
|
—
|
428
|
-
<div class='inline'
|
429
|
-
First item: parsed data; second item: raw body
|
430
|
-
</p>
|
415
|
+
<div class='inline'>
|
416
|
+
<p>First item: parsed data; second item: raw body</p>
|
431
417
|
</div>
|
432
418
|
|
433
419
|
</li>
|
@@ -447,10 +433,9 @@ First item: parsed data; second item: raw body
|
|
447
433
|
<td>
|
448
434
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 37</span>
|
449
435
|
|
450
|
-
<span class='
|
451
|
-
<span class='
|
452
|
-
<span class='
|
453
|
-
</pre>
|
436
|
+
<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>
|
437
|
+
<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>
|
438
|
+
<span class='kw'>end</span></pre>
|
454
439
|
</td>
|
455
440
|
</tr>
|
456
441
|
</table>
|
@@ -467,9 +452,8 @@ First item: parsed data; second item: raw body
|
|
467
452
|
|
468
453
|
</h3><div class="docstring">
|
469
454
|
<div class="discussion">
|
470
|
-
|
471
|
-
First item: parsed data; second item: raw body
|
472
|
-
</p>
|
455
|
+
|
456
|
+
<p>First item: parsed data; second item: raw body</p>
|
473
457
|
|
474
458
|
|
475
459
|
</div>
|
@@ -490,9 +474,8 @@ First item: parsed data; second item: raw body
|
|
490
474
|
|
491
475
|
|
492
476
|
—
|
493
|
-
<div class='inline'
|
494
|
-
a hash of params to be passed to the service
|
495
|
-
</p>
|
477
|
+
<div class='inline'>
|
478
|
+
<p>a hash of params to be passed to the service</p>
|
496
479
|
</div>
|
497
480
|
|
498
481
|
</li>
|
@@ -509,9 +492,8 @@ a hash of params to be passed to the service
|
|
509
492
|
|
510
493
|
|
511
494
|
—
|
512
|
-
<div class='inline'
|
513
|
-
additional http headers
|
514
|
-
</p>
|
495
|
+
<div class='inline'>
|
496
|
+
<p>additional http headers</p>
|
515
497
|
</div>
|
516
498
|
|
517
499
|
</li>
|
@@ -549,9 +531,8 @@ additional http headers
|
|
549
531
|
|
550
532
|
|
551
533
|
—
|
552
|
-
<div class='inline'
|
553
|
-
First item: parsed data; second item: raw body
|
554
|
-
</p>
|
534
|
+
<div class='inline'>
|
535
|
+
<p>First item: parsed data; second item: raw body</p>
|
555
536
|
</div>
|
556
537
|
|
557
538
|
</li>
|
@@ -571,10 +552,9 @@ First item: parsed data; second item: raw body
|
|
571
552
|
<td>
|
572
553
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 59</span>
|
573
554
|
|
574
|
-
<span class='
|
575
|
-
<span class='
|
576
|
-
<span class='
|
577
|
-
</pre>
|
555
|
+
<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>
|
556
|
+
<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>
|
557
|
+
<span class='kw'>end</span></pre>
|
578
558
|
</td>
|
579
559
|
</tr>
|
580
560
|
</table>
|
@@ -591,9 +571,8 @@ First item: parsed data; second item: raw body
|
|
591
571
|
|
592
572
|
</h3><div class="docstring">
|
593
573
|
<div class="discussion">
|
594
|
-
|
595
|
-
First item: parsed data; second item: raw body
|
596
|
-
</p>
|
574
|
+
|
575
|
+
<p>First item: parsed data; second item: raw body</p>
|
597
576
|
|
598
577
|
|
599
578
|
</div>
|
@@ -614,9 +593,8 @@ First item: parsed data; second item: raw body
|
|
614
593
|
|
615
594
|
|
616
595
|
—
|
617
|
-
<div class='inline'
|
618
|
-
a hash of params to be passed to the service
|
619
|
-
</p>
|
596
|
+
<div class='inline'>
|
597
|
+
<p>a hash of params to be passed to the service</p>
|
620
598
|
</div>
|
621
599
|
|
622
600
|
</li>
|
@@ -633,9 +611,8 @@ a hash of params to be passed to the service
|
|
633
611
|
|
634
612
|
|
635
613
|
—
|
636
|
-
<div class='inline'
|
637
|
-
additional http headers
|
638
|
-
</p>
|
614
|
+
<div class='inline'>
|
615
|
+
<p>additional http headers</p>
|
639
616
|
</div>
|
640
617
|
|
641
618
|
</li>
|
@@ -655,9 +632,8 @@ additional http headers
|
|
655
632
|
|
656
633
|
</span>
|
657
634
|
|
658
|
-
— <div class='inline'
|
659
|
-
Sort results
|
660
|
-
</p>
|
635
|
+
— <div class='inline'>
|
636
|
+
<p>Sort results</p>
|
661
637
|
</div>
|
662
638
|
|
663
639
|
</li>
|
@@ -669,9 +645,8 @@ Sort results
|
|
669
645
|
|
670
646
|
</span>
|
671
647
|
|
672
|
-
— <div class='inline'
|
673
|
-
Paginate results
|
674
|
-
</p>
|
648
|
+
— <div class='inline'>
|
649
|
+
<p>Paginate results</p>
|
675
650
|
</div>
|
676
651
|
|
677
652
|
</li>
|
@@ -683,9 +658,8 @@ Paginate results
|
|
683
658
|
|
684
659
|
</span>
|
685
660
|
|
686
|
-
— <div class='inline'
|
687
|
-
Number of entries per request
|
688
|
-
</p>
|
661
|
+
— <div class='inline'>
|
662
|
+
<p>Number of entries per request</p>
|
689
663
|
</div>
|
690
664
|
|
691
665
|
</li>
|
@@ -697,9 +671,8 @@ Number of entries per request
|
|
697
671
|
|
698
672
|
</span>
|
699
673
|
|
700
|
-
— <div class='inline'
|
701
|
-
Filter results
|
702
|
-
</p>
|
674
|
+
— <div class='inline'>
|
675
|
+
<p>Filter results</p>
|
703
676
|
</div>
|
704
677
|
|
705
678
|
</li>
|
@@ -720,9 +693,8 @@ Filter results
|
|
720
693
|
|
721
694
|
|
722
695
|
—
|
723
|
-
<div class='inline'
|
724
|
-
First item: parsed data; second item: raw body
|
725
|
-
</p>
|
696
|
+
<div class='inline'>
|
697
|
+
<p>First item: parsed data; second item: raw body</p>
|
726
698
|
</div>
|
727
699
|
|
728
700
|
</li>
|
@@ -742,10 +714,9 @@ First item: parsed data; second item: raw body
|
|
742
714
|
<td>
|
743
715
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 16</span>
|
744
716
|
|
745
|
-
<span class='
|
746
|
-
<span class='
|
747
|
-
<span class='
|
748
|
-
</pre>
|
717
|
+
<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>
|
718
|
+
<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>
|
719
|
+
<span class='kw'>end</span></pre>
|
749
720
|
</td>
|
750
721
|
</tr>
|
751
722
|
</table>
|
@@ -762,9 +733,8 @@ First item: parsed data; second item: raw body
|
|
762
733
|
|
763
734
|
</h3><div class="docstring">
|
764
735
|
<div class="discussion">
|
765
|
-
|
766
|
-
First item: parsed data; second item: raw body
|
767
|
-
</p>
|
736
|
+
|
737
|
+
<p>First item: parsed data; second item: raw body</p>
|
768
738
|
|
769
739
|
|
770
740
|
</div>
|
@@ -785,9 +755,8 @@ First item: parsed data; second item: raw body
|
|
785
755
|
|
786
756
|
|
787
757
|
—
|
788
|
-
<div class='inline'
|
789
|
-
a hash of params to be passed to the service
|
790
|
-
</p>
|
758
|
+
<div class='inline'>
|
759
|
+
<p>a hash of params to be passed to the service</p>
|
791
760
|
</div>
|
792
761
|
|
793
762
|
</li>
|
@@ -804,9 +773,8 @@ a hash of params to be passed to the service
|
|
804
773
|
|
805
774
|
|
806
775
|
—
|
807
|
-
<div class='inline'
|
808
|
-
additional http headers
|
809
|
-
</p>
|
776
|
+
<div class='inline'>
|
777
|
+
<p>additional http headers</p>
|
810
778
|
</div>
|
811
779
|
|
812
780
|
</li>
|
@@ -844,9 +812,8 @@ additional http headers
|
|
844
812
|
|
845
813
|
|
846
814
|
—
|
847
|
-
<div class='inline'
|
848
|
-
First item: parsed data; second item: raw body
|
849
|
-
</p>
|
815
|
+
<div class='inline'>
|
816
|
+
<p>First item: parsed data; second item: raw body</p>
|
850
817
|
</div>
|
851
818
|
|
852
819
|
</li>
|
@@ -866,10 +833,9 @@ First item: parsed data; second item: raw body
|
|
866
833
|
<td>
|
867
834
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 25</span>
|
868
835
|
|
869
|
-
<span class='
|
870
|
-
<span class='
|
871
|
-
<span class='
|
872
|
-
</pre>
|
836
|
+
<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>
|
837
|
+
<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>
|
838
|
+
<span class='kw'>end</span></pre>
|
873
839
|
</td>
|
874
840
|
</tr>
|
875
841
|
</table>
|
@@ -886,9 +852,8 @@ First item: parsed data; second item: raw body
|
|
886
852
|
|
887
853
|
</h3><div class="docstring">
|
888
854
|
<div class="discussion">
|
889
|
-
|
890
|
-
First item: parsed data; second item: raw body
|
891
|
-
</p>
|
855
|
+
|
856
|
+
<p>First item: parsed data; second item: raw body</p>
|
892
857
|
|
893
858
|
|
894
859
|
</div>
|
@@ -909,9 +874,8 @@ First item: parsed data; second item: raw body
|
|
909
874
|
|
910
875
|
|
911
876
|
—
|
912
|
-
<div class='inline'
|
913
|
-
a hash of params to be passed to the service
|
914
|
-
</p>
|
877
|
+
<div class='inline'>
|
878
|
+
<p>a hash of params to be passed to the service</p>
|
915
879
|
</div>
|
916
880
|
|
917
881
|
</li>
|
@@ -928,9 +892,8 @@ a hash of params to be passed to the service
|
|
928
892
|
|
929
893
|
|
930
894
|
—
|
931
|
-
<div class='inline'
|
932
|
-
additional http headers
|
933
|
-
</p>
|
895
|
+
<div class='inline'>
|
896
|
+
<p>additional http headers</p>
|
934
897
|
</div>
|
935
898
|
|
936
899
|
</li>
|
@@ -959,17 +922,13 @@ additional http headers
|
|
959
922
|
|
960
923
|
</span>
|
961
924
|
|
962
|
-
— <div class='inline'
|
963
|
-
allowed keys are
|
964
|
-
|
965
|
-
<
|
966
|
-
|
967
|
-
|
968
|
-
</li>
|
969
|
-
<li>name [String]
|
970
|
-
|
971
|
-
</li>
|
972
|
-
</ul>
|
925
|
+
— <div class='inline'>
|
926
|
+
<p>allowed keys are:</p>
|
927
|
+
<ul><li>
|
928
|
+
<p>operatingsystem_ids [String] Operatingsystem id&#8217;s</p>
|
929
|
+
</li><li>
|
930
|
+
<p>name [String]</p>
|
931
|
+
</li></ul>
|
973
932
|
</div>
|
974
933
|
|
975
934
|
</li>
|
@@ -990,9 +949,8 @@ allowed keys are:
|
|
990
949
|
|
991
950
|
|
992
951
|
—
|
993
|
-
<div class='inline'
|
994
|
-
First item: parsed data; second item: raw body
|
995
|
-
</p>
|
952
|
+
<div class='inline'>
|
953
|
+
<p>First item: parsed data; second item: raw body</p>
|
996
954
|
</div>
|
997
955
|
|
998
956
|
</li>
|
@@ -1012,10 +970,9 @@ First item: parsed data; second item: raw body
|
|
1012
970
|
<td>
|
1013
971
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/architecture.rb', line 50</span>
|
1014
972
|
|
1015
|
-
<span class='
|
1016
|
-
<span class='
|
1017
|
-
<span class='
|
1018
|
-
</pre>
|
973
|
+
<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>
|
974
|
+
<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>
|
975
|
+
<span class='kw'>end</span></pre>
|
1019
976
|
</td>
|
1020
977
|
</tr>
|
1021
978
|
</table>
|
@@ -1026,9 +983,9 @@ First item: parsed data; second item: raw body
|
|
1026
983
|
</div>
|
1027
984
|
|
1028
985
|
<div id="footer">
|
1029
|
-
Generated on
|
986
|
+
Generated on Thu Jun 20 12:05:23 2013 by
|
1030
987
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1031
|
-
0.8.
|
988
|
+
0.8.3 (ruby-1.9.3).
|
1032
989
|
</div>
|
1033
990
|
|
1034
991
|
</body>
|