profitbricks 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +0 -0
  4. data/Gemfile +23 -23
  5. data/Gemfile.lock +24 -11
  6. data/Manifest.txt +0 -0
  7. data/README.md +1 -1
  8. data/Rakefile +0 -0
  9. data/examples/create_datacenter.rb +0 -0
  10. data/lib/profitbricks/cli.rb +0 -0
  11. data/lib/profitbricks/config.rb +0 -0
  12. data/lib/profitbricks/data_center.rb +0 -0
  13. data/lib/profitbricks/extensions.rb +0 -0
  14. data/lib/profitbricks/firewall.rb +0 -0
  15. data/lib/profitbricks/image.rb +0 -0
  16. data/lib/profitbricks/ip_block.rb +0 -0
  17. data/lib/profitbricks/load_balancer.rb +0 -0
  18. data/lib/profitbricks/model.rb +0 -0
  19. data/lib/profitbricks/nic.rb +0 -0
  20. data/lib/profitbricks/profitbricks.rb +0 -0
  21. data/lib/profitbricks/rule.rb +0 -0
  22. data/lib/profitbricks/server.rb +7 -3
  23. data/lib/profitbricks/storage.rb +0 -0
  24. data/lib/profitbricks.rb +1 -1
  25. data/spec/fixtures/activate_firewalls/success.json +0 -0
  26. data/spec/fixtures/activate_firewalls/success.xml +0 -0
  27. data/spec/fixtures/activate_load_balancing_on_servers/success.json +0 -0
  28. data/spec/fixtures/activate_load_balancing_on_servers/success.xml +0 -0
  29. data/spec/fixtures/add_firewall_rules_to_load_balancer/success.json +0 -0
  30. data/spec/fixtures/add_firewall_rules_to_load_balancer/success.xml +0 -0
  31. data/spec/fixtures/add_firewall_rules_to_nic/success.json +0 -0
  32. data/spec/fixtures/add_firewall_rules_to_nic/success.xml +0 -0
  33. data/spec/fixtures/add_public_ip_to_nic/success.json +0 -0
  34. data/spec/fixtures/add_public_ip_to_nic/success.xml +0 -0
  35. data/spec/fixtures/clear_data_center/success.json +9 -9
  36. data/spec/fixtures/clear_data_center/success.xml +0 -0
  37. data/spec/fixtures/connect_storage_to_server/success.json +9 -9
  38. data/spec/fixtures/connect_storage_to_server/success.xml +0 -0
  39. data/spec/fixtures/create_data_center/success.json +9 -9
  40. data/spec/fixtures/create_data_center/success.xml +0 -0
  41. data/spec/fixtures/create_load_balancer/success.json +0 -0
  42. data/spec/fixtures/create_load_balancer/success.xml +0 -0
  43. data/spec/fixtures/create_nic/success.json +0 -0
  44. data/spec/fixtures/create_nic/success.xml +0 -0
  45. data/spec/fixtures/create_server/minimal.json +10 -10
  46. data/spec/fixtures/create_server/minimal.xml +0 -0
  47. data/spec/fixtures/create_storage/success.json +10 -10
  48. data/spec/fixtures/create_storage/success.xml +0 -0
  49. data/spec/fixtures/deactivate_firewalls/success.json +0 -0
  50. data/spec/fixtures/deactivate_firewalls/success.xml +0 -0
  51. data/spec/fixtures/deactivate_load_balancing_on_servers/success.json +0 -0
  52. data/spec/fixtures/deactivate_load_balancing_on_servers/success.xml +0 -0
  53. data/spec/fixtures/delete_data_center/success.json +7 -7
  54. data/spec/fixtures/delete_data_center/success.xml +0 -0
  55. data/spec/fixtures/delete_firewalls/success.json +0 -0
  56. data/spec/fixtures/delete_firewalls/success.xml +0 -0
  57. data/spec/fixtures/delete_load_balancer/success.json +0 -0
  58. data/spec/fixtures/delete_load_balancer/success.xml +0 -0
  59. data/spec/fixtures/delete_nic/success.json +0 -0
  60. data/spec/fixtures/delete_nic/success.xml +0 -0
  61. data/spec/fixtures/delete_server/success.json +9 -9
  62. data/spec/fixtures/delete_server/success.xml +0 -0
  63. data/spec/fixtures/delete_storage/failture.json +15 -15
  64. data/spec/fixtures/delete_storage/failture.xml +0 -0
  65. data/spec/fixtures/delete_storage/success.json +9 -9
  66. data/spec/fixtures/delete_storage/success.xml +0 -0
  67. data/spec/fixtures/deregister_servers_on_load_balancer/success.json +0 -0
  68. data/spec/fixtures/deregister_servers_on_load_balancer/success.xml +0 -0
  69. data/spec/fixtures/disconnect_storage_from_server/failture.json +15 -15
  70. data/spec/fixtures/disconnect_storage_from_server/failture.xml +0 -0
  71. data/spec/fixtures/disconnect_storage_from_server/success.json +9 -9
  72. data/spec/fixtures/disconnect_storage_from_server/success.xml +0 -0
  73. data/spec/fixtures/get_all_data_centers/empty.json +0 -0
  74. data/spec/fixtures/get_all_data_centers/empty.xml +0 -0
  75. data/spec/fixtures/get_all_data_centers/test_datacenter.json +9 -9
  76. data/spec/fixtures/get_all_data_centers/test_datacenter.xml +0 -0
  77. data/spec/fixtures/get_all_images/success.json +0 -0
  78. data/spec/fixtures/get_all_images/success.xml +0 -0
  79. data/spec/fixtures/get_all_public_ip_blocks/success.json +0 -0
  80. data/spec/fixtures/get_all_public_ip_blocks/success.xml +0 -0
  81. data/spec/fixtures/get_data_center/create.json +146 -146
  82. data/spec/fixtures/get_data_center/create.xml +0 -0
  83. data/spec/fixtures/get_data_center/firewall.json +0 -0
  84. data/spec/fixtures/get_data_center/firewall.xml +0 -0
  85. data/spec/fixtures/get_data_center/two_servers_with_storage.json +146 -146
  86. data/spec/fixtures/get_data_center/two_servers_with_storage.xml +0 -0
  87. data/spec/fixtures/get_data_center_state/in_process.json +0 -0
  88. data/spec/fixtures/get_data_center_state/in_process.xml +0 -0
  89. data/spec/fixtures/get_data_center_state/success.json +0 -0
  90. data/spec/fixtures/get_data_center_state/success.xml +0 -0
  91. data/spec/fixtures/get_firewall/success.json +0 -0
  92. data/spec/fixtures/get_firewall/success.xml +0 -0
  93. data/spec/fixtures/get_image/success.json +0 -0
  94. data/spec/fixtures/get_image/success.xml +0 -0
  95. data/spec/fixtures/get_load_balancer/success.json +0 -0
  96. data/spec/fixtures/get_load_balancer/success.xml +0 -0
  97. data/spec/fixtures/get_nic/success.json +0 -0
  98. data/spec/fixtures/get_nic/success.xml +0 -0
  99. data/spec/fixtures/get_nic/two_ips.json +0 -0
  100. data/spec/fixtures/get_nic/two_ips.xml +0 -0
  101. data/spec/fixtures/get_server/after_create.json +18 -17
  102. data/spec/fixtures/get_server/after_create.xml +1 -1
  103. data/spec/fixtures/get_server/connected_storage.json +27 -26
  104. data/spec/fixtures/get_server/connected_storage.xml +1 -1
  105. data/spec/fixtures/get_storage/success.json +13 -13
  106. data/spec/fixtures/get_storage/success.xml +0 -0
  107. data/spec/fixtures/reboot_server/success.json +0 -0
  108. data/spec/fixtures/reboot_server/success.xml +0 -0
  109. data/spec/fixtures/register_servers_on_load_balancer/success.json +0 -0
  110. data/spec/fixtures/register_servers_on_load_balancer/success.xml +0 -0
  111. data/spec/fixtures/release_public_ip_block/success.json +0 -0
  112. data/spec/fixtures/release_public_ip_block/success.xml +0 -0
  113. data/spec/fixtures/remove_firewall_rules/success.json +0 -0
  114. data/spec/fixtures/remove_firewall_rules/success.xml +0 -0
  115. data/spec/fixtures/remove_public_ip_from_nic/success.json +0 -0
  116. data/spec/fixtures/remove_public_ip_from_nic/success.xml +0 -0
  117. data/spec/fixtures/reserve_public_ip_block/success.json +0 -0
  118. data/spec/fixtures/reserve_public_ip_block/success.xml +0 -0
  119. data/spec/fixtures/set_image_os_type/success.json +0 -0
  120. data/spec/fixtures/set_image_os_type/success.xml +0 -0
  121. data/spec/fixtures/set_internet_access/success.json +0 -0
  122. data/spec/fixtures/set_internet_access/success.xml +0 -0
  123. data/spec/fixtures/update_data_center/success.json +9 -9
  124. data/spec/fixtures/update_data_center/success.xml +0 -0
  125. data/spec/fixtures/update_load_balancer/success.json +0 -0
  126. data/spec/fixtures/update_load_balancer/success.xml +0 -0
  127. data/spec/fixtures/update_nic/success.json +0 -0
  128. data/spec/fixtures/update_nic/success.xml +0 -0
  129. data/spec/fixtures/update_server/basic.json +9 -9
  130. data/spec/fixtures/update_server/basic.xml +0 -0
  131. data/spec/fixtures/update_storage/success.json +9 -9
  132. data/spec/fixtures/update_storage/success.xml +0 -0
  133. data/spec/profitbricks/cli_spec.rb +0 -0
  134. data/spec/profitbricks/data_center_spec.rb +0 -0
  135. data/spec/profitbricks/firewall_spec.rb +0 -0
  136. data/spec/profitbricks/image_spec.rb +0 -0
  137. data/spec/profitbricks/ip_block_spec.rb +0 -0
  138. data/spec/profitbricks/load_balancer_spec.rb +0 -0
  139. data/spec/profitbricks/model_spec.rb +0 -0
  140. data/spec/profitbricks/nic_spec.rb +0 -0
  141. data/spec/profitbricks/server_spec.rb +0 -0
  142. data/spec/profitbricks/storage_spec.rb +0 -0
  143. data/spec/spec_helper.rb +0 -0
  144. metadata +13 -24
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4a0ff4bfe920209b641d343a04137b8a38d6ec43
4
+ data.tar.gz: 396baa3f665ca3a526a60141a50115ae0acd96c8
5
+ SHA512:
6
+ metadata.gz: 78788fb605f270e3af09dbd6831dfbc4b76b6bbe1adbcc9b0dd87f2c041ed7d3812d8aadfb3041255d34901b647ecb02ec6c393a8d299b2dd174e66c43072f03
7
+ data.tar.gz: 8ff5a7e06ab96295d4e6492d0016f09fe42140f9de409ae632ade63d3038846b455e5cdda5fa1d3759e2705513305c7bc5ad3e64391077edbfe22f052a2e30a4
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
5
+ - 2.0.0
6
6
  - jruby-18mode # JRuby in 1.8 mode
