Skip to content

Support using a token with a custom api_root #938

@Kepnu4

Description

@Kepnu4

When I use gcloud.aio.storage.Storage with a custom api_root, it automatically sets the internal flag _api_is_dev = True, which causes the client to send an empty header to the endpoint.

Right now, I have to work around this by manually overriding the flag:

storage = Storage(api_root=url)
storage._api_is_dev = False

It would be great to have an official option to disable this behavior (e.g., a parameter in the constructor) instead of relying on a private attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions