save as function

We have functions in scene classes.
saveAll ()
saveAsNewVersion()

How can i “save as” scene where i can set scene path and scene name in scripting?