What most naturally follows?

How to keep a dog in an apartment that does not allow dogs
Eliminate any motivation for barking.
If you want to keep your landlord from discovering your dog, you need to keep it quiet. Start by removing any motivation for barking.
Try to observe when your dog barks and work on eliminating anything that encourages the behavior. For example, if your dog barks at pedestrians, keep your blinds closed.