prefect_gcp.deployments.steps
Prefect deployment steps for code storage in and retrieval from Google Cloud Storage.
Functions
push_to_gcs
bucket: The name of the GCS bucket where files will be uploaded.folder: The folder in the GCS bucket where files will be uploaded.project: The GCP project the bucket belongs to. If not provided, the project will be inferred from the credentials or the local environment.credentials: A dictionary containing the service account information and project used for authentication. If not provided, the application default credentials will be used.ignore_file: The name of the file containing ignore patterns.
- A dictionary containing the bucket and folder where files were uploaded.
pull_from_gcs
bucket: The name of the GCS bucket where files are stored.folder: The folder in the GCS bucket where files are stored.project: The GCP project the bucket belongs to. If not provided, the project will be inferred from the credentials or the local environment.credentials: A dictionary containing the service account information and project used for authentication. If not provided, the application default credentials will be used.
- A dictionary containing the bucket, folder, and local directory where files were downloaded.
Classes
PushToGcsOutput
The output of the push_to_gcs step.
PullFromGcsOutput
The output of the pull_from_gcs step.