def _untranslate_snapshot_summary_view(context, snapshot):
 d = {}
 d['id'] = snapshot.id
 d['status'] = snapshot.status
 d['progress'] = snapshot.progress
 d['size'] = snapshot.size
 d['created_at'] = snapshot.created_at
 d['display_name'] = snapshot.display_name
 d['display_description'] = snapshot.display_description
 d['volume_id'] = snapshot.volume_id
 d['project_id'] = snapshot.project_id
 d['volume_size'] = snapshot.size
 return d

def _untranslate_snapshot_summary_view ( context , snapshot ) : d = { } d [ 'id' ] = snapshot . id d [ 'status' ] = snapshot . status d [ 'progress' ] = snapshot . progress d [ 'size' ] = snapshot . size d [ 'created_at' ] = snapshot . created_at d [ 'display_name' ] = snapshot . display_name d [ 'display_description' ] = snapshot . display_description d [ 'volume_id' ] = snapshot . volume_id d [ 'project_id' ] = snapshot . project_id d [ 'volume_size' ] = snapshot . size return d
maps keys for snapshots summary view .