public static VirtualDisk AddDisk(string markedCode, string description, long size = 1024) { var cmd = new CreateVirtualDisk(Guid.NewGuid(), 1024) { MarkedCode = markedCode, Description = description }; return(cmd.Execute()); }
/// <summary> /// 开通磁盘空间 /// </summary> /// <param name="account"></param> /// <returns></returns> private VirtualDisk OpenDisk(Account account) { var cmd = new CreateVirtualDisk(account.Id, _diskSize); return(cmd.Execute()); }