Lines Matching defs:_api_inst
127 _api_inst = None
1649 def __api_plan(_op, _api_inst, _accept=False, _li_ignore=None, _noexecute=False,
1674 api_plan_func = _api_inst.gen_plan_attach
1676 api_plan_func = _api_inst.gen_plan_change_varcets
1678 api_plan_func = _api_inst.gen_plan_dehydrate
1680 api_plan_func = _api_inst.gen_plan_detach
1682 api_plan_func = _api_inst.gen_plan_exact_install
1684 api_plan_func = _api_inst.gen_plan_fix
1686 api_plan_func = _api_inst.gen_plan_install
1688 api_plan_func = _api_inst.gen_plan_rehydrate
1690 api_plan_func = _api_inst.gen_plan_revert
1692 api_plan_func = _api_inst.gen_plan_sync
1694 api_plan_func = _api_inst.gen_plan_uninstall
1696 api_plan_func = _api_inst.gen_plan_update
1718 display_plan(_api_inst, [], _noexecute,
1726 accept_plan_licenses(_api_inst)
1728 rv = __api_plan_exception(_op, _noexecute, _verbose, _api_inst)
1737 elif _api_inst.isparent(_li_ignore):
1746 display_plan(_api_inst, child_plans, _noexecute,
1755 accept_plan_licenses(_api_inst)
1833 def __api_op(_op, _api_inst, _accept=False, _li_ignore=None, _noexecute=False,
1846 rv = __api_plan(_op=_op, _api_inst=_api_inst,
1863 __api_plan_save(_api_inst)
1866 return _verify_exit_code(_api_inst)
1867 if _api_inst.planned_nothingtodo():
1873 __api_plan_load(_api_inst, _stage, _origins)
1878 ret_code = __api_prepare_plan(_op, _api_inst)
1886 ret_code = __api_execute_plan(_op, _api_inst)
1926 _api_inst.reset()
1933 rv = op_func(op, _api_inst, **pwargs)
3646 _api_inst.progresstracker = get_tracker()
4657 global _api_inst
4660 _api_inst = api.image_create(PKG_CLIENT_NAME, CLIENT_API_VERSION,
4667 img = _api_inst.img
4692 # _api_inst will be None.
5087 _api_inst = None
5383 global _api_inst
5519 _api_inst = api_inst
5617 _api_inst.progresstracker = get_tracker()
5639 if _api_inst:
5640 _api_inst.abort(
5645 if _api_inst:
5646 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
5649 if _api_inst:
5650 _api_inst.abort(result=RESULT_CANCELED)
5659 if _api_inst:
5660 _api_inst.abort(result=RESULT_FAILED_CONFIGURATION)
5664 if _api_inst:
5665 _api_inst.abort(result=RESULT_FAILED_BAD_REQUEST)
5669 if _api_inst:
5670 _api_inst.abort(result=RESULT_FAILED_LOCKED)
5674 if _api_inst:
5675 _api_inst.abort(result=RESULT_FAILED_TRANSPORT)
5683 if _api_inst:
5684 _api_inst.abort(result=RESULT_FAILED_STORAGE)
5690 if _api_inst:
5691 _api_inst.abort(result=RESULT_FAILED_TRANSPORT)
5703 if _api_inst:
5704 _api_inst.clear_history()
5712 if _api_inst:
5713 _api_inst.clear_history()
5722 if _api_inst:
5723 _api_inst.clear_history()
5729 if _api_inst:
5730 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
5767 if _api_inst:
5768 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
5781 if _api_inst:
5782 _api_inst.abort(result=RESULT_CANCELED)