def map_program_to_control_rest(new_program_rest, new_control_rest): """Create a new Program, Control objects via REST API and map created Control to Program via REST API. """ yield RelationshipsService().create(src_obj=new_program_rest, dest_objs=new_control_rest)
def map_controls_to_program_rest(new_program_rest, new_controls_rest): """Create new Program, Controls objects via REST API and map created Controls to Program via REST API. """ yield RelationshipsService().map_objs(src_obj=new_program_rest, dest_objs=new_controls_rest)
def map_issue_to_audit_rest(new_audit_rest, new_issue_rest): """Create new Audit (Audit, Program) and new Issue (Issue, Audit, Program) objects via REST API and map created Issue to Audit via REST API. """ yield RelationshipsService().create(src_obj=new_issue_rest[0], dest_objs=new_audit_rest[0])
def map_program_to_control_rest(new_program_rest, new_control_rest): """Create a new business objects Program and Control via REST API. Create relationship (map) Control to Program via REST API. """ yield RelationshipsService().create(src_obj=new_program_rest, dest_objs=new_control_rest)