#NEWLINE# def create( self , region , name , public_key ) : #NEWLINE# #INDENT# 'Register a new SSH key in a RunAbove account.\n\n        :param region: Region where the key will be added\n        :param name: Name of the key\n        :param public_key: Public key value\n        ' #NEWLINE# try : #NEWLINE# #INDENT# region_name = region . name #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# region_name = region #NEWLINE# #UNINDENT# content = { #NEWLINE# #INDENT# 'publicKey' : public_key , #NEWLINE# 'region' : region_name , #NEWLINE# 'name' : name , #NEWLINE# #UNINDENT# } #NEWLINE# self . _api . post ( self . basepath , content ) #NEWLINE# return self . get_by_name ( region_name , name )