#NEWLINE# @ staticmethod #NEWLINE# def get_flatfile_backinginfo( storage_format , persistence ) : #NEWLINE# #INDENT# backing_info = vim . vm . device . VirtualDisk . FlatVer2BackingInfo ( ) #NEWLINE# if ( storage_format == 'eagerzeroedthick' ) : #NEWLINE# #INDENT# backing_info . thinProvisioned = False #NEWLINE# backing_info . eagerlyScrub = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( storage_format == 'thin' ) : #NEWLINE# #INDENT# backing_info . thinProvisioned = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( storage_format == 'thin2gb' ) : #NEWLINE# #INDENT# backing_info . thinProvisioned = True #NEWLINE# backing_info . split = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( storage_format == 'thick' ) : #NEWLINE# #INDENT# backing_info . thinProvisioned = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( storage_format == 'thick2gb' ) : #NEWLINE# #INDENT# backing_info . thinProvisioned = False #NEWLINE# backing_info . split = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# backing_info . diskMode = persistence #NEWLINE# return backing_info