occi 2.5.19 → 3.0.0.beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/.gitignore +4 -0
  2. data/.travis.yml +3 -1
  3. data/AUTHORS +4 -3
  4. data/Gemfile +9 -0
  5. data/Gemfile.lock +64 -21
  6. data/README.md +19 -14
  7. data/Rakefile +12 -8
  8. data/Test Results - discovery_interface.html +862 -0
  9. data/bin/occi +333 -83
  10. data/examples/dsl_example.rb +6 -6
  11. data/examples/x509auth_example.rb +6 -6
  12. data/features/common/step_definitions/common_steps.rb +32 -0
  13. data/features/occi/core/create/create.feature +17 -0
  14. data/features/occi/core/create/step_definitions/create_steps.rb +0 -0
  15. data/features/occi/core/delete/delete.feature +14 -0
  16. data/features/occi/core/delete/step_definitions/delete_steps.rb +0 -0
  17. data/features/occi/core/discovery_interface/discovery_interface.feature +35 -0
  18. data/features/occi/core/discovery_interface/step_definitions/discovery_interface_steps.rb +19 -0
  19. data/features/occi/core/miscellaneous/miscellaneous.feature +14 -0
  20. data/features/occi/core/miscellaneous/step_definitions/miscellaneous_steps.rb +0 -0
  21. data/features/occi/core/read/read.feature +14 -0
  22. data/features/occi/core/read/step_definitions/read_steps.rb +0 -0
  23. data/features/occi/core/update/step_definitions/update_steps.rb +0 -0
  24. data/features/occi/core/update/update.feature +14 -0
  25. data/features/occi/infrastructure/create/create.feature +14 -0
  26. data/features/occi/infrastructure/create/step_definitions/create_steps.rb +0 -0
  27. data/features/support/env.rb +4 -0
  28. data/lib/occi.rb +29 -3
  29. data/lib/occi/api/client/client_amqp.rb +756 -0
  30. data/lib/occi/api/client/client_http.rb +922 -0
  31. data/lib/occi/api/client/http/httparty_fix.rb +53 -0
  32. data/lib/occi/api/client/http/net_http_fix.rb +46 -0
  33. data/lib/occi/api/dsl.rb +77 -73
  34. data/lib/occi/bin/helpers.rb +91 -0
  35. data/lib/occi/bin/occi_opts.rb +251 -0
  36. data/lib/occi/bin/resource_output_factory.rb +90 -0
  37. data/lib/occi/bin/templates/compute.erb +15 -0
  38. data/lib/occi/bin/templates/network.erb +11 -0
  39. data/lib/occi/bin/templates/os_tpl.erb +9 -0
  40. data/lib/occi/bin/templates/resource_tpl.erb +9 -0
  41. data/lib/occi/bin/templates/storage.erb +10 -0
  42. data/lib/occi/collection.rb +122 -25
  43. data/lib/occi/core.rb +18 -9
  44. data/lib/occi/core/action.rb +20 -4
  45. data/lib/occi/core/action_instance.rb +24 -0
  46. data/lib/occi/core/actions.rb +22 -0
  47. data/lib/occi/core/attribute_properties.rb +33 -84
  48. data/lib/occi/core/attributes.rb +32 -14
  49. data/lib/occi/core/categories.rb +46 -0
  50. data/lib/occi/core/category.rb +94 -20
  51. data/lib/occi/core/entities.rb +50 -0
  52. data/lib/occi/core/entity.rb +130 -89
  53. data/lib/occi/core/kind.rb +28 -35
  54. data/lib/occi/core/kinds.rb +22 -0
  55. data/lib/occi/core/link.rb +43 -40
  56. data/lib/occi/core/links.rb +34 -0
  57. data/lib/occi/core/mixin.rb +28 -23
  58. data/lib/occi/core/mixins.rb +22 -0
  59. data/lib/occi/core/related.rb +20 -0
  60. data/lib/occi/core/resource.rb +40 -40
  61. data/lib/occi/core/resources.rb +14 -0
  62. data/lib/occi/infrastructure.rb +27 -0
  63. data/lib/occi/infrastructure/compute.rb +159 -0
  64. data/lib/occi/infrastructure/network.rb +131 -0
  65. data/lib/occi/infrastructure/network/ipnetwork.rb +34 -0
  66. data/lib/occi/infrastructure/networkinterface.rb +124 -0
  67. data/lib/occi/infrastructure/networkinterface/ipnetworkinterface.rb +34 -0
  68. data/lib/occi/infrastructure/os_tpl.rb +19 -0
  69. data/lib/occi/infrastructure/resource_tpl.rb +19 -0
  70. data/lib/occi/infrastructure/storage.rb +96 -0
  71. data/lib/occi/infrastructure/storagelink.rb +73 -0
  72. data/lib/occi/log.rb +6 -2
  73. data/lib/occi/model.rb +38 -70
  74. data/lib/occi/parser.rb +108 -88
  75. data/lib/occi/version.rb +2 -2
  76. data/lib/occiantlr/OCCIANTLR.g +6 -5
  77. data/lib/occiantlr/OCCIANTLRLexer.rb +52 -52
  78. data/lib/occiantlr/OCCIANTLRParser.rb +678 -569
  79. data/lib/occiantlr/README.md +1 -1
  80. data/occi.gemspec +2 -1
  81. data/spec/cassettes/client_http_text_plain.yml +1066 -0
  82. data/spec/occi/api/client/client_amqp_spec.rb +148 -0
  83. data/spec/occi/api/client/client_http_0.5_spec.rb +292 -0
  84. data/spec/occi/api/client/client_http_spec.rb +259 -0
  85. data/spec/occi/api/dsl_spec.rb +0 -0
  86. data/spec/occi/collection_spec.rb +23 -10
  87. data/spec/occi/core/categories_spec.rb +30 -0
  88. data/spec/occi/core/category_spec.rb +41 -0
  89. data/spec/occi/core/entity_spec.rb +52 -0
  90. data/spec/occi/core/resource_spec.rb +21 -0
  91. data/spec/occi/infrastructure/compute_spec.rb +32 -0
  92. data/spec/occi/log_spec.rb +10 -10
  93. data/spec/occi/model_spec.rb +24 -24
  94. data/spec/occi/parser_spec.rb +89 -39
  95. data/spec/occi/test.json +22 -58
  96. data/spec/occiantlr/parser_spec.rb +5 -7
  97. data/spec/spec_helper.rb +13 -3
  98. metadata +116 -19
  99. data/etc/model/infrastructure/compute.json +0 -108
  100. data/etc/model/infrastructure/ipnetwork.json +0 -40
  101. data/etc/model/infrastructure/ipnetworkinterface.json +0 -40
  102. data/etc/model/infrastructure/network.json +0 -55
  103. data/etc/model/infrastructure/networkinterface.json +0 -38
  104. data/etc/model/infrastructure/os_template.json +0 -9
  105. data/etc/model/infrastructure/resource_template.json +0 -9
  106. data/etc/model/infrastructure/storage.json +0 -72
  107. data/etc/model/infrastructure/storagelink.json +0 -38
  108. data/lib/occi/api/client.rb +0 -596
  109. data/lib/occi/client/occiopts.rb +0 -146
  110. data/spec/occi/client_spec.rb +0 -12
