File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ async def quickstart_new_instance():
20
20
# [START firestore_setup_client_create_async]
21
21
from google .cloud import firestore
22
22
23
- # Project ID is determined by the GCLOUD_PROJECT environment variable
24
- db = firestore .AsyncClient ()
23
+ # The `project` parameter is optional and represents which project the client
24
+ # will act on behalf of. If not supplied, the client falls back to the default
25
+ # project inferred from the environment.
26
+ db = firestore .AsyncClient (project = 'my-project-id' )
25
27
# [END firestore_setup_client_create_async]
26
28
27
29
return db
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ def quickstart_new_instance():
23
23
# [START firestore_setup_client_create]
24
24
from google .cloud import firestore
25
25
26
- # Project ID is determined by the GCLOUD_PROJECT environment variable
27
- db = firestore .Client ()
26
+ # The `project` parameter is optional and represents which project the client
27
+ # will act on behalf of. If not supplied, the client falls back to the default
28
+ # project inferred from the environment.
29
+ db = firestore .Client (project = 'my-project-id' )
28
30
# [END firestore_setup_client_create]
29
31
30
32
return db
You can’t perform that action at this time.
0 commit comments