I’ll do whatever it takes to get the job.
Is whatever a direct object for do and takes?
I’ll do whatever it takes to get the job.
Is whatever a direct object for do and takes?
(1) I’ll do whatever it takes to get the job.
As @Araucaria-Nothereanymore. has commented, the direct object of do is not whatever but the entire noun phrase whatever it takes to get the job, because what you'll do is not just whatever or whatever it takes to get a different job but whatever it takes to get the job.
Now, although @Araucaria-Nothereanymore. argues otherwise in the comment, we can say that the direct object of takes is whatever.
H&P's The Cambridge Grammar of the English Language (Page 1038) says this about I accepted the advice [which my neighbour gave me ____]:
In the first instance it is the gap that is in object function, as indicated in the diagram. However, prenuclear elements that are linked to a gap are interpreted as having the function of that gap, and we can thus say in a secondary, derivative, sense that they have that function. On this account, therefore, which is object of the relative clause, just as it is in traditional grammar.
(Boldface mine.)
I’ll do whatever it takes to get the job.
Is whatever a direct object for do and takes?
No.
“Whatever it takes” is the direct object of "do" = “Whatever [action] that it takes/requires”
Thus “it takes” is relative/adjectival and modifies “Whatever”.
to get the job. = in order to get the job.
in order to get the job is an adverbial phrase modifying "takes".
If you want an example of two verbs with one object:
He took and ate the apple.
Whatever it takes is an idiom, and here, it is the direct object of do:
I’ll do [whatever it takes] to get the job.
You can compare it to:
I'll do [anything] to get the job.