#NEWLINE# def create( self , name , input = None , **params ) : #NEWLINE# #INDENT# self . _ensure_not_empty ( name = input ) #NEWLINE# data = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# #UNINDENT# } #NEWLINE# if input : #NEWLINE# #INDENT# data [ 'input' ] = json . dumps ( input ) #NEWLINE# #UNINDENT# if params : #NEWLINE# #INDENT# data [ 'params' ] = json . dumps ( params ) #NEWLINE# #UNINDENT# resp = self . client . http_client . post ( '/action_executions' , json . dumps ( data ) ) #NEWLINE# if ( resp . status_code != 201 ) : #NEWLINE# #INDENT# self . _raise_api_exception ( resp ) #NEWLINE# #UNINDENT# return self . resource_class ( self , base . get_json ( resp ) )