Module instance (3.9.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 a Instance to:

  • reload itself
  • create itself
  • update itself
  • delete itself
Parameters
NameDescription
instance_id str

The ID of the instance.

client Client

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

configuration_name str

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

node_count int

(Optional) Number of nodes allocated to the instance.

processing_units int

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

display_name str

(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.

labels dict (str -> str) or None

(Optional) User-assigned labels for this instance.