def get_rdm_create_spec(client_factory, device, adapter_type='lsiLogic', disk_type='rdmp'):
 create_vmdk_spec = client_factory.create('ns0:DeviceBackedVirtualDiskSpec')
 create_vmdk_spec.adapterType = adapter_type
 create_vmdk_spec.diskType = disk_type
 create_vmdk_spec.device = device
 return create_vmdk_spec

def get_rdm_create_spec ( client_factory , device , adapter_type = 'lsiLogic' , disk_type = 'rdmp' ) : create_vmdk_spec = client_factory . create ( 'ns0:DeviceBackedVirtualDiskSpec' ) create_vmdk_spec . adapterType = adapter_type create_vmdk_spec . diskType = disk_type create_vmdk_spec . device = device return create_vmdk_spec
builds the rdm virtual disk create spec .