def update_credential(workspace_name, credential): credential_properties = get_credential_properties(credential) return server.update_credential(workspace_name, **credential_properties)
def create_credential(workspace_name, credential): """Take a workspace_name and an credential object and save it to the sever. Return the server's json response as a dictionary. """ credential_properties = get_credential_properties(credential) return server.create_credential(workspace_name, **credential_properties)