a single tag type for slice attributes, iterface settings, node tags and ilinks
[plcapi.git] / PLC / Methods / GetLinkTypes.py
diff --git a/PLC/Methods/GetLinkTypes.py b/PLC/Methods/GetLinkTypes.py
deleted file mode 100644 (file)
index 3182fa8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Thierry Parmentelat - INRIA
-#
-# $Revision: 9423 $
-#
-from PLC.Method import Method
-from PLC.Parameter import Parameter, Mixed
-from PLC.Filter import Filter
-from PLC.Auth import Auth
-from PLC.LinkTypes import LinkType, LinkTypes
-
-class GetLinkTypes(Method):
-    """
-    Returns an array of structs containing details about
-    ilink types.
-
-    The usual filtering scheme applies on this method.
-    """
-
-    roles = ['admin', 'pi', 'user', 'tech', 'node']
-
-    accepts = [
-        Auth(),
-        Mixed([Mixed(LinkType.fields['link_type_id'],
-                     LinkType.fields['name'])],
-              Filter(LinkType.fields)),
-        Parameter([str], "List of fields to return", nullok = True)
-        ]
-
-    returns = [LinkType.fields]
-
-    def call(self, auth, link_type_filter = None, return_fields = None):
-        return LinkTypes(self.api, link_type_filter, return_fields)