Skip to content

Commit

Permalink
Implement AlloyDB create/update/delete instance operators
Browse files Browse the repository at this point in the history
  • Loading branch information
moiseenkov committed Dec 27, 2024
1 parent 9178f8f commit 0477eca
Show file tree
Hide file tree
Showing 6 changed files with 1,645 additions and 267 deletions.
42 changes: 42 additions & 0 deletions docs/apache-airflow-providers-google/operators/cloud/alloy_db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,45 @@ To delete an AlloyDB cluster you can use
:dedent: 4
:start-after: [START howto_operator_alloy_db_delete_cluster]
:end-before: [END howto_operator_alloy_db_delete_cluster]

.. _howto/operator:AlloyDBCreateInstanceOperator:

Create instance
"""""""""""""""

To create an AlloyDB instance (primary end secondary) you can use
:class:`~airflow.providers.google.cloud.operators.alloy_db.AlloyDBCreateInstanceOperator`.

.. exampleinclude:: /../../providers/tests/system/google/cloud/alloy_db/example_alloy_db.py
:language: python
:dedent: 4
:start-after: [START howto_operator_alloy_db_create_instance]
:end-before: [END howto_operator_alloy_db_create_instance]

.. _howto/operator:AlloyDBUpdateInstanceOperator:

Update instance
"""""""""""""""

To update an AlloyDB instance you can use
:class:`~airflow.providers.google.cloud.operators.alloy_db.AlloyDBUpdateInstanceOperator`.

.. exampleinclude:: /../../providers/tests/system/google/cloud/alloy_db/example_alloy_db.py
:language: python
:dedent: 4
:start-after: [START howto_operator_alloy_db_update_instance]
:end-before: [END howto_operator_alloy_db_update_instance]

.. _howto/operator:AlloyDBDeleteInstanceOperator:

Delete instance
"""""""""""""""

To delete an AlloyDB instance you can use
:class:`~airflow.providers.google.cloud.operators.alloy_db.AlloyDBDeleteInstanceOperator`.

.. exampleinclude:: /../../providers/tests/system/google/cloud/alloy_db/example_alloy_db.py
:language: python
:dedent: 4
:start-after: [START howto_operator_alloy_db_delete_instance]
:end-before: [END howto_operator_alloy_db_delete_instance]
Loading

0 comments on commit 0477eca

Please sign in to comment.