#NEWLINE# def relocate_vm_spec( client_factory , datastore = None , host = None , disk_move_type = 'moveAllDiskBackingsAndAllowSharing' ) : #NEWLINE# #INDENT# 'Builds the VM relocation spec.' #NEWLINE# rel_spec = client_factory . create ( 'ns0:VirtualMachineRelocateSpec' ) #NEWLINE# rel_spec . datastore = datastore #NEWLINE# rel_spec . diskMoveType = disk_move_type #NEWLINE# if host : #NEWLINE# #INDENT# rel_spec . host = host #NEWLINE# #UNINDENT# return rel_spec