def _clone_index(self, index_name: str, index_copy_name: str) -> None:
    clone_request_url = f"{self.options['es_url'].rstrip('/')}/{index_name}/_clone/{index_copy_name}/"
    self.logger.debug(f'Calling Elasticsearch API to clone the index, URL: {clone_request_url}')
    clone_response = self._http_request(clone_request_url, 'POST')
    clone_response_data = json.loads(clone_response['data'].decode('utf-8'))
    self.logger.debug(f"Response received, status: {clone_response['status']}")
    self.logger.debug(f"Response headers: {clone_response['headers']}")
    self.logger.debug(f'Response data: {clone_response_data}')
    if ((clone_response['status'] == 200) and (clone_response_data.get('acknowledged', None) is True)):
        self.logger.debug('Index cloned')
    else:
        error_message = 'Failed to clone the index'
        self.logger.error(f'{error_message}')
        raise RuntimeError(f'{error_message}')
    return None
def _clone_index(self, index_name: str, index_copy_name: str) -> None:
    clone_request_url = f"{self.options['es_url'].rstrip('/')}/{index_name}/_clone/{index_copy_name}/"
    self.logger.debug(f'Calling Elasticsearch API to clone the index, URL: {clone_request_url}')
    clone_response = self._http_request(clone_request_url, 'POST')
    clone_response_data = json.loads(clone_response['data'].decode('utf-8'))
    self.logger.debug(f"Response received, status: {clone_response['status']}")
    self.logger.debug(f"Response headers: {clone_response['headers']}")
    self.logger.debug(f'Response data: {clone_response_data}')
    if ((clone_response['status'] == 200) and (clone_response_data.get('acknowledged', None) is True)):
        self.logger.debug('Index cloned')
    else:
        error_message = 'Failed to clone the index'
        self.logger.error(f'{error_message}')
        raise RuntimeError(f'{error_message}')
    return None