Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Clients should support scope override via client_options #433

Description

@busunkim96

Clients should allow scopes to be set via client_options.

The scopes provided should override the scopes of the OAuth access token.

from google.cloud import texttospeech

client = texttospeech.textToSpeechClient(
    client_options={"scopes": ["..", "..."]}
)

Internal link: go/extensible-client-options-exit

Many credentials types prohibit modifying the scopes on the original credential, so we will use with_scopes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions