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

Merge pull request #360 from brightbox/master

Updated format tests due to API changes
This commit is contained in:
Wesley Beary 2011-06-16 12:35:40 -07:00
commit b4b6375c72

View file

@ -55,13 +55,16 @@ class Brightbox
module Nested module Nested
ACCOUNT = { ACCOUNT = {
"name" => String, "name" => String,
"ram_used" => Integer,
"resource_type" => String, "resource_type" => String,
"ram_limit" => Integer,
"url" => String, "url" => String,
"id" => String, "id" => String,
"status" => String, "status" => String,
"limits_cloudips" => Integer "ram_limit" => Integer,
"ram_used" => Integer,
"cloud_ips_limit" => Integer,
"cloud_ips_used" => Integer,
"load_balancers_limit" => Integer,
"load_balancers_used" => Integer
} }
API_CLIENT = { API_CLIENT = {
@ -69,7 +72,8 @@ class Brightbox
"resource_type" => String, "resource_type" => String,
"url" => String, "url" => String,
"name" => String, "name" => String,
"description" => String "description" => String,
"revoked_at" => Fog::Nullable::String
} }
CLOUD_IP = { CLOUD_IP = {
@ -149,6 +153,7 @@ class Brightbox
"url" => String, "url" => String,
"name" => String, "name" => String,
"description" => String, "description" => String,
"revoked_at" => Fog::Nullable::String,
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT "account" => Brightbox::Compute::Formats::Nested::ACCOUNT
} }
@ -266,7 +271,10 @@ class Brightbox
"created_at" => String, "created_at" => String,
"ram_limit" => Integer, "ram_limit" => Integer,
"ram_used" => Integer, "ram_used" => Integer,
"limits_cloudips" => Integer, "cloud_ips_limit" => Integer,
"cloud_ips_used" => Integer,
"load_balancers_limit" => Integer,
"load_balancers_used" => Integer,
"library_ftp_host" => String, "library_ftp_host" => String,
"library_ftp_user" => String, "library_ftp_user" => String,
"library_ftp_password" => Fog::Nullable::String, "library_ftp_password" => Fog::Nullable::String,
@ -287,6 +295,7 @@ class Brightbox
"url" => String, "url" => String,
"name" => String, "name" => String,
"description" => String, "description" => String,
"revoked_at" => Fog::Nullable::String,
"secret" => Fog::Nullable::String, "secret" => Fog::Nullable::String,
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT "account" => Brightbox::Compute::Formats::Nested::ACCOUNT
} }