def get_vmdk_create_spec(client_factory, size_in_kb, adapter_type=constants.DEFAULT_ADAPTER_TYPE, disk_type=constants.DEFAULT_DISK_TYPE):
 create_vmdk_spec = client_factory.create('ns0:FileBackedVirtualDiskSpec')
 create_vmdk_spec.adapterType = get_vmdk_adapter_type(adapter_type)
 create_vmdk_spec.diskType = disk_type
 create_vmdk_spec.capacityKb = size_in_kb
 return create_vmdk_spec

def get_vmdk_create_spec ( client_factory , size_in_kb , adapter_type = constants . DEFAULT_ADAPTER_TYPE , disk_type = constants . DEFAULT_DISK_TYPE ) : create_vmdk_spec = client_factory . create ( 'ns0:FileBackedVirtualDiskSpec' ) create_vmdk_spec . adapterType = get_vmdk_adapter_type ( adapter_type ) create_vmdk_spec . diskType = disk_type create_vmdk_spec . capacityKb = size_in_kb return create_vmdk_spec
builds the virtual disk create spec .