Category "google-cloud-platform"

How to search for specific fields in an array of objects containing objects in a document and update them in firestore (firebase) (JS)

// Update the other user that current user has asked for revision export async function updateOtherUserForContractRevision(contractID : string, comments : any)

How do I move a dataset from Huggingface to Google Cloud?

I am trying to use huggingface multi_nli to train a text multi-classification ai in google cloud. I want to call the ai from a firebase web app eventually. But

Gmail API service account unauthorized_client error even with domain-wide authority

I have read extensively on how to access GCP Gmail API using service account and have given it domain-wide authority, using the instruction here: https://suppor

Gmail API service account unauthorized_client error even with domain-wide authority

I have read extensively on how to access GCP Gmail API using service account and have given it domain-wide authority, using the instruction here: https://suppor

GCP IAM Set of Permissions for GKE clusterNode resizing

We are in process of improving the IAM roles in our project and we need to enable dev team to only resize their cluster to save the cost. We are struggling to g

Dataflow job template fails for datastream to spanner

Datastream to Spanner Dataflow template fails, followed below doc: https://cloud.google.com/dataflow/docs/guides/templates/provided-streaming#datastream-to-clou

How to programmatically obtain a google cloud project number using its project id in Python

A google cloud project has both a project id and a project number. How can the project id be used to obtain the project number.

How to read data from nested array in Firestore

I have the below structure in my Firestore and I want to read data and store it in ArrayList like I have "amountArrayList" which will read data from the "transa

How can i get the logs of roles modifications on some specific IAM user in GCP

I need to know who modified(added or deleted) the roles for some specific IAM user in GCP. I could not get these details in GCP logging even after adding data w

What Is The Right Way to Call A Google Cloud Function via A Next.js (with Typescript) App?

The component that I have doing an API call looks like this: import React from 'react'; import { Button } from 'react-bootstrap'; class Middle extends React.Co

GCP-Cloud Composer: Secret Manager access variable.json

I try to configure Secret Manager for my Composer (ver 1.16, airflow 1.10) but I have a weird situation like below. In my Composer, I've used a variable.json fi

Beam DataFlow ReadFromPubSub id_label for GCS Notification

Currently, I'm doing a streaming process with DataFlow for moving uploaded blobs from GCS into BigQuery. However, I found that there were several pub/sub messag

Move bucket file to other bucket with googleCloudStorageR library

I have a R script in a docker in order to execute it on Google Cloud Run. After full treatment of a file X.csv located in bucket "Input", I want to migrate it t

gcloud compute config-ssh results in permission denied

I'm trying to ssh into a gce instance: C:\Users\Kevin>gcloud compute config-ssh You should now be able to use ssh/scp with your instances. For example, try r

how to repeat a block of code in bigquery for multiple columns?

I would like to repeat a block of code with a complex operation (defined in a subquery) for many columns in bigquery. I cannot find a better way than copy and p

Point custom Domain to the google cloud function through global https loadbalancer with serverless NEG as backend

I had a running myfunctionname cloud function with HTTP trigger URL: For Ex- https://us-central1-my-project.cloudfunctions.net/myfunctionname Now I want to map

Safe to delete contents of google cloudbuild bucket?

There are images there since a year ago, I am just not sure if they are used or if they are just temporarily stored there when the build happens. Do subsequent

What causes a GCP Cloud Functions response error?

I have a GCP Cloud Function which is triggered via a Pub/sub topic. The function just backs up Datastore data to Cloud storage. The function works fine but I ge

Python / GCP - GitHub Action & Google OAuth without committing ID

For a project using the YouTube API, I am using a function that reads my OAuth 2.0 ID from a JSON file, creates / refreshes the credentials automatically and th

GCP GKE Google Kubernetes Engine The connection to the server localhost:8080 was refused

i am trying GCP and GKE google kubernetes engine. 1-)i am create a cluster 2-)i opened cloud shell and used command "kubectl get nodes" i get this error: "The c