#NEWLINE# def detach_virtual_disk_spec( client_factory , device , destroy_disk = False ) : #NEWLINE# #INDENT# 'Builds spec for the detach of an already existing Virtual Disk from VM.\n    ' #NEWLINE# virtual_device_config = client_factory . create ( 'ns0:VirtualDeviceConfigSpec' ) #NEWLINE# virtual_device_config . operation = 'remove' #NEWLINE# if destroy_disk : #NEWLINE# #INDENT# virtual_device_config . fileOperation = 'destroy' #NEWLINE# #UNINDENT# virtual_device_config . device = client_factory #NEWLINE# return virtual_device_config