Interact with Google Cloud Deployment Manager using the Google Cloud connection.
- class airflow.providers.google.cloud.hooks.gdm.GoogleDeploymentManagerHook(gcp_conn_id='google_cloud_default', delegate_to=None, impersonation_chain=None)¶
Interact with Google Cloud Deployment Manager using the Google Cloud connection. This allows for scheduled and programmatic inspection and deletion of resources managed by GDM.
Returns a Google Deployment Manager service object.
- Return type
- list_deployments(self, project_id=None, deployment_filter=None, order_by=None)¶
Lists deployments in a google cloud project.
- delete_deployment(self, project_id, deployment=None, delete_policy=None)¶
Deletes a deployment and all associated resources in a google cloud project.