def copy_rules!(src_index, dst_index, request_options = {})
      res = copy_rules(src_index, dst_index, request_options)
      wait_task(dst_index, res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
def copy_rules!(src_index, dst_index, request_options = {})
      res = copy_rules(src_index, dst_index, request_options)
      wait_task(dst_index, res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
Copy an existing index rules and wait until the copy has been processed.

 @param src_index the name of index to copy.
 @param dst_index the new index name that will contains a copy of srcIndexName rules (destination rules will be overriten if it already exist).
 @param request_options contains extra parameters to send with your query