Exemple #1
0
    def branchRoleRules(self, **args):
        """Find and return list of branches for given property"""
        #create list of criteria accepted by API
        acceptable_params = ["role", "branch", "rev", "msg", "crumb"]
        args["crumb"] = self.crumb

        response = _POST(self.base_url, "branchRoleRules", acceptable_params,
                         self.debug, **args)
        return response
Exemple #2
0
    def setHostTag(self, **args):
        """Find and return list of branches for given property"""
        #create list of criteria accepted by API
        acceptable_params = ["host", "tag", "msg", "crumb"]
        args["crumb"] = self.crumb

        response = _POST(self.base_url, "setHostTag", acceptable_params,
                         self.debug, **args)
        return response
Exemple #3
0
    def setPermission(self, **args):
        """Find and return list of branches for given property"""
        #create list of criteria accepted by API
        acceptable_params = ["type", "name", "group", "perm", "msg", "crumb"]
        args["crumb"] = self.crumb

        response = _POST(self.base_url, "setPermission", acceptable_params,
                         self.debug, **args)
        return response
Exemple #4
0
    def copyTagToBranch(self, args):
        """Find and return list of branches for given property"""
        #create list of criteria accepted by API
        acceptable_params = ["from", "to", "msg", "crumb"]
        args["crumb"] = self.crumb

        response = _POST(self.base_url, "copyTagToBranch", acceptable_params,
                         self.debug, **args)
        return response