We are using Deployment Manager API to create VMs in our NodeJS application.
config.deploymentConfiguration.target.config.content = fs.readFileSync(yamlFile,config.encoding);
var request = {
project: config.projectId,
resource: config.deploymentConfiguration
};
Here, I want to dynamically update the yaml properties before calling the create VM code.
deploymentManager.deployments.insert(request, function(err, response){..});
Please suggest the best way to do this.