Under international law, it's considered to be an executive act, a sovereign act, and the final decision, in most countries—in fact, that I'm aware of, in all countries—comes down to a decision by the government.
En droit international, c'est un acte de l'exécutif, un acte d'un État souverain, et la décision finale, dans la plupart des pays—en fait, pour autant que je sache, dans tous les pays—est prise par le gouvernement.