启动、停止和设置 Google Compute Engine 实例的机器类型的示例 Airflow DAG。
模块内容
-
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[源代码]