data/spec/occi/test.json CHANGED
@@ -1,66 +1,30 @@
1
1
  {
2
- "resources": [
2
+ "resources":[
3
3
  {
4
- "links": [
5
- {
6
- "kind": "http://schemas.ogf.org/occi/infrastructure#storagelink",
7
- "attributes": {
8
- "occi": {
9
- "core": {
10
- "id": "34cb5bce-d31a-11e1-a11a-a4b197fffef3",
11
- "title": "lamp",
12
- "target": "http://example.com/lamp.vmdk"
13
- }
14
- }
15
- }
16
- }
17
- ],
18
- "kind": "http://schemas.ogf.org/occi/infrastructure#storage",
19
- "attributes": {
20
- "occi": {
21
- "core": {
22
- "id": "34c88188-d31a-11e1-a11a-a4b197fffef3",
23
- "title": "lamp"
24
- }
25
- }
26
- }
27
- },
28
- {
29
- "kind": "http://schemas.ogf.org/occi/infrastructure#network",
30
- "attributes": {
31
- "occi": {
32
- "core": {
33
- "id": "34cb6830-d31a-11e1-a11a-a4b197fffef3",
34
- "title": "VM Network"
4
+ "kind":"http://schemas.ogf.org/occi/infrastructure#compute",
5
+ "attributes":{
6
+ "occi":{
7
+ "core":{
8
+ "summary":""
9
+ },
10
+ "compute":{
11
+ "cores":1,
12
+ "memory":256
35
13
  }
36
14
  }
37
- }
38
- },
15
+ },
16
+ "links":["/storagelink/34cbb948-d31a-11e1-a11a-a4b197fffef3"]
17
+ }
18
+ ],
19
+ "links":[
39
20
  {
40
- "links": [
41
- {
42
- "kind": "http://schemas.ogf.org/occi/infrastructure#storagelink",
43
- "attributes": {
44
- "occi": {
45
- "core": {
46
- "id": "34cbb948-d31a-11e1-a11a-a4b197fffef3",
47
- "title": "Harddisk 1",
48
- "target": "/storage/34c88188-d31a-11e1-a11a-a4b197fffef3"
49
- }
50
- }
51
- }
52
- }
53
- ],
54
- "kind": "http://schemas.ogf.org/occi/infrastructure#compute",
55
- "attributes": {
56
- "occi": {
57
- "core": {
58
- "id": "34cb6f60-d31a-11e1-a11a-a4b197fffef3",
59
- "summary": ""
60
- },
61
- "compute": {
62
- "cores": 1,
63
- "memory": 256
21
+ "kind":"http://schemas.ogf.org/occi/infrastructure#storagelink",
22
+ "attributes":{
23
+ "occi":{
24
+ "core":{
25
+ "id":"urn:uuid:34cbb948-d31a-11e1-a11a-a4b197fffef3",
26
+ "title":"Harddisk 1",
27
+ "target":"/storage/34c88188-d31a-11e1-a11a-a4b197fffef3"
64
28
  }
65
29
  }
66
30
  }
@@ -3,12 +3,11 @@ require 'hashie'
3
3
 
4
4
  require 'occiantlr/OCCIANTLRParser'
5
5
 
6
- module OCCI
7
- module ANTLR
6
+ module OCCIANTLR
8
7
  describe Parser do
9
8
  describe "#Category" do
10
9
  it "is parsed successful" do
11
- ATTRIBUTE = { :Mutable => true, :Required => false, :Type => "string" }
10
+ ATTRIBUTE = { :mutable => true, :required => false, :type => "string" }
12
11
  term = 'entity'
13
12
  scheme = 'http://schemas.ogf.org/occi/core#'
14
13
  class_type = 'kind'
@@ -16,7 +15,7 @@ module OCCI
16
15
  rel = ['http://schemas.ogf.org/occi/core#resource#']
17
16
  location = '/storage/'
18
17
  attributes = Hashie::Mash.new
19
- attributes.occi!.storage!.size = { :Mutable => false, :Required => false, :Type => "string" }
18
+ attributes.occi!.storage!.size = { :mutable => false, :required => false, :type => "string" }
20
19
  attributes.occi!.storage!.state = ATTRIBUTE
21
20
  attributes_string = 'occi.storage.size{immutable} occi.storage.state'
22
21
  actions = Array.new
@@ -42,7 +41,7 @@ module OCCI
42
41
  target = '/network/123'
43
42
  rel = 'http://schemas.ogf.org/occi/infrastructure#network'
44
43
  self_location = '/link/networkinterface/456'
45
- kind = 'http://schemas.ogf.org/occi/infrastructure#networkinterface'
44
+ kind = 'http://schemas.ogf.org/occi/infrastructure#networkinterface'
46
45
  attributes = Hashie::Mash.new
47
46
  attributes.occi!.networkinterface!.interface = 'eth0'
48
47
  attributes.occi!.networkinterface!.mac = '00:11:22:33:44:55'
@@ -54,7 +53,7 @@ module OCCI
54
53
  link[:target].should == target
55
54
  link[:rel].should == rel
56
55
  link[:self].should == self_location
57
- link[:kind].should == kind
56
+ link[:categories].first.should == kind
58
57
  link[:attributes].should == attributes
59
58
  end
60
59
  end
@@ -81,4 +80,3 @@ module OCCI
81
80
  end
82
81
  end
83
82
  end
84
- end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,16 @@
1
1
  if ENV['COVERAGE']
2
2
  require 'simplecov'
3
3
  SimpleCov.start
4
- # For rails applications use
5
- # SimpleCov.start 'rails'
6
- end
4
+ end
5
+
6
+ require 'vcr'
7
+
8
+ VCR.configure do |c|
9
+ c.hook_into :webmock
10
+ c.cassette_library_dir = 'spec/cassettes'
11
+ c.default_cassette_options = { :record => :new_episodes }
12
+ end
13
+
14
+ RSpec.configure do |c|
15
+ c.extend VCR::RSpec::Macros
16
+ end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.19
5
- prerelease:
4
+ version: 3.0.0.beta.0
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Feldhaus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-08 00:00:00.000000000 Z
13
+ date: 2012-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -156,6 +156,22 @@ dependencies:
156
156
  - - ! '>='
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: amqp
161
+ requirement: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
159
175
  description: OCCI is a collection of classes to simplify the implementation of the
160
176
  Open Cloud Computing API in Ruby
161
177
  email:
@@ -176,33 +192,70 @@ files:
176
192
  - LICENSE
177
193
  - README.md
178
194
  - Rakefile
195
+ - Test Results - discovery_interface.html
179
196
  - bin/occi
180
- - etc/model/infrastructure/compute.json
181
- - etc/model/infrastructure/ipnetwork.json
182
- - etc/model/infrastructure/ipnetworkinterface.json
183
- - etc/model/infrastructure/network.json
184
- - etc/model/infrastructure/networkinterface.json
185
- - etc/model/infrastructure/os_template.json
186
- - etc/model/infrastructure/resource_template.json
187
- - etc/model/infrastructure/storage.json
188
- - etc/model/infrastructure/storagelink.json
189
197
  - examples/dsl_example.rb
190
198
  - examples/x509auth_example.rb
199
+ - features/common/step_definitions/common_steps.rb
200
+ - features/occi/core/create/create.feature
201
+ - features/occi/core/create/step_definitions/create_steps.rb
202
+ - features/occi/core/delete/delete.feature
203
+ - features/occi/core/delete/step_definitions/delete_steps.rb
204
+ - features/occi/core/discovery_interface/discovery_interface.feature
205
+ - features/occi/core/discovery_interface/step_definitions/discovery_interface_steps.rb
206
+ - features/occi/core/miscellaneous/miscellaneous.feature
207
+ - features/occi/core/miscellaneous/step_definitions/miscellaneous_steps.rb
208
+ - features/occi/core/read/read.feature
209
+ - features/occi/core/read/step_definitions/read_steps.rb
210
+ - features/occi/core/update/step_definitions/update_steps.rb
211
+ - features/occi/core/update/update.feature
212
+ - features/occi/infrastructure/create/create.feature
213
+ - features/occi/infrastructure/create/step_definitions/create_steps.rb
214
+ - features/support/env.rb
191
215
  - lib/occi.rb
192
- - lib/occi/api/client.rb
216
+ - lib/occi/api/client/client_amqp.rb
217
+ - lib/occi/api/client/client_http.rb
218
+ - lib/occi/api/client/http/httparty_fix.rb
219
+ - lib/occi/api/client/http/net_http_fix.rb
193
220
  - lib/occi/api/dsl.rb
194
- - lib/occi/client/occiopts.rb
221
+ - lib/occi/bin/helpers.rb
222
+ - lib/occi/bin/occi_opts.rb
223
+ - lib/occi/bin/resource_output_factory.rb
224
+ - lib/occi/bin/templates/compute.erb
225
+ - lib/occi/bin/templates/network.erb
226
+ - lib/occi/bin/templates/os_tpl.erb
227
+ - lib/occi/bin/templates/resource_tpl.erb
228
+ - lib/occi/bin/templates/storage.erb
195
229
  - lib/occi/collection.rb
196
230
  - lib/occi/core.rb
197
231
  - lib/occi/core/action.rb
232
+ - lib/occi/core/action_instance.rb
233
+ - lib/occi/core/actions.rb
198
234
  - lib/occi/core/attribute_properties.rb
199
235
  - lib/occi/core/attributes.rb
236
+ - lib/occi/core/categories.rb
200
237
  - lib/occi/core/category.rb
238
+ - lib/occi/core/entities.rb
201
239
  - lib/occi/core/entity.rb
202
240
  - lib/occi/core/kind.rb
241
+ - lib/occi/core/kinds.rb
203
242
  - lib/occi/core/link.rb
243
+ - lib/occi/core/links.rb
204
244
  - lib/occi/core/mixin.rb
245
+ - lib/occi/core/mixins.rb
246
+ - lib/occi/core/related.rb
205
247
  - lib/occi/core/resource.rb
248
+ - lib/occi/core/resources.rb
249
+ - lib/occi/infrastructure.rb
250
+ - lib/occi/infrastructure/compute.rb
251
+ - lib/occi/infrastructure/network.rb
252
+ - lib/occi/infrastructure/network/ipnetwork.rb
253
+ - lib/occi/infrastructure/networkinterface.rb
254
+ - lib/occi/infrastructure/networkinterface/ipnetworkinterface.rb
255
+ - lib/occi/infrastructure/os_tpl.rb
256
+ - lib/occi/infrastructure/resource_tpl.rb
257
+ - lib/occi/infrastructure/storage.rb
258
+ - lib/occi/infrastructure/storagelink.rb
206
259
  - lib/occi/log.rb
207
260
  - lib/occi/model.rb
208
261
  - lib/occi/parser.rb
@@ -214,8 +267,17 @@ files:
214
267
  - lib/occiantlr/OCCIANTLRParser.rb
215
268
  - lib/occiantlr/README.md
216
269
  - occi.gemspec
217
- - spec/occi/client_spec.rb
270
+ - spec/cassettes/client_http_text_plain.yml
271
+ - spec/occi/api/client/client_amqp_spec.rb
272
+ - spec/occi/api/client/client_http_0.5_spec.rb
273
+ - spec/occi/api/client/client_http_spec.rb
274
+ - spec/occi/api/dsl_spec.rb
218
275
  - spec/occi/collection_spec.rb
276
+ - spec/occi/core/categories_spec.rb
277
+ - spec/occi/core/category_spec.rb
278
+ - spec/occi/core/entity_spec.rb
279
+ - spec/occi/core/resource_spec.rb
280
+ - spec/occi/infrastructure/compute_spec.rb
219
281
  - spec/occi/log_spec.rb
220
282
  - spec/occi/model_spec.rb
221
283
  - spec/occi/parser_spec.rb
@@ -239,14 +301,49 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
301
  required_rubygems_version: !ruby/object:Gem::Requirement
240
302
  none: false
241
303
  requirements:
242
- - - ! '>='
304
+ - - ! '>'
243
305
  - !ruby/object:Gem::Version
244
- version: '0'
306
+ version: 1.3.1
245
307
  requirements: []
246
308
  rubyforge_project:
247
- rubygems_version: 1.8.25
309
+ rubygems_version: 1.8.24
248
310
  signing_key:
249
311
  specification_version: 3
250
312
  summary: OCCI toolkit
251
- test_files: []
313
+ test_files:
314
+ - features/common/step_definitions/common_steps.rb
315
+ - features/occi/core/create/create.feature
316
+ - features/occi/core/create/step_definitions/create_steps.rb
317
+ - features/occi/core/delete/delete.feature
318
+ - features/occi/core/delete/step_definitions/delete_steps.rb
319
+ - features/occi/core/discovery_interface/discovery_interface.feature
320
+ - features/occi/core/discovery_interface/step_definitions/discovery_interface_steps.rb
321
+ - features/occi/core/miscellaneous/miscellaneous.feature
322
+ - features/occi/core/miscellaneous/step_definitions/miscellaneous_steps.rb
323
+ - features/occi/core/read/read.feature
324
+ - features/occi/core/read/step_definitions/read_steps.rb
325
+ - features/occi/core/update/step_definitions/update_steps.rb
326
+ - features/occi/core/update/update.feature
327
+ - features/occi/infrastructure/create/create.feature
328
+ - features/occi/infrastructure/create/step_definitions/create_steps.rb
329
+ - features/support/env.rb
330
+ - spec/cassettes/client_http_text_plain.yml
331
+ - spec/occi/api/client/client_amqp_spec.rb
332
+ - spec/occi/api/client/client_http_0.5_spec.rb
333
+ - spec/occi/api/client/client_http_spec.rb
334
+ - spec/occi/api/dsl_spec.rb
335
+ - spec/occi/collection_spec.rb
336
+ - spec/occi/core/categories_spec.rb
337
+ - spec/occi/core/category_spec.rb
338
+ - spec/occi/core/entity_spec.rb
339
+ - spec/occi/core/resource_spec.rb
340
+ - spec/occi/infrastructure/compute_spec.rb
341
+ - spec/occi/log_spec.rb
342
+ - spec/occi/model_spec.rb
343
+ - spec/occi/parser_spec.rb
344
+ - spec/occi/test.json
345
+ - spec/occi/test.ova
346
+ - spec/occi/test.ovf
347
+ - spec/occiantlr/parser_spec.rb
348
+ - spec/spec_helper.rb
252
349
  has_rdoc:
@@ -1,108 +0,0 @@
1
- {
2
- "kinds":[
3
- {
4
- "term":"compute",
5
- "scheme":"http://schemas.ogf.org/occi/infrastructure#",
6
- "title":"Compute Resource",
7
- "related":[
8
- "http://schemas.ogf.org/occi/core#resource"
9
- ],
10
- "attributes":{
11
- "occi":{
12
- "compute":{
13
- "architecture":{
14
- "Mutable":true,
15
- "Required":false,
16
- "Type":"string",
17
- "Pattern":"x86|x64"
18
- },
19
- "cores":{
20
- "Mutable":true,
21
- "Required":false,
22
- "Type":"number"
23
- },
24
- "hostname":{
25
- "Mutable":true,
26
- "Required":false,
27
- "Type":"string",
28
- "Pattern":"(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*"
29
- },
30
- "speed":{
31
- "Mutable":true,
32
- "Required":false,
33
- "Type":"number"
34
- },
35
- "memory":{
36
- "Mutable":true,
37
- "Required":false,
38
- "Type":"number"
39
- },
40
- "state":{
41
- "Mutable":false,
42
- "Required":false,
43
- "Type":"string",
44
- "Pattern":"inactive|active|suspended|error",
45
- "Default":"inactive"
46
- }
47
- }
48
- }
49
- },
50
- "actions":[
51
- "http://schemas.ogf.org/occi/infrastructure/compute/action#start",
52
- "http://schemas.ogf.org/occi/infrastructure/compute/action#stop",
53
- "http://schemas.ogf.org/occi/infrastructure/compute/action#restart",
54
- "http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
55
- ],
56
- "location":"/compute/"
57
- }
58
- ],
59
- "actions":[
60
- {
61
- "term":"start",
62
- "scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#",
63
- "title":"Start Compute instance"
64
- },
65
- {
66
- "term":"stop",
67
- "scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#",
68
- "title":"Stop Compute instance",
69
- "attributes":{
70
- "method":{
71
- "Mutable":true,
72
- "Required":false,
73
- "Type":"string",
74
- "Pattern":"graceful|acpioff|poweroff",
75
- "Default":"poweroff"
76
- }
77
- }
78
- },
79
- {
80
- "term":"restart",
81
- "scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#",
82
- "title":"Restart Compute instance",
83
- "attributes":{
84
- "method":{
85
- "Mutable":true,
86
- "Required":false,
87
- "Type":"string",
88
- "Pattern":"graceful|warm|cold",
89
- "Default":"cold"
90
- }
91
- }
92
- },
93
- {
94
- "term":"suspend",
95
- "scheme":"http://schemas.ogf.org/occi/infrastructure/compute/action#",
96
- "title":"Suspend Compute instance",
97
- "attributes":{
98
- "method":{
99
- "Mutable":true,
100
- "Required":false,
101
- "Type":"string",
102
- "Pattern":"hibernate|suspend",
103
- "Default":"suspend"
104
- }
105
- }
106
- }
107
- ]
108
- }