<s> """<STR_LIT>""" <EOL> import oslo_messaging as messaging <EOL> import nova . conf <EOL> from nova import rpc <EOL> CONF = nova . conf . CONF <EOL> class CertAPI ( object ) : <EOL> '''<STR_LIT>''' <EOL> VERSION_ALIASES = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> def __init__ ( self ) : <EOL> super ( CertAPI , self ) . __init__ ( ) <EOL> target = messaging . Target ( topic = CONF . cert_topic , version = '<STR_LIT>' ) <EOL> version_cap = self . VERSION_ALIASES . get ( CONF . upgrade_levels . cert , <EOL> CONF . upgrade_levels . cert ) <EOL> self . client = rpc . get_client ( target , version_cap = version_cap ) <EOL> def revoke_certs_by_user ( self , ctxt , user_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , user_id = user_id ) <EOL> def revoke_certs_by_project ( self , ctxt , project_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , <EOL> project_id = project_id ) <EOL> def revoke_certs_by_user_and_project ( self , ctxt , user_id , project_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , <EOL> user_id = user_id , project_id = project_id ) <EOL> def generate_x509_cert ( self , ctxt , user_id , project_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , <EOL> user_id = user_id , <EOL> project_id = project_id ) <EOL> def fetch_ca ( self , ctxt , project_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , project_id = project_id ) <EOL> def fetch_crl ( self , ctxt , project_id ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , project_id = project_id ) <EOL> def decrypt_text ( self , ctxt , project_id , text ) : <EOL> cctxt = self . client . prepare ( ) <EOL> return cctxt . call ( ctxt , '<STR_LIT>' , <EOL> project_id = project_id , <EOL> text = text ) </s>
