GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — list_instances is not returning expected Instance type · Issue #257 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

list_instances is not returning expected Instance type #257

Copy link
Copy link
Closed
#259
Closed
list_instances is not returning expected Instance type#257
#259
Copy link
Labels
🚨This issue needs some love.api: spannerIssues related to the googleapis/python-spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: docsImprovement to the documentation for an API.

Description

@gzamb
gzamb
opened on Mar 9, 2021
Issue body actions

I'm migrating from 1.9 to 3.1 and I noticed that the list_instances() method used to return type Instance<google.cloud.spanner_v1.instance.Instance> but with the latest it actually returns the spanner admin instance<google.cloud.spanner_admin_instance_v1.types.spanner_instance_admin.Instance> which does not have the instance_id. Thus I now get an AttributeError.

I'm unsure if this is a bug or if the documentation just hasn't been updated.

Activity

  1. product-auto-label
    added
    api: spannerIssues related to the googleapis/python-spanner API.
    on Mar 9, 2021
  2. larkee
    added
    type: docsImprovement to the documentation for an API.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Mar 9, 2021
  3. larkee commented on Mar 9, 2021

    @larkee
    larkee
    on Mar 9, 2021
    Contributor
    More actions

    Thank you for filing this issue! As part of the migration from 1.x to 2.x, list_instances(), list_databases(), and list_backups() now all return the protos rather than the wrapper classes. So this is not a bug, but rather the documentation being out of date. I will make sure this is fixed for the next release 👍

  4. gzamb commented on Mar 9, 2021

    @gzamb
    gzamb
    on Mar 9, 2021
    Author
    More actions

    Ok, good to know. Thanks for the response.

  5. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Mar 14, 2021
  6. larkee
    closed this as completedin #259on Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.api: spannerIssues related to the googleapis/python-spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.