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