Skip to content

Document using JSON string to create credentials from service account. #7291

@tab1293

Description

@tab1293

It would be beneficial to be able to create a client instance using a service account file whose JSON contents have already been loaded in to memory. Currently from_service_account_json only supports loading a service account file from disk. This makes it difficult to create a client in scenarios where you are loading service account JSON contents from some external service and don't necessarily want to store the contents in a file where your application is running.

Metadata

Metadata

Assignees

Labels

api: automlIssues related to the AutoML API.api: bigquerydatatransferIssues related to the BigQuery Data Transfer Service API.api: bigquerystorageIssues related to the BigQuery Storage API.api: bigtableIssues related to the Bigtable API.api: cloudassetIssues related to the Cloud Asset Inventory API.api: clouderrorreportingIssues related to the Error Reporting API.api: cloudiotIssues related to the IoT Core API.api: cloudkmsIssues related to the Cloud Key Management Service API.api: cloudschedulerIssues related to the Cloud Scheduler API.api: cloudtasksIssues related to the Cloud Tasks API.api: cloudtraceIssues related to the Cloud Trace API.api: containerIssues related to the Kubernetes Engine API API.api: coreapi: dataprocIssues related to the Dataproc API.api: datastoreIssues related to the Datastore API.api: dlpIssues related to the Sensitive Data Protection API.api: firestoreIssues related to the Firestore API.api: iamIssues related to the Identity and Access Management API.api: languageIssues related to the Cloud Natural Language API API.api: loggingIssues related to the Cloud Logging API.api: monitoringIssues related to the Cloud Monitoring API.api: osloginIssues related to the Cloud OS Login API API.api: pubsubIssues related to the Pub/Sub API.api: redisIssues related to the Memorystore for Redis API.api: securitycenterIssues related to the Security Command Center API.api: spannerIssues related to the Spanner API.api: speechIssues related to the Speech-to-Text API.api: texttospeechIssues related to the Text-to-Speech API.api: videointelligenceIssues related to the Video Intelligence API API.api: visionIssues related to the Cloud Vision API.api: websecurityscannerIssues related to the Web Security Scanner API.authcodegentype: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions