@@ -533,7 +533,9 @@ def apply(str_dict_model_apiobject_or_list_thereof, overwrite=False, cmd_args=No
533533 auto_raise = True ):
534534 """
535535 Applies the specifies resource(s) on the server.
536- :param str_dict_model_apiobject_or_list_thereof:
536+ :param str_dict_model_apiobject_or_list_thereof: The definition of one or more API object.
537+ Can be string containing json or yaml, a python dict, an openshift.Model, or an openshift.APIObject.
538+ You can also provide a list containing multiple of these elements to update.
537539 :param overwrite: If --overwrite should be sent to apply.
538540 :param cmd_args: Additional apply arguments
539541 :param fetch_resource_versions: If True, before trying to apply the resources, a get operation will be used to
@@ -584,7 +586,16 @@ def apply(str_dict_model_apiobject_or_list_thereof, overwrite=False, cmd_args=No
584586 auto_raise = auto_raise )
585587
586588
587- def replace (str_dict_model_apiobject_or_list_thereof , force = False , cmd_args = None ):
589+ def replace (str_dict_model_apiobject_or_list_thereof , force = False , cmd_args = None , auto_raise = True ):
590+ """
591+ :param str_dict_model_apiobject_or_list_thereof: The definition of one or more API object.
592+ Can be string containing json or yaml, a python dict, an openshift.Model, or an openshift.APIObject.
593+ You can also provide a list containing multiple of these elements to update.
594+ :param force: Whether to send the --force argument to oc replace.
595+ :param cmd_args: Additional arguments for the verb.
596+ :param auto_raise: If True, errors from oc will raise an exception.
597+ :return: A selector for the updated objects and Result.
598+ """
588599 base_args = list ()
589600 if force :
590601 base_args .append ('--force' )
@@ -605,7 +616,8 @@ def replace(str_dict_model_apiobject_or_list_thereof, force=False, cmd_args=None
605616 return __new_objects_action_selector ("replace" ,
606617 cmd_args = ["-f" , "-" , base_args , cmd_args ],
607618 stdin_obj = m ,
608- no_namespace = namespace_detected )
619+ no_namespace = namespace_detected ,
620+ auto_raise = auto_raise )
609621
610622
611623def build_configmap_dict (configmap_name , dir_path_or_paths = None , dir_ext_include = None , data_map = None , obj_labels = None ):
0 commit comments