7
7
  - jruby-19mode # JRuby in 1.9 mode
8
8
  - rbx-18mode
data/CHANGELOG.md CHANGED
File without changes
data/Gemfile CHANGED
@@ -1,23 +1,23 @@
1
- source :rubygems
2
- gem 'savon', '1.2.0'
3
-
4
- group :test, :development do
5
- gem 'json'
6
- gem 'rspec'
7
- gem 'savon_spec'
8
- gem 'simplecov', :require => false
9
- gem 'rake'
10
- gem 'ZenTest'
11
- platforms :mri do
12
- gem 'autotest-fsevent'
13
- # Temporary fix till hoe works with rbx in 1.9 mode
14
- gem 'hoe'
15
- gem 'hoe-git'
16
- gem 'hoe-gemspec'
17
- gem 'hoe-bundler'
18
- end
19
- end
20
-
21
- platforms :jruby do
22
- gem 'jruby-openssl'
23
- end
1
+ source 'https://rubygems.org'
2
+ gem 'savon'
3
+
4
+ group :test, :development do
5
+ gem 'json'
6
+ gem 'rspec'
7
+ gem 'savon_spec'
8
+ gem 'simplecov', :require => false
9
+ gem 'rake'
10
+ gem 'guard'
11
+ gem 'guard-rspec'
12
+ platforms :mri do
13
+ # Temporary fix till hoe works with rbx in 1.9 mode
14
+ gem 'hoe'
15
+ gem 'hoe-git'
16
+ gem 'hoe-gemspec'
17
+ gem 'hoe-bundler'
18
+ end
19
+ end
20
+
21
+ platforms :jruby do
22
+ gem 'jruby-openssl'
23
+ end
data/Gemfile.lock CHANGED
@@ -1,15 +1,21 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
- ZenTest (4.7.0)
5
4
  akami (1.2.0)
6
5
  gyoku (>= 0.4.0)
7
6
  nokogiri (>= 1.4.0)
8
- autotest-fsevent (0.2.8)
9
- sys-uname
10
7
  builder (3.1.4)
8
+ coderay (1.0.9)
11
9
  diff-lcs (1.1.3)
12
- ffi (1.0.11)
10
+ formatador (0.2.4)
11
+ guard (1.7.0)
12
+ formatador (>= 0.2.4)
13
+ listen (>= 0.6.0)
14
+ lumberjack (>= 1.0.2)
15
+ pry (>= 0.9.10)
16
+ thor (>= 0.14.6)
17
+ guard-rspec (1.2.1)
18
+ guard (>= 1.1)
13
19
  gyoku (0.4.6)
14
20
  builder (>= 2.1.2)
15
21
  hoe (3.0.3)
@@ -22,13 +28,20 @@ GEM
22
28
  hoe (>= 2.2.0)
23
29
  httpi (1.1.1)
24
30
  rack
25
- json (1.6.6)
31
+ json (1.7.7)
32
+ listen (0.7.3)
33
+ lumberjack (1.0.3)
26
34
  metaclass (0.0.1)
35
+ method_source (0.8.1)
27
36
  mocha (0.10.5)
28
37
  metaclass (~> 0.0.1)
29
38
  multi_json (1.2.0)
30
39
  nokogiri (1.5.6)
31
40
  nori (1.1.4)
41
+ pry (0.9.12)
42
+ coderay (~> 1.0.5)
43
+ method_source (~> 0.8)
44
+ slop (~> 3.4)
32
45
  rack (1.4.4)
33
46
  rake (0.9.2.2)
34
47
  rspec (2.9.0)
@@ -55,8 +68,8 @@ GEM
55
68
  multi_json (~> 1.0)
56
69
  simplecov-html (~> 0.5.3)
57
70
  simplecov-html (0.5.3)
58
- sys-uname (0.9.0)
59
- ffi (>= 1.0.0)
71
+ slop (3.4.4)
72
+ thor (0.18.1)
60
73
  wasabi (2.5.1)
61
74
  httpi (~> 1.0)
62
75
  nokogiri (>= 1.4.0)
@@ -65,8 +78,8 @@ PLATFORMS
65
78
  ruby
66
79
 
67
80
  DEPENDENCIES
68
- ZenTest
69
- autotest-fsevent
81
+ guard
82
+ guard-rspec
70
83
  hoe
71
84
  hoe-bundler
72
85
  hoe-gemspec
@@ -75,6 +88,6 @@ DEPENDENCIES
75
88
  json
76
89
  rake
77
90
  rspec
78
- savon (= 1.2.0)
91
+ savon
79
92
  savon_spec
80
93
  simplecov
