8000 list_instances is not returning expected Instance type · Issue #257 · googleapis/python-spanner · GitHub
[go: up one dir, main page]

Skip to content
list_instances is not returning expected Instance type #257
Closed
@gzamb

Description

@gzamb

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.

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

      0