project:
  name: project
  collection: spanner.projects
  attributes:
  - &project
    parameter_name: projectsId
    attribute_name: project
    help: The project name.
    property: core/project

instance:
  name: instance
  collection: spanner.projects.instances
  attributes:
  - *project
  - &instance
    parameter_name: instancesId
    attribute_name: instance
    help: |
      The name of the Cloud Spanner instance.
    property: spanner/instance
  disable_auto_completers: false

instancePartition:
  name: instancePartition
  collection: spanner.projects.instances.instancePartitions
  attributes:
  - *project
  - *instance
  - parameter_name: instancePartitionsId
    attribute_name: instancePartition
    help: |
      The name of the Spanner instance partition.
  disable_auto_completers: false

database:
  name: database
  collection: spanner.projects.instances.databases
  attributes:
  - *project
  - *instance
  - &database
    parameter_name: databasesId
    attribute_name: database
    help: |
      The name of the Cloud Spanner database.
  disable_auto_completers: false

backup:
  name: backup
  collection: spanner.projects.instances.backups
  attributes:
  - *project
  - *instance
  - parameter_name: backupsId
    attribute_name: backup
    help: |
      The name of the Cloud Spanner backup.
  disable_auto_completers: false

backupSchedule:
  name: backupSchedule
  collection: spanner.projects.instances.databases.backupSchedules
  attributes:
  - *project
  - *instance
  - *database
  - parameter_name: backupSchedulesId
    attribute_name: backup_schedule
    help: |
      The name of the Cloud Spanner backup schedule.
  disable_auto_completers: false

backupOperation:
  name: backupOperation
  collection: spanner.projects.instances.backups.operations
  attributes:
  - *project
  - *instance
  - &backup
  - parameter_name: operationsId
    attribute_name: operation
    help: |
      The name of the Cloud Spanner backup operation.
  disable_auto_completers: false

operation:
  name: operation
  collection: spanner.projects.instances.operations
  attributes:
  - *project
  - *instance
  - parameter_name: operationsId
    attribute_name: operation
    help: |
      The name of the Cloud Spanner operation.
  disable_auto_completers: false
