1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Filter import Filter
5 from PLC.ConfFiles import ConfFile, ConfFiles
6 from PLC.Auth import Auth
8 class GetConfFiles(Method):
10 Returns an array of structs containing details about configuration
11 files. If conf_file_filter is specified and is an array of
12 configuration file identifiers, or a struct of configuration file
13 attributes, only configuration files matching the filter will be
14 returned. If return_fields is specified, only the specified
15 details will be returned.
22 Mixed([ConfFile.fields['conf_file_id']],
23 Filter(ConfFile.fields)),
24 Parameter([str], "List of fields to return", nullok = True)
27 returns = [ConfFile.fields]
30 def call(self, auth, conf_file_filter = None, return_fields = None):
31 return ConfFiles(self.api, conf_file_filter, return_fields)