Google 日曆至 Google Cloud Storage 傳輸運算子

Google 有一項服務 Google Cloud Storage。此服務用於儲存來自各種應用程式的大型資料。

透過 Google 日曆,您可以快速排程會議和活動,並取得即將到來活動的提醒,讓您隨時掌握下一步的計畫。

先決條件任務

若要使用這些運算子,您必須執行幾項操作

將資料從 Google 日曆上傳至 GCS

若要將資料從 Google 日曆上傳至 Google Cloud Storage,您可以使用 GoogleCalendarToGCSOperator

tests/system/google/cloud/gcs/example_calendar_to_gcs.py[原始碼]

upload_calendar_to_gcs = GoogleCalendarToGCSOperator(
    task_id="upload_calendar_to_gcs",
    destination_bucket=BUCKET_NAME,
    calendar_id=CALENDAR_ID,
    api_version=API_VERSION,
    gcp_conn_id=CONNECTION_ID,
)

您可以將 Jinja 模板calendar_iddestination_bucketdestination_pathimpersonation_chain 搭配使用。

這篇文章是否有幫助?