#NEWLINE# def get_vmdk_attach_config_spec( client_factory , disk_type = constants . DEFAULT_DISK_TYPE , file_path = None , disk_size = None , linked_clone = False , controller_key = None , unit_number = None , device_name = None , disk_io_limits = None ) : #NEWLINE# #INDENT# 'Builds the vmdk attach config spec.' #NEWLINE# config_spec = client_factory . create ( 'ns0:VirtualMachineConfigSpec' ) #NEWLINE# device_config_spec = [ ] #NEWLINE# virtual_device_config_spec = _create_virtual_disk_spec ( client_factory , controller_key , client_factory , file_path , disk_size , linked_clone , unit_number , device_name , disk_io_limits ) #NEWLINE# device_config_spec . append ( virtual_device_config_spec ) #NEWLINE# config_spec . deviceChange = device_config_spec #NEWLINE# return config_spec