public void Linode_Disk_CreateFromImage(
int ImageID,
int LinodeID,
string Label = null,
string rootPass = null,
string rootSSHKey = null,
int? size = null)
{
var myParams = new Dictionary<string, string>();
myParams.Add("ImageID", ImageID.ToString(CultureInfo.InvariantCulture));
myParams.Add("LinodeID", LinodeID.ToString(CultureInfo.InvariantCulture));
if (Label != null)
myParams.Add("Label", Label);
if (rootPass != null)
myParams.Add("rootPass", rootPass);
if (rootSSHKey != null)
myParams.Add("rootSSHKey", rootSSHKey);
if (size != null)
myParams.Add("size", size.Value.ToString(CultureInfo.InvariantCulture));
GetResponse<object>("linode.disk.createfromimage", myParams);
}