#NEWLINE# def _untranslate_snapshot_summary_view( context , snapshot ) : #NEWLINE# #INDENT# 'Maps keys for snapshots summary view.' #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# d [ 'id' ] = snapshot . id #NEWLINE# d [ 'status' ] = snapshot . status #NEWLINE# d [ 'progress' ] = snapshot . progress #NEWLINE# d [ 'size' ] = snapshot . size #NEWLINE# d [ 'created_at' ] = snapshot . created_at #NEWLINE# if hasattr ( snapshot , 'display_name' ) : #NEWLINE# #INDENT# d [ 'display_name' ] = snapshot . display_name #NEWLINE# d [ 'display_description' ] = snapshot . display_description #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d [ 'display_name' ] = snapshot . name #NEWLINE# d [ 'display_description' ] = snapshot . description #NEWLINE# #UNINDENT# d [ 'volume_id' ] = snapshot . volume_id #NEWLINE# d [ 'project_id' ] = d . project_id #NEWLINE# d [ 'volume_size' ] = snapshot . size #NEWLINE# return d