#NEWLINE# @ expose . expose ( None , types . uuid_or_name , body = types . jsontype ) #NEWLINE# def raid( self , node_ident , target_raid_config ) : #NEWLINE# #INDENT# "Set the target raid config of the node.\n\n        :param node_ident: the UUID or logical name of a node.\n        :param target_raid_config: Desired target RAID configuration of\n            the node. It may be an empty dictionary as well.\n        :raises: UnsupportedDriverExtension, if the node's driver doesn't\n            support RAID configuration.\n        :raises: InvalidParameterValue, if validation of target raid config\n            fails.\n        :raises: NotAcceptable, if requested version of the API is less than\n            1.12.\n        " #NEWLINE# if ( not api_utils . allow_raid_config ( ) ) : #NEWLINE# #INDENT# raise exception . NotAcceptable ( ) #NEWLINE# #UNINDENT# rpc_node = api_utils . get_rpc_node ( node_ident ) #NEWLINE# topic = pecan . request . rpcapi . get_topic_for ( rpc_node ) #NEWLINE# try : #NEWLINE# #INDENT# pecan . request . rpcapi . set_target_raid_config ( pecan . request . context , rpc_node . uuid , target_raid_config , topic = topic ) #NEWLINE# #UNINDENT# except exception . UnsupportedDriverExtension as e : #NEWLINE# #INDENT# e . code = http_client . NOT_FOUND #NEWLINE# raise e