GeezerVison is showing github.com — Remove support for API_KEY in translation · Issue #2734 · googleapis/google-cloud-python
Remove support for API_KEY in translation #2734Activitytseaver commented on Nov 15, 2016 /cc @jonparrott for confirmation that we can safely remove it (per today's discussion). theacodes commented on Nov 15, 2016 @puneith our sample over at python-docs-samples still uses an API Key. Can we switch the sample over to service account credentials? puneith commented on Nov 15, 2016 dhermes commented on Nov 15, 2016 ContributorAuthor More actions @puneith The point (I think) was that by moving the sample away from the API key feature, we could more easily remove support for that feature in this library in future versions. puneith commented on Nov 15, 2016 Got it. I will make the appropriate changes. geoffwalmsley commented on Nov 28, 2016 daspecster commented on Nov 28, 2016 @geoffwalmsley are you setting the GOOGLE_APPLICATION_CREDENTIALS environment variable?
Otherwise you should be able to set the project when creating the Client(project='my-project'). theacodes commented on Nov 28, 2016 @geoffwalmsley this is a quirk of how default credentials works. In your case the credentials are being supplied by the Cloud SDK. Unfortunately, these credentials are not sufficient for using the translate API. You'll need to download a service account key and use that. dhermes commented on Dec 2, 2016 ContributorAuthor More actions @jonparrott Are you still opposed to removing support for API key? You were concerned that it was needed for Python clients which can't store secrets, though the API key is itself a secret. theacodes commented on Dec 2, 2016 I'm not opposed to removing it. added a commit that references this issue on Dec 6, 2016This issue will close once commit a24025f is merged into the 'master' branch.a24025f added a commit that references this issue on May 6, 2017This issue will close once commit d573ac4 is merged into the 'master' branch.d573ac4 added a commit that references this issue on Oct 21, 2023This issue will close once commit 4ddbcec is merged into the 'main' branch.4ddbcec
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|