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
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
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
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