class_docstr: Interact with Google Cloud Datastore. This hook uses the Google Cloud connection.
  
  This object is not threads safe. If you want to make multiple requests
  simultaneously, you will need to create a hook per thread.
  
  :param api_version: The version of the API it is going to connect to.
class_docstr_tok: ["Interact","with","Google","Cloud","Datastore",".","This","hook","uses","the","Google","Cloud","connection",".","This","object","is","not","threads","safe",".","If","you","want","to","make","multiple","requests","simultaneously",",","you","will","need","to","create","a","hook","per","thread",".",":","param","api_version",":","The","version","of","the","API","it","is","going","to","connect","to","."]
docstr: Import a backup from Cloud Storage to Cloud Datastore.
  
  .. note::
      Keep in mind that this requests the Admin API not the Data API.
  
  .. seealso::
      https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects/import
  
  :param bucket: The name of the Cloud Storage bucket.
  :param file: the metadata file written by the projects.export operation.
  :param namespace: The Cloud Storage namespace path.
  :param entity_filter: specify which kinds/namespaces are to be imported.
  :param labels: Client-assigned labels.
  :param project_id: Google Cloud project ID against which to make the request.
  :return: a resource operation instance.
docstr_tok: ["Import","a","backup","from","Cloud","Storage","to","Cloud","Datastore",".","..","note",":",":","Keep","in","mind","that","this","requests","the","Admin","API","not","the","Data","API",".","..","seealso",":",":","https",":","\/\/cloud.google.com\/datastore\/docs\/reference\/admin\/rest\/v1\/projects\/import",":","param","bucket",":","The","name","of","the","Cloud","Storage","bucket",".",":","param","file",":","the","metadata","file","written","by","the","projects.export","operation",".",":","param","namespace",":","The","Cloud","Storage","namespace","path",".",":","param","entity_filter",":","specify","which","kinds\/namespaces","are","to","be","imported",".",":","param","labels",":","Client-assigned","labels",".",":","param","project_id",":","Google","Cloud","project","ID","against","which","to","make","the","request",".",":","return",":","a","resource","operation","instance","."]
code: def import_from_storage_bucket(
      self,
      bucket: str,
      file: str,
      project_id: str,
      namespace: str | None = None,
      entity_filter: dict | None = None,
      labels: dict | str | None = None,
  ) -> dict:
      """
      Import a backup from Cloud Storage to Cloud Datastore.
  
      .. note::
          Keep in mind that this requests the Admin API not the Data API.
  
      .. seealso::
          https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects/import
  
      :param bucket: The name of the Cloud Storage bucket.
      :param file: the metadata file written by the projects.export operation.
      :param namespace: The Cloud Storage namespace path.
      :param entity_filter: specify which kinds/namespaces are to be imported.
      :param labels: Client-assigned labels.
      :param project_id: Google Cloud project ID against which to make the request.
      :return: a resource operation instance.
      """
      admin_conn = self.get_conn()
  
      input_url = (
          f"gs://{'/'.join(filter(None, [bucket, namespace, file]))}"
      )
      if not entity_filter:
          entity_filter = {}
      if not labels:
          labels = {}
      body = {
          "inputUrl": input_url,
          "entityFilter": entity_filter,
          "labels": labels,
      }
      resp = (
          admin_conn.projects()
          .import_(projectId=project_id, body=body)
          .execute(num_retries=self.num_retries)
      )
  
      return resp
  
file_path: airflow/airflow/providers/google/cloud/hooks/datastore.py
imports: from __future__ import annotations
  import time
  from typing import Any, Sequence
  from googleapiclient.discovery import Resource, build
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
label_desc: Use image node_id 13 for calling the DatastoreHook obj's underlying member method code with example usage: obj.import_from_storage_bucket(bucket, file, project_id, namespace, entity_filter, labels) and returns: resp