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:
parent
62f1757ead
commit
a4c1deac54
3 changed files with 12 additions and 1 deletions
|
@ -183,6 +183,7 @@ module Fog
|
|||
@connection.request(options)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue