範例 Airflow DAG,用於啟動、停止和設定 Google Compute Engine 執行個體的機器類型。
模組內容
-
tests.system.google.cloud.compute.example_compute.ENV_ID[原始碼]
-
tests.system.google.cloud.compute.example_compute.PROJECT_ID[原始碼]
-
tests.system.google.cloud.compute.example_compute.DAG_ID = 'cloud_compute'[原始碼]
-
tests.system.google.cloud.compute.example_compute.LOCATION = 'europe-west2-b'[原始碼]
-
tests.system.google.cloud.compute.example_compute.REGION = 'europe-west2'[原始碼]
-
tests.system.google.cloud.compute.example_compute.GCE_INSTANCE_NAME = 'instance-compute-test'[原始碼]
-
tests.system.google.cloud.compute.example_compute.SHORT_MACHINE_TYPE_NAME = 'n1-standard-1'[原始碼]
-
tests.system.google.cloud.compute.example_compute.TEMPLATE_NAME = 'instance-template'[原始碼]
-
tests.system.google.cloud.compute.example_compute.INSTANCE_TEMPLATE_BODY[原始碼]
-
tests.system.google.cloud.compute.example_compute.GCE_INSTANCE_BODY[原始碼]
-
tests.system.google.cloud.compute.example_compute.GCE_INSTANCE_FROM_TEMPLATE_BODY[原始碼]
-
tests.system.google.cloud.compute.example_compute.gce_instance_insert[原始碼]
-
tests.system.google.cloud.compute.example_compute.test_run[原始碼]