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.Messages import Message, Messages
6 from PLC.Auth import Auth
8 class GetMessages(Method):
10 Returns an array of structs containing details about message
11 templates. If message template_filter is specified and is an array
12 of message template identifiers or hostnames, or a struct of
13 message template attributes, only message templates matching the
14 filter will be returned. If return_fields is specified, only the
15 specified details will be returned.
22 Mixed([Message.fields['message_id']],
23 Filter(Message.fields)),
24 Parameter([str], "List of fields to return", nullok = True),
27 returns = [Message.fields]
30 def call(self, auth, message_filter = None, return_fields = None):
31 return Messages(self.api, message_filter, return_fields)