All Questions
Tagged with google-cloud-platform python
5,166 questions
0
votes
1
answer
22
views
Disable auto scaling for templated jobs
In Dataflow, you can run jobs without autoscaling. This is typically achieved by setting a pipeline_option called autoscaling_algorithm to NONE. Attempting the equivalent on Templated Dataflow Jobs ...
0
votes
1
answer
37
views
GCP Cloud Functions - How to import local scripts outside of cloud function? How to structure projects that use a global config.py file?
I have one giant repo folder which contains many more sub-repos, and each sub-repo contains multiple cloud functions, i.e.
|-repo_master
|-repo_a
|-cloud_function_a
|-....
0
votes
1
answer
41
views
Stop Otel from tracing its own internal metric exporting activity
I've implemented Otel for my python app sending telemetry to GCP backend. I'm seeing these trace spans for https://otel-collector-xxx.asia-southeast1.run.app/opentelemetry.proto.collector.metrics.v1....
0
votes
0
answers
42
views
How can I securly add Client_secret to my code when authenticating a serverless desktop app on google cloud platform?
I'm trying to make a desktop app (without a server) with python that allows the user to do some automation in google sheets.
I'm having trouble in managing the Client_secret file provided by google's ...
0
votes
0
answers
46
views
Apache beam write to parquet Python
Below is my PostgreSQL table:
CREATE TABLE customer_data (
id SERIAL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(100),
age INT,
registration_date DATE,
last_login ...
1
vote
1
answer
48
views
Error connect with Cloud SQL, Cloud Run and Django
I have an application running on Django in Cloud Run that connects to a PostgreSQL database hosted on Cloud SQL. It is currently working and configured as follows:
DATABASES = {'default': env.db()}
...
-1
votes
1
answer
136
views
First Attempt at Downloading a Google Sheet using Python Selenium, Getting a 401 Authentication Error
I need to programmatically download a Google Sheet as a csv file and I'm trying to use Python Selenium to accomplish this. Unfortunately I'm receiving a 401 error on the authentication.
Here's my code:...
0
votes
1
answer
109
views
how can I connect my SSD disk GCP to new colab entreprise instance disk?
I'm working on a machine learning project on python and I have a VM on GCP with a persistent disk that contains my data. Following the new Colab update I'm no longer able to directly read my VM via ...
0
votes
1
answer
68
views
Read logs from cloud run function in python
As the title says, it's possible/how can i read, using python, the logs from a Cloud Run function?
My guess is that, somehow, it can be done with the logging module from google.cloud, but it seems ...
0
votes
0
answers
46
views
Creating Snowflake storage_integration
We are trying to create storage integration using python package, and in the below documentation I can see there's only mention of Managing catalog and notificationsintegration but no information on ...
1
vote
2
answers
137
views
HTTP POST from Apps Script to Google Cloud Run Function
I'm quite a beginner in Google Cloud Platform, and I would like to solve the following:
I want to send an HTTP POST request (with JSON data) to a Cloud Run Function using Apps Script, but I don't see ...
0
votes
0
answers
21
views
Can custom headers be added to automatically generated Cloud Logging logs in Cloud Run?
A similar question was asked nearly two years ago, but there was no confirmed answer. Is it now possible to add custom attributes to the automatically generated logs in Cloud Run?
I’m not referring to ...
0
votes
0
answers
21
views
how to properly refresh access token for google pubsub_v1.SubscriberClient
In my fast api server, it subscribes to the google realtime developer notifications.
python version 3.12.7
"google-cloud-pubsub (>=2.29.0,<3.0.0)"
The subscriber can be successfully ...
0
votes
0
answers
36
views
create unittest for a function that use API request to google cloud logging API
First I have to explain that I'm not a software engineer so all of this concept are new to me.
I try to submit a PR to a repo to improve a feature, the feature works well but now but I need to ...
0
votes
0
answers
47
views
Google Admin SDK Reports API - HttpError 401 "Access denied" despite domain-wide delegation
I am trying to access the Google Admin SDK Reports API using a service account, but I keep getting the following error:
HttpError 401 when requesting https://admin.googleapis.com/admin/reports/v1/...