#NEWLINE# def editproject( self , project_id , **kwargs ) : #NEWLINE# #INDENT# 'Edit an existing project.\n\n        :param name: new project name\n        :param path: custom repository name for new project. By default generated based on name\n        :param default_branch: they default branch\n        :param description: short project description\n        :param issues_enabled:\n        :param merge_requests_enabled:\n        :param wiki_enabled:\n        :param snippets_enabled:\n        :param public: if true same as setting visibility_level = 20\n        :param visibility_level:\n        :return:\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'id' : project_id , #NEWLINE# #UNINDENT# } #NEWLINE# if kwargs : #NEWLINE# #INDENT# data . update ( kwargs ) #NEWLINE# #UNINDENT# request = requests . put ( '{0}/{1}' . format ( self . projects_url , project_id ) , headers = self . headers , data = data , verify = self . verify_ssl , auth = self . auth , timeout = self . timeout ) #NEWLINE# if ( request . status_code == 200 ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( request . status_code == 400 ) : #NEWLINE# #INDENT# if ( "Your param's are invalid" in kwargs . text ) : #NEWLINE# #INDENT# print ( request . text ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return False