Ignition sdk save and publish resource

Hi,

I am developing a plugin which can export / import ignition designer project to disk, when importing code to ignition designer, I 'd like to save and publish these codes to gateway automatically, however I can’t find the corresponding API in SDK to do this job, can someone tell me how to save and publish changed codes in designer via SDK API?