I've tried doing this:
var delivery = nms.delivery.create();
delivery.scheduling.validationMode = "automatic"
delivery.scheduling.delayed = 0
delivery.targets.deliveryTarget.serialization="'language equal to Ru'"
But the property delivery.targets.deliveryTarget.serialization doesn't seem to be enough to populate the delivery target.