ropenstack 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/README.md +2 -1
- data/doc/Ropenstack.html +151 -0
- data/doc/Ropenstack/Cinder.html +197 -0
- data/doc/Ropenstack/Glance.html +292 -0
- data/doc/Ropenstack/Keystone.html +737 -0
- data/doc/Ropenstack/MalformedRequestError.html +142 -0
- data/doc/Ropenstack/NotFoundError.html +142 -0
- data/doc/Ropenstack/Nova.html +562 -0
- data/doc/Ropenstack/OpenstackService.html +199 -0
- data/doc/Ropenstack/Quantum.html +830 -0
- data/doc/Ropenstack/Rest.html +483 -0
- data/doc/Ropenstack/RopenstackError.html +143 -0
- data/doc/Ropenstack/TimeoutError.html +142 -0
- data/doc/Ropenstack/UnauthorisedError.html +142 -0
- data/doc/created.rid +10 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +93 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +200 -0
- data/lib/ropenstack.rb +18 -0
- data/lib/ropenstack/blockStorage.rb +25 -0
- data/lib/ropenstack/blockStorage/v1.rb +67 -0
- data/lib/ropenstack/blockStorage/v2.rb +11 -0
- data/lib/ropenstack/common/error.rb +12 -0
- data/lib/ropenstack/common/openstackservice.rb +28 -0
- data/lib/ropenstack/common/rest.rb +138 -0
- data/lib/ropenstack/compute.rb +164 -0
- data/lib/ropenstack/compute/v2.rb +11 -0
- data/lib/ropenstack/compute/v2/extensions.rb +14 -0
- data/lib/ropenstack/compute/v2/extensions/admin.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/agents.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/aggregates.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/certificates.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/cloudpipe.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/console.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/coverage.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/defaultsecuritygroup.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/diagnostics.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/extraspecs.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/fixedips.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/flavors.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/hosts.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/hypervisors.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/images.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/instanceactions.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/interfaces.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/keypairs.rb +20 -0
- data/lib/ropenstack/compute/v2/extensions/limits.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/migrations.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/networks.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/quotasets.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/securitygroups.rb +40 -0
- data/lib/ropenstack/compute/v2/extensions/servergroups.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/serverpassword.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/services.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/shelvedservers.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/usage.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/virtualinterfaces.rb +0 -0
- data/lib/ropenstack/compute/v2/extensions/volumes.rb +20 -0
- data/lib/ropenstack/compute/v3.rb +5 -0
- data/lib/ropenstack/database.rb +24 -0
- data/lib/ropenstack/database/v1.rb +113 -0
- data/lib/ropenstack/identity.rb +28 -0
- data/lib/ropenstack/identity/v2.rb +178 -0
- data/lib/ropenstack/identity/v3.rb +13 -0
- data/lib/ropenstack/image.rb +25 -0
- data/lib/ropenstack/image/v1.rb +107 -0
- data/lib/ropenstack/image/v2.rb +134 -0
- data/lib/ropenstack/networking.rb +160 -0
- data/lib/ropenstack/networking/v2.rb +5 -0
- data/lib/ropenstack/networking/v2/extensions.rb +9 -0
- data/lib/ropenstack/networking/v2/extensions/l3.rb +111 -0
- data/lib/ropenstack/networking/v2/extensions/lbaas.rb +5 -0
- data/lib/ropenstack/networking/v2/extensions/metering.rb +5 -0
- data/lib/ropenstack/networking/v2/extensions/quotas.rb +5 -0
- data/lib/ropenstack/networking/v2/extensions/securitygroups.rb +5 -0
- data/lib/ropenstack/objectStorage.rb +60 -0
- data/lib/ropenstack/orchestration.rb +23 -0
- data/lib/ropenstack/orchestration/v1.rb +162 -0
- data/lib/ropenstack/telemetry.rb +23 -0
- data/lib/ropenstack/telemetry/v2.rb +68 -0
- data/ropenstack.gemspec +13 -0
- metadata +112 -1
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.gem
|
data/README.md
CHANGED
data/doc/Ropenstack.html
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>module Ropenstack - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "./";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="module">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="./index.html">Home</a>
|
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/ropenstack/cinder.rb
|
|
51
|
+
<li>lib/ropenstack/error.rb
|
|
52
|
+
<li>lib/ropenstack/glance.rb
|
|
53
|
+
<li>lib/ropenstack/keystone.rb
|
|
54
|
+
<li>lib/ropenstack/nova.rb
|
|
55
|
+
<li>lib/ropenstack/openstackservice.rb
|
|
56
|
+
<li>lib/ropenstack/quantum.rb
|
|
57
|
+
<li>lib/ropenstack/rest.rb
|
|
58
|
+
<li>lib/ropenstack.rb
|
|
59
|
+
</ul>
|
|
60
|
+
</nav>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div id="class-metadata">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div id="project-metadata">
|
|
73
|
+
|
|
74
|
+
<nav id="classindex-section" class="section project-section">
|
|
75
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
76
|
+
|
|
77
|
+
<ul class="link-list">
|
|
78
|
+
|
|
79
|
+
<li><a href="./Ropenstack.html">Ropenstack</a>
|
|
80
|
+
|
|
81
|
+
<li><a href="./Ropenstack/Cinder.html">Ropenstack::Cinder</a>
|
|
82
|
+
|
|
83
|
+
<li><a href="./Ropenstack/Glance.html">Ropenstack::Glance</a>
|
|
84
|
+
|
|
85
|
+
<li><a href="./Ropenstack/Keystone.html">Ropenstack::Keystone</a>
|
|
86
|
+
|
|
87
|
+
<li><a href="./Ropenstack/MalformedRequestError.html">Ropenstack::MalformedRequestError</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="./Ropenstack/NotFoundError.html">Ropenstack::NotFoundError</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="./Ropenstack/Nova.html">Ropenstack::Nova</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="./Ropenstack/OpenstackService.html">Ropenstack::OpenstackService</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="./Ropenstack/Quantum.html">Ropenstack::Quantum</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="./Ropenstack/Rest.html">Ropenstack::Rest</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="./Ropenstack/RopenstackError.html">Ropenstack::RopenstackError</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="./Ropenstack/TimeoutError.html">Ropenstack::TimeoutError</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="./Ropenstack/UnauthorisedError.html">Ropenstack::UnauthorisedError</a>
|
|
104
|
+
|
|
105
|
+
</ul>
|
|
106
|
+
</nav>
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
</nav>
|
|
110
|
+
|
|
111
|
+
<div id="documentation">
|
|
112
|
+
<h1 class="module">module Ropenstack</h1>
|
|
113
|
+
|
|
114
|
+
<div id="description" class="description">
|
|
115
|
+
<ul><li>
|
|
116
|
+
<p>Name: <a href="Ropenstack.html">Ropenstack</a></p>
|
|
117
|
+
</li><li>
|
|
118
|
+
<p>Description: Module used to wrap all Openstack service classes.</p>
|
|
119
|
+
</li><li>
|
|
120
|
+
<p>Author: Sam ‘Tehsmash’ Betts</p>
|
|
121
|
+
</li><li>
|
|
122
|
+
<p>Date: 01/15/2013</p>
|
|
123
|
+
</li></ul>
|
|
124
|
+
|
|
125
|
+
</div><!-- description -->
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<!-- Methods -->
|
|
140
|
+
|
|
141
|
+
</section><!-- 5Buntitled-5D -->
|
|
142
|
+
|
|
143
|
+
</div><!-- documentation -->
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<footer id="validator-badges">
|
|
147
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
148
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
|
149
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
150
|
+
</footer>
|
|
151
|
+
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>class Ropenstack::Cinder - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "../";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="class">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="../index.html">Home</a>
|
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/ropenstack/cinder.rb
|
|
51
|
+
</ul>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="class-metadata">
|
|
58
|
+
|
|
59
|
+
<nav id="parent-class-section" class="section">
|
|
60
|
+
<h3 class="section-header">Parent</h3>
|
|
61
|
+
|
|
62
|
+
<p class="link">OpenstackService
|
|
63
|
+
|
|
64
|
+
</nav>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<!-- Method Quickref -->
|
|
68
|
+
<nav id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
|
|
71
|
+
<ul class="link-list">
|
|
72
|
+
|
|
73
|
+
<li><a href="#method-i-volumes">#volumes</a>
|
|
74
|
+
|
|
75
|
+
</ul>
|
|
76
|
+
</nav>
|
|
77
|
+
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div id="project-metadata">
|
|
81
|
+
|
|
82
|
+
<nav id="classindex-section" class="section project-section">
|
|
83
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
84
|
+
|
|
85
|
+
<ul class="link-list">
|
|
86
|
+
|
|
87
|
+
<li><a href="../Ropenstack.html">Ropenstack</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="../Ropenstack/Cinder.html">Ropenstack::Cinder</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="../Ropenstack/Glance.html">Ropenstack::Glance</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="../Ropenstack/Keystone.html">Ropenstack::Keystone</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="../Ropenstack/MalformedRequestError.html">Ropenstack::MalformedRequestError</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="../Ropenstack/NotFoundError.html">Ropenstack::NotFoundError</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="../Ropenstack/Nova.html">Ropenstack::Nova</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="../Ropenstack/OpenstackService.html">Ropenstack::OpenstackService</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="../Ropenstack/Quantum.html">Ropenstack::Quantum</a>
|
|
104
|
+
|
|
105
|
+
<li><a href="../Ropenstack/Rest.html">Ropenstack::Rest</a>
|
|
106
|
+
|
|
107
|
+
<li><a href="../Ropenstack/RopenstackError.html">Ropenstack::RopenstackError</a>
|
|
108
|
+
|
|
109
|
+
<li><a href="../Ropenstack/TimeoutError.html">Ropenstack::TimeoutError</a>
|
|
110
|
+
|
|
111
|
+
<li><a href="../Ropenstack/UnauthorisedError.html">Ropenstack::UnauthorisedError</a>
|
|
112
|
+
|
|
113
|
+
</ul>
|
|
114
|
+
</nav>
|
|
115
|
+
|
|
116
|
+
</div>
|
|
117
|
+
</nav>
|
|
118
|
+
|
|
119
|
+
<div id="documentation">
|
|
120
|
+
<h1 class="class">class Ropenstack::Cinder</h1>
|
|
121
|
+
|
|
122
|
+
<div id="description" class="description">
|
|
123
|
+
<ul><li>
|
|
124
|
+
<p>Name: <a href="Cinder.html">Cinder</a></p>
|
|
125
|
+
</li><li>
|
|
126
|
+
<p>Description: Implementation of the <a href="Cinder.html">Cinder</a> API
|
|
127
|
+
Client in Ruby.</p>
|
|
128
|
+
</li><li>
|
|
129
|
+
<p>Author: Sam ‘Tehsmash’ Betts</p>
|
|
130
|
+
</li><li>
|
|
131
|
+
<p>Date: 01/15/2013</p>
|
|
132
|
+
</li></ul>
|
|
133
|
+
|
|
134
|
+
</div><!-- description -->
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<!-- Methods -->
|
|
149
|
+
|
|
150
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
151
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<div id="method-i-volumes" class="method-detail ">
|
|
155
|
+
|
|
156
|
+
<div class="method-heading">
|
|
157
|
+
<span class="method-name">volumes</span><span
|
|
158
|
+
class="method-args">()</span>
|
|
159
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<div class="method-description">
|
|
164
|
+
|
|
165
|
+
<p>Gets the volumes from cinder, and provides them in a ruby hash with all
|
|
166
|
+
information about them.</p>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<div class="method-source-code" id="volumes-source">
|
|
171
|
+
<pre><span class="ruby-comment"># File lib/ropenstack/cinder.rb, line 15</span>
|
|
172
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">volumes</span>()
|
|
173
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_request</span>(<span class="ruby-identifier">address</span>(<span class="ruby-string">"/volumes"</span>), <span class="ruby-ivar">@token</span>)
|
|
174
|
+
<span class="ruby-keyword">end</span></pre>
|
|
175
|
+
</div><!-- volumes-source -->
|
|
176
|
+
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
</div><!-- volumes-method -->
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
</section><!-- public-instance-method-details -->
|
|
186
|
+
|
|
187
|
+
</section><!-- 5Buntitled-5D -->
|
|
188
|
+
|
|
189
|
+
</div><!-- documentation -->
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<footer id="validator-badges">
|
|
193
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
194
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
|
195
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
196
|
+
</footer>
|
|
197
|
+
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>class Ropenstack::Glance - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "../";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="class">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="../index.html">Home</a>
|
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/ropenstack/glance.rb
|
|
51
|
+
</ul>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="class-metadata">
|
|
58
|
+
|
|
59
|
+
<nav id="parent-class-section" class="section">
|
|
60
|
+
<h3 class="section-header">Parent</h3>
|
|
61
|
+
|
|
62
|
+
<p class="link">OpenstackService
|
|
63
|
+
|
|
64
|
+
</nav>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<!-- Method Quickref -->
|
|
68
|
+
<nav id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
|
|
71
|
+
<ul class="link-list">
|
|
72
|
+
|
|
73
|
+
<li><a href="#method-i-images">#images</a>
|
|
74
|
+
|
|
75
|
+
<li><a href="#method-i-put_octect">#put_octect</a>
|
|
76
|
+
|
|
77
|
+
<li><a href="#method-i-upload_image_from_file">#upload_image_from_file</a>
|
|
78
|
+
|
|
79
|
+
</ul>
|
|
80
|
+
</nav>
|
|
81
|
+
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div id="project-metadata">
|
|
85
|
+
|
|
86
|
+
<nav id="classindex-section" class="section project-section">
|
|
87
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
88
|
+
|
|
89
|
+
<ul class="link-list">
|
|
90
|
+
|
|
91
|
+
<li><a href="../Ropenstack.html">Ropenstack</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="../Ropenstack/Cinder.html">Ropenstack::Cinder</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="../Ropenstack/Glance.html">Ropenstack::Glance</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="../Ropenstack/Keystone.html">Ropenstack::Keystone</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="../Ropenstack/MalformedRequestError.html">Ropenstack::MalformedRequestError</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="../Ropenstack/NotFoundError.html">Ropenstack::NotFoundError</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="../Ropenstack/Nova.html">Ropenstack::Nova</a>
|
|
104
|
+
|
|
105
|
+
<li><a href="../Ropenstack/OpenstackService.html">Ropenstack::OpenstackService</a>
|
|
106
|
+
|
|
107
|
+
<li><a href="../Ropenstack/Quantum.html">Ropenstack::Quantum</a>
|
|
108
|
+
|
|
109
|
+
<li><a href="../Ropenstack/Rest.html">Ropenstack::Rest</a>
|
|
110
|
+
|
|
111
|
+
<li><a href="../Ropenstack/RopenstackError.html">Ropenstack::RopenstackError</a>
|
|
112
|
+
|
|
113
|
+
<li><a href="../Ropenstack/TimeoutError.html">Ropenstack::TimeoutError</a>
|
|
114
|
+
|
|
115
|
+
<li><a href="../Ropenstack/UnauthorisedError.html">Ropenstack::UnauthorisedError</a>
|
|
116
|
+
|
|
117
|
+
</ul>
|
|
118
|
+
</nav>
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
</nav>
|
|
122
|
+
|
|
123
|
+
<div id="documentation">
|
|
124
|
+
<h1 class="class">class Ropenstack::Glance</h1>
|
|
125
|
+
|
|
126
|
+
<div id="description" class="description">
|
|
127
|
+
<ul><li>
|
|
128
|
+
<p>Name: <a href="Glance.html">Glance</a></p>
|
|
129
|
+
</li><li>
|
|
130
|
+
<p>Description: Implementation of the <a href="Glance.html">Glance</a> V2.0
|
|
131
|
+
API Client in Ruby</p>
|
|
132
|
+
</li><li>
|
|
133
|
+
<p>Author: Sam ‘Tehsmash’ Betts</p>
|
|
134
|
+
</li><li>
|
|
135
|
+
<p>Date: 01/15/2013</p>
|
|
136
|
+
</li></ul>
|
|
137
|
+
|
|
138
|
+
</div><!-- description -->
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<!-- Methods -->
|
|
153
|
+
|
|
154
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
155
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<div id="method-i-images" class="method-detail ">
|
|
159
|
+
|
|
160
|
+
<div class="method-heading">
|
|
161
|
+
<span class="method-name">images</span><span
|
|
162
|
+
class="method-args">()</span>
|
|
163
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<div class="method-description">
|
|
168
|
+
|
|
169
|
+
<p>Returns a list of images with all associated meta-data in hash format.</p>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<div class="method-source-code" id="images-source">
|
|
174
|
+
<pre><span class="ruby-comment"># File lib/ropenstack/glance.rb, line 62</span>
|
|
175
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">images</span>()
|
|
176
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_request</span>(<span class="ruby-identifier">v2_address</span>(<span class="ruby-string">"images"</span>), <span class="ruby-ivar">@token</span>)[<span class="ruby-string">"images"</span>]
|
|
177
|
+
<span class="ruby-keyword">end</span></pre>
|
|
178
|
+
</div><!-- images-source -->
|
|
179
|
+
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
</div><!-- images-method -->
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
<div id="method-i-put_octect" class="method-detail ">
|
|
189
|
+
|
|
190
|
+
<div class="method-heading">
|
|
191
|
+
<span class="method-name">put_octect</span><span
|
|
192
|
+
class="method-args">(uri, data, manage_errors)</span>
|
|
193
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<div class="method-description">
|
|
198
|
+
|
|
199
|
+
<p>Special rest call for sending a file stream using an octet-stream main
|
|
200
|
+
change is just custom headers. Still implemented using do_request function.</p>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<div class="method-source-code" id="put_octect-source">
|
|
205
|
+
<pre><span class="ruby-comment"># File lib/ropenstack/glance.rb, line 50</span>
|
|
206
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">put_octect</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">data</span>, <span class="ruby-identifier">manage_errors</span>)
|
|
207
|
+
<span class="ruby-identifier">headers</span> = <span class="ruby-identifier">build_headers</span>(<span class="ruby-ivar">@token</span>)
|
|
208
|
+
<span class="ruby-identifier">headers</span>[<span class="ruby-string">"Content-Type"</span>] = <span class="ruby-string">'application/octet-stream'</span>
|
|
209
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span><span class="ruby-operator">::</span><span class="ruby-constant">Put</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">uri</span>.<span class="ruby-identifier">request_uri</span>, <span class="ruby-identifier">initheader</span> = <span class="ruby-identifier">headers</span>)
|
|
210
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">body</span> = <span class="ruby-identifier">data</span>
|
|
211
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">do_request</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">req</span>, <span class="ruby-identifier">manage_errors</span>, <span class="ruby-value">0</span>)
|
|
212
|
+
<span class="ruby-keyword">end</span></pre>
|
|
213
|
+
</div><!-- put_octect-source -->
|
|
214
|
+
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
</div><!-- put_octect-method -->
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
<div id="method-i-upload_image_from_file" class="method-detail ">
|
|
224
|
+
|
|
225
|
+
<div class="method-heading">
|
|
226
|
+
<span class="method-name">upload_image_from_file</span><span
|
|
227
|
+
class="method-args">(name, disk_format, container_format, minDisk, minRam, is_public, file)</span>
|
|
228
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<div class="method-description">
|
|
233
|
+
|
|
234
|
+
<p>Upload an image to glance from a file, takes in a ruby file object. More
|
|
235
|
+
convoluted than it should be because for a bug in <a
|
|
236
|
+
href="Quantum.html">Quantum</a> which just returns an error no matter the
|
|
237
|
+
outcome.</p>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<div class="method-source-code" id="upload_image_from_file-source">
|
|
242
|
+
<pre><span class="ruby-comment"># File lib/ropenstack/glance.rb, line 17</span>
|
|
243
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">upload_image_from_file</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">disk_format</span>, <span class="ruby-identifier">container_format</span>, <span class="ruby-identifier">minDisk</span>, <span class="ruby-identifier">minRam</span>, <span class="ruby-identifier">is_public</span>, <span class="ruby-identifier">file</span>)
|
|
244
|
+
<span class="ruby-identifier">data</span> = {
|
|
245
|
+
<span class="ruby-string">"name"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">name</span>,
|
|
246
|
+
<span class="ruby-string">"disk_format"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">disk_format</span>,
|
|
247
|
+
<span class="ruby-string">"container_format"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">container_format</span>,
|
|
248
|
+
<span class="ruby-string">"minDisk"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">minDisk</span>,
|
|
249
|
+
<span class="ruby-string">"minRam"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">minRam</span>,
|
|
250
|
+
<span class="ruby-string">"public"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">is_public</span>
|
|
251
|
+
}
|
|
252
|
+
<span class="ruby-identifier">imagesBefore</span> = <span class="ruby-identifier">images</span>()
|
|
253
|
+
<span class="ruby-identifier">post_request</span>(<span class="ruby-identifier">v2_address</span>(<span class="ruby-string">"images"</span>), <span class="ruby-identifier">data</span>, <span class="ruby-ivar">@token</span>, <span class="ruby-keyword">false</span>)
|
|
254
|
+
<span class="ruby-identifier">imagesAfter</span> = <span class="ruby-identifier">images</span>()
|
|
255
|
+
<span class="ruby-identifier">foundNewImage</span> = <span class="ruby-keyword">true</span>
|
|
256
|
+
<span class="ruby-identifier">image</span> = <span class="ruby-keyword">nil</span>
|
|
257
|
+
<span class="ruby-identifier">imagesAfter</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">imageA</span><span class="ruby-operator">|</span>
|
|
258
|
+
<span class="ruby-identifier">imagesBefore</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">imageB</span><span class="ruby-operator">|</span>
|
|
259
|
+
<span class="ruby-keyword">if</span>(<span class="ruby-identifier">imageA</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">imageB</span>)
|
|
260
|
+
<span class="ruby-identifier">foundNewImage</span> = <span class="ruby-keyword">false</span>
|
|
261
|
+
<span class="ruby-keyword">end</span>
|
|
262
|
+
<span class="ruby-keyword">end</span>
|
|
263
|
+
<span class="ruby-keyword">if</span>(<span class="ruby-identifier">foundNewImage</span>)
|
|
264
|
+
<span class="ruby-identifier">image</span> = <span class="ruby-identifier">imageA</span>
|
|
265
|
+
<span class="ruby-keyword">break</span>
|
|
266
|
+
<span class="ruby-keyword">end</span>
|
|
267
|
+
<span class="ruby-keyword">end</span>
|
|
268
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">put_octect</span>(<span class="ruby-identifier">address</span>(<span class="ruby-identifier">image</span>[<span class="ruby-string">"file"</span>]), <span class="ruby-identifier">file</span>.<span class="ruby-identifier">read</span>, <span class="ruby-keyword">false</span>)
|
|
269
|
+
<span class="ruby-keyword">end</span></pre>
|
|
270
|
+
</div><!-- upload_image_from_file-source -->
|
|
271
|
+
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</div><!-- upload_image_from_file-method -->
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</section><!-- public-instance-method-details -->
|
|
281
|
+
|
|
282
|
+
</section><!-- 5Buntitled-5D -->
|
|
283
|
+
|
|
284
|
+
</div><!-- documentation -->
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
<footer id="validator-badges">
|
|
288
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
289
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
|
290
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
291
|
+
</footer>
|
|
292
|
+
|