google-cloud-storage

Cloud functions onUpdate: Cannot read property 'forEach' of undefined

有些话、适合烂在心里 提交于 2020-11-29 21:16:23
问题 Now I am trying to update the picture in my project. I could update the picture url in the cloud fire store. But also I want to delete the previous picture from the cloud storage using firebase cloud functions. What I want to achieve is, to delete the previous picture from the cloud storage when I upload the new picture. This is my data structure. I have "sample" field in "Product" collection. When the picture in "sample" field is updated, I want to delete the original picture in the cloud

Cloud functions onUpdate: Cannot read property 'forEach' of undefined

社会主义新天地 提交于 2020-11-29 21:14:23
问题 Now I am trying to update the picture in my project. I could update the picture url in the cloud fire store. But also I want to delete the previous picture from the cloud storage using firebase cloud functions. What I want to achieve is, to delete the previous picture from the cloud storage when I upload the new picture. This is my data structure. I have "sample" field in "Product" collection. When the picture in "sample" field is updated, I want to delete the original picture in the cloud

How to generate a Blob signed url in Google Cloud Run?

只谈情不闲聊 提交于 2020-11-29 02:55:31
问题 Under Google Cloud Run, you can select which service account your container is running. Using the default compute service account fails to generate a signed url. The work around listed here works on Google Cloud Compute -- if you allow all the scopes for the service account. There does not seem to be away to do that in Cloud Run (not that I can find). https://github.com/googleapis/google-auth-library-python/issues/50 Things I have tried: Assigned the service account the role: roles/iam

How to generate a Blob signed url in Google Cloud Run?

空扰寡人 提交于 2020-11-29 02:54:22
问题 Under Google Cloud Run, you can select which service account your container is running. Using the default compute service account fails to generate a signed url. The work around listed here works on Google Cloud Compute -- if you allow all the scopes for the service account. There does not seem to be away to do that in Cloud Run (not that I can find). https://github.com/googleapis/google-auth-library-python/issues/50 Things I have tried: Assigned the service account the role: roles/iam