Does createDataset support the supplying of a projectId? #1227
Labels
api: bigquery
Issues related to the googleapis/nodejs-bigquery API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
I'm trying to create a single instance of this client and then use it to create datasets in multiple projects.
For example:
This does not work, the dataset is created in whatever project is currently set as the default locally via gcloud.
Same issue when doing it this way.
Finally this way throws an error:
This is the only way that does work, but, it involves changing the projectId directly on the BigQuery client instance, it changes it for all subsequent requests.
Interestingly, it does work for
getDatasets
:The above code returns the datasets from the correct project, although the types need to be overridden in typescript.
There was a PR from last year around cross project access. @steffnay @shollyman @feywind apologies for pinging you directly, do you know if creating a dataset should support the passing in of the projectId?
The text was updated successfully, but these errors were encountered: