X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmUpdateNodeGroup.py;h=b53198ac751cbeca8947b8aff8a27454c97736c1;hb=cc7c766aadbd43bddc751497f100b252bc9c5d6f;hp=0b0ee5dc57bf7e8bef26e56944f954ea63f65824;hpb=6705baeb8913af0c97c9db5be6f8676a7a532970;p=plcapi.git diff --git a/PLC/Methods/AdmUpdateNodeGroup.py b/PLC/Methods/AdmUpdateNodeGroup.py index 0b0ee5d..b53198a 100644 --- a/PLC/Methods/AdmUpdateNodeGroup.py +++ b/PLC/Methods/AdmUpdateNodeGroup.py @@ -1,6 +1,27 @@ +from PLC.Faults import * +from PLC.Method import Method +from PLC.Parameter import Parameter, Mixed +from PLC.NodeGroups import NodeGroup, NodeGroups +from PLC.Auth import Auth from PLC.Methods.UpdateNodeGroup import UpdateNodeGroup class AdmUpdateNodeGroup(UpdateNodeGroup): """ Deprecated. See UpdateNodeGroup. """ + + status = "deprecated" + + accepts = [ + Auth(), + Mixed(NodeGroup.fields['nodegroup_id'], + NodeGroup.fields['name']), + NodeGroup.fields['name'], + NodeGroup.fields['description'] + ] + + returns = Parameter(int, '1 if successful') + + def call(self, auth, nodegroup_id_or_name, name, description): + return UpdateNodeGroup.call(self, auth, nodegroup_id_or_name, + {'name': name, 'description': description})