In order to use autocompletion for python in vscode I name my functions parameters like below:
def list_collections(new_document_ref: firestore.DocumentReference, old_document_ref: firestore.DocumentReference):
A google-cloud-function when triggered comes with a event: dict and a context: google.cloud.functions_v1.context.Context
Is it possible to install the google.cloud.functions_v1 package?
Checked on the gcloudpypi page and there is no package available.
This repository does not have support for the Cloud Functions API: AFAIK, there is no released Python distribution which exports an importable `google.cloud.functions' package / module. The fields of the context are enumerated in the Cloud Functions docs.
@GuanacoDevs It looks like that package is maintained by the Cloud Functions team. Please file a feature request on their public issue tracker asking for them to make this package publicly available.
You can also try the Slack or Stack Overflow. If you have a support contract with GCP, please go through that channel to get the fastest response.