kaxil commented on a change in pull request #4097: [AIRFLOW-3231] Basic operators for Google Cloud SQL URL: https://github.com/apache/incubator-airflow/pull/4097#discussion_r228532773
########## File path: docs/howto/operator.rst ########## @@ -283,3 +283,155 @@ See `Adding the IAM service agent user role to the runtime service <https://clou If the source code for your function is in Google Source Repository, make sure that your service account has the Source Repository Viewer role so that the source code can be downloaded if necessary. + +CloudSqlInstanceDeleteOperator +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Deletes a Cloud SQL instance in Google Cloud Platform. + +For parameter definition take a look at +:class:`~airflow.contrib.operators.gcp_sql_operator.CloudSqlInstanceDeleteOperator`. + +Arguments +""""""""" + +Some arguments in the example DAG are taken from Airflow variables: + +.. literalinclude:: ../../airflow/contrib/example_dags/example_gcp_sql.py + :language: python + :start-after: [START howto_operator_cloudsql_arguments] + :end-before: [END howto_operator_cloudsql_arguments] + +Using the operator +"""""""""""""""""" + +.. literalinclude:: ../../airflow/contrib/example_dags/example_gcp_sql.py + :language: python + :dedent: 4 + :start-after: [START howto_operator_cloudsql_delete] + :end-before: [END howto_operator_cloudsql_delete] + +Templating +"""""""""" Review comment: Nice ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services