Use this tag if you are going to refer something from Python libraries OR API Clients of Google Cloud Platform.
Questions tagged [google-cloud-python]
207 questions
0
votes
1 answer
Python: Google Cloud Identity API > Devices > List
Using Google Cloud Identity API > Devices > List request with filter to include a query by serial number works as expected for records where the serial number does not include spaces i.e. 5HCS8767 but will return an empty response if the serial…
0
votes
1 answer
gsutil iam ch command using python
I am trying to use python to do the same functionality as this command:
gsutil iam ch group:group_name@gmail.com:objectAdmin gs://bucket_name
I am trying to give an objectAdmin role to a group using python. The above command works well in cloud…
0
votes
1 answer
Is there a BigQuery LoadJob config to filter out unwanted columns using schema autodetect
I appreciate this may be quite trivial, but I am struggling to find an elegant solution.
Providing that I have access to modify the job configuration, through python in this case.
When I am invoking a load job through BigQuery Python API using…

JordC1995
- 57
- 7
0
votes
1 answer
How to solve : Gcloud compute ssh SFATAL ERROR: No supported authentication methods available (server sent: publickey)
I'm facing this famous error and after many research I could fix it for one VM using :
print('ssh front-end begin')
host = "frontend-lab1"
cmd= f'gcloud compute ssh {host} --force-key-file-overwrite'
res = subprocess.check_output(cmd,…

J.erome
- 688
- 7
- 26
0
votes
1 answer
Google cloud how to start service when creating instance using Python api?
I'm having a lot of troubles to create instance and start them using Python Google Cloud's api.
Basically I first created all the VMs and setted up the services. Then once everything was working, I stopped the VMs and created Image so I can easily…

J.erome
- 688
- 7
- 26
0
votes
2 answers
How to get writerIdentity for a given Sink using Cloud Logging Python SDK
I'm trying to get the writerIdentity for a given Log router Sink. I'm able to get it using the gcloud cli : gcloud logging sinks describe --format='value(writerIdentity)'
But for some reason the Python SDK equivalent (shown below)…

vivekveeramani
- 144
- 1
- 12
0
votes
1 answer
Is there an example of Google cloud translate for standalone Python3?
I am trying to figure out how to use google cloud translate in my own Python3 environment. I have completed the codelabs tutorial that shows me how to do it in the cloud shell, but I want to run it from my own environment. I can install the…

Steve
- 945
- 3
- 13
- 22
0
votes
1 answer
Google Storage Python ACL Update not Working
I have uploaded one image file to my google storage bucket.
#Block 1
#Storing the local file inside the bucket
blob_response = bucket.blob(cloud_path)
blob_response.upload_from_filename(local_path, content_type='image/png')
File gets…

sandeepsign
- 539
- 6
- 11
0
votes
1 answer
How to list the most compute instances' info for a project in GCP?
I am trying to list all VMs that exist under all projects associated with my account, including their OS and any other tag I can find. I have a list with the projects already so what I am using is:
for project in project_df["project_id"]:
…

Lev
- 673
- 1
- 12
- 29
0
votes
1 answer
how to periodically write data into google cloud SQL using google cloud function
I need to connect google cloud SQL server from google cloud function in python and write data every 30 minutes.
I have a python function which create pandas data frame and with another function I connected Google cloud SQL server and write this…

nihad1918
- 33
- 6
0
votes
1 answer
Exporting a filtered subset of GCP Natural Language annotator
I am building a training dataset on GCP's Natural Language AutoML Entity Extraction service. I have a fraction of my documents labeled and I want to export them to do some preliminary exploratory data analysis. I can add a filter to display…

deppen8
- 153
- 12
0
votes
1 answer
SmartType Code Completion for Python in PyCharm for Google Cloud
I tried but I am not able to find any SmartType Code Completion plugin for Google Cloud in PyCharm that can be used with Python.
Is anyone aware of any Google or JetBrains provided SmartType Code Completion plugin for Google Cloud in PyCharm that…

d.s
- 179
- 13
0
votes
1 answer
BigQuery Python client - meaning of timeout parameter, and how to set query result timeout
This question is about the timeout parameter in the result method of QueryJob objects in the BigQuery Python client.
It looks like the meaning of timeout has changed in relation to version 1.24.0.
For example, the documentation for QueryJob's result…

favq
- 739
- 1
- 11
- 25
0
votes
1 answer
Monitoring api in Google gives "By" as response
I am reading monitoring data through Google Timeseries api. The api is working correctly and if give alignment period=3600s it gives me the values for that time series between start and end time for any metric type.
I am calling it through Python…

user1403505
- 895
- 2
- 19
- 42
0
votes
0 answers
`master_auth` in list_cluster response, is missing username and password
I have enabled Basic Authentication in a given cluster, but in list_cluster, both of the username and password fields are missing. Although I can see If I use the gcloud cli.
Please let me know how can I view the Basic Authentication credentials…

Waqar Ahmed
- 1,414
- 2
- 15
- 35