GCP - storage.Client.from_service_account_json

GCP - storage.Client.from_service_account_json

我是云环境的新手,我有一个问题要解决。 '''storage.Client.from_serive_account_json(xpar_gcpstoragekey)''' 该对象具体做什么?

您根据您拥有的 JSON 对象创建凭据。 JSON 是您可以在 Google 云端下载的服务帐户密钥文件。

大多数时候,您不需要使用服务帐户密钥文件。 ADC就够了。我建议您查看 security and authentification on Google Cloud 以了解有关这些概念的更多信息。