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

[Brightbox] Updates to format tests

This commit is contained in:
Paul Thornthwaite 2011-11-16 17:18:55 +00:00
parent ae439fdb26
commit bd748367c1

View file

@ -2,6 +2,7 @@ module Fog
module Brightbox
module Nullable
module Account; end
module FirewallPolicy; end
module Image; end
module Interface; end
module LoadBalancer; end
@ -14,6 +15,9 @@ end
Hash.send :include, Fog::Brightbox::Nullable::Account
NilClass.send :include, Fog::Brightbox::Nullable::Account
Hash.send :include, Fog::Brightbox::Nullable::FirewallPolicy
NilClass.send :include, Fog::Brightbox::Nullable::FirewallPolicy
Hash.send :include, Fog::Brightbox::Nullable::Image
NilClass.send :include, Fog::Brightbox::Nullable::Image
@ -84,7 +88,9 @@ class Brightbox
"resource_type" => String,
"url" => String,
"name" => String,
"default" => Fog::Boolean
"default" => Fog::Boolean,
"created_at" => String,
"description" => String
}
FIREWALL_RULE = {
@ -123,6 +129,16 @@ class Brightbox
"mac_address" => String
}
LOAD_BALANCER = {
"id" => String,
"resource_type" => String,
"url" => String,
"name" => String,
"status" => String,
"created_at" => String,
"deleted_at" => Fog::Nullable::String
}
SERVER = {
"id" => String,
"resource_type" => String,
@ -244,7 +260,6 @@ class Brightbox
}
LOAD_BALANCER = {
"cloud_ips" => Array,
"id" => String,
"resource_type" => String,
"url" => String,
@ -252,9 +267,9 @@ class Brightbox
"status" => String,
"created_at" => String,
"deleted_at" => Fog::Nullable::String,
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER],
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP]
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER]
}
SERVER = {
@ -286,7 +301,8 @@ class Brightbox
"default" => Fog::Boolean,
"created_at" => String,
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
"servers" => [Brightbox::Compute::Formats::Nested::SERVER]
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
}
SERVER_TYPE = {
@ -355,6 +371,10 @@ class Brightbox
"users" => [Brightbox::Compute::Formats::Nested::USER],
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
"load_balancers" => [Brightbox::Compute::Formats::Nested::LOAD_BALANCER],
"cloud_ip_addresses" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
"firewall_policies" => [Brightbox::Compute::Formats::Nested::FIREWALL_POLICY],
"images" => [Brightbox::Compute::Formats::Nested::IMAGE],
"zones" => [Brightbox::Compute::Formats::Nested::ZONE]
}
@ -487,7 +507,8 @@ class Brightbox
"default" => Fog::Boolean,
"created_at" => String,
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
"servers" => [Brightbox::Compute::Formats::Nested::SERVER]
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
}
SERVER_TYPE = {