php/methods.py requires that the class in each of these Methods/* files matches the...
[plcapi.git] / PLC / Methods / GetSlices.py
index f41dde3..f496356 100644 (file)
@@ -77,16 +77,7 @@ class v43GetSlices(Method):
 
 class v42GetSlices(v43GetSlices):
     """
-    Returns an array of structs containing details about slices. If
-    slice_filter is specified and is an array of slice identifiers or
-    slice names, or a struct of slice attributes, only slices matching
-    the filter will be returned. If return_fields is specified, only the
-    specified details will be returned.
-
-    Users may only query slices of which they are members. PIs may
-    query any of the slices at their sites. Admins and nodes may query
-    any slice. If a slice that cannot be queried is specified in
-    slice_filter, details about that slice will not be returned.
+    Legacy wrapper for v43GetSlices.
     """
 
     def call(self, auth, slice_filter = None, return_fields = None):
@@ -102,4 +93,18 @@ class v42GetSlices(v43GetSlices):
                 slice['slice_attribute_ids']=slice['slice_tag_ids']
         return slices
 
-GetSlices=v42GetSlices
+class GetSlices(v42GetSlices):
+    """
+    Returns an array of structs containing details about slices. If
+    slice_filter is specified and is an array of slice identifiers or
+    slice names, or a struct of slice attributes, only slices matching
+    the filter will be returned. If return_fields is specified, only the
+    specified details will be returned.
+
+    Users may only query slices of which they are members. PIs may
+    query any of the slices at their sites. Admins and nodes may query
+    any slice. If a slice that cannot be queried is specified in
+    slice_filter, details about that slice will not be returned.
+    """
+
+    pass