4 # Thierry Parmentelat - INRIA
8 from PLC.Method import Method
9 from PLC.Parameter import Parameter, Mixed
10 from PLC.Filter import Filter
11 from PLC.Auth import Auth
12 from PLC.TagTypes import TagType, TagTypes
14 class GetTagTypes(Method):
16 Returns an array of structs containing details about
19 The usual filtering scheme applies on this method.
22 roles = ['admin', 'pi', 'user', 'tech', 'node']
26 Mixed([Mixed(TagType.fields['tag_type_id'],
27 TagType.fields['tagname'])],
28 Filter(TagType.fields)),
29 Parameter([str], "List of fields to return", nullok = True)
32 returns = [TagType.fields]
34 def call(self, auth, tag_type_filter = None, return_fields = None):
35 return TagTypes(self.api, tag_type_filter, return_fields)