Lines Matching refs:_api_inst

1160 def __api_plan(_op, _api_inst, _accept=False, _li_ignore=None, _noexecute=False,
1192 api_plan_func = _api_inst.gen_plan_attach
1194 api_plan_func = _api_inst.gen_plan_change_varcets
1196 api_plan_func = _api_inst.gen_plan_dehydrate
1198 api_plan_func = _api_inst.gen_plan_detach
1200 api_plan_func = _api_inst.gen_plan_exact_install
1202 api_plan_func = _api_inst.gen_plan_fix
1204 api_plan_func = _api_inst.gen_plan_install
1206 api_plan_func = _api_inst.gen_plan_rehydrate
1208 api_plan_func = _api_inst.gen_plan_revert
1210 api_plan_func = _api_inst.gen_plan_sync
1212 api_plan_func = _api_inst.gen_plan_uninstall
1214 api_plan_func = _api_inst.gen_plan_update
1216 api_plan_func = _api_inst.gen_plan_verify
1239 display_plan_cb(_api_inst, [], _noexecute,
1248 _accept_plan_licenses(_api_inst)
1251 _api_inst, errors_json=errors_json,
1261 elif _api_inst.isparent(_li_ignore):
1272 display_plan_cb(_api_inst, child_plans,
1278 plan = _api_inst.describe()
1281 api_inst=_api_inst)
1291 _accept_plan_licenses(_api_inst)
1372 def __api_op(_op, _api_inst, _accept=False, _li_ignore=None, _noexecute=False,
1387 ret = __api_plan(_op=_op, _api_inst=_api_inst,
1397 if "_failures" in _api_inst._img.transport.repo_status:
1400 _api_inst._img.transport.repo_status})
1414 __api_plan_save(_api_inst, logger=logger)
1418 exit_code = __verify_exit_status(_api_inst)
1420 if _api_inst.planned_nothingtodo():
1426 __api_plan_load(_api_inst, _stage, _origins, logger=logger)
1431 ret = __api_prepare_plan(_op, _api_inst)
1439 ret = __api_execute_plan(_op, _api_inst)
2990 _api_inst = None
2998 _api_inst, ret_json = func(subcommand, pargs_json,
3010 if _api_inst:
3011 _api_inst.abort(
3018 if _api_inst:
3019 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
3022 if _api_inst:
3023 _api_inst.abort(result=RESULT_CANCELED)
3032 if _api_inst:
3033 _api_inst.abort(result=RESULT_FAILED_CONFIGURATION)
3037 if _api_inst:
3038 _api_inst.abort(result=RESULT_FAILED_BAD_REQUEST)
3042 if _api_inst:
3043 _api_inst.abort(result=RESULT_FAILED_LOCKED)
3047 if _api_inst:
3048 _api_inst.abort(result=RESULT_FAILED_TRANSPORT)
3058 if _api_inst:
3059 _api_inst.abort(result=RESULT_FAILED_STORAGE)
3066 if _api_inst:
3067 _api_inst.abort(result=RESULT_FAILED_TRANSPORT)
3079 if _api_inst:
3080 _api_inst.clear_history()
3089 if _api_inst:
3090 _api_inst.clear_history()
3099 if _api_inst:
3100 _api_inst.clear_history()
3106 if _api_inst:
3107 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
3150 if _api_inst:
3151 _api_inst.abort(result=RESULT_FAILED_UNKNOWN)
3160 if _api_inst:
3161 _api_inst.reset()
3165 _api_inst = None
3167 return _api_inst, ret_json
3191 _api_inst, ret_json = __handle_errors_json(__pkg,
3197 return _api_inst, ret_json
3216 _api_inst, ret_json = _pkg_invoke(cmd, pargs_json=pargs_json,
3221 self.api_inst = _api_inst