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::SmartProxy
|
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="#create-instance_method" title="#create (instance method)">- (
|
153
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</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="#destroy-instance_method" title="#destroy (instance method)">- (
|
178
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</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="#index-instance_method" title="#index (instance method)">- (
|
203
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</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="#show-instance_method" title="#show (instance method)">- (
|
228
|
+
<a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</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="#update-instance_method" title="#update (instance method)">- (
|
253
|
+
<a href="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</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
|
|
@@ -289,9 +304,10 @@
|
|
289
304
|
<td>
|
290
305
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 4</span>
|
291
306
|
|
292
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='
|
293
|
-
<span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='
|
294
|
-
<span class='kw'>end</span
|
307
|
+
<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>
|
308
|
+
<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'>"smart_proxies"</span><span class='rbrack token'>]</span>
|
309
|
+
<span class='rubyid_end end kw'>end</span>
|
310
|
+
</pre>
|
295
311
|
</td>
|
296
312
|
</tr>
|
297
313
|
</table>
|
@@ -306,7 +322,7 @@
|
|
306
322
|
<div class="method_details first">
|
307
323
|
<h3 class="signature first" id="create-instance_method">
|
308
324
|
|
309
|
-
- (<tt>
|
325
|
+
- (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
|
310
326
|
|
311
327
|
|
312
328
|
|
@@ -314,7 +330,10 @@
|
|
314
330
|
|
315
331
|
</h3><div class="docstring">
|
316
332
|
<div class="discussion">
|
317
|
-
|
333
|
+
<p>
|
334
|
+
First item: parsed data; second item: raw body
|
335
|
+
</p>
|
336
|
+
|
318
337
|
|
319
338
|
</div>
|
320
339
|
</div>
|
@@ -330,12 +349,13 @@
|
|
330
349
|
<span class='type'>(<tt>Hash</tt>)</span>
|
331
350
|
|
332
351
|
|
333
|
-
<em class="default">(defaults to: <tt>{
|
352
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
334
353
|
|
335
354
|
|
336
355
|
—
|
337
|
-
<div class='inline'>
|
338
|
-
|
356
|
+
<div class='inline'><p>
|
357
|
+
a hash of params to be passed to the service
|
358
|
+
</p>
|
339
359
|
</div>
|
340
360
|
|
341
361
|
</li>
|
@@ -348,12 +368,13 @@
|
|
348
368
|
<span class='type'>(<tt>Hash</tt>)</span>
|
349
369
|
|
350
370
|
|
351
|
-
<em class="default">(defaults to: <tt>{
|
371
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
352
372
|
|
353
373
|
|
354
374
|
—
|
355
|
-
<div class='inline'>
|
356
|
-
|
375
|
+
<div class='inline'><p>
|
376
|
+
additional http headers
|
377
|
+
</p>
|
357
378
|
</div>
|
358
379
|
|
359
380
|
</li>
|
@@ -373,13 +394,17 @@
|
|
373
394
|
|
374
395
|
</span>
|
375
396
|
|
376
|
-
— <div class='inline'>
|
377
|
-
|
378
|
-
|
379
|
-
<
|
380
|
-
|
381
|
-
|
382
|
-
</li
|
397
|
+
— <div class='inline'><p>
|
398
|
+
allowed keys are:
|
399
|
+
</p>
|
400
|
+
<ul>
|
401
|
+
<li>name [String]
|
402
|
+
|
403
|
+
</li>
|
404
|
+
<li>url [String]
|
405
|
+
|
406
|
+
</li>
|
407
|
+
</ul>
|
383
408
|
</div>
|
384
409
|
|
385
410
|
</li>
|
@@ -389,6 +414,25 @@
|
|
389
414
|
|
390
415
|
|
391
416
|
|
417
|
+
<p class="tag_title">Returns:</p>
|
418
|
+
<ul class="return">
|
419
|
+
|
420
|
+
<li>
|
421
|
+
|
422
|
+
|
423
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
—
|
428
|
+
<div class='inline'><p>
|
429
|
+
First item: parsed data; second item: raw body
|
430
|
+
</p>
|
431
|
+
</div>
|
432
|
+
|
433
|
+
</li>
|
434
|
+
|
435
|
+
</ul>
|
392
436
|
|
393
437
|
</div><table class="source_code">
|
394
438
|
<tr>
|
@@ -396,20 +440,17 @@
|
|
396
440
|
<pre class="lines">
|
397
441
|
|
398
442
|
|
443
|
+
36
|
399
444
|
37
|
400
|
-
38
|
401
|
-
39
|
402
|
-
40
|
403
|
-
41</pre>
|
445
|
+
38</pre>
|
404
446
|
</td>
|
405
447
|
<td>
|
406
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line
|
448
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 36</span>
|
407
449
|
|
408
|
-
<span class='kw'>def</span> <span class='
|
409
|
-
<span class='
|
410
|
-
|
411
|
-
|
412
|
-
<span class='kw'>end</span></pre>
|
450
|
+
<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>
|
451
|
+
<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>
|
452
|
+
<span class='rubyid_end end kw'>end</span>
|
453
|
+
</pre>
|
413
454
|
</td>
|
414
455
|
</tr>
|
415
456
|
</table>
|
@@ -418,7 +459,7 @@
|
|
418
459
|
<div class="method_details ">
|
419
460
|
<h3 class="signature " id="destroy-instance_method">
|
420
461
|
|
421
|
-
- (<tt>
|
462
|
+
- (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
|
422
463
|
|
423
464
|
|
424
465
|
|
@@ -426,7 +467,10 @@
|
|
426
467
|
|
427
468
|
</h3><div class="docstring">
|
428
469
|
<div class="discussion">
|
429
|
-
|
470
|
+
<p>
|
471
|
+
First item: parsed data; second item: raw body
|
472
|
+
</p>
|
473
|
+
|
430
474
|
|
431
475
|
</div>
|
432
476
|
</div>
|
@@ -442,12 +486,13 @@
|
|
442
486
|
<span class='type'>(<tt>Hash</tt>)</span>
|
443
487
|
|
444
488
|
|
445
|
-
<em class="default">(defaults to: <tt>{
|
489
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
446
490
|
|
447
491
|
|
448
492
|
—
|
449
|
-
<div class='inline'>
|
450
|
-
|
493
|
+
<div class='inline'><p>
|
494
|
+
a hash of params to be passed to the service
|
495
|
+
</p>
|
451
496
|
</div>
|
452
497
|
|
453
498
|
</li>
|
@@ -460,12 +505,13 @@
|
|
460
505
|
<span class='type'>(<tt>Hash</tt>)</span>
|
461
506
|
|
462
507
|
|
463
|
-
<em class="default">(defaults to: <tt>{
|
508
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
464
509
|
|
465
510
|
|
466
511
|
—
|
467
|
-
<div class='inline'>
|
468
|
-
|
512
|
+
<div class='inline'><p>
|
513
|
+
additional http headers
|
514
|
+
</p>
|
469
515
|
</div>
|
470
516
|
|
471
517
|
</li>
|
@@ -492,6 +538,25 @@
|
|
492
538
|
|
493
539
|
|
494
540
|
|
541
|
+
<p class="tag_title">Returns:</p>
|
542
|
+
<ul class="return">
|
543
|
+
|
544
|
+
<li>
|
545
|
+
|
546
|
+
|
547
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
—
|
552
|
+
<div class='inline'><p>
|
553
|
+
First item: parsed data; second item: raw body
|
554
|
+
</p>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
</li>
|
558
|
+
|
559
|
+
</ul>
|
495
560
|
|
496
561
|
</div><table class="source_code">
|
497
562
|
<tr>
|
@@ -499,20 +564,17 @@
|
|
499
564
|
<pre class="lines">
|
500
565
|
|
501
566
|
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
64
|
506
|
-
65</pre>
|
567
|
+
58
|
568
|
+
59
|
569
|
+
60</pre>
|
507
570
|
</td>
|
508
571
|
<td>
|
509
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line
|
572
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 58</span>
|
510
573
|
|
511
|
-
<span class='kw'>def</span> <span class='
|
512
|
-
<span class='
|
513
|
-
|
514
|
-
|
515
|
-
<span class='kw'>end</span></pre>
|
574
|
+
<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>
|
575
|
+
<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>
|
576
|
+
<span class='rubyid_end end kw'>end</span>
|
577
|
+
</pre>
|
516
578
|
</td>
|
517
579
|
</tr>
|
518
580
|
</table>
|
@@ -521,7 +583,7 @@
|
|
521
583
|
<div class="method_details ">
|
522
584
|
<h3 class="signature " id="index-instance_method">
|
523
585
|
|
524
|
-
- (<tt>
|
586
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
525
587
|
|
526
588
|
|
527
589
|
|
@@ -529,7 +591,10 @@
|
|
529
591
|
|
530
592
|
</h3><div class="docstring">
|
531
593
|
<div class="discussion">
|
532
|
-
|
594
|
+
<p>
|
595
|
+
First item: parsed data; second item: raw body
|
596
|
+
</p>
|
597
|
+
|
533
598
|
|
534
599
|
</div>
|
535
600
|
</div>
|
@@ -545,12 +610,13 @@
|
|
545
610
|
<span class='type'>(<tt>Hash</tt>)</span>
|
546
611
|
|
547
612
|
|
548
|
-
<em class="default">(defaults to: <tt>{
|
613
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
549
614
|
|
550
615
|
|
551
616
|
—
|
552
|
-
<div class='inline'>
|
553
|
-
|
617
|
+
<div class='inline'><p>
|
618
|
+
a hash of params to be passed to the service
|
619
|
+
</p>
|
554
620
|
</div>
|
555
621
|
|
556
622
|
</li>
|
@@ -563,12 +629,13 @@
|
|
563
629
|
<span class='type'>(<tt>Hash</tt>)</span>
|
564
630
|
|
565
631
|
|
566
|
-
<em class="default">(defaults to: <tt>{
|
632
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
567
633
|
|
568
634
|
|
569
635
|
—
|
570
|
-
<div class='inline'>
|
571
|
-
|
636
|
+
<div class='inline'><p>
|
637
|
+
additional http headers
|
638
|
+
</p>
|
572
639
|
</div>
|
573
640
|
|
574
641
|
</li>
|
@@ -588,8 +655,9 @@
|
|
588
655
|
|
589
656
|
</span>
|
590
657
|
|
591
|
-
— <div class='inline'>
|
592
|
-
|
658
|
+
— <div class='inline'><p>
|
659
|
+
Paginate results
|
660
|
+
</p>
|
593
661
|
</div>
|
594
662
|
|
595
663
|
</li>
|
@@ -601,8 +669,9 @@
|
|
601
669
|
|
602
670
|
</span>
|
603
671
|
|
604
|
-
— <div class='inline'>
|
605
|
-
|
672
|
+
— <div class='inline'><p>
|
673
|
+
Number of entries per request
|
674
|
+
</p>
|
606
675
|
</div>
|
607
676
|
|
608
677
|
</li>
|
@@ -614,8 +683,9 @@
|
|
614
683
|
|
615
684
|
</span>
|
616
685
|
|
617
|
-
— <div class='inline'>
|
618
|
-
|
686
|
+
— <div class='inline'><p>
|
687
|
+
Filter by type
|
688
|
+
</p>
|
619
689
|
</div>
|
620
690
|
|
621
691
|
</li>
|
@@ -625,6 +695,25 @@
|
|
625
695
|
|
626
696
|
|
627
697
|
|
698
|
+
<p class="tag_title">Returns:</p>
|
699
|
+
<ul class="return">
|
700
|
+
|
701
|
+
<li>
|
702
|
+
|
703
|
+
|
704
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
—
|
709
|
+
<div class='inline'><p>
|
710
|
+
First item: parsed data; second item: raw body
|
711
|
+
</p>
|
712
|
+
</div>
|
713
|
+
|
714
|
+
</li>
|
715
|
+
|
716
|
+
</ul>
|
628
717
|
|
629
718
|
</div><table class="source_code">
|
630
719
|
<tr>
|
@@ -632,20 +721,17 @@
|
|
632
721
|
<pre class="lines">
|
633
722
|
|
634
723
|
|
635
|
-
14
|
636
724
|
15
|
637
725
|
16
|
638
|
-
17
|
639
|
-
18</pre>
|
726
|
+
17</pre>
|
640
727
|
</td>
|
641
728
|
<td>
|
642
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line
|
729
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 15</span>
|
643
730
|
|
644
|
-
<span class='kw'>def</span> <span class='
|
645
|
-
<span class='
|
646
|
-
|
647
|
-
|
648
|
-
<span class='kw'>end</span></pre>
|
731
|
+
<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>
|
732
|
+
<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>
|
733
|
+
<span class='rubyid_end end kw'>end</span>
|
734
|
+
</pre>
|
649
735
|
</td>
|
650
736
|
</tr>
|
651
737
|
</table>
|
@@ -654,7 +740,7 @@
|
|
654
740
|
<div class="method_details ">
|
655
741
|
<h3 class="signature " id="show-instance_method">
|
656
742
|
|
657
|
-
- (<tt>
|
743
|
+
- (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
|
658
744
|
|
659
745
|
|
660
746
|
|
@@ -662,7 +748,10 @@
|
|
662
748
|
|
663
749
|
</h3><div class="docstring">
|
664
750
|
<div class="discussion">
|
665
|
-
|
751
|
+
<p>
|
752
|
+
First item: parsed data; second item: raw body
|
753
|
+
</p>
|
754
|
+
|
666
755
|
|
667
756
|
</div>
|
668
757
|
</div>
|
@@ -678,12 +767,13 @@
|
|
678
767
|
<span class='type'>(<tt>Hash</tt>)</span>
|
679
768
|
|
680
769
|
|
681
|
-
<em class="default">(defaults to: <tt>{
|
770
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
682
771
|
|
683
772
|
|
684
773
|
—
|
685
|
-
<div class='inline'>
|
686
|
-
|
774
|
+
<div class='inline'><p>
|
775
|
+
a hash of params to be passed to the service
|
776
|
+
</p>
|
687
777
|
</div>
|
688
778
|
|
689
779
|
</li>
|
@@ -696,12 +786,13 @@
|
|
696
786
|
<span class='type'>(<tt>Hash</tt>)</span>
|
697
787
|
|
698
788
|
|
699
|
-
<em class="default">(defaults to: <tt>{
|
789
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
700
790
|
|
701
791
|
|
702
792
|
—
|
703
|
-
<div class='inline'>
|
704
|
-
|
793
|
+
<div class='inline'><p>
|
794
|
+
additional http headers
|
795
|
+
</p>
|
705
796
|
</div>
|
706
797
|
|
707
798
|
</li>
|
@@ -728,6 +819,25 @@
|
|
728
819
|
|
729
820
|
|
730
821
|
|
822
|
+
<p class="tag_title">Returns:</p>
|
823
|
+
<ul class="return">
|
824
|
+
|
825
|
+
<li>
|
826
|
+
|
827
|
+
|
828
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
—
|
833
|
+
<div class='inline'><p>
|
834
|
+
First item: parsed data; second item: raw body
|
835
|
+
</p>
|
836
|
+
</div>
|
837
|
+
|
838
|
+
</li>
|
839
|
+
|
840
|
+
</ul>
|
731
841
|
|
732
842
|
</div><table class="source_code">
|
733
843
|
<tr>
|
@@ -737,18 +847,15 @@
|
|
737
847
|
|
738
848
|
24
|
739
849
|
25
|
740
|
-
26
|
741
|
-
27
|
742
|
-
28</pre>
|
850
|
+
26</pre>
|
743
851
|
</td>
|
744
852
|
<td>
|
745
853
|
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 24</span>
|
746
854
|
|
747
|
-
<span class='kw'>def</span> <span class='
|
748
|
-
<span class='
|
749
|
-
|
750
|
-
|
751
|
-
<span class='kw'>end</span></pre>
|
855
|
+
<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>
|
856
|
+
<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>
|
857
|
+
<span class='rubyid_end end kw'>end</span>
|
858
|
+
</pre>
|
752
859
|
</td>
|
753
860
|
</tr>
|
754
861
|
</table>
|
@@ -757,7 +864,7 @@
|
|
757
864
|
<div class="method_details ">
|
758
865
|
<h3 class="signature " id="update-instance_method">
|
759
866
|
|
760
|
-
- (<tt>
|
867
|
+
- (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
|
761
868
|
|
762
869
|
|
763
870
|
|
@@ -765,7 +872,10 @@
|
|
765
872
|
|
766
873
|
</h3><div class="docstring">
|
767
874
|
<div class="discussion">
|
768
|
-
|
875
|
+
<p>
|
876
|
+
First item: parsed data; second item: raw body
|
877
|
+
</p>
|
878
|
+
|
769
879
|
|
770
880
|
</div>
|
771
881
|
</div>
|
@@ -781,12 +891,13 @@
|
|
781
891
|
<span class='type'>(<tt>Hash</tt>)</span>
|
782
892
|
|
783
893
|
|
784
|
-
<em class="default">(defaults to: <tt>{
|
894
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
785
895
|
|
786
896
|
|
787
897
|
—
|
788
|
-
<div class='inline'>
|
789
|
-
|
898
|
+
<div class='inline'><p>
|
899
|
+
a hash of params to be passed to the service
|
900
|
+
</p>
|
790
901
|
</div>
|
791
902
|
|
792
903
|
</li>
|
@@ -799,12 +910,13 @@
|
|
799
910
|
<span class='type'>(<tt>Hash</tt>)</span>
|
800
911
|
|
801
912
|
|
802
|
-
<em class="default">(defaults to: <tt>{
|
913
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
803
914
|
|
804
915
|
|
805
916
|
—
|
806
|
-
<div class='inline'>
|
807
|
-
|
917
|
+
<div class='inline'><p>
|
918
|
+
additional http headers
|
919
|
+
</p>
|
808
920
|
</div>
|
809
921
|
|
810
922
|
</li>
|
@@ -833,13 +945,17 @@
|
|
833
945
|
|
834
946
|
</span>
|
835
947
|
|
836
|
-
— <div class='inline'>
|
837
|
-
|
838
|
-
|
839
|
-
<
|
840
|
-
|
841
|
-
|
842
|
-
</li
|
948
|
+
— <div class='inline'><p>
|
949
|
+
allowed keys are:
|
950
|
+
</p>
|
951
|
+
<ul>
|
952
|
+
<li>name [String]
|
953
|
+
|
954
|
+
</li>
|
955
|
+
<li>url [String]
|
956
|
+
|
957
|
+
</li>
|
958
|
+
</ul>
|
843
959
|
</div>
|
844
960
|
|
845
961
|
</li>
|
@@ -849,6 +965,25 @@
|
|
849
965
|
|
850
966
|
|
851
967
|
|
968
|
+
<p class="tag_title">Returns:</p>
|
969
|
+
<ul class="return">
|
970
|
+
|
971
|
+
<li>
|
972
|
+
|
973
|
+
|
974
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
—
|
979
|
+
<div class='inline'><p>
|
980
|
+
First item: parsed data; second item: raw body
|
981
|
+
</p>
|
982
|
+
</div>
|
983
|
+
|
984
|
+
</li>
|
985
|
+
|
986
|
+
</ul>
|
852
987
|
|
853
988
|
</div><table class="source_code">
|
854
989
|
<tr>
|
@@ -856,20 +991,17 @@
|
|
856
991
|
<pre class="lines">
|
857
992
|
|
858
993
|
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
54
|
863
|
-
55</pre>
|
994
|
+
49
|
995
|
+
50
|
996
|
+
51</pre>
|
864
997
|
</td>
|
865
998
|
<td>
|
866
|
-
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line
|
999
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/smart_proxy.rb', line 49</span>
|
867
1000
|
|
868
|
-
<span class='kw'>def</span> <span class='
|
869
|
-
<span class='
|
870
|
-
|
871
|
-
|
872
|
-
<span class='kw'>end</span></pre>
|
1001
|
+
<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>
|
1002
|
+
<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>
|
1003
|
+
<span class='rubyid_end end kw'>end</span>
|
1004
|
+
</pre>
|
873
1005
|
</td>
|
874
1006
|
</tr>
|
875
1007
|
</table>
|
@@ -880,9 +1012,9 @@
|
|
880
1012
|
</div>
|
881
1013
|
|
882
1014
|
<div id="footer">
|
883
|
-
Generated on
|
1015
|
+
Generated on Tue Mar 19 09:50:26 2013 by
|
884
1016
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
885
|
-
0.8.
|
1017
|
+
0.8.5.2 (ruby-1.8.7).
|
886
1018
|
</div>
|
887
1019
|
|
888
1020
|
</body>
|