def create_vuln_web(workspace_name, vuln_web): """Take a workspace_name and an vulnerabilityWeb object and save it to the sever. Return the server's json response as a dictionary. """ vuln_web_properties = get_vuln_web_properties(vuln_web) return server.create_vuln_web(workspace_name, **vuln_web_properties)
def update_vuln_web(workspace_name, vuln_web): vuln_web_properties = get_vuln_web_properties(vuln_web) return server.update_vuln_web(workspace_name, **vuln_web_properties)