def replace_file(original_file_object=nil,
                         replacement_file_path='',
                         retain_original_filename_in_oa=false,
                         generate_objects=false)

            __replace_file(original_file_object,
                         replacement_file_path,
                         retain_original_filename_in_oa,
                         generate_objects)
        end
def replace_file(original_file_object=nil,
                         replacement_file_path='',
                         retain_original_filename_in_oa=false,
                         generate_objects=false)

            __replace_file(original_file_object,
                         replacement_file_path,
                         retain_original_filename_in_oa,
                         generate_objects)
        end
Replace a file in OpenAsset.

 @param original_file_object [Single Files Object] (Required) File Object in OA
 @param replacement_file_path [String] (Required)
 @param retain_original_filename_in_oa [Boolean] (Optional, Default => false)
 @param generate_objects [Boolean] Return an array of Files or JSON objects in response body (Optional, Default => false)
 @return [JSON object or Files Object Array ]. Returns Files objects array if generate_objects flag is set

 @example
          rest_client.replace_file(file_obj,'C:\Users\root\Pictures\new_img.jpg')
          rest_client.replace_file(file_obj,'C:\Users\root\Pictures\new_img.jpg',true,true)
          rest_client.replace_file(file_obj,'C:\Users\root\Pictures\new_img.jpg',false,false)
          rest_client.replace_file(file_obj,'C:\Users\root\Pictures\new_img.jpg',false,true)
          rest_client.replace_file(file_obj,'C:\Users\root\Pictures\new_img.jpg',true,false)