vipruby 0.1.4 → 0.1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.yardoc/checksums +7 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/.yardopts +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +49 -0
- data/Rakefile +2 -0
- data/doc/Host.html +910 -0
- data/doc/Vipr.html +656 -0
- data/doc/ViprBase.html +928 -0
- data/doc/ViprHost.html +1952 -0
- data/doc/ViprStorageSystem.html +2695 -0
- data/doc/ViprVcenter.html +1540 -0
- data/doc/Vipruby.html +139 -0
- data/doc/Vipruby/Auth.html +745 -0
- data/doc/_index.html +135 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +121 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +121 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +333 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/.yardoc/checksums +0 -0
- data/lib/.yardoc/object_types +0 -0
- data/lib/.yardoc/objects/root.dat +0 -0
- data/lib/.yardoc/proxy_types +0 -0
- data/lib/vipruby.rb +6 -426
- data/lib/vipruby/.yardoc/checksums +0 -0
- data/lib/vipruby/.yardoc/object_types +0 -0
- data/lib/vipruby/.yardoc/objects/root.dat +0 -0
- data/lib/vipruby/.yardoc/proxy_types +0 -0
- data/lib/vipruby/objects/host.rb +234 -0
- data/lib/vipruby/objects/storagesystem.rb +278 -0
- data/lib/vipruby/objects/vcenter.rb +162 -0
- data/lib/vipruby/version.rb +6 -0
- data/lib/vipruby/vipr.rb +45 -0
- data/lib/vipruby/viprbase.rb +84 -0
- data/vipruby.gemspec +29 -0
- metadata +100 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477006cdafc0e99683511c5696fc8c3463125ff5
|
4
|
+
data.tar.gz: b0e0ee5a9ede4ab84ad5914f6db61b96bf1741b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd7603859d37992742c4e9f7106d73f5840ce1cfb981ef346c8f26a541238d9a5875a44f8ba1644eea88c966fd27903c75440b8a350be7f02f37bb8276e9c8c
|
7
|
+
data.tar.gz: 5c5f3aaeb2419ad20c828bba0d34610d60a04180cf0b1e981760a7825a0fb8daf6ae8755a7339a5bc47ef0b578e33f3ab423d592eb9e0a4ebb7596c96e83242f
|
data/.gitignore
ADDED
data/.yardoc/checksums
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
lib/vipruby.rb f50266974d35c9be858cb4cd9cf3f289a05ffa86
|
2
|
+
lib/vipruby/vipr.rb fce8ed6f48688aec347c359b66e17d1327cefe2a
|
3
|
+
lib/vipruby/version.rb 0b8854e4974373799887c6e7adf5120737b75a72
|
4
|
+
lib/vipruby/viprbase.rb 5348c87ee280395164e455ac2dad30e23239babf
|
5
|
+
lib/vipruby/objects/host.rb 3b3d0b5cb4875013b0570c4d96ec5d0a5aaaca98
|
6
|
+
lib/vipruby/objects/vcenter.rb 4959dda48861e6de9f9fe162f6a9efda9c6956e8
|
7
|
+
lib/vipruby/objects/storagesystem.rb 477f40c58a8d62ec4ff602c67d236b108f0247fe
|
Binary file
|
Binary file
|
data/.yardoc/proxy_types
ADDED
Binary file
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--private
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
vipruby (0.1.5)
|
5
|
+
json (~> 1.8)
|
6
|
+
rest-client (= 1.7.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
json (1.8.1)
|
12
|
+
mime-types (2.4.3)
|
13
|
+
netrc (0.8.0)
|
14
|
+
rest-client (1.7.2)
|
15
|
+
mime-types (>= 1.16, < 3.0)
|
16
|
+
netrc (~> 0.7)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
vipruby!
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Kendrick Coleman
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/vipruby.svg)](http://badge.fury.io/rb/vipruby)
|
2
|
+
|
3
|
+
# ViPRuby
|
4
|
+
### A Ruby library for EMCs ViPR
|
5
|
+
------
|
6
|
+
|
7
|
+
## How to use:
|
8
|
+
|
9
|
+
### Install and usage:
|
10
|
+
```ruby
|
11
|
+
gem install vipruby
|
12
|
+
require 'vipruby'
|
13
|
+
```
|
14
|
+
|
15
|
+
### Create a ViPR object:
|
16
|
+
```ruby
|
17
|
+
base_url = 'vipr.mydomain.com'
|
18
|
+
user_name = 'root'
|
19
|
+
password = 'mypw'
|
20
|
+
verify_cert = false
|
21
|
+
|
22
|
+
vipr = Vipr.new(base_url,user_name,password,verify_cert)
|
23
|
+
```
|
24
|
+
|
25
|
+
### Methods Exist for:
|
26
|
+
1. vCenter
|
27
|
+
* Add vCenters (to root or specific tenant)
|
28
|
+
* Remove vCenters
|
29
|
+
* Get vCenter Information
|
30
|
+
2. Hosts
|
31
|
+
* Add Hosts
|
32
|
+
* Add Host Initators
|
33
|
+
* Remove Hosts
|
34
|
+
* Get Host Information
|
35
|
+
3. Storage Systems
|
36
|
+
* Add Storage Arrays
|
37
|
+
|
38
|
+
For all methods, see the [Gem Documentation for all code samples](http://rubygems.org/gems/vipruby)
|
39
|
+
|
40
|
+
## Licensing
|
41
|
+
|
42
|
+
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
43
|
+
|
44
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License
|
45
|
+
|
46
|
+
|
47
|
+
## To Do:
|
48
|
+
* Add more methods for more controller specific actions.
|
49
|
+
* Add methods for blob specific actions
|
data/Rakefile
ADDED
data/doc/Host.html
ADDED
@@ -0,0 +1,910 @@
|
|
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: Host
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.4
|
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#!Host.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 (H)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Host</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: Host
|
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">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Host</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/vipruby.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
107
|
+
<ul class="summary">
|
108
|
+
|
109
|
+
<li class="public ">
|
110
|
+
<span class="summary_signature">
|
111
|
+
|
112
|
+
<a href="#discoverable-instance_method" title="#discoverable (instance method)">- (Object) <strong>discoverable</strong> </a>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</span>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<span class="summary_desc"><div class='inline'>
|
130
|
+
<p>Returns the value of attribute discoverable.</p>
|
131
|
+
</div></span>
|
132
|
+
|
133
|
+
</li>
|
134
|
+
|
135
|
+
|
136
|
+
<li class="public ">
|
137
|
+
<span class="summary_signature">
|
138
|
+
|
139
|
+
<a href="#fqdn-instance_method" title="#fqdn (instance method)">- (Object) <strong>fqdn</strong> </a>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
</span>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>Returns the value of attribute fqdn.</p>
|
158
|
+
</div></span>
|
159
|
+
|
160
|
+
</li>
|
161
|
+
|
162
|
+
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#initiator_node-instance_method" title="#initiator_node (instance method)">- (Object) <strong>initiator_node</strong> </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'>
|
184
|
+
<p>Returns the value of attribute initiator_node.</p>
|
185
|
+
</div></span>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
|
190
|
+
<li class="public ">
|
191
|
+
<span class="summary_signature">
|
192
|
+
|
193
|
+
<a href="#initiators_port-instance_method" title="#initiators_port (instance method)">- (Object) <strong>initiators_port</strong> </a>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
<span class="summary_desc"><div class='inline'>
|
211
|
+
<p>Returns the value of attribute initiators_port.</p>
|
212
|
+
</div></span>
|
213
|
+
|
214
|
+
</li>
|
215
|
+
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#ip_address-instance_method" title="#ip_address (instance method)">- (Object) <strong>ip_address</strong> </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<span class="summary_desc"><div class='inline'>
|
238
|
+
<p>Returns the value of attribute ip_address.</p>
|
239
|
+
</div></span>
|
240
|
+
|
241
|
+
</li>
|
242
|
+
|
243
|
+
|
244
|
+
<li class="public ">
|
245
|
+
<span class="summary_signature">
|
246
|
+
|
247
|
+
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</span>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
<span class="summary_desc"><div class='inline'>
|
265
|
+
<p>Returns the value of attribute name.</p>
|
266
|
+
</div></span>
|
267
|
+
|
268
|
+
</li>
|
269
|
+
|
270
|
+
|
271
|
+
<li class="public ">
|
272
|
+
<span class="summary_signature">
|
273
|
+
|
274
|
+
<a href="#protocol-instance_method" title="#protocol (instance method)">- (Object) <strong>protocol</strong> </a>
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
</span>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<span class="summary_desc"><div class='inline'>
|
292
|
+
<p>Returns the value of attribute protocol.</p>
|
293
|
+
</div></span>
|
294
|
+
|
295
|
+
</li>
|
296
|
+
|
297
|
+
|
298
|
+
<li class="public ">
|
299
|
+
<span class="summary_signature">
|
300
|
+
|
301
|
+
<a href="#type-instance_method" title="#type (instance method)">- (Object) <strong>type</strong> </a>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
</span>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
<span class="summary_desc"><div class='inline'>
|
319
|
+
<p>Returns the value of attribute type.</p>
|
320
|
+
</div></span>
|
321
|
+
|
322
|
+
</li>
|
323
|
+
|
324
|
+
|
325
|
+
</ul>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<h2>
|
332
|
+
Instance Method Summary
|
333
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
334
|
+
</h2>
|
335
|
+
|
336
|
+
<ul class="summary">
|
337
|
+
|
338
|
+
<li class="public ">
|
339
|
+
<span class="summary_signature">
|
340
|
+
|
341
|
+
<a href="#generate_initiators_json-instance_method" title="#generate_initiators_json (instance method)">- (Object) <strong>generate_initiators_json</strong> </a>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
</span>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
356
|
+
|
357
|
+
</li>
|
358
|
+
|
359
|
+
|
360
|
+
<li class="public ">
|
361
|
+
<span class="summary_signature">
|
362
|
+
|
363
|
+
<a href="#generate_json-instance_method" title="#generate_json (instance method)">- (Object) <strong>generate_json</strong> </a>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</span>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
378
|
+
|
379
|
+
</li>
|
380
|
+
|
381
|
+
|
382
|
+
<li class="public ">
|
383
|
+
<span class="summary_signature">
|
384
|
+
|
385
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Host) <strong>initialize</strong>(params = {}) </a>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
</span>
|
390
|
+
|
391
|
+
|
392
|
+
<span class="note title constructor">constructor</span>
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
<span class="summary_desc"><div class='inline'>
|
402
|
+
<p>A new instance of Host.</p>
|
403
|
+
</div></span>
|
404
|
+
|
405
|
+
</li>
|
406
|
+
|
407
|
+
|
408
|
+
</ul>
|
409
|
+
|
410
|
+
|
411
|
+
<div id="constructor_details" class="method_details_list">
|
412
|
+
<h2>Constructor Details</h2>
|
413
|
+
|
414
|
+
<div class="method_details first">
|
415
|
+
<h3 class="signature first" id="initialize-instance_method">
|
416
|
+
|
417
|
+
- (<tt><span class='object_link'><a href="" title="Host (class)">Host</a></span></tt>) <strong>initialize</strong>(params = {})
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
</h3><div class="docstring">
|
424
|
+
<div class="discussion">
|
425
|
+
|
426
|
+
<p>Returns a new instance of Host</p>
|
427
|
+
|
428
|
+
|
429
|
+
</div>
|
430
|
+
</div>
|
431
|
+
<div class="tags">
|
432
|
+
|
433
|
+
|
434
|
+
</div><table class="source_code">
|
435
|
+
<tr>
|
436
|
+
<td>
|
437
|
+
<pre class="lines">
|
438
|
+
|
439
|
+
|
440
|
+
230
|
441
|
+
231
|
442
|
+
232</pre>
|
443
|
+
</td>
|
444
|
+
<td>
|
445
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 230</span>
|
446
|
+
|
447
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
448
|
+
<span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='id identifier rubyid_send'>send</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rbrace'>}</span>
|
449
|
+
<span class='kw'>end</span></pre>
|
450
|
+
</td>
|
451
|
+
</tr>
|
452
|
+
</table>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</div>
|
456
|
+
|
457
|
+
<div id="instance_attr_details" class="attr_details">
|
458
|
+
<h2>Instance Attribute Details</h2>
|
459
|
+
|
460
|
+
|
461
|
+
<span id="discoverable=-instance_method"></span>
|
462
|
+
<div class="method_details first">
|
463
|
+
<h3 class="signature first" id="discoverable-instance_method">
|
464
|
+
|
465
|
+
- (<tt>Object</tt>) <strong>discoverable</strong>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</h3><div class="docstring">
|
472
|
+
<div class="discussion">
|
473
|
+
|
474
|
+
<p>Returns the value of attribute discoverable</p>
|
475
|
+
|
476
|
+
|
477
|
+
</div>
|
478
|
+
</div>
|
479
|
+
<div class="tags">
|
480
|
+
|
481
|
+
|
482
|
+
</div><table class="source_code">
|
483
|
+
<tr>
|
484
|
+
<td>
|
485
|
+
<pre class="lines">
|
486
|
+
|
487
|
+
|
488
|
+
228
|
489
|
+
229
|
490
|
+
230</pre>
|
491
|
+
</td>
|
492
|
+
<td>
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
494
|
+
|
495
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_discoverable'>discoverable</span>
|
496
|
+
<span class='ivar'>@discoverable</span>
|
497
|
+
<span class='kw'>end</span></pre>
|
498
|
+
</td>
|
499
|
+
</tr>
|
500
|
+
</table>
|
501
|
+
</div>
|
502
|
+
|
503
|
+
|
504
|
+
<span id="fqdn=-instance_method"></span>
|
505
|
+
<div class="method_details ">
|
506
|
+
<h3 class="signature " id="fqdn-instance_method">
|
507
|
+
|
508
|
+
- (<tt>Object</tt>) <strong>fqdn</strong>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
|
+
|
517
|
+
<p>Returns the value of attribute fqdn</p>
|
518
|
+
|
519
|
+
|
520
|
+
</div>
|
521
|
+
</div>
|
522
|
+
<div class="tags">
|
523
|
+
|
524
|
+
|
525
|
+
</div><table class="source_code">
|
526
|
+
<tr>
|
527
|
+
<td>
|
528
|
+
<pre class="lines">
|
529
|
+
|
530
|
+
|
531
|
+
228
|
532
|
+
229
|
533
|
+
230</pre>
|
534
|
+
</td>
|
535
|
+
<td>
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
537
|
+
|
538
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fqdn'>fqdn</span>
|
539
|
+
<span class='ivar'>@fqdn</span>
|
540
|
+
<span class='kw'>end</span></pre>
|
541
|
+
</td>
|
542
|
+
</tr>
|
543
|
+
</table>
|
544
|
+
</div>
|
545
|
+
|
546
|
+
|
547
|
+
<span id="initiator_node=-instance_method"></span>
|
548
|
+
<div class="method_details ">
|
549
|
+
<h3 class="signature " id="initiator_node-instance_method">
|
550
|
+
|
551
|
+
- (<tt>Object</tt>) <strong>initiator_node</strong>
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
</h3><div class="docstring">
|
558
|
+
<div class="discussion">
|
559
|
+
|
560
|
+
<p>Returns the value of attribute initiator_node</p>
|
561
|
+
|
562
|
+
|
563
|
+
</div>
|
564
|
+
</div>
|
565
|
+
<div class="tags">
|
566
|
+
|
567
|
+
|
568
|
+
</div><table class="source_code">
|
569
|
+
<tr>
|
570
|
+
<td>
|
571
|
+
<pre class="lines">
|
572
|
+
|
573
|
+
|
574
|
+
228
|
575
|
+
229
|
576
|
+
230</pre>
|
577
|
+
</td>
|
578
|
+
<td>
|
579
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
580
|
+
|
581
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initiator_node'>initiator_node</span>
|
582
|
+
<span class='ivar'>@initiator_node</span>
|
583
|
+
<span class='kw'>end</span></pre>
|
584
|
+
</td>
|
585
|
+
</tr>
|
586
|
+
</table>
|
587
|
+
</div>
|
588
|
+
|
589
|
+
|
590
|
+
<span id="initiators_port=-instance_method"></span>
|
591
|
+
<div class="method_details ">
|
592
|
+
<h3 class="signature " id="initiators_port-instance_method">
|
593
|
+
|
594
|
+
- (<tt>Object</tt>) <strong>initiators_port</strong>
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
</h3><div class="docstring">
|
601
|
+
<div class="discussion">
|
602
|
+
|
603
|
+
<p>Returns the value of attribute initiators_port</p>
|
604
|
+
|
605
|
+
|
606
|
+
</div>
|
607
|
+
</div>
|
608
|
+
<div class="tags">
|
609
|
+
|
610
|
+
|
611
|
+
</div><table class="source_code">
|
612
|
+
<tr>
|
613
|
+
<td>
|
614
|
+
<pre class="lines">
|
615
|
+
|
616
|
+
|
617
|
+
228
|
618
|
+
229
|
619
|
+
230</pre>
|
620
|
+
</td>
|
621
|
+
<td>
|
622
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
623
|
+
|
624
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initiators_port'>initiators_port</span>
|
625
|
+
<span class='ivar'>@initiators_port</span>
|
626
|
+
<span class='kw'>end</span></pre>
|
627
|
+
</td>
|
628
|
+
</tr>
|
629
|
+
</table>
|
630
|
+
</div>
|
631
|
+
|
632
|
+
|
633
|
+
<span id="ip_address=-instance_method"></span>
|
634
|
+
<div class="method_details ">
|
635
|
+
<h3 class="signature " id="ip_address-instance_method">
|
636
|
+
|
637
|
+
- (<tt>Object</tt>) <strong>ip_address</strong>
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
</h3><div class="docstring">
|
644
|
+
<div class="discussion">
|
645
|
+
|
646
|
+
<p>Returns the value of attribute ip_address</p>
|
647
|
+
|
648
|
+
|
649
|
+
</div>
|
650
|
+
</div>
|
651
|
+
<div class="tags">
|
652
|
+
|
653
|
+
|
654
|
+
</div><table class="source_code">
|
655
|
+
<tr>
|
656
|
+
<td>
|
657
|
+
<pre class="lines">
|
658
|
+
|
659
|
+
|
660
|
+
228
|
661
|
+
229
|
662
|
+
230</pre>
|
663
|
+
</td>
|
664
|
+
<td>
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
666
|
+
|
667
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ip_address'>ip_address</span>
|
668
|
+
<span class='ivar'>@ip_address</span>
|
669
|
+
<span class='kw'>end</span></pre>
|
670
|
+
</td>
|
671
|
+
</tr>
|
672
|
+
</table>
|
673
|
+
</div>
|
674
|
+
|
675
|
+
|
676
|
+
<span id="name=-instance_method"></span>
|
677
|
+
<div class="method_details ">
|
678
|
+
<h3 class="signature " id="name-instance_method">
|
679
|
+
|
680
|
+
- (<tt>Object</tt>) <strong>name</strong>
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
</h3><div class="docstring">
|
687
|
+
<div class="discussion">
|
688
|
+
|
689
|
+
<p>Returns the value of attribute name</p>
|
690
|
+
|
691
|
+
|
692
|
+
</div>
|
693
|
+
</div>
|
694
|
+
<div class="tags">
|
695
|
+
|
696
|
+
|
697
|
+
</div><table class="source_code">
|
698
|
+
<tr>
|
699
|
+
<td>
|
700
|
+
<pre class="lines">
|
701
|
+
|
702
|
+
|
703
|
+
228
|
704
|
+
229
|
705
|
+
230</pre>
|
706
|
+
</td>
|
707
|
+
<td>
|
708
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
709
|
+
|
710
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
711
|
+
<span class='ivar'>@name</span>
|
712
|
+
<span class='kw'>end</span></pre>
|
713
|
+
</td>
|
714
|
+
</tr>
|
715
|
+
</table>
|
716
|
+
</div>
|
717
|
+
|
718
|
+
|
719
|
+
<span id="protocol=-instance_method"></span>
|
720
|
+
<div class="method_details ">
|
721
|
+
<h3 class="signature " id="protocol-instance_method">
|
722
|
+
|
723
|
+
- (<tt>Object</tt>) <strong>protocol</strong>
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
</h3><div class="docstring">
|
730
|
+
<div class="discussion">
|
731
|
+
|
732
|
+
<p>Returns the value of attribute protocol</p>
|
733
|
+
|
734
|
+
|
735
|
+
</div>
|
736
|
+
</div>
|
737
|
+
<div class="tags">
|
738
|
+
|
739
|
+
|
740
|
+
</div><table class="source_code">
|
741
|
+
<tr>
|
742
|
+
<td>
|
743
|
+
<pre class="lines">
|
744
|
+
|
745
|
+
|
746
|
+
228
|
747
|
+
229
|
748
|
+
230</pre>
|
749
|
+
</td>
|
750
|
+
<td>
|
751
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
752
|
+
|
753
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_protocol'>protocol</span>
|
754
|
+
<span class='ivar'>@protocol</span>
|
755
|
+
<span class='kw'>end</span></pre>
|
756
|
+
</td>
|
757
|
+
</tr>
|
758
|
+
</table>
|
759
|
+
</div>
|
760
|
+
|
761
|
+
|
762
|
+
<span id="type=-instance_method"></span>
|
763
|
+
<div class="method_details ">
|
764
|
+
<h3 class="signature " id="type-instance_method">
|
765
|
+
|
766
|
+
- (<tt>Object</tt>) <strong>type</strong>
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
</h3><div class="docstring">
|
773
|
+
<div class="discussion">
|
774
|
+
|
775
|
+
<p>Returns the value of attribute type</p>
|
776
|
+
|
777
|
+
|
778
|
+
</div>
|
779
|
+
</div>
|
780
|
+
<div class="tags">
|
781
|
+
|
782
|
+
|
783
|
+
</div><table class="source_code">
|
784
|
+
<tr>
|
785
|
+
<td>
|
786
|
+
<pre class="lines">
|
787
|
+
|
788
|
+
|
789
|
+
228
|
790
|
+
229
|
791
|
+
230</pre>
|
792
|
+
</td>
|
793
|
+
<td>
|
794
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 228</span>
|
795
|
+
|
796
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
797
|
+
<span class='ivar'>@type</span>
|
798
|
+
<span class='kw'>end</span></pre>
|
799
|
+
</td>
|
800
|
+
</tr>
|
801
|
+
</table>
|
802
|
+
</div>
|
803
|
+
|
804
|
+
</div>
|
805
|
+
|
806
|
+
|
807
|
+
<div id="instance_method_details" class="method_details_list">
|
808
|
+
<h2>Instance Method Details</h2>
|
809
|
+
|
810
|
+
|
811
|
+
<div class="method_details first">
|
812
|
+
<h3 class="signature first" id="generate_initiators_json-instance_method">
|
813
|
+
|
814
|
+
- (<tt>Object</tt>) <strong>generate_initiators_json</strong>
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
</h3><table class="source_code">
|
821
|
+
<tr>
|
822
|
+
<td>
|
823
|
+
<pre class="lines">
|
824
|
+
|
825
|
+
|
826
|
+
243
|
827
|
+
244
|
828
|
+
245
|
829
|
+
246
|
830
|
+
247
|
831
|
+
248
|
832
|
+
249
|
833
|
+
250
|
834
|
+
251
|
835
|
+
252
|
836
|
+
253
|
837
|
+
254</pre>
|
838
|
+
</td>
|
839
|
+
<td>
|
840
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 243</span>
|
841
|
+
|
842
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_generate_initiators_json'>generate_initiators_json</span>
|
843
|
+
<span class='id identifier rubyid_initiator_json'>initiator_json</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
844
|
+
<span class='ivar'>@initiators_port</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_initiator'>initiator</span><span class='op'>|</span>
|
845
|
+
<span class='id identifier rubyid_initiator_json'>initiator_json</span> <span class='op'><<</span>
|
846
|
+
<span class='lbrace'>{</span>
|
847
|
+
<span class='label'>protocol:</span> <span class='ivar'>@protocol</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span><span class='comma'>,</span>
|
848
|
+
<span class='label'>initiator_port:</span> <span class='id identifier rubyid_initiator'>initiator</span><span class='comma'>,</span>
|
849
|
+
<span class='label'>initiator_node:</span> <span class='ivar'>@initiator_node</span>
|
850
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
|
851
|
+
<span class='kw'>end</span>
|
852
|
+
<span class='id identifier rubyid_initiator_json'>initiator_json</span>
|
853
|
+
<span class='kw'>end</span></pre>
|
854
|
+
</td>
|
855
|
+
</tr>
|
856
|
+
</table>
|
857
|
+
</div>
|
858
|
+
|
859
|
+
<div class="method_details ">
|
860
|
+
<h3 class="signature " id="generate_json-instance_method">
|
861
|
+
|
862
|
+
- (<tt>Object</tt>) <strong>generate_json</strong>
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
</h3><table class="source_code">
|
869
|
+
<tr>
|
870
|
+
<td>
|
871
|
+
<pre class="lines">
|
872
|
+
|
873
|
+
|
874
|
+
234
|
875
|
+
235
|
876
|
+
236
|
877
|
+
237
|
878
|
+
238
|
879
|
+
239
|
880
|
+
240
|
881
|
+
241</pre>
|
882
|
+
</td>
|
883
|
+
<td>
|
884
|
+
<pre class="code"><span class="info file"># File 'lib/vipruby.rb', line 234</span>
|
885
|
+
|
886
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_generate_json'>generate_json</span>
|
887
|
+
<span class='lbrace'>{</span>
|
888
|
+
<span class='label'>type:</span> <span class='ivar'>@type</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span><span class='comma'>,</span>
|
889
|
+
<span class='label'>name:</span> <span class='ivar'>@name</span><span class='comma'>,</span>
|
890
|
+
<span class='label'>host_name:</span> <span class='ivar'>@fqdn</span><span class='comma'>,</span>
|
891
|
+
<span class='label'>discoverable:</span> <span class='ivar'>@discoverable</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
|
892
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
|
893
|
+
<span class='kw'>end</span></pre>
|
894
|
+
</td>
|
895
|
+
</tr>
|
896
|
+
</table>
|
897
|
+
</div>
|
898
|
+
|
899
|
+
</div>
|
900
|
+
|
901
|
+
</div>
|
902
|
+
|
903
|
+
<div id="footer">
|
904
|
+
Generated on Sun Aug 31 23:08:21 2014 by
|
905
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
906
|
+
0.8.7.4 (ruby-2.0.0).
|
907
|
+
</div>
|
908
|
+
|
909
|
+
</body>
|
910
|
+
</html>
|