2011-08-17 11:53:20 -04:00
|
|
|
class Glesys
|
|
|
|
module Compute
|
|
|
|
module Formats
|
|
|
|
module Servers
|
|
|
|
|
|
|
|
LIST = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => []
|
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'servers' => [{
|
|
|
|
'serverid' => String,
|
2011-11-14 12:47:55 -05:00
|
|
|
'hostname' => String,
|
|
|
|
'datacenter' => String,
|
|
|
|
'platform' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
}],
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CREATE = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
"rootpw" => String,
|
|
|
|
"disksize" => String,
|
|
|
|
"memorysize" => String,
|
|
|
|
"datacenter" => String,
|
|
|
|
"cpucores" => String,
|
|
|
|
"transfer" => String,
|
|
|
|
"template" => String,
|
|
|
|
"description" => String,
|
|
|
|
"hostname" => String,
|
|
|
|
"platform" => String
|
|
|
|
}
|
2011-08-17 11:53:20 -04:00
|
|
|
},
|
|
|
|
'server' => {
|
|
|
|
'serverid' => String,
|
|
|
|
'hostname' => String,
|
|
|
|
'iplist' => [{
|
|
|
|
'cost' => String,
|
|
|
|
'version' => String,
|
|
|
|
'ip' => String
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DESTROY = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'serverid' => String,
|
|
|
|
'keepip' => String,
|
|
|
|
}
|
2011-08-17 11:53:20 -04:00
|
|
|
},
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DETAILS = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'serverid' => String
|
|
|
|
}
|
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'server' => {
|
|
|
|
'managedhosting' => String,
|
|
|
|
'cost' => {
|
|
|
|
'amount' => Float,
|
2011-11-29 13:00:45 -05:00
|
|
|
'timeperiod' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'currency' => String
|
|
|
|
},
|
2011-11-29 13:00:45 -05:00
|
|
|
'serverid' => String,
|
|
|
|
'datacenter' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'memory' => String,
|
2011-11-29 13:00:45 -05:00
|
|
|
'cpucores' => String,
|
|
|
|
'transfer' => String,
|
|
|
|
'template' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'iplist' => [{
|
2011-11-29 13:00:45 -05:00
|
|
|
'cost' => String,
|
|
|
|
'version' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'ip' => String
|
|
|
|
}],
|
|
|
|
'description' => String,
|
2011-11-29 13:00:45 -05:00
|
|
|
'hostname' => String,
|
|
|
|
'disk' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'platform' => String
|
2011-11-29 13:00:45 -05:00
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'status' => {
|
2011-11-29 13:00:45 -05:00
|
|
|
'code' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
STATUS = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'serverid' => String
|
|
|
|
}
|
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'server' => {
|
2011-11-29 13:00:45 -05:00
|
|
|
'memory' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'bandwidth' => {
|
2011-11-29 13:00:45 -05:00
|
|
|
'last30days' => Integer,
|
2011-08-17 11:53:20 -04:00
|
|
|
'today' => Integer,
|
|
|
|
'max' => String
|
2011-11-29 13:00:45 -05:00
|
|
|
},
|
|
|
|
'cpu' => String,
|
|
|
|
'disk' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'state' => String
|
2011-11-29 13:00:45 -05:00
|
|
|
},
|
|
|
|
'status' => {
|
2011-08-17 11:53:20 -04:00
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
2011-11-29 13:00:45 -05:00
|
|
|
|
2011-09-08 16:52:43 -04:00
|
|
|
START = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'serverid' => String
|
|
|
|
}
|
2011-08-17 11:53:20 -04:00
|
|
|
},
|
2011-09-08 16:52:43 -04:00
|
|
|
'status' => {
|
2011-08-17 11:53:20 -04:00
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-09-08 16:52:43 -04:00
|
|
|
STOP = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'serverid' => String,
|
|
|
|
'type' => String
|
|
|
|
}
|
2011-09-08 16:52:43 -04:00
|
|
|
},
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
2011-08-17 11:53:20 -04:00
|
|
|
|
|
|
|
end
|
|
|
|
module Ips
|
2011-11-29 13:00:45 -05:00
|
|
|
|
2011-08-17 11:53:20 -04:00
|
|
|
IPLIST = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => []
|
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'iplist' => [{
|
|
|
|
'price' => {
|
|
|
|
'amount' => String,
|
|
|
|
'timeperiod' => String,
|
|
|
|
'currency' => String
|
|
|
|
},
|
|
|
|
'datacenter' => String,
|
|
|
|
'serverid' => Fog::Nullable::String,
|
|
|
|
'platform' => String,
|
|
|
|
'ip' => String,
|
|
|
|
'version' => String,
|
2011-11-14 12:47:55 -05:00
|
|
|
'PTR' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
}],
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
2011-11-29 13:00:45 -05:00
|
|
|
|
2011-08-17 11:53:20 -04:00
|
|
|
IPLIST_ALL = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'datacenter' => String,
|
|
|
|
'ipversion' => String,
|
|
|
|
'platform' => String
|
|
|
|
}
|
2011-08-17 11:53:20 -04:00
|
|
|
},
|
|
|
|
'iplist' => [],
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
},
|
|
|
|
'ipinfo' => {
|
|
|
|
'datacenter' => String,
|
|
|
|
'ipversion' => Integer,
|
|
|
|
'platform' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
IPLIST_CATCH_RELEASE = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => {
|
|
|
|
'ipaddress' => String,
|
|
|
|
}
|
|
|
|
},
|
2011-08-17 11:53:20 -04:00
|
|
|
'status' => {
|
2011-11-29 13:00:45 -05:00
|
|
|
'code' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
end
|
|
|
|
module Templates
|
|
|
|
|
|
|
|
LIST = {
|
2011-11-29 13:00:45 -05:00
|
|
|
'debug' => {
|
|
|
|
'input' => []
|
|
|
|
},
|
|
|
|
'templates' => {
|
2011-08-17 11:53:20 -04:00
|
|
|
'Xen' => [{
|
|
|
|
'name' => String,
|
2011-11-29 13:00:45 -05:00
|
|
|
'os' => String,
|
|
|
|
'min_mem_size' => String,
|
|
|
|
'min_disk_size' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'platform' => String
|
|
|
|
}],
|
|
|
|
'OpenVZ' => [{
|
|
|
|
'name' => String,
|
2011-11-29 13:00:45 -05:00
|
|
|
'os' => String,
|
|
|
|
'min_mem_size' => String,
|
|
|
|
'min_disk_size' => String,
|
2011-08-17 11:53:20 -04:00
|
|
|
'platform' => String
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
'status' => {
|
|
|
|
'code' => String,
|
|
|
|
'text' => String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|