public Linode_Disk_Create ( string Label, int LinodeID, int Size, string Type, bool isReadOnly = null ) : Austin.Linode.DiskIdResponse | ||
Label | string | The display label for this Disk |
LinodeID | int | |
Size | int | The size in MB of this Disk. |
Type | string | The formatted type of this disk. Valid types are: ext3, ext4, swap, raw |
isReadOnly | bool | Enable forced read-only for this Disk |
return | Austin.Linode.DiskIdResponse |
public Austin.Linode.DiskIdResponse Linode_Disk_Create(
string Label,
int LinodeID,
int Size,
string Type,
bool? isReadOnly = null)
{
var myParams = new Dictionary<string, string>();
myParams.Add("Label", Label);
myParams.Add("LinodeID", LinodeID.ToString(CultureInfo.InvariantCulture));
myParams.Add("Size", Size.ToString(CultureInfo.InvariantCulture));
myParams.Add("Type", Type);
if (isReadOnly != null)
myParams.Add("isReadOnly", isReadOnly.Value ? "true" : "false");
return GetResponse<Austin.Linode.DiskIdResponse>("linode.disk.create", myParams);
}