data/Manifest.txt CHANGED
File without changes
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  A Ruby client for the ProfitBricks API.
9
9
 
10
10
  ## Dependencies
11
- A Ruby interpreter (MRI 1.8.7/1.9.2/1.9.3, JRuby 1.8/1.9 and Rubinius 1.8/1.9).
11
+ A Ruby interpreter (MRI 1.9.2/1.9.3/2.0.0, JRuby 1.8/1.9 and Rubinius 1.8/1.9).
12
12
 
13
13
  To get the SSL certificate verification on JRuby 1.9 to work (at least on ubuntu/debian) export the following environment variable:
14
14
 
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -23,15 +23,17 @@ module Profitbricks
23
23
  # @option options [String] :name Name of the server to be created
24
24
  # @option options [String] :boot_from_image_id Defines an existing CD-ROM/DVD image ID to be set as boot device of the server. A virtual CD-ROM/DVD drive with the mounted image will be connected to the server.
25
25
  # @option options [String] :boot_from_storage_id Defines an existing storage device ID to be set as boot device of the server. The storage will be connected to the server implicitly.
26
+ # @option options [String] :availability_zone Sets the availability zone in which the server is located (AUTO, ZONE_1, ZONE_2). If set to AUTO servers will be placed in a random zone.
26
27
  # @option options [String] :os_type Sets the OS type of the server. (WINDOWS, OTHER) If left empty, the server will inherit the OS Type of its selected boot image / storage.
27
28
  # @return [Boolean] true on success, false otherwise
28
29
  def update(options = {})
29
30
  return false if options.empty?
30
31
  raise ArgumentError.new(":ram and :cores are mandatory options.") unless options[:ram] or options[:core]
31
32
  raise ArgumentError.new(":ram has to be at least 256MiB and a multiple of it") if options[:ram] < 256 or (options[:ram] % 256) > 0
33
+ raise ArgumentError.new(":availability_zone has to be either 'AUTO', 'ZONE_1', or 'ZONE_2'") if options[:availability_zone] and !['AUTO', 'ZONE_1', 'ZONE_2'].include? options[:availability_zone]
32
34
  raise ArgumentError.new(":os_type has to be either 'WINDOWS' or 'OTHER'") if options[:os_type] and !['WINDOWS', 'OTHER'].include? options[:os_type]
33
35
  xml = "<arg0><serverId>#{self.id}</serverId>"
34
- xml += get_xml_and_update_attributes options, [:cores, :ram, :name, :boot_from_storage_id, :boot_from_image_id, :os_type]
36
+ xml += get_xml_and_update_attributes options, [:cores, :ram, :name, :boot_from_storage_id, :boot_from_image_id, :availability_zone, :os_type]
35
37
  xml += "</arg0>"
36
38
  response = Profitbricks.request :update_server, xml
37
39
  return true if response.to_hash[:update_server_response][:return]
@@ -65,15 +67,17 @@ module Profitbricks
65
67
  # @option options [String] :boot_from_storage_id Defines an existing storage device ID to be set as boot device of the server. The storage will be connected to the server implicitly.
66
68
  # @option options [Fixnum] :lan_id Connects the server to the specified LAN ID > 0. If the respective LAN does not exist, it is going to be created.
67
69
  # @option options [Boolean] :internet_access Set to true to connect the server to the internet via the specified LAN ID. If the LAN is not specified, it is going to be created in the next available LAN ID, starting with LAN ID 1
70
+ # @option options [String] :availability_zone Sets the availability zone in which the server is located (AUTO, ZONE_1, ZONE_2). If set to AUTO or left empty, servers will be created in a random zone.
68
71
  # @option options [String] :os_type Sets the OS type of the server. (WINDOWS, OTHER) If left empty, the server will inherit the OS Type of its selected boot image / storage.
69
72
  # @return [Server] The created virtual server
70
73
  def create(options = {})
71
74
  raise ArgumentError.new("You must provide :cores and :ram") if options[:ram].nil? and options[:cores].nil?
