<s> """<STR_LIT>""" <EOL> from cinderclient import base <EOL> class VolumeEncryptionType ( base . Resource ) : <EOL> """<STR_LIT>""" <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % self . name <EOL> class VolumeEncryptionTypeManager ( base . ManagerWithFind ) : <EOL> """<STR_LIT>""" <EOL> resource_class = VolumeEncryptionType <EOL> def list ( self , search_opts = None ) : <EOL> """<STR_LIT>""" <EOL> volume_types = self . api . volume_types . list ( ) <EOL> encryption_types = [ ] <EOL> for volume_type in volume_types : <EOL> encryption_type = self . _get ( "<STR_LIT>" <EOL> % base . getid ( volume_type ) ) <EOL> if hasattr ( encryption_type , '<STR_LIT>' ) : <EOL> encryption_types . append ( encryption_type ) <EOL> return encryption_types <EOL> def get ( self , volume_type ) : <EOL> """<STR_LIT>""" <EOL> return self . _get ( "<STR_LIT>" % base . getid ( volume_type ) ) <EOL> def create ( self , volume_type , specs ) : <EOL> """<STR_LIT>""" <EOL> body = { '<STR_LIT>' : specs } <EOL> return self . _create ( "<STR_LIT>" % base . getid ( volume_type ) , <EOL> body , "<STR_LIT>" ) <EOL> def update ( self , volume_type , specs ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def delete ( self , volume_type ) : <EOL> """<STR_LIT>""" <EOL> return self . _delete ( "<STR_LIT>" % <EOL> base . getid ( volume_type ) ) </s>
