#NEWLINE# def bundle_edit( self , bundle_link , edit = None , title = None , description = None , private = None , preview = None , og_image = None ) : #NEWLINE# #INDENT# 'edit a bundle for the authenticated user' #NEWLINE# params = dict ( bundle_link = bundle_link ) #NEWLINE# if edit : #NEWLINE# #INDENT# assert isinstance ( edit , string_types ) #NEWLINE# params [ 'edit' ] = edit #NEWLINE# #UNINDENT# if title : #NEWLINE# #INDENT# assert isinstance ( title , string_types ) #NEWLINE# params [ 'title' ] = title #NEWLINE# #UNINDENT# if description : #NEWLINE# #INDENT# assert isinstance ( description , string_types ) #NEWLINE# params [ 'description' ] = description #NEWLINE# #UNINDENT# if ( private is not None ) : #NEWLINE# #INDENT# if private : #NEWLINE# #INDENT# params [ 'private' ] = 'true' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# params [ 'private' ] = 'false' #NEWLINE# #UNINDENT# #UNINDENT# if ( preview is not None ) : #NEWLINE# #INDENT# if preview : #NEWLINE# #INDENT# params [ 'preview' ] = 'true' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# params [ 'preview' ] = 'false' #NEWLINE# #UNINDENT# #UNINDENT# if og_image : #NEWLINE# #INDENT# assert isinstance ( og_image , string_types ) #NEWLINE# params [ 'og_image' ] = og_image #NEWLINE# #UNINDENT# data = self . _call_oauth2_metrics ( 'v3/bundle/edit' , params ) #NEWLINE# return data