Module instance (3.55.0)

User friendly container for Cloud Spanner Instance.

Classes

Instance

Instance(instance_id,client,configuration_name=None,node_count=None,display_name=None,emulator_host=None,labels=None,processing_units=None,)

Representation of a Cloud Spanner Instance.

We can use aInstance to:

  • reload itself
  • create itself
  • update itself
  • delete itself
Parameters
NameDescription
instance_idstr

The ID of the instance.

clientClient

The client that owns the instance. Provides authorization and a project ID.

configuration_namestr

Name of the instance configuration defining how the instance will be created. Required for instances which do not yet exist.

node_countint

(Optional) Number of nodes allocated to the instance.

processing_unitsint

(Optional) The number of processing units allocated to this instance.

display_namestr

(Optional) The display name for the instance in the Cloud Console UI. (Must be between 4 and 30 characters.) If this value is not set in the constructor, will fall back to the instance ID.

labelsdict (str -> str) or None

(Optional) User-assigned labels for this instance.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-18 UTC.