google-cloud-sdk

how to get file metadata from GCS

…衆ロ難τιáo~ 提交于 2021-01-28 11:13:38
问题 I would like to get file meta data of file stored in Google Cloud Storage. Actually we require a media link of file so file can be downloaded or url added to page for download. Blob blob = storage.get("gcp-public-data-nexrad-l2", "1991/06/05/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910605160000_19910605235959.tar"); ReadChannel readChannel = blob.reader(); System.out.println(blob); I am using public bucket, for example, but blob contains metadata=null . Is there any way to get file metadata? Thanks 回答1:

Google Cloud SDK installer fails to complete component installation on Windows 7

丶灬走出姿态 提交于 2021-01-26 19:17:48
问题 During installation I get a message: Unfortunately, the component installation did not complete successfully. Please check the detailed logs for the error message. I tried installing to all users, single user, many destinations and names. Details: Output folder: C:\Program Files (x86)\Google\Cloud SDK Downloading Google Cloud SDK core. Extracting Google Cloud SDK core. Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat Installing components. The filename,

What happens when re-authenticating the service account with gcloud?

喜欢而已 提交于 2020-12-15 04:57:31
问题 I have heard that if the service account is having high privileges, but access scopes are restrictive, and we need to somehow authenticate to services without OAuth, then we can re-authenticate the service account with the keys that we have (assuming we got somehow). So is it true, re-authenticating the service account can give us cloud-platform scopes? gcloud auth activate-service-account --key-file key.json 回答1: Scopes are an OAuth permission mechanism. Google Cloud first started with

Pass google default application credentials in local docker run

孤街浪徒 提交于 2020-08-24 05:36:41
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default

Pass google default application credentials in local docker run

落爺英雄遲暮 提交于 2020-08-24 05:36:08
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default

Pass google default application credentials in local docker run

╄→尐↘猪︶ㄣ 提交于 2020-08-24 05:35:06
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default