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

Clients should support scope override via client_options #433

@busunkim96

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.

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