#NEWLINE# @ classmethod #NEWLINE# def _trigger_class_action( cls , method , name , id = None , **params ) : #NEWLINE# #INDENT# '\n        Trigger an action\n\n        :param method: HTTP method to use to contact API endpoint\n        :type method: HTTP method string\n\n        :param name: action name\n        :type name: string\n\n        :param id: trigger the action for the specified resource object\n        :type id: id\n\n        :param params: action parameters\n        :type params: dictionary\n\n        :returns: JSON response from HTTP API request\n        ' #NEWLINE# if ( id is None ) : #NEWLINE# #INDENT# return HTTPClient . request ( method , ( ( cls . _class_url + '/' ) + name ) , params ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return HTTPClient . request ( method , ( ( ( ( method . _class_url + '/' ) + str ( id ) ) + '/' ) + name ) , params )