class_docstr: Interact with Weaviate database to store vectors. This hook uses the 'conn_id'.
  
  :param conn_id: The connection id to use when connecting to Weaviate. <howto/connection:weaviate>
class_docstr_tok: ["Interact","with","Weaviate","database","to","store","vectors",".","This","hook","uses","the","'conn_id","'",".",":","param","conn_id",":","The","connection","id","to","use","when","connecting","to","Weaviate",".","<","howto\/connection",":","weaviate",">"]
docstr: Replace an object in weaviate.
  
  :param data_object: The object states the fields that should be updated. Fields not specified in the
      'data_object' will be set to None. If type is str it should be either an URL or a file.
  :param class_name: Class name associated with the object given.
  :param uuid: uuid of the object to be replaced
  :param kwargs: Optional parameters to be passed to weaviate_client.data_object.replace()
code: def replace_object(
      self,
      data_object: dict | str,
      class_name: str,
      uuid: UUID | str,
      **kwargs,
  ) -> None:
      """Replace an object in weaviate.
  
      :param data_object: The object states the fields that should be updated. Fields not specified in the
          'data_object' will be set to None. If type is str it should be either an URL or a file.
      :param class_name: Class name associated with the object given.
      :param uuid: uuid of the object to be replaced
      :param kwargs: Optional parameters to be passed to weaviate_client.data_object.replace()
      """
      client = self.conn
      client.data_object.replace(
          data_object, class_name, uuid, **kwargs
      )
  
imports: from __future__ import annotations
  import contextlib
  import json
  import warnings
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Dict, List, Sequence, cast
  import requests
  import weaviate.exceptions
  from tenacity import Retrying, retry, retry_if_exception, retry_if_exception_type, stop_after_attempt
  from weaviate import Client
  from weaviate.auth import AuthApiKey, AuthBearerToken, AuthClientCredentials, AuthClientPassword
  from weaviate.data.replication import ConsistencyLevel
  from weaviate.exceptions import ObjectAlreadyExistsException
  from weaviate.util import generate_uuid5
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 28 for calling the WeaviateHook obj's underlying member method code with example usage: obj.replace_object(data_object, class_name, uuid) without return types