1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Brightbox] Fix output format for brightbox cloud ip

This commit is contained in:
Hemant Kumar 2012-04-12 17:32:59 +05:30
parent 62f1757ead
commit a4c1deac54
3 changed files with 12 additions and 1 deletions

View file

@ -183,6 +183,7 @@ module Fog
@connection.request(options)
end
end
end
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Brightbox
class Real
def create_cloud_ip
def create_cloud_ip(options = nil)
request("post", "/1.0/cloud_ips", [201],options)
end

View file

@ -76,6 +76,11 @@ class Brightbox
"threshold_up" => Integer,
"threshold_down" => Integer
}
PORT_TRANSLATOR = {
"incoming" => Integer,
"outgoing" => Integer,
"protocol" => String
}
end
module Nested
@ -102,6 +107,7 @@ class Brightbox
"url" => String,
"public_ip" => String,
"status" => String,
"name" => Fog::Nullable::String,
"reverse_dns" => String
}
@ -232,9 +238,11 @@ class Brightbox
"public_ip" => String,
"status" => String,
"reverse_dns" => String,
"name" => Fog::Nullable::String,
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
"interface" => Fog::Brightbox::Nullable::Interface,
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
"port_translators" => [Brightbox::Compute::Formats::Struct::PORT_TRANSLATOR],
"server" => Fog::Brightbox::Nullable::Server
}
@ -428,9 +436,11 @@ class Brightbox
"public_ip" => String,
"status" => String,
"reverse_dns" => String,
"name" => Fog::Nullable::String,
"account" => Fog::Brightbox::Nullable::Account,
"interface" => Fog::Brightbox::Nullable::Interface,
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
"port_translators" => [Brightbox::Compute::Formats::Struct::PORT_TRANSLATOR],
"server" => Fog::Brightbox::Nullable::Server
}