airflow.providers.google.cloud.triggers.gcs¶
Module Contents¶
Classes¶
| A trigger that fires and it finds the requested file or folder present in the given bucket. | |
| A trigger that makes an async call to GCS to check whether the object is updated in a bucket. | |
| Looks for objects in bucket matching a prefix. | 
- class airflow.providers.google.cloud.triggers.gcs.GCSBlobTrigger(bucket, object_name, poke_interval, google_cloud_conn_id, hook_params)[source]¶
- Bases: - airflow.triggers.base.BaseTrigger- A trigger that fires and it finds the requested file or folder present in the given bucket. - Parameters
- bucket (str) – the bucket in the google cloud storage where the objects are residing. 
- object_name (str) – the file or folder present in the bucket 
- google_cloud_conn_id (str) – reference to the Google Connection 
- poke_interval (float) – polling period in seconds to check for file/folder 
- hook_params (dict[str, Any]) – Extra config params to be passed to the underlying hook. Should match the desired hook constructor params. 
 
 
- class airflow.providers.google.cloud.triggers.gcs.GCSCheckBlobUpdateTimeTrigger(bucket, object_name, target_date, poke_interval, google_cloud_conn_id, hook_params)[source]¶
- Bases: - airflow.triggers.base.BaseTrigger- A trigger that makes an async call to GCS to check whether the object is updated in a bucket. - Parameters
- bucket (str) – google cloud storage bucket name cloud storage where the objects are residing. 
- object_name (str) – the file or folder present in the bucket 
- target_date (datetime.datetime) – context datetime to compare with blob object updated time 
- poke_interval (float) – polling period in seconds to check for file/folder 
- google_cloud_conn_id (str) – reference to the Google Connection 
- hook_params (dict[str, Any]) – dict object that has delegate_to and impersonation_chain 
 
 
- class airflow.providers.google.cloud.triggers.gcs.GCSPrefixBlobTrigger(bucket, prefix, poke_interval, google_cloud_conn_id, hook_params)[source]¶
- Bases: - GCSBlobTrigger- Looks for objects in bucket matching a prefix. If none found, sleep for interval and check again. Otherwise, return matches. - Parameters
- bucket (str) – the bucket in the google cloud storage where the objects are residing. 
- prefix (str) – The prefix of the blob_names to match in the Google cloud storage bucket 
- google_cloud_conn_id (str) – reference to the Google Connection 
- poke_interval (float) – polling period in seconds to check 
- hook_params (dict[str, Any]) – Extra config params to be passed to the underlying hook. Should match the desired hook constructor params. 
 
 
