def get_copy_virtual_disk_spec(client_factory, adapter_type='lsilogic', disk_type='preallocated'):
 dest_spec = client_factory.create('ns0:VirtualDiskSpec')
 dest_spec.adapterType = adapter_type
 dest_spec.diskType = disk_type
 return dest_spec

def get_copy_virtual_disk_spec ( client_factory , adapter_type = 'lsilogic' , disk_type = 'preallocated' ) : dest_spec = client_factory . create ( 'ns0:VirtualDiskSpec' ) dest_spec . adapterType = adapter_type dest_spec . diskType = disk_type return dest_spec
builds the virtual disk copy spec .