If $\text{P}(M|D)$ is posterior, $a$ is the proportionality constant, $\text{P}(M)$ is the prior and $\text{P}(D|M)$ is the likelihood. I have the the prior distribution, and I know the function that can give the likelihood for any input parameter sample. Then the Bayes rule is: $\text{P}(M|D)= a\times\text{P}(M)\times\text{P}(D|M)$.
If I want to sample from $\text{P}(M|D)$ by Gibbs, what is my full conditional distribution? is it $\text{P}(M)\times\text{P}(D|M)$?