a single tag type for slice attributes, iterface settings, node tags and ilinks
[plcapi.git] / PLC / Methods / GetTagTypes.py
similarity index 54%
rename from PLC/Methods/GetLinkTypes.py
rename to PLC/Methods/GetTagTypes.py
index 3182fa8..ebcff1e 100644 (file)
@@ -7,12 +7,12 @@ 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
+from PLC.TagTypes import TagType, TagTypes
 
-class GetLinkTypes(Method):
+class GetTagTypes(Method):
     """
     Returns an array of structs containing details about
-    ilink types.
+    node tag types.
 
     The usual filtering scheme applies on this method.
     """
@@ -21,13 +21,13 @@ class GetLinkTypes(Method):
 
     accepts = [
         Auth(),
-        Mixed([Mixed(LinkType.fields['link_type_id'],
-                     LinkType.fields['name'])],
-              Filter(LinkType.fields)),
+        Mixed([Mixed(TagType.fields['tag_type_id'],
+                     TagType.fields['tagname'])],
+              Filter(TagType.fields)),
         Parameter([str], "List of fields to return", nullok = True)
         ]
 
-    returns = [LinkType.fields]
+    returns = [TagType.fields]
 
-    def call(self, auth, link_type_filter = None, return_fields = None):
-        return LinkTypes(self.api, link_type_filter, return_fields)
+    def call(self, auth, tag_type_filter = None, return_fields = None):
+        return TagTypes(self.api, tag_type_filter, return_fields)