foreman_api 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +4 -0
- data/Gemfile +5 -0
- data/README.rdoc +23 -4
- data/doc/ForemanApi/Resources/Architecture.html +902 -0
- data/doc/ForemanApi/Resources/Audit.html +500 -0
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +916 -0
- data/doc/ForemanApi/Resources/Bookmark.html +884 -0
- data/doc/ForemanApi/Resources/CommonParameter.html +902 -0
- data/doc/ForemanApi/Resources/ComputeResource.html +940 -0
- data/doc/ForemanApi/Resources/ConfigTemplate.html +1160 -0
- data/doc/ForemanApi/Resources/Dashboard.html +336 -0
- data/doc/ForemanApi/Resources/Domain.html +914 -0
- data/doc/ForemanApi/Resources/Environment.html +898 -0
- data/doc/ForemanApi/Resources/FactValue.html +375 -0
- data/doc/ForemanApi/Resources/Home.html +417 -0
- data/doc/ForemanApi/Resources/Host.html +1091 -0
- data/doc/ForemanApi/Resources/Hostgroup.html +934 -0
- data/doc/ForemanApi/Resources/Image.html +963 -0
- data/doc/ForemanApi/Resources/LookupKey.html +918 -0
- data/doc/ForemanApi/Resources/Medium.html +920 -0
- data/doc/ForemanApi/Resources/Model.html +910 -0
- data/doc/ForemanApi/Resources/OperatingSystem.html +1057 -0
- data/doc/ForemanApi/Resources/Ptable.html +906 -0
- data/doc/ForemanApi/Resources/Puppetclass.html +898 -0
- data/doc/ForemanApi/Resources/Report.html +625 -0
- data/doc/ForemanApi/Resources/Role.html +872 -0
- data/doc/ForemanApi/Resources/Setting.html +641 -0
- data/doc/ForemanApi/Resources/SmartProxy.html +889 -0
- data/doc/ForemanApi/Resources/Subnet.html +954 -0
- data/doc/ForemanApi/Resources/TemplateKind.html +349 -0
- data/doc/ForemanApi/Resources/User.html +920 -0
- data/doc/ForemanApi/Resources/Usergroup.html +872 -0
- data/doc/ForemanApi/Resources.html +117 -0
- data/doc/ForemanApi.html +117 -0
- data/doc/_index.html +449 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.MIT-LICENSE.html +93 -0
- data/doc/file.README.html +129 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +129 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1300 -0
- data/doc/top-level-namespace.html +112 -0
- data/foreman_api.gemspec +5 -2
- data/lib/foreman_api/base.rb +129 -0
- data/lib/foreman_api/resources/architecture.rb +17 -7
- data/lib/foreman_api/resources/audit.rb +7 -4
- data/lib/foreman_api/resources/auth_source_ldap.rb +35 -7
- data/lib/foreman_api/resources/bookmark.rb +19 -7
- data/lib/foreman_api/resources/common_parameter.rb +17 -7
- data/lib/foreman_api/resources/compute_resource.rb +33 -7
- data/lib/foreman_api/resources/config_template.rb +28 -9
- data/lib/foreman_api/resources/dashboard.rb +3 -3
- data/lib/foreman_api/resources/domain.rb +21 -7
- data/lib/foreman_api/resources/environment.rb +15 -7
- data/lib/foreman_api/resources/fact_value.rb +6 -3
- data/lib/foreman_api/resources/home.rb +2 -4
- data/lib/foreman_api/resources/host.rb +50 -8
- data/lib/foreman_api/resources/hostgroup.rb +33 -7
- data/lib/foreman_api/resources/image.rb +30 -7
- data/lib/foreman_api/resources/lookup_key.rb +25 -7
- data/lib/foreman_api/resources/medium.rb +19 -7
- data/lib/foreman_api/resources/model.rb +21 -7
- data/lib/foreman_api/resources/operating_system.rb +26 -8
- data/lib/foreman_api/resources/ptable.rb +19 -7
- data/lib/foreman_api/resources/puppetclass.rb +15 -7
- data/lib/foreman_api/resources/report.rb +8 -5
- data/lib/foreman_api/resources/role.rb +13 -7
- data/lib/foreman_api/resources/setting.rb +11 -5
- data/lib/foreman_api/resources/smart_proxy.rb +16 -7
- data/lib/foreman_api/resources/subnet.rb +39 -7
- data/lib/foreman_api/resources/template_kind.rb +4 -3
- data/lib/foreman_api/resources/user.rb +26 -7
- data/lib/foreman_api/resources/usergroup.rb +13 -7
- data/lib/foreman_api/rest_client_oauth.rb +19 -0
- data/lib/foreman_api/version.rb +1 -1
- data/lib/foreman_api.rb +6 -10
- metadata +51 -18
@@ -0,0 +1,349 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: ForemanApi::Resources::TemplateKind
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (T)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../ForemanApi.html" title="ForemanApi (module)">ForemanApi</a></span></span> » <span class='title'><span class='object_link'><a href="../Resources.html" title="ForemanApi::Resources (module)">Resources</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">TemplateKind</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: ForemanApi::Resources::TemplateKind
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Base</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Base</li>
|
82
|
+
|
83
|
+
<li class="next">ForemanApi::Resources::TemplateKind</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/foreman_api/resources/template_kind.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Class Method Summary
|
114
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#doc-class_method" title="doc (class method)">+ (Object) <strong>doc</strong> </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
</ul>
|
142
|
+
|
143
|
+
<h2>
|
144
|
+
Instance Method Summary
|
145
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
146
|
+
</h2>
|
147
|
+
|
148
|
+
<ul class="summary">
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong>(params = { }, headers = { }) </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
</ul>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<div id="class_method_details" class="method_details_list">
|
179
|
+
<h2>Class Method Details</h2>
|
180
|
+
|
181
|
+
|
182
|
+
<div class="method_details first">
|
183
|
+
<h3 class="signature first" id="doc-class_method">
|
184
|
+
|
185
|
+
+ (<tt>Object</tt>) <strong>doc</strong>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
</h3><table class="source_code">
|
192
|
+
<tr>
|
193
|
+
<td>
|
194
|
+
<pre class="lines">
|
195
|
+
|
196
|
+
|
197
|
+
4
|
198
|
+
5
|
199
|
+
6</pre>
|
200
|
+
</td>
|
201
|
+
<td>
|
202
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/template_kind.rb', line 4</span>
|
203
|
+
|
204
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
|
205
|
+
<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'>template_kinds</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
206
|
+
<span class='kw'>end</span></pre>
|
207
|
+
</td>
|
208
|
+
</tr>
|
209
|
+
</table>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
<div id="instance_method_details" class="method_details_list">
|
215
|
+
<h2>Instance Method Details</h2>
|
216
|
+
|
217
|
+
|
218
|
+
<div class="method_details first">
|
219
|
+
<h3 class="signature first" id="index-instance_method">
|
220
|
+
|
221
|
+
- (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</h3><div class="docstring">
|
228
|
+
<div class="discussion">
|
229
|
+
|
230
|
+
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
<div class="tags">
|
234
|
+
<p class="tag_title">Parameters:</p>
|
235
|
+
<ul class="param">
|
236
|
+
|
237
|
+
<li>
|
238
|
+
|
239
|
+
<span class='name'>params</span>
|
240
|
+
|
241
|
+
|
242
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
243
|
+
|
244
|
+
|
245
|
+
<em class="default">(defaults to: <tt>{ }</tt>)</em>
|
246
|
+
|
247
|
+
|
248
|
+
—
|
249
|
+
<div class='inline'>
|
250
|
+
<p>a hash of params to be passed to the service</p>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
<li>
|
256
|
+
|
257
|
+
<span class='name'>headers</span>
|
258
|
+
|
259
|
+
|
260
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
261
|
+
|
262
|
+
|
263
|
+
<em class="default">(defaults to: <tt>{ }</tt>)</em>
|
264
|
+
|
265
|
+
|
266
|
+
—
|
267
|
+
<div class='inline'>
|
268
|
+
<p>additional http headers</p>
|
269
|
+
</div>
|
270
|
+
|
271
|
+
</li>
|
272
|
+
|
273
|
+
</ul>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
279
|
+
<ul class="option">
|
280
|
+
|
281
|
+
<li>
|
282
|
+
<span class="name">page</span>
|
283
|
+
<span class="type">(<tt>String</tt>)</span>
|
284
|
+
<span class="default">
|
285
|
+
|
286
|
+
</span>
|
287
|
+
|
288
|
+
— <div class='inline'>
|
289
|
+
<p>Paginate results</p>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
</li>
|
293
|
+
|
294
|
+
<li>
|
295
|
+
<span class="name">per_page</span>
|
296
|
+
<span class="type">(<tt>String</tt>)</span>
|
297
|
+
<span class="default">
|
298
|
+
|
299
|
+
</span>
|
300
|
+
|
301
|
+
— <div class='inline'>
|
302
|
+
<p>Number of entries per request</p>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
</li>
|
306
|
+
|
307
|
+
</ul>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
</div><table class="source_code">
|
314
|
+
<tr>
|
315
|
+
<td>
|
316
|
+
<pre class="lines">
|
317
|
+
|
318
|
+
|
319
|
+
13
|
320
|
+
14
|
321
|
+
15
|
322
|
+
16
|
323
|
+
17</pre>
|
324
|
+
</td>
|
325
|
+
<td>
|
326
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/template_kind.rb', line 13</span>
|
327
|
+
|
328
|
+
<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>
|
329
|
+
<span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=></span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=></span> <span class='id identifier rubyid___method__'>__method__</span>
|
330
|
+
<span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/template_kinds</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
|
331
|
+
<span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</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>
|
332
|
+
<span class='kw'>end</span></pre>
|
333
|
+
</td>
|
334
|
+
</tr>
|
335
|
+
</table>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
<div id="footer">
|
343
|
+
Generated on Mon Jan 21 15:44:36 2013 by
|
344
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
345
|
+
0.8.3 (ruby-1.9.3).
|
346
|
+
</div>
|
347
|
+
|
348
|
+
</body>
|
349
|
+
</html>
|