airflow.contrib.operators.gcp_cloud_build_operator
¶
Operators that integrat with Google Cloud Build service.
Module Contents¶
-
class
airflow.contrib.operators.gcp_cloud_build_operator.
BuildProcessor
(body)[source]¶ Processes build configurations to add additional functionality to support the use of operators.
The following improvements are made:
It is required to provide the source and only one type can be given,
It is possible to provide the source as the URL address instead dict.
- Parameters
body (dict) – The request body. See: https://cloud.google.com/cloud-build/docs/api/reference/rest/Shared.Types/Build
-
class
airflow.contrib.operators.gcp_cloud_build_operator.
CloudBuildCreateBuildOperator
(body, project_id=None, gcp_conn_id='google_cloud_default', api_version='v1', *args, **kwargs)[source]¶ Bases:
airflow.models.BaseOperator
Starts a build with the specified configuration.
See also
For more information on how to use this operator, take a look at the guide: Trigger a build
- Parameters
body (dict) – The request body. See: https://cloud.google.com/cloud-build/docs/api/reference/rest/Shared.Types/Build
gcp_conn_id (str) – The connection ID to use to connect to Google Cloud Platform.
api_version (str) – API version used (for example v1 or v1beta1).