Reputation: 85
I'm new to Cloud environment, I have a question to solve. '''storage.Client.from_serive_account_json(xpar_gcpstoragekey)''' What exactly does the object do?
Upvotes: 1
Views: 4317
Reputation: 75745
You create a credential based on a JSON object that you have. The JSON is the Service Account key file that you can download on Google Cloud.
Most of the time, you don't need to use service account key file. ADC is enough. I recommend you to have a look to security and authentification on Google Cloud to learn more about the concepts.
Upvotes: 3