Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clients should support credentials_file via client_options #432

Closed
@busunkim96

Description

@busunkim96

Clients should allow credentials_file to be specified through client_options. This credentials_file can be a service account json file or an authorized user file.

Existing methods on the client from_service_account_json and from_service_account_file will be kept. https://googleapis.dev/python/texttospeech/latest/gapic/v1/api.html#google.cloud.texttospeech_v1.TextToSpeechClient.from_service_account_file

from google.cloud import texttospeech

client = texttospeech.TextToSpeechClient(
    client_options={"credentials_file": "path/to/credentials.json"}
)

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

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