72
75
  raise ArgumentError.new(":ram has to be at least 256MiB and a multiple of it") if options[:ram].to_i < 256 or (options[:ram].to_i % 256) > 0
76
+ raise ArgumentError.new(":availability_zone has to be either 'AUTO', 'ZONE_1', or 'ZONE_2'") if options[:availability_zone] and !['AUTO', 'ZONE_1', 'ZONE_2'].include? options[:availability_zone]
73
77
  raise ArgumentError.new(":os_type has to be either 'WINDOWS' or 'OTHER'") if options[:os_type] and !['WINDOWS', 'OTHER'].include? options[:os_type]
74
78
  xml = "<arg0>"
75
79
  xml += get_xml_and_update_attributes options,
76
- [:cores, :ram, :name, :boot_from_storage_id, :boot_from_image_id, :os_type, :internet_access, :lan_id, :data_center_id]
80
+ [:cores, :ram, :name, :boot_from_storage_id, :boot_from_image_id, :os_type, :internet_access, :lan_id, :data_center_id, :availability_zone]
77
81
  xml += "</arg0>"
78
82
  response = Profitbricks.request :create_server, xml
79
83
  self.find(:id => response.to_hash[:create_server_return][:return][:server_id])
@@ -95,4 +99,4 @@ module Profitbricks
95
99
  end
96
100
  end
97
101
  end
98
- end
102
+ end
File without changes
data/lib/profitbricks.rb CHANGED
@@ -13,7 +13,7 @@ require 'profitbricks/firewall'
13
13
  require 'profitbricks/rule'
14
14
 
15
15
  module Profitbricks
16
- VERSION = '0.9.5'
16
+ VERSION = '0.9.6'
17
17
  end
18
18
 
19
19
  PB = Profitbricks
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "clear_data_center_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "10",
7
- "request_id": "1179"
8
- }
9
- }
1
+ {
2
+ "clear_data_center_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "10",
7
+ "request_id": "1179"
8
+ }
9
+ }
10
10
  }
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "connect_storage_to_server_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "34",
7
- "request_id": "1233"
8
- }
9
- }
1
+ {
2
+ "connect_storage_to_server_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "34",
7
+ "request_id": "1233"
8
+ }
9
+ }
10
10
  }
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "create_data_center_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "a897fbd7-9f24-4eed-bd56-cadae6117755",
6
- "data_center_version": "1",
7
- "request_id": "1182"
8
- }
9
- }
1
+ {
2
+ "create_data_center_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "a897fbd7-9f24-4eed-bd56-cadae6117755",
6
+ "data_center_version": "1",
7
+ "request_id": "1182"
8
+ }
9
+ }
10
10
  }
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,11 +1,11 @@
1
- {
2
- "create_server_return": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "14",
7
- "request_id": "1184",
8
- "server_id": "b7a5f3d1-324a-4490-aa8e-56cdec436e3f"
9
- }
10
- }
1
+ {
2
+ "create_server_return": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "14",
7
+ "request_id": "1184",
8
+ "server_id": "b7a5f3d1-324a-4490-aa8e-56cdec436e3f"
9
+ }
10
+ }
11
11
  }
File without changes
@@ -1,11 +1,11 @@
1
- {
2
- "create_storage_return": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "32",
7
- "request_id": "1229",
8
- "storage_id": "f55952bc-da27-4e29-af89-ed212ea28e11"
9
- }
10
- }
1
+ {
2
+ "create_storage_return": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "32",
7
+ "request_id": "1229",
8
+ "storage_id": "f55952bc-da27-4e29-af89-ed212ea28e11"
9
+ }
10
+ }
11
11
  }
File without changes
File without changes
File without changes
@@ -1,8 +1,8 @@
1
- {
2
- "delete_data_center_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "request_id": "1183"
6
- }
7
- }
1
+ {
2
+ "delete_data_center_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "request_id": "1183"
6
+ }
7
+ }
8
8
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "delete_server_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "18",
7
- "request_id": "1186"
8
- }
9
- }
1
+ {
2
+ "delete_server_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "18",
7
+ "request_id": "1186"
8
+ }
9
+ }
10
10
  }
File without changes
@@ -1,16 +1,16 @@
1
- {
2
- "fault": {
3
- "@xmlns:ns4": "http://www.w3.org/2003/05/soap-envelope",
4
- "detail": {
5
- "profitbricks_service_fault": {
6
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
7
- "fault_code": "BAD_REQUEST",
8
- "http_code": "400",
9
- "message": "The following mandatory parameters are null: storageId",
10
- "request_id": "1252"
11
- }
12
- },
13
- "faultcode": "S:Server",
14
- "faultstring": "The following mandatory parameters are null: storageId"
15
- }
1
+ {
2
+ "fault": {
3
+ "@xmlns:ns4": "http://www.w3.org/2003/05/soap-envelope",
4
+ "detail": {
5
+ "profitbricks_service_fault": {
6
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
7
+ "fault_code": "BAD_REQUEST",
8
+ "http_code": "400",
9
+ "message": "The following mandatory parameters are null: storageId",
10
+ "request_id": "1252"
11
+ }
12
+ },
13
+ "faultcode": "S:Server",
14
+ "faultstring": "The following mandatory parameters are null: storageId"
15
+ }
16
16
  }
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "delete_storage_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "38",
7
- "request_id": "1265"
8
- }
9
- }
1
+ {
2
+ "delete_storage_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "38",
7
+ "request_id": "1265"
8
+ }
9
+ }
10
10
  }
File without changes
@@ -1,16 +1,16 @@
1
- {
2
- "fault": {
3
- "@xmlns:ns4": "http://www.w3.org/2003/05/soap-envelope",
4
- "detail": {
5
- "profitbricks_service_fault": {
6
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
7
- "fault_code": "PROVISIONING_NO_CHANGES",
8
- "http_code": "409",
9
- "message": "Nothing changes. The new provisioning request does not differ from the current active one. The storage is not mounted to the server. So no needs to unmount it",
10
- "request_id": "1216"
11
- }
12
- },
13
- "faultcode": "S:Server",
14
- "faultstring": "Nothing changes. The new provisioning request does not differ from the current active one. The storage is not mounted to the server. So no needs to unmount it"
15
- }
1
+ {
2
+ "fault": {
3
+ "@xmlns:ns4": "http://www.w3.org/2003/05/soap-envelope",
4
+ "detail": {
5
+ "profitbricks_service_fault": {
6
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
7
+ "fault_code": "PROVISIONING_NO_CHANGES",
8
+ "http_code": "409",
9
+ "message": "Nothing changes. The new provisioning request does not differ from the current active one. The storage is not mounted to the server. So no needs to unmount it",
10
+ "request_id": "1216"
11
+ }
12
+ },
13
+ "faultcode": "S:Server",
14
+ "faultstring": "Nothing changes. The new provisioning request does not differ from the current active one. The storage is not mounted to the server. So no needs to unmount it"
15
+ }
16
16
  }
@@ -1,10 +1,10 @@
1
- {
2
- "disconnect_storage_from_server_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_version": "36",
7
- "request_id": "1250"
8
- }
9
- }
1
+ {
2
+ "disconnect_storage_from_server_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_version": "36",
7
+ "request_id": "1250"
8
+ }
9
+ }
10
10
  }
File without changes
File without changes
@@ -1,10 +1,10 @@
1
- {
2
- "get_all_data_centers_response": {
3
- "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
- "return": {
5
- "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
- "data_center_name": "Test",
7
- "data_center_version": "9"
8
- }
9
- }
1
+ {
2
+ "get_all_data_centers_response": {
3
+ "@xmlns:ns2": "http://ws.api.profitbricks.com/",
4
+ "return": {
5
+ "data_center_id": "b3eebede-5c78-417c-b1bc-ff5de01a0602",
6
+ "data_center_name": "Test",
7
+ "data_center_version": "9"
8
+ }
9
+ }
10
10
  }