1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.ConfFiles import ConfFile, ConfFiles
5 from PLC.Auth import Auth
7 class DeleteConfFile(Method):
9 Returns an array of structs containing details about node
10 configuration files. If conf_file_ids is specified, only the
11 specified configuration files will be queried.
18 ConfFile.fields['conf_file_id']
21 returns = Parameter(int, '1 if successful')
24 def call(self, auth, conf_file_id):
25 conf_files = ConfFiles(self.api, [conf_file_id])
27 raise PLCInvalidArgument, "No such configuration file"
29 conf_file = conf_files[0]
31 self.event_objects = {'ConfFile': [conf_file['conf_file_id']]}