小编JSA*_* L.的帖子

What use case has the reload() function of a FirebaseUser in flutter?

What is the method .reload() from the FirebaseUser used for?
Locally the function doesn't change any data, and with Firestore.instance.currentUser() i would always get the current data, wouldn't I?

From the docs:

public Task reload () Manually refreshes the data of the current user (for example, attached providers, display name, and so on).

So I originally thought after calling user.reload() the output would be: "name of user: bar" and not "name of user: foo". So for me it seems like …

dart firebase firebase-authentication flutter

5
推荐指数
2
解决办法
596
查看次数

terraform 中是否有与 gcloud compute instances create-with-container 命令等效的命令?

我正在尝试在 Google Compute Engine 中创建一个 VM,它会自动运行我上传到 Google Container Registry 的容器(如此处所述https://cloud.google.com/compute/docs/containers/deploying-containers#how_deploying_containers_on_works

gcloud compute instances create-with-container [INSTANCE_NAME] \
     --container-image [DOCKER_IMAGE]
Run Code Online (Sandbox Code Playgroud)

到目前为止有效,但我在 Terraform 中没有看到任何等价物。
从我所看到的 google_compute_image 对我没有帮助。

google-compute-engine google-cloud-platform terraform

4
推荐指数
1
解决办法
436
查看次数