vipruby 0.1.7 → 0.1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +14 -4
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/{LICENSE.txt → LICENSE} +2 -2
- data/README.md +94 -12
- data/doc/Vipr.html +139 -29
- data/doc/ViprAutoTier.html +426 -0
- data/doc/ViprBase.html +1 -1
- data/doc/ViprBlockVirtualPool.html +859 -0
- data/doc/ViprFileVirtualPool.html +859 -0
- data/doc/ViprHost.html +1 -1
- data/doc/ViprServiceCatalog.html +800 -0
- data/doc/ViprStoragePool.html +664 -0
- data/doc/ViprStoragePort.html +664 -0
- data/doc/ViprStorageSystem.html +2588 -805
- data/doc/ViprStorageTier.html +323 -0
- data/doc/ViprTenant.html +529 -0
- data/doc/ViprVcenter.html +1 -1
- data/doc/ViprVirtualArray.html +1230 -0
- data/doc/ViprVirtualDataCenter.html +407 -0
- data/doc/Vipruby.html +2 -2
- data/doc/_index.html +51 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +71 -26
- data/doc/index.html +71 -26
- data/doc/method_list.html +438 -12
- data/doc/top-level-namespace.html +2 -2
- data/lib/doc/_index.html +88 -0
- data/lib/doc/class_list.html +58 -0
- data/lib/doc/css/common.css +1 -0
- data/lib/doc/css/full_list.css +57 -0
- data/lib/doc/css/style.css +339 -0
- data/lib/doc/file_list.html +57 -0
- data/lib/doc/frames.html +26 -0
- data/lib/doc/index.html +88 -0
- data/lib/doc/js/app.js +219 -0
- data/lib/doc/js/full_list.js +181 -0
- data/lib/doc/js/jquery.js +4 -0
- data/lib/doc/method_list.html +57 -0
- data/lib/doc/top-level-namespace.html +102 -0
- data/lib/vipruby.rb +1 -5
- data/lib/vipruby/objects/autotier.rb +30 -0
- data/lib/vipruby/objects/blockvirtualpool.rb +74 -0
- data/lib/vipruby/objects/filevirtualpool.rb +74 -0
- data/lib/vipruby/objects/servicecatalog.rb +81 -0
- data/lib/vipruby/objects/storagepool.rb +80 -0
- data/lib/vipruby/objects/storageport.rb +62 -0
- data/lib/vipruby/objects/storagesystem.rb +169 -0
- data/lib/vipruby/objects/storagetier.rb +21 -0
- data/lib/vipruby/objects/tenant.rb +39 -0
- data/lib/vipruby/objects/virtualarray.rb +100 -0
- data/lib/vipruby/objects/virtualdatacenter.rb +28 -0
- data/lib/vipruby/version.rb +1 -1
- data/lib/vipruby/vipr.rb +25 -5
- data/vipruby.gemspec +2 -2
- metadata +39 -6
data/doc/ViprHost.html
CHANGED
@@ -1943,7 +1943,7 @@ href="0">object</a> or <a href="'id'">object</a> notation</p>
|
|
1943
1943
|
</div>
|
1944
1944
|
|
1945
1945
|
<div id="footer">
|
1946
|
-
Generated on Mon
|
1946
|
+
Generated on Mon Jun 1 15:10:33 2015 by
|
1947
1947
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1948
1948
|
0.8.7.6 (ruby-2.1.2).
|
1949
1949
|
</div>
|
@@ -0,0 +1,800 @@
|
|
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
|
+
Module: ViprServiceCatalog
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" 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#!ViprServiceCatalog.html";
|
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 (V)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ViprServiceCatalog</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>Module: ViprServiceCatalog
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="Vipr.html" title="Vipr (class)">Vipr</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/vipruby/objects/servicecatalog.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p>The following Servce Catalog calls will get and execute service catalog
|
95
|
+
items</p>
|
96
|
+
|
97
|
+
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<div class="tags">
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<h2>
|
112
|
+
Instance Method Summary
|
113
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
114
|
+
</h2>
|
115
|
+
|
116
|
+
<ul class="summary">
|
117
|
+
|
118
|
+
<li class="public ">
|
119
|
+
<span class="summary_signature">
|
120
|
+
|
121
|
+
<a href="#get_all_sc_services-instance_method" title="#get_all_sc_services (instance method)">- (JSON) <strong>get_all_sc_services</strong>(auth = nil, cert = nil) </a>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="summary_desc"><div class='inline'>
|
136
|
+
<p>Get all services.</p>
|
137
|
+
</div></span>
|
138
|
+
|
139
|
+
</li>
|
140
|
+
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#get_sc_category_categories-instance_method" title="#get_sc_category_categories (instance method)">- (JSON) <strong>get_sc_category_categories</strong>(cat_id, auth = nil, cert = nil) </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<span class="summary_desc"><div class='inline'>
|
160
|
+
<p>Get all child categories of a category in ViPR.</p>
|
161
|
+
</div></span>
|
162
|
+
|
163
|
+
</li>
|
164
|
+
|
165
|
+
|
166
|
+
<li class="public ">
|
167
|
+
<span class="summary_signature">
|
168
|
+
|
169
|
+
<a href="#get_sc_category_categories_services-instance_method" title="#get_sc_category_categories_services (instance method)">- (JSON) <strong>get_sc_category_categories_services</strong>(cat_id, auth = nil, cert = nil) </a>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</span>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'>
|
184
|
+
<p>Get all child services of a category in ViPR.</p>
|
185
|
+
</div></span>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
|
190
|
+
<li class="public ">
|
191
|
+
<span class="summary_signature">
|
192
|
+
|
193
|
+
<a href="#get_sc_category_root-instance_method" title="#get_sc_category_root (instance method)">- (json) <strong>get_sc_category_root</strong>(auth = nil, cert = nil) </a>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<span class="summary_desc"><div class='inline'>
|
208
|
+
<p>Get root category.</p>
|
209
|
+
</div></span>
|
210
|
+
|
211
|
+
</li>
|
212
|
+
|
213
|
+
|
214
|
+
<li class="public ">
|
215
|
+
<span class="summary_signature">
|
216
|
+
|
217
|
+
<a href="#get_sc_service-instance_method" title="#get_sc_service (instance method)">- (JSON) <strong>get_sc_service</strong>(service_id, auth = nil, cert = nil) </a>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
</span>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<span class="summary_desc"><div class='inline'>
|
232
|
+
<p>Get Service Information.</p>
|
233
|
+
</div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#order_service-instance_method" title="#order_service (instance method)">- (Object) <strong>order_service</strong>(tenant_id, service_urn, *args) </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
256
|
+
|
257
|
+
</li>
|
258
|
+
|
259
|
+
|
260
|
+
<li class="private ">
|
261
|
+
<span class="summary_signature">
|
262
|
+
|
263
|
+
<a href="#post_order_service-instance_method" title="#post_order_service (instance method)">- (json) <strong>post_order_service</strong>(payload, auth = nil, cert = nil) </a>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</span>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
<span class="note title private">private</span>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<span class="summary_desc"><div class='inline'>
|
278
|
+
<p>POST A Service Catalog Order.</p>
|
279
|
+
</div></span>
|
280
|
+
|
281
|
+
</li>
|
282
|
+
|
283
|
+
|
284
|
+
</ul>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<div id="instance_method_details" class="method_details_list">
|
290
|
+
<h2>Instance Method Details</h2>
|
291
|
+
|
292
|
+
|
293
|
+
<div class="method_details first">
|
294
|
+
<h3 class="signature first" id="get_all_sc_services-instance_method">
|
295
|
+
|
296
|
+
- (<tt>JSON</tt>) <strong>get_all_sc_services</strong>(auth = nil, cert = nil)
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</h3><div class="docstring">
|
303
|
+
<div class="discussion">
|
304
|
+
|
305
|
+
<p>Get all services</p>
|
306
|
+
|
307
|
+
|
308
|
+
</div>
|
309
|
+
</div>
|
310
|
+
<div class="tags">
|
311
|
+
|
312
|
+
<p class="tag_title">Returns:</p>
|
313
|
+
<ul class="return">
|
314
|
+
|
315
|
+
<li>
|
316
|
+
|
317
|
+
|
318
|
+
<span class='type'>(<tt>JSON</tt>)</span>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
—
|
323
|
+
<div class='inline'>
|
324
|
+
<p>The JSON object of all services</p>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
</li>
|
328
|
+
|
329
|
+
</ul>
|
330
|
+
|
331
|
+
</div><table class="source_code">
|
332
|
+
<tr>
|
333
|
+
<td>
|
334
|
+
<pre class="lines">
|
335
|
+
|
336
|
+
|
337
|
+
33
|
338
|
+
34
|
339
|
+
35</pre>
|
340
|
+
</td>
|
341
|
+
<td>
|
342
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 33</span>
|
343
|
+
|
344
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_all_sc_services'>get_all_sc_services</span><span class='lparen'>(</span><span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
345
|
+
<span class='id identifier rubyid_rest_get'>rest_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_base_url'>base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/services/bulk</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
346
|
+
<span class='kw'>end</span></pre>
|
347
|
+
</td>
|
348
|
+
</tr>
|
349
|
+
</table>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div class="method_details ">
|
353
|
+
<h3 class="signature " id="get_sc_category_categories-instance_method">
|
354
|
+
|
355
|
+
- (<tt>JSON</tt>) <strong>get_sc_category_categories</strong>(cat_id, auth = nil, cert = nil)
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</h3><div class="docstring">
|
362
|
+
<div class="discussion">
|
363
|
+
|
364
|
+
<p>Get all child categories of a category in ViPR</p>
|
365
|
+
|
366
|
+
|
367
|
+
</div>
|
368
|
+
</div>
|
369
|
+
<div class="tags">
|
370
|
+
<p class="tag_title">Parameters:</p>
|
371
|
+
<ul class="param">
|
372
|
+
|
373
|
+
<li>
|
374
|
+
|
375
|
+
<span class='name'>cat_id</span>
|
376
|
+
|
377
|
+
|
378
|
+
<span class='type'>(<tt>urn:id</tt>)</span>
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
—
|
383
|
+
<div class='inline'>
|
384
|
+
<p>URN of a category. Required Param</p>
|
385
|
+
</div>
|
386
|
+
|
387
|
+
</li>
|
388
|
+
|
389
|
+
</ul>
|
390
|
+
|
391
|
+
<p class="tag_title">Returns:</p>
|
392
|
+
<ul class="return">
|
393
|
+
|
394
|
+
<li>
|
395
|
+
|
396
|
+
|
397
|
+
<span class='type'>(<tt>JSON</tt>)</span>
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
—
|
402
|
+
<div class='inline'>
|
403
|
+
<p>The JSON object of all children categories</p>
|
404
|
+
</div>
|
405
|
+
|
406
|
+
</li>
|
407
|
+
|
408
|
+
</ul>
|
409
|
+
|
410
|
+
</div><table class="source_code">
|
411
|
+
<tr>
|
412
|
+
<td>
|
413
|
+
<pre class="lines">
|
414
|
+
|
415
|
+
|
416
|
+
17
|
417
|
+
18
|
418
|
+
19</pre>
|
419
|
+
</td>
|
420
|
+
<td>
|
421
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 17</span>
|
422
|
+
|
423
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_sc_category_categories'>get_sc_category_categories</span><span class='lparen'>(</span><span class='id identifier rubyid_cat_id'>cat_id</span><span class='comma'>,</span><span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
424
|
+
<span class='id identifier rubyid_rest_get'>rest_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/categories/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cat_id'>cat_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/categories</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
425
|
+
<span class='kw'>end</span></pre>
|
426
|
+
</td>
|
427
|
+
</tr>
|
428
|
+
</table>
|
429
|
+
</div>
|
430
|
+
|
431
|
+
<div class="method_details ">
|
432
|
+
<h3 class="signature " id="get_sc_category_categories_services-instance_method">
|
433
|
+
|
434
|
+
- (<tt>JSON</tt>) <strong>get_sc_category_categories_services</strong>(cat_id, auth = nil, cert = nil)
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
</h3><div class="docstring">
|
441
|
+
<div class="discussion">
|
442
|
+
|
443
|
+
<p>Get all child services of a category in ViPR</p>
|
444
|
+
|
445
|
+
|
446
|
+
</div>
|
447
|
+
</div>
|
448
|
+
<div class="tags">
|
449
|
+
<p class="tag_title">Parameters:</p>
|
450
|
+
<ul class="param">
|
451
|
+
|
452
|
+
<li>
|
453
|
+
|
454
|
+
<span class='name'>cat_id</span>
|
455
|
+
|
456
|
+
|
457
|
+
<span class='type'>(<tt>urn:id</tt>)</span>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
—
|
462
|
+
<div class='inline'>
|
463
|
+
<p>URN of a category. Required Param</p>
|
464
|
+
</div>
|
465
|
+
|
466
|
+
</li>
|
467
|
+
|
468
|
+
</ul>
|
469
|
+
|
470
|
+
<p class="tag_title">Returns:</p>
|
471
|
+
<ul class="return">
|
472
|
+
|
473
|
+
<li>
|
474
|
+
|
475
|
+
|
476
|
+
<span class='type'>(<tt>JSON</tt>)</span>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
—
|
481
|
+
<div class='inline'>
|
482
|
+
<p>The JSON object of all children services</p>
|
483
|
+
</div>
|
484
|
+
|
485
|
+
</li>
|
486
|
+
|
487
|
+
</ul>
|
488
|
+
|
489
|
+
</div><table class="source_code">
|
490
|
+
<tr>
|
491
|
+
<td>
|
492
|
+
<pre class="lines">
|
493
|
+
|
494
|
+
|
495
|
+
26
|
496
|
+
27
|
497
|
+
28</pre>
|
498
|
+
</td>
|
499
|
+
<td>
|
500
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 26</span>
|
501
|
+
|
502
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_sc_category_categories_services'>get_sc_category_categories_services</span><span class='lparen'>(</span><span class='id identifier rubyid_cat_id'>cat_id</span><span class='comma'>,</span><span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
503
|
+
<span class='id identifier rubyid_rest_get'>rest_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_base_url'>base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/categories/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cat_id'>cat_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/services</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
504
|
+
<span class='kw'>end</span></pre>
|
505
|
+
</td>
|
506
|
+
</tr>
|
507
|
+
</table>
|
508
|
+
</div>
|
509
|
+
|
510
|
+
<div class="method_details ">
|
511
|
+
<h3 class="signature " id="get_sc_category_root-instance_method">
|
512
|
+
|
513
|
+
- (<tt>json</tt>) <strong>get_sc_category_root</strong>(auth = nil, cert = nil)
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
</h3><div class="docstring">
|
520
|
+
<div class="discussion">
|
521
|
+
|
522
|
+
<p>Get root category</p>
|
523
|
+
|
524
|
+
|
525
|
+
</div>
|
526
|
+
</div>
|
527
|
+
<div class="tags">
|
528
|
+
|
529
|
+
<p class="tag_title">Returns:</p>
|
530
|
+
<ul class="return">
|
531
|
+
|
532
|
+
<li>
|
533
|
+
|
534
|
+
|
535
|
+
<span class='type'>(<tt>json</tt>)</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
—
|
540
|
+
<div class='inline'>
|
541
|
+
<p>JSON object of all the root children categories</p>
|
542
|
+
</div>
|
543
|
+
|
544
|
+
</li>
|
545
|
+
|
546
|
+
</ul>
|
547
|
+
|
548
|
+
</div><table class="source_code">
|
549
|
+
<tr>
|
550
|
+
<td>
|
551
|
+
<pre class="lines">
|
552
|
+
|
553
|
+
|
554
|
+
8
|
555
|
+
9
|
556
|
+
10</pre>
|
557
|
+
</td>
|
558
|
+
<td>
|
559
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 8</span>
|
560
|
+
|
561
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_sc_category_root'>get_sc_category_root</span><span class='lparen'>(</span><span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
562
|
+
<span class='id identifier rubyid_rest_get'>rest_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/categories</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
563
|
+
<span class='kw'>end</span></pre>
|
564
|
+
</td>
|
565
|
+
</tr>
|
566
|
+
</table>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
<div class="method_details ">
|
570
|
+
<h3 class="signature " id="get_sc_service-instance_method">
|
571
|
+
|
572
|
+
- (<tt>JSON</tt>) <strong>get_sc_service</strong>(service_id, auth = nil, cert = nil)
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
</h3><div class="docstring">
|
579
|
+
<div class="discussion">
|
580
|
+
|
581
|
+
<p>Get Service Information</p>
|
582
|
+
|
583
|
+
|
584
|
+
</div>
|
585
|
+
</div>
|
586
|
+
<div class="tags">
|
587
|
+
<p class="tag_title">Parameters:</p>
|
588
|
+
<ul class="param">
|
589
|
+
|
590
|
+
<li>
|
591
|
+
|
592
|
+
<span class='name'>service_id</span>
|
593
|
+
|
594
|
+
|
595
|
+
<span class='type'>(<tt>urn:id</tt>)</span>
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
—
|
600
|
+
<div class='inline'>
|
601
|
+
<p>URN of a service. Required Param</p>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
</li>
|
605
|
+
|
606
|
+
</ul>
|
607
|
+
|
608
|
+
<p class="tag_title">Returns:</p>
|
609
|
+
<ul class="return">
|
610
|
+
|
611
|
+
<li>
|
612
|
+
|
613
|
+
|
614
|
+
<span class='type'>(<tt>JSON</tt>)</span>
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
—
|
619
|
+
<div class='inline'>
|
620
|
+
<p>The JSON object of all services</p>
|
621
|
+
</div>
|
622
|
+
|
623
|
+
</li>
|
624
|
+
|
625
|
+
</ul>
|
626
|
+
|
627
|
+
</div><table class="source_code">
|
628
|
+
<tr>
|
629
|
+
<td>
|
630
|
+
<pre class="lines">
|
631
|
+
|
632
|
+
|
633
|
+
42
|
634
|
+
43
|
635
|
+
44</pre>
|
636
|
+
</td>
|
637
|
+
<td>
|
638
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 42</span>
|
639
|
+
|
640
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_sc_service'>get_sc_service</span><span class='lparen'>(</span><span class='id identifier rubyid_service_id'>service_id</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
641
|
+
<span class='id identifier rubyid_rest_get'>rest_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_base_url'>base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/services/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_service_id'>service_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
642
|
+
<span class='kw'>end</span></pre>
|
643
|
+
</td>
|
644
|
+
</tr>
|
645
|
+
</table>
|
646
|
+
</div>
|
647
|
+
|
648
|
+
<div class="method_details ">
|
649
|
+
<h3 class="signature " id="order_service-instance_method">
|
650
|
+
|
651
|
+
- (<tt>Object</tt>) <strong>order_service</strong>(tenant_id, service_urn, *args)
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
</h3><div class="docstring">
|
658
|
+
<div class="discussion">
|
659
|
+
|
660
|
+
<div class="note notetag">
|
661
|
+
<strong>Note:</strong>
|
662
|
+
<div class='inline'>
|
663
|
+
<p>Please read the documentation to know what parameters are needed when
|
664
|
+
passing the JSON object. Every service will have it's own set of
|
665
|
+
parameters and they are unique to each service</p>
|
666
|
+
</div>
|
667
|
+
</div>
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
</div>
|
672
|
+
</div>
|
673
|
+
<div class="tags">
|
674
|
+
|
675
|
+
|
676
|
+
</div><table class="source_code">
|
677
|
+
<tr>
|
678
|
+
<td>
|
679
|
+
<pre class="lines">
|
680
|
+
|
681
|
+
|
682
|
+
62
|
683
|
+
63
|
684
|
+
64
|
685
|
+
65
|
686
|
+
66
|
687
|
+
67
|
688
|
+
68
|
689
|
+
69
|
690
|
+
70</pre>
|
691
|
+
</td>
|
692
|
+
<td>
|
693
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 62</span>
|
694
|
+
|
695
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_order_service'>order_service</span><span class='lparen'>(</span><span class='id identifier rubyid_tenant_id'>tenant_id</span><span class='comma'>,</span> <span class='id identifier rubyid_service_urn'>service_urn</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
696
|
+
<span class='id identifier rubyid_payload'>payload</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
697
|
+
<span class='label'>tenantId:</span> <span class='id identifier rubyid_tenant_id'>tenant_id</span><span class='comma'>,</span>
|
698
|
+
<span class='label'>parameters:</span> <span class='id identifier rubyid_args'>args</span><span class='comma'>,</span>
|
699
|
+
<span class='label'>catalog_service:</span> <span class='id identifier rubyid_service_urn'>service_urn</span>
|
700
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
|
701
|
+
|
702
|
+
<span class='id identifier rubyid_post_order_service'>post_order_service</span><span class='lparen'>(</span><span class='id identifier rubyid_payload'>payload</span><span class='rparen'>)</span>
|
703
|
+
<span class='kw'>end</span></pre>
|
704
|
+
</td>
|
705
|
+
</tr>
|
706
|
+
</table>
|
707
|
+
</div>
|
708
|
+
|
709
|
+
<div class="method_details ">
|
710
|
+
<h3 class="signature " id="post_order_service-instance_method">
|
711
|
+
|
712
|
+
- (<tt>json</tt>) <strong>post_order_service</strong>(payload, auth = nil, cert = nil) <span class="extras">(private)</span>
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
</h3><div class="docstring">
|
719
|
+
<div class="discussion">
|
720
|
+
|
721
|
+
<p>POST A Service Catalog Order</p>
|
722
|
+
|
723
|
+
|
724
|
+
</div>
|
725
|
+
</div>
|
726
|
+
<div class="tags">
|
727
|
+
<p class="tag_title">Parameters:</p>
|
728
|
+
<ul class="param">
|
729
|
+
|
730
|
+
<li>
|
731
|
+
|
732
|
+
<span class='name'>payload</span>
|
733
|
+
|
734
|
+
|
735
|
+
<span class='type'>(<tt>json</tt>)</span>
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
—
|
740
|
+
<div class='inline'>
|
741
|
+
<p>JSON collection of parameters that will come from order_service. Required
|
742
|
+
Param</p>
|
743
|
+
</div>
|
744
|
+
|
745
|
+
</li>
|
746
|
+
|
747
|
+
</ul>
|
748
|
+
|
749
|
+
<p class="tag_title">Returns:</p>
|
750
|
+
<ul class="return">
|
751
|
+
|
752
|
+
<li>
|
753
|
+
|
754
|
+
|
755
|
+
<span class='type'>(<tt>json</tt>)</span>
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
—
|
760
|
+
<div class='inline'>
|
761
|
+
<p>JSON object with details of the service executed</p>
|
762
|
+
</div>
|
763
|
+
|
764
|
+
</li>
|
765
|
+
|
766
|
+
</ul>
|
767
|
+
|
768
|
+
</div><table class="source_code">
|
769
|
+
<tr>
|
770
|
+
<td>
|
771
|
+
<pre class="lines">
|
772
|
+
|
773
|
+
|
774
|
+
78
|
775
|
+
79
|
776
|
+
80</pre>
|
777
|
+
</td>
|
778
|
+
<td>
|
779
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby/objects/servicecatalog.rb', line 78</span>
|
780
|
+
|
781
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_post_order_service'>post_order_service</span><span class='lparen'>(</span><span class='id identifier rubyid_payload'>payload</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_cert'>cert</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
782
|
+
<span class='id identifier rubyid_rest_post'>rest_post</span><span class='lparen'>(</span><span class='id identifier rubyid_payload'>payload</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_base_url'>base_url</span><span class='embexpr_end'>}</span><span class='tstring_content'>/catalog/orders</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@auth_token</span> <span class='op'>:</span> <span class='id identifier rubyid_auth'>auth</span><span class='comma'>,</span> <span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@verify_cert</span> <span class='op'>:</span> <span class='id identifier rubyid_cert'>cert</span><span class='rparen'>)</span>
|
783
|
+
<span class='kw'>end</span></pre>
|
784
|
+
</td>
|
785
|
+
</tr>
|
786
|
+
</table>
|
787
|
+
</div>
|
788
|
+
|
789
|
+
</div>
|
790
|
+
|
791
|
+
</div>
|
792
|
+
|
793
|
+
<div id="footer">
|
794
|
+
Generated on Mon Jun 1 15:10:33 2015 by
|
795
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
796
|
+
0.8.7.6 (ruby-2.1.2).
|
797
|
+
</div>
|
798
|
+
|
799
|
+
</body>
|
800
|
+
</html>
|