X-ray tube and at least part of the power supply apparatus being mounted within the same housing