class_docstr: Hook for Google Cloud Spanner APIs.
  
  All the methods in the hook where project_id is used must be called with
  keyword arguments rather than positional.
class_docstr_tok: ["Hook","for","Google","Cloud","Spanner","APIs",".","All","the","methods","in","the","hook","where","project_id","is","used","must","be","called","with","keyword","arguments","rather","than","positional","."]
docstr: Updates an existing Cloud Spanner instance.
  
  :param instance_id: The ID of the Cloud Spanner instance.
  :param configuration_name: The name of the instance configuration defining how the
      instance will be created. Possible configuration values can be retrieved via
      https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instanceConfigs/list
  :param node_count: (Optional) The number of nodes allocated to the Cloud Spanner
      instance.
  :param display_name: (Optional) The display name for the instance in the Google Cloud
      Console. Must be between 4 and 30 characters. If this value is not set in
      the constructor, the name falls back to the instance ID.
  :param project_id: Optional, the ID of the Google Cloud project that owns the Cloud Spanner
      database. If set to None or missing, the default project_id from the Google Cloud connection
      is used.
  :return: None
docstr_tok: ["Updates","an","existing","Cloud","Spanner","instance",".",":","param","instance_id",":","The","ID","of","the","Cloud","Spanner","instance",".",":","param","configuration_name",":","The","name","of","the","instance","configuration","defining","how","the","instance","will","be","created",".","Possible","configuration","values","can","be","retrieved","via","https",":","\/\/cloud.google.com\/spanner\/docs\/reference\/rest\/v1\/projects.instanceConfigs\/list",":","param","node_count",":","(","Optional",")","The","number","of","nodes","allocated","to","the","Cloud","Spanner","instance",".",":","param","display_name",":","(","Optional",")","The","display","name","for","the","instance","in","the","Google","Cloud","Console",".","Must","be","between","4","and","30","characters",".","If","this","value","is","not","set","in","the","constructor",",","the","name","falls","back","to","the","instance","ID",".",":","param","project_id",":","Optional",",","the","ID","of","the","Google","Cloud","project","that","owns","the","Cloud","Spanner","database",".","If","set","to","None","or","missing",",","the","default","project_id","from","the","Google","Cloud","connection","is","used",".",":","return",":","None"]
code: def update_instance(
      self,
      instance_id: str,
      configuration_name: str,
      node_count: int,
      display_name: str,
      project_id: str,
  ) -> None:
      """
      Updates an existing Cloud Spanner instance.
  
      :param instance_id: The ID of the Cloud Spanner instance.
      :param configuration_name: The name of the instance configuration defining how the
          instance will be created. Possible configuration values can be retrieved via
          https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instanceConfigs/list
      :param node_count: (Optional) The number of nodes allocated to the Cloud Spanner
          instance.
      :param display_name: (Optional) The display name for the instance in the Google Cloud
          Console. Must be between 4 and 30 characters. If this value is not set in
          the constructor, the name falls back to the instance ID.
      :param project_id: Optional, the ID of the Google Cloud project that owns the Cloud Spanner
          database. If set to None or missing, the default project_id from the Google Cloud connection
          is used.
      :return: None
      """
      self._apply_to_instance(
          project_id,
          instance_id,
          configuration_name,
          node_count,
          display_name,
          lambda x: x.update(),
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Callable, NamedTuple, Sequence
  from google.api_core.exceptions import AlreadyExists, GoogleAPICallError
  from google.cloud.spanner_v1.client import Client
  from sqlalchemy import create_engine
  from airflow.exceptions import AirflowException
  from airflow.providers.common.sql.hooks.sql import DbApiHook
  from airflow.providers.google.common.consts import CLIENT_INFO
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook, get_field
label_desc: Use image node_id 9 for calling the SpannerHook obj's underlying member method code with example usage: obj.update_instance(instance_id, configuration_name, node_count, display_name, project_id) without return types