renaming SliceAttribute into SliceTag and InterfaceSetting into InterfaceTag
[plcapi.git] / PLC / Methods / GetInterfaceTags.py
similarity index 60%
rename from PLC/Methods/GetInterfaceSettings.py
rename to PLC/Methods/GetInterfaceTags.py
index 31abd59..1b28c2f 100644 (file)
@@ -10,16 +10,16 @@ from PLC.Parameter import Parameter, Mixed
 from PLC.Filter import Filter
 from PLC.Auth import Auth
 
-from PLC.InterfaceSettings import InterfaceSetting, InterfaceSettings
+from PLC.InterfaceTags import InterfaceTag, InterfaceTags
 from PLC.Sites import Site, Sites
 from PLC.Interfaces import Interface, Interfaces
 
-class GetInterfaceSettings(Method):
+class GetInterfaceTags(Method):
     """
     Returns an array of structs containing details about
     interfaces and related settings.
 
-    If interface_setting_filter is specified and is an array of
+    If interface_tag_filter is specified and is an array of
     interface setting identifiers, only interface settings matching
     the filter will be returned. If return_fields is specified, only
     the specified details will be returned.
@@ -29,17 +29,17 @@ class GetInterfaceSettings(Method):
 
     accepts = [
         Auth(),
-        Mixed([InterfaceSetting.fields['interface_setting_id']],
+        Mixed([InterfaceTag.fields['interface_tag_id']],
               Parameter(int,"Interface setting id"),
-              Filter(InterfaceSetting.fields)),
+              Filter(InterfaceTag.fields)),
         Parameter([str], "List of fields to return", nullok = True)
         ]
 
-    returns = [InterfaceSetting.fields]
+    returns = [InterfaceTag.fields]
     
 
-    def call(self, auth, interface_setting_filter = None, return_fields = None):
+    def call(self, auth, interface_tag_filter = None, return_fields = None):
 
-        interface_settings = InterfaceSettings(self.api, interface_setting_filter, return_fields)
+        interface_tags = InterfaceTags(self.api, interface_tag_filter, return_fields)
 
-        return interface_settings
+        return interface_tags