#NEWLINE# def create_key_pair( self , name , ssh_key_pub ) : #NEWLINE# #INDENT# '\n        Create a new SSH key.\n\n        :param      name: Key name (required)\n        :type       name: ``str``\n\n        :param      name: Valid public key string (required)\n        :type       name: ``str``\n        ' #NEWLINE# params = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'ssh_pub_key' : ssh_key_pub , #NEWLINE# #UNINDENT# } #NEWLINE# data = self . connection . request ( '/v1/ssh_keys/new/' , method = 'GET' , params = params ) . object #NEWLINE# assert ( 'ssh_key' in data ) #NEWLINE# return self . _to_key_pair ( data = data [ 'ssh_key' ] )