occi-api 4.3.6 → 4.3.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5e457c71d021773fd57e1632882d438166cf935
4
- data.tar.gz: 9afa187517fd7ef0facc4295085a10a7b9bf1f97
3
+ metadata.gz: 8c45f1457ca8039df5f78ff5b984513029da5f9f
4
+ data.tar.gz: 955033606de3f6a25842ceaf2cceaa903530d943
5
5
  SHA512:
6
- metadata.gz: 5d531511b8d1fa3d5d2c3658ad9fbb1d29c3c08430779d36ae3b471179443f8afe8b5fc2fd11df0e52df52707a6d09c08dfe9e4919ac86b94759798c855c5bb8
7
- data.tar.gz: 2ab2461149750834ea980da58f36892366d5872cd55c35809cf873231d86fb24ce81e9ccb0be9bf778b049d09cc440960709a635ec88d19f5b36a60efcfd97e1
6
+ metadata.gz: 56dc0703624940e80241248cc654a82e6de776ed84e872e7dcdf0261c12602c0cd3a4c54ac13a1d6931a4833c2fe58a3995b21a1529a0595b7daa5d6bfcd749a
7
+ data.tar.gz: bdeeb8098bec5521f4a9d782c55988f43d92ce2c9bd6f441c929e18714b6e2cf7e1a81fb4e9212b017efbcb6f4880bd9fd4ed443572ba13ab667d65acc9c5f1f
data/Gemfile CHANGED
@@ -1,17 +1,3 @@
1
1
  source "https://rubygems.org/"
2
2
 
3
3
  gemspec
4
-
5
- group :development do
6
- gem 'vcr'
7
- gem 'rubygems-tasks', :git => 'git://github.com/postmodern/rubygems-tasks.git'
8
- gem "rspec"
9
- gem "rake"
10
- gem "builder"
11
- gem "simplecov"
12
- gem "yard"
13
- gem "yard-sinatra"
14
- gem "yard-rspec"
15
- gem "rspec-http"
16
- gem "webmock", "~> 1.9.3"
17
- end
@@ -26,6 +26,28 @@ module Occi::Api::Client
26
26
  new_resource
27
27
  end
28
28
 
29
+ # Creates a new link instance, link should be specified
30
+ # by its name or identifier.
31
+ #
32
+ # @example
33
+ # client.get_link "storagelink" # => Occi::Core::Link
34
+ # client.get_link "http://schemas.ogf.org/occi/infrastructure#storagelink"
35
+ # # => Occi::Core::Link
36
+ #
37
+ # @param link_type [String] link name or link identifier
38
+ # @return [Occi::Core::Link] new link instance
39
+ def get_link(link_type)
40
+ Occi::Api::Log.debug("Instantiating #{link_type.inspect}")
41
+
42
+ type_id = get_link_type_identifier(link_type)
43
+ raise "Unknown link type! #{link_type.inspect}" unless type_id
44
+
45
+ new_link = Occi::Core::Link.new(type_id)
46
+ new_link.model = @model
47
+
48
+ new_link
49
+ end
50
+
29
51
  # Retrieves all available entity types.
30
52
  #
31
53
  # @example
@@ -7,6 +7,11 @@ module Occi::Api::Dsl
7
7
  @client.get_resource(*args)
8
8
  end
9
9
 
10
+ def link(*args)
11
+ check
12
+ @client.get_link(*args)
13
+ end
14
+
10
15
  def list(*args)
11
16
  check
12
17
  @client.list(*args)
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Api
3
- VERSION = "4.3.6" unless defined?(::Occi::Api::VERSION)
3
+ VERSION = "4.3.7" unless defined?(::Occi::Api::VERSION)
4
4
  end
5
5
  end
data/occi-api.gemspec CHANGED
@@ -5,9 +5,9 @@ $:.unshift lib unless $:.include?(lib)
5
5
  require 'occi/api/version'
6
6
 
7
7
  Gem::Specification.new do |gem|
8
- gem.name = "occi-api"
8
+ gem.name = 'occi-api'
9
9
  gem.version = Occi::Api::VERSION
10
- gem.authors = ["Florian Feldhaus","Piotr Kasprzak", "Boris Parak"]
10
+ gem.authors = ['Florian Feldhaus','Piotr Kasprzak', 'Boris Parak']
11
11
  gem.email = ['florian.feldhaus@gmail.com', 'piotr.kasprzak@gwdg.de', 'parak@cesnet.cz']
12
12
  gem.description = %q{This gem provides ready-to-use client classes to simplify the integration of OCCI into your application}
13
13
  gem.summary = %q{OCCI development library providing a high-level client API}
@@ -21,7 +21,17 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency 'occi-core', '~> 4.3', '>= 4.3.2'
22
22
  gem.add_dependency 'httparty', '~> 0.13', '>= 0.13.1'
23
23
  gem.add_dependency 'json', '~> 1.8', '>= 1.8.1'
24
- #gem.add_dependency 'persistent_httparty', '~> 0.1', '>= 0.1.2'
24
+
25
+ gem.add_development_dependency 'vcr'
26
+ gem.add_development_dependency 'rubygems-tasks'
27
+ gem.add_development_dependency 'rspec'
28
+ gem.add_development_dependency 'rake'
29
+ gem.add_development_dependency 'builder'
30
+ gem.add_development_dependency 'simplecov'
31
+ gem.add_development_dependency 'yard'
32
+ gem.add_development_dependency 'yard-rspec'
33
+ gem.add_development_dependency 'rspec-http'
34
+ gem.add_development_dependency 'webmock', '~> 1.9.3'
25
35
 
26
36
  gem.required_ruby_version = '>= 1.9.3'
27
37
  end
@@ -0,0 +1,262 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rocci-test:edited@localhost:3300/-/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi
12
+ User-Agent:
13
+ - rOCCI-core/4.2.5 rOCCI-api/4.2.0.beta.12 OCCI/1.1 ruby-x86_64-linux/1.9.3p194
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 01 Jan 1970 00:00:00 GMT
21
+ Server:
22
+ - Apache/2.2.22 (Debian)
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ X-Ua-Compatible:
30
+ - chrome=1
31
+ Etag:
32
+ - ! '"4ca185da501239625a99fad36f211cb7"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 3ec5bb1d-e2ca-4c98-a137-0e19805d68ba
37
+ X-Runtime:
38
+ - '0.163581'
39
+ X-Powered-By:
40
+ - Phusion Passenger 4.0.29
41
+ Status:
42
+ - 200 OK
43
+ Vary:
44
+ - Accept-Encoding
45
+ Content-Type:
46
+ - text/plain; charset=utf-8
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
52
+ - request:
53
+ method: get
54
+ uri: https://rocci-test:edited@localhost:3300/-/
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - text/plain,text/occi
61
+ User-Agent:
62
+ - rOCCI-core/4.2.5 rOCCI-api/4.2.0.beta.12 OCCI/1.1 ruby-x86_64-linux/1.9.3p194
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Date:
69
+ - Thu, 01 Jan 1970 00:00:00 GMT
70
+ Server:
71
+ - Apache/2.2.22 (Debian)
72
+ X-Frame-Options:
73
+ - SAMEORIGIN
74
+ X-Xss-Protection:
75
+ - 1; mode=block
76
+ X-Content-Type-Options:
77
+ - nosniff
78
+ X-Ua-Compatible:
79
+ - chrome=1
80
+ Etag:
81
+ - ! '"4ca185da501239625a99fad36f211cb7"'
82
+ Cache-Control:
83
+ - max-age=0, private, must-revalidate
84
+ X-Request-Id:
85
+ - 2e4036d4-9c92-46a5-9388-a98218fa7035
86
+ X-Runtime:
87
+ - '0.107278'
88
+ X-Powered-By:
89
+ - Phusion Passenger 4.0.29
90
+ Status:
91
+ - 200 OK
92
+ Vary:
93
+ - Accept-Encoding
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Content-Type:
97
+ - text/plain; charset=utf-8
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="entity";location="/entity/";attributes="occi.core.id{immutable}
101
+ occi.core.title"
102
+
103
+ Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.id{immutable}
104
+ occi.core.title occi.core.summary"
105
+
106
+ Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.id{immutable}
107
+ occi.core.title occi.core.target occi.core.source"
108
+
109
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="compute
110
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.core.id{immutable}
111
+ occi.core.title occi.core.summary occi.compute.architecture occi.compute.cores
112
+ occi.compute.hostname occi.compute.memory occi.compute.speed occi.compute.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
113
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
114
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
115
+
116
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="storage
117
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.core.id{immutable}
118
+ occi.core.title occi.core.summary occi.storage.size occi.storage.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
119
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
120
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
121
+
122
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="network
123
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.core.id{immutable}
124
+ occi.core.title occi.core.summary occi.network.vlan occi.network.label occi.network.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
125
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
126
+
127
+ Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="networkinterface
128
+ link";rel="http://schemas.ogf.org/occi/core#link";location="/link/networkinterface/";attributes="occi.core.id{immutable}
129
+ occi.core.title occi.core.target occi.core.source occi.networkinterface.interface{immutable}
130
+ occi.networkinterface.mac occi.networkinterface.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#up
131
+ http://schemas.ogf.org/occi/infrastructure/networkinterface/action#down"
132
+
133
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="storage
134
+ link";rel="http://schemas.ogf.org/occi/core#link";location="/link/storagelink/";attributes="occi.core.id{immutable}
135
+ occi.core.title occi.core.target occi.core.source occi.storagelink.deviceid
136
+ occi.storagelink.mountpoint occi.storagelink.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/storagelink/action#online
137
+ http://schemas.ogf.org/occi/infrastructure/storagelink/action#offline"
138
+
139
+ Category: console;scheme="http://schemas.ogf.org/occi/infrastructure/compute#";class="kind";title="Link
140
+ to the VM''s console";rel="http://schemas.ogf.org/occi/core#link";location="/link/consolelink/"
141
+
142
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="resource
143
+ template";location="/mixin/resource_tpl/"
144
+
145
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="operating
146
+ system template";location="/mixin/os_tpl/"
147
+
148
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
149
+ network mixin";location="/mixin/ipnetwork/";attributes="occi.network.address
150
+ occi.network.gateway occi.network.allocation"
151
+
152
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
153
+ network interface mixin";location="/mixin/ipnetworkinterface/";attributes="occi.networkinterface.address
154
+ occi.networkinterface.gateway occi.networkinterface.allocation"
155
+
156
+ Category: public_key;scheme="http://schemas.openstack.org/instance/credentials#";class="mixin";title="OpenStack''s
157
+ contextualization extension - credentials";location="/mixin/public_key/";attributes="org.openstack.credentials.publickey.name{immutable}
158
+ org.openstack.credentials.publickey.data{immutable}"
159
+
160
+ Category: user_data;scheme="http://schemas.openstack.org/compute/instance#";class="mixin";title="OpenStack''s
161
+ contextualization extension - user_data";location="/mixin/user_data/";attributes="org.openstack.compute.user_data{immutable}"
162
+
163
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
164
+ specific Storage attributes";location="/mixin/storage/";attributes="org.opennebula.storage.id{immutable}
165
+ org.opennebula.storage.type{immutable} org.opennebula.storage.persistent{immutable}
166
+ org.opennebula.storage.dev_prefix{immutable} org.opennebula.storage.bus{immutable}
167
+ org.opennebula.storage.driver{immutable} org.opennebula.storage.fstype{immutable}
168
+ org.opennebula.storage.path{immutable}"
169
+
170
+ Category: compute;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
171
+ specific Compute attributes";location="/mixin/compute/";attributes="org.opennebula.compute.id{immutable}
172
+ org.opennebula.compute.cpu{immutable} org.opennebula.compute.kernel{immutable}
173
+ org.opennebula.compute.initrd{immutable} org.opennebula.compute.root{immutable}
174
+ org.opennebula.compute.kernel_cmd{immutable} org.opennebula.compute.bootloader{immutable}
175
+ org.opennebula.compute.boot{immutable}"
176
+
177
+ Category: networkinterface;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
178
+ specific Networkinterface attributes";location="/mixin/networkinterface/";attributes="org.opennebula.networkinterface.bridge{immutable}
179
+ org.opennebula.networkinterface.script{immutable} org.opennebula.networkinterface.model{immutable}
180
+ org.opennebula.networkinterface.white_ports_tcp{immutable} org.opennebula.networkinterface.black_ports_tcp{immutable}
181
+ org.opennebula.networkinterface.white_ports_udp{immutable} org.opennebula.networkinterface.black_ports_udp{immutable}
182
+ org.opennebula.networkinterface.icmp{immutable}"
183
+
184
+ Category: storagelink;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
185
+ specific Storagelink attributes";location="/mixin/storagelink/";attributes="org.opennebula.storagelink.bus{immutable}
186
+ org.opennebula.storagelink.driver{immutable} org.opennebula.storagelink.dev_prefix{immutable}"
187
+
188
+ Category: network;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
189
+ specific Network attributes";location="/mixin/network/";attributes="org.opennebula.network.id{immutable}
190
+ org.opennebula.network.bridge{immutable} org.opennebula.network.vlan{immutable}
191
+ org.opennebula.network.phydev{immutable} org.opennebula.network.ip_start{immutable}
192
+ org.opennebula.network.ip_end{immutable}"
193
+
194
+ Category: uuid_monitoring_4;scheme="http://localhost/occi/infrastructure/os_tpl#";class="mixin";title="monitoring";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixin/os_tpl/uuid_monitoring_4/"
195
+
196
+ Category: uuid_debianvm_5;scheme="http://localhost/occi/infrastructure/os_tpl#";class="mixin";title="debianvm";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixin/os_tpl/uuid_debianvm_5/"
197
+
198
+ Category: medium;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
199
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/medium/";attributes="occi.compute.architecture
200
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
201
+
202
+ Category: small;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Small
203
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/small/";attributes="occi.compute.architecture
204
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
205
+
206
+ Category: extra_large;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
207
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/extra_large/";attributes="occi.compute.architecture{immutable}
208
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
209
+
210
+ Category: large;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Large
211
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/large/";attributes="occi.compute.architecture{immutable}
212
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
213
+
214
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="start
215
+ compute instance"
216
+
217
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="stop
218
+ compute instance";attributes="method"
219
+
220
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="restart
221
+ compute instance";attributes="method"
222
+
223
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="suspend
224
+ compute instance";attributes="method"
225
+
226
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="activate
227
+ storage"
228
+
229
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="deactivate
230
+ storage"
231
+
232
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="backup
233
+ storage"
234
+
235
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="snapshot
236
+ storage"
237
+
238
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="resize
239
+ storage";attributes="size{required}"
240
+
241
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="activate
242
+ network"
243
+
244
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="deactivate
245
+ network"
246
+
247
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#";class="action";title="activate
248
+ networkinterface"
249
+
250
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#";class="action";title="deactivate
251
+ networkinterface"
252
+
253
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storagelink/action#";class="action";title="activate
254
+ storagelink"
255
+
256
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storagelink/action#";class="action";title="deactivate
257
+ storagelink"
258
+
259
+ '
260
+ http_version:
261
+ recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
262
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,262 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rocci-test:edited@localhost:3300/-/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi
12
+ User-Agent:
13
+ - rOCCI-core/4.2.5 rOCCI-api/4.2.0.beta.12 OCCI/1.1 ruby-x86_64-linux/1.9.3p194
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 01 Jan 1970 00:00:00 GMT
21
+ Server:
22
+ - Apache/2.2.22 (Debian)
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ X-Ua-Compatible:
30
+ - chrome=1
31
+ Etag:
32
+ - ! '"4ca185da501239625a99fad36f211cb7"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 3ec5bb1d-e2ca-4c98-a137-0e19805d68ba
37
+ X-Runtime:
38
+ - '0.163581'
39
+ X-Powered-By:
40
+ - Phusion Passenger 4.0.29
41
+ Status:
42
+ - 200 OK
43
+ Vary:
44
+ - Accept-Encoding
45
+ Content-Type:
46
+ - text/plain; charset=utf-8
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
52
+ - request:
53
+ method: get
54
+ uri: https://rocci-test:edited@localhost:3300/-/
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - text/plain,text/occi
61
+ User-Agent:
62
+ - rOCCI-core/4.2.5 rOCCI-api/4.2.0.beta.12 OCCI/1.1 ruby-x86_64-linux/1.9.3p194
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Date:
69
+ - Thu, 01 Jan 1970 00:00:00 GMT
70
+ Server:
71
+ - Apache/2.2.22 (Debian)
72
+ X-Frame-Options:
73
+ - SAMEORIGIN
74
+ X-Xss-Protection:
75
+ - 1; mode=block
76
+ X-Content-Type-Options:
77
+ - nosniff
78
+ X-Ua-Compatible:
79
+ - chrome=1
80
+ Etag:
81
+ - ! '"4ca185da501239625a99fad36f211cb7"'
82
+ Cache-Control:
83
+ - max-age=0, private, must-revalidate
84
+ X-Request-Id:
85
+ - 2e4036d4-9c92-46a5-9388-a98218fa7035
86
+ X-Runtime:
87
+ - '0.107278'
88
+ X-Powered-By:
89
+ - Phusion Passenger 4.0.29
90
+ Status:
91
+ - 200 OK
92
+ Vary:
93
+ - Accept-Encoding
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Content-Type:
97
+ - text/plain; charset=utf-8
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="entity";location="/entity/";attributes="occi.core.id{immutable}
101
+ occi.core.title"
102
+
103
+ Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.id{immutable}
104
+ occi.core.title occi.core.summary"
105
+
106
+ Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.id{immutable}
107
+ occi.core.title occi.core.target occi.core.source"
108
+
109
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="compute
110
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.core.id{immutable}
111
+ occi.core.title occi.core.summary occi.compute.architecture occi.compute.cores
112
+ occi.compute.hostname occi.compute.memory occi.compute.speed occi.compute.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
113
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
114
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
115
+
116
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="storage
117
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.core.id{immutable}
118
+ occi.core.title occi.core.summary occi.storage.size occi.storage.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
119
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
120
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
121
+
122
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="network
123
+ resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.core.id{immutable}
124
+ occi.core.title occi.core.summary occi.network.vlan occi.network.label occi.network.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
125
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
126
+
127
+ Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="networkinterface
128
+ link";rel="http://schemas.ogf.org/occi/core#link";location="/link/networkinterface/";attributes="occi.core.id{immutable}
129
+ occi.core.title occi.core.target occi.core.source occi.networkinterface.interface{immutable}
130
+ occi.networkinterface.mac occi.networkinterface.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#up
131
+ http://schemas.ogf.org/occi/infrastructure/networkinterface/action#down"
132
+
133
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="storage
134
+ link";rel="http://schemas.ogf.org/occi/core#link";location="/link/storagelink/";attributes="occi.core.id{immutable}
135
+ occi.core.title occi.core.target occi.core.source occi.storagelink.deviceid
136
+ occi.storagelink.mountpoint occi.storagelink.state{immutable}";actions="http://schemas.ogf.org/occi/infrastructure/storagelink/action#online
137
+ http://schemas.ogf.org/occi/infrastructure/storagelink/action#offline"
138
+
139
+ Category: console;scheme="http://schemas.ogf.org/occi/infrastructure/compute#";class="kind";title="Link
140
+ to the VM''s console";rel="http://schemas.ogf.org/occi/core#link";location="/link/consolelink/"
141
+
142
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="resource
143
+ template";location="/mixin/resource_tpl/"
144
+
145
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="operating
146
+ system template";location="/mixin/os_tpl/"
147
+
148
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
149
+ network mixin";location="/mixin/ipnetwork/";attributes="occi.network.address
150
+ occi.network.gateway occi.network.allocation"
151
+
152
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
153
+ network interface mixin";location="/mixin/ipnetworkinterface/";attributes="occi.networkinterface.address
154
+ occi.networkinterface.gateway occi.networkinterface.allocation"
155
+
156
+ Category: public_key;scheme="http://schemas.openstack.org/instance/credentials#";class="mixin";title="OpenStack''s
157
+ contextualization extension - credentials";location="/mixin/public_key/";attributes="org.openstack.credentials.publickey.name{immutable}
158
+ org.openstack.credentials.publickey.data{immutable}"
159
+
160
+ Category: user_data;scheme="http://schemas.openstack.org/compute/instance#";class="mixin";title="OpenStack''s
161
+ contextualization extension - user_data";location="/mixin/user_data/";attributes="org.openstack.compute.user_data{immutable}"
162
+
163
+ Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
164
+ specific Storage attributes";location="/mixin/storage/";attributes="org.opennebula.storage.id{immutable}
165
+ org.opennebula.storage.type{immutable} org.opennebula.storage.persistent{immutable}
166
+ org.opennebula.storage.dev_prefix{immutable} org.opennebula.storage.bus{immutable}
167
+ org.opennebula.storage.driver{immutable} org.opennebula.storage.fstype{immutable}
168
+ org.opennebula.storage.path{immutable}"
169
+
170
+ Category: compute;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
171
+ specific Compute attributes";location="/mixin/compute/";attributes="org.opennebula.compute.id{immutable}
172
+ org.opennebula.compute.cpu{immutable} org.opennebula.compute.kernel{immutable}
173
+ org.opennebula.compute.initrd{immutable} org.opennebula.compute.root{immutable}
174
+ org.opennebula.compute.kernel_cmd{immutable} org.opennebula.compute.bootloader{immutable}
175
+ org.opennebula.compute.boot{immutable}"
176
+
177
+ Category: networkinterface;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
178
+ specific Networkinterface attributes";location="/mixin/networkinterface/";attributes="org.opennebula.networkinterface.bridge{immutable}
179
+ org.opennebula.networkinterface.script{immutable} org.opennebula.networkinterface.model{immutable}
180
+ org.opennebula.networkinterface.white_ports_tcp{immutable} org.opennebula.networkinterface.black_ports_tcp{immutable}
181
+ org.opennebula.networkinterface.white_ports_udp{immutable} org.opennebula.networkinterface.black_ports_udp{immutable}
182
+ org.opennebula.networkinterface.icmp{immutable}"
183
+
184
+ Category: storagelink;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
185
+ specific Storagelink attributes";location="/mixin/storagelink/";attributes="org.opennebula.storagelink.bus{immutable}
186
+ org.opennebula.storagelink.driver{immutable} org.opennebula.storagelink.dev_prefix{immutable}"
187
+
188
+ Category: network;scheme="http://opennebula.org/occi/infrastructure#";class="mixin";title="OpenNebula
189
+ specific Network attributes";location="/mixin/network/";attributes="org.opennebula.network.id{immutable}
190
+ org.opennebula.network.bridge{immutable} org.opennebula.network.vlan{immutable}
191
+ org.opennebula.network.phydev{immutable} org.opennebula.network.ip_start{immutable}
192
+ org.opennebula.network.ip_end{immutable}"
193
+
194
+ Category: uuid_monitoring_4;scheme="http://localhost/occi/infrastructure/os_tpl#";class="mixin";title="monitoring";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixin/os_tpl/uuid_monitoring_4/"
195
+
196
+ Category: uuid_debianvm_5;scheme="http://localhost/occi/infrastructure/os_tpl#";class="mixin";title="debianvm";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixin/os_tpl/uuid_debianvm_5/"
197
+
198
+ Category: medium;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
199
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/medium/";attributes="occi.compute.architecture
200
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
201
+
202
+ Category: small;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Small
203
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/small/";attributes="occi.compute.architecture
204
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
205
+
206
+ Category: extra_large;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
207
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/extra_large/";attributes="occi.compute.architecture{immutable}
208
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
209
+
210
+ Category: large;scheme="http://sitespecific.localhost/occi/infrastructure/resource_tpl#";class="mixin";title="Large
211
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixin/resource_tpl/large/";attributes="occi.compute.architecture{immutable}
212
+ occi.compute.cores{immutable} occi.compute.speed{immutable} occi.compute.memory{immutable}"
213
+
214
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="start
215
+ compute instance"
216
+
217
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="stop
218
+ compute instance";attributes="method"
219
+
220
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="restart
221
+ compute instance";attributes="method"
222
+
223
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="suspend
224
+ compute instance";attributes="method"
225
+
226
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="activate
227
+ storage"
228
+
229
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="deactivate
230
+ storage"
231
+
232
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="backup
233
+ storage"
234
+
235
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="snapshot
236
+ storage"
237
+
238
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="resize
239
+ storage";attributes="size{required}"
240
+
241
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="activate
242
+ network"
243
+
244
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="deactivate
245
+ network"
246
+
247
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#";class="action";title="activate
248
+ networkinterface"
249
+
250
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface/action#";class="action";title="deactivate
251
+ networkinterface"
252
+
253
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storagelink/action#";class="action";title="activate
254
+ storagelink"
255
+
256
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storagelink/action#";class="action";title="deactivate
257
+ storagelink"
258
+
259
+ '
260
+ http_version:
261
+ recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
262
+ recorded_with: VCR 2.8.0