#NEWLINE# def clone_vm_spec( client_factory , location , power_on = False , snapshot = None , template = False , config = None ) : #NEWLINE# #INDENT# 'Builds the VM clone spec.' #NEWLINE# clone_spec = client_factory . create ( 'ns0:VirtualMachineCloneSpec' ) #NEWLINE# clone_spec . location = location #NEWLINE# clone_spec . powerOn = power_on #NEWLINE# if snapshot : #NEWLINE# #INDENT# clone_spec . snapshot = snapshot #NEWLINE# #UNINDENT# if ( config is not None ) : #NEWLINE# #INDENT# clone_spec . config = config #NEWLINE# #UNINDENT# clone_spec . template = template #NEWLINE# return clone_spec