Module Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Str While NameLoad body If CompareEq NameLoad Str body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call NameLoad BinOpAdd Str Str orelse Break orelse Assign NameStore Call NameLoad BinOpAdd Str Str Print Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Str While NameLoad body If CompareEq NameLoad Str body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Str If CompareEq AttributeLoad NameLoad attr Num body Break Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad Str While NameLoad body If CompareNotEq NameLoad Str body Assign NameStore Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str If CompareEq NameLoad Str body Break Assign NameStore Call NameLoad Str While NameLoad body Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str If CompareEq NameLoad Str body Break orelse If CompareEq NameLoad Str body Print BinOpAdd Str NameLoad Expr Call NameLoad Num orelse Print BinOpAdd NameLoad Str If CompareEq NameLoad Str body Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Print Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A json N/A os N/A sys N/A importlib N/A N/A N/A N/A sys path append N/A N/A N/A os path realpath ../modules N/A client_module N/A N/A importlib import_module RestApiClient N/A SampleUtilities N/A N/A importlib import_module SampleUtilities main N/A N/A N/A N/A N/A client N/A N/A client_module RestApiClient version 5.0 N/A N/A N/A SampleUtilities pretty_print_request client N/A siem/offenses?fields=id,description,status,offense_type, offense_source&filter=status!=CLOSED GET N/A response N/A N/A client call_api N/A siem/offenses?fields=id,description,status,offense_type, offense_source&filter=status!=CLOSED GET N/A N/A N/A SampleUtilities pretty_print_response response N/A N/A N/A response code 200 N/A N/A Call Failed N/A N/A N/A sys exit 1 N/A offense_ID N/A input Select an offense to close. Please type its ID or quit.  N/A True N/A N/A N/A offense_ID quit N/A N/A N/A exit 0 N/A N/A N/A SampleUtilities pretty_print_request client N/A siem/offenses/ N/A str offense_ID GET N/A response N/A N/A client call_api N/A siem/offenses/ N/A str offense_ID GET N/A response_text N/A N/A N/A N/A response read decode utf-8 N/A N/A N/A response code 200 N/A N/A response_body N/A N/A json loads response_text N/A N/A N/A response_body N/A status CLOSED N/A N/A offense_ID N/A input N/A The offense you selected is already CLOSED.  Please try again or type quit.  N/A N/A N/A N/A offense_ID N/A input N/A An offense by that ID does not exist.  Please try again or type quit.  N/A N/A N/A json dumps response_body indent 4 N/A N/A N/A SampleUtilities pretty_print_request client siem/offense_closing_reasons GET N/A response N/A N/A client call_api siem/offense_closing_reasons GET N/A N/A N/A SampleUtilities pretty_print_response response N/A N/A N/A response code 200 N/A N/A Call Failed N/A N/A N/A sys exit 1 N/A closing_reason_ID N/A input Please select a closing reason or type quit.  N/A True N/A N/A N/A closing_reason_ID quit N/A N/A N/A exit 0 N/A N/A N/A SampleUtilities pretty_print_request client N/A siem/offense_closing_reasons/ closing_reason_ID GET N/A response N/A N/A client call_api N/A siem/offense_closing_reasons/ closing_reason_ID GET N/A N/A N/A response code 200 N/A N/A N/A closing_reason_ID N/A input There has been an error. Please try again or type quit.  N/A make_note N/A input Do you want to create a note for this offense? (YES/no)  N/A N/A make_note YES N/A N/A note_text N/A input Please enter a note to close the offense with:
 N/A True N/A N/A N/A note_text N/A N/A confirmation N/A input N/A N/A Are you sure you want to enter the note " note_text "? (YES/no)  N/A N/A confirmation YES N/A N/A N/A note_text N/A input Please enter a note to close the offense with:
 N/A True N/A N/A confirm N/A input N/A N/A N/A N/A Are you sure you want to close offense  offense_ID  with closing reason  closing_reason_ID ? (YES/no)
 N/A N/A confirm YES N/A N/A N/A N/A N/A confirm no N/A N/A N/A Not closing offense  offense_ID N/A N/A exit 0 N/A N/A N/A confirm  is not a valid response. N/A N/A make_note YES N/A N/A params N/A note_text note_text N/A response N/A N/A client call_api N/A N/A siem/offenses/ offense_ID /notes POST params params print_request True N/A N/A N/A SampleUtilities pretty_print_response response N/A N/A N/A response code 201 N/A N/A Call Failed Creating Note N/A N/A exit 1 N/A N/A N/A SampleUtilities pretty_print_request client N/A N/A N/A N/A siem/offenses/ offense_ID ?status=CLOSED&closing_reason_id= closing_reason_ID &fields=id,description,status,offense_type,offense_source POST N/A response N/A N/A client call_api N/A N/A N/A N/A siem/offenses/ offense_ID ?status=CLOSED&closing_reason_id= closing_reason_ID &fields=id,description,status,offense_type,offense_source POST N/A N/A N/A SampleUtilities pretty_print_response response N/A N/A N/A response code 200 N/A N/A Call Failed Closing Item N/A Offense closed N/A N/A N/A __name__ __main__ N/A N/A N/A main