File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
airflow/providers/google/cloud/operators Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ class SpannerDeployInstanceOperator(BaseOperator):
31
31
Creates a new Cloud Spanner instance, or if an instance with the same instance_id
32
32
exists in the specified project, updates the Cloud Spanner instance.
33
33
34
+ .. seealso::
35
+ For more information on how to use this operator, take a look at the guide:
36
+ :ref:`howto/operator:SpannerDeployInstanceOperator`
37
+
34
38
:param instance_id: Cloud Spanner instance ID.
35
39
:type instance_id: str
36
40
:param configuration_name: The name of the Cloud Spanner instance configuration
Original file line number Diff line number Diff line change @@ -29,6 +29,44 @@ Prerequisite Tasks
29
29
30
30
.. include :: _partials/prerequisite_tasks.rst
31
31
32
+ .. _howto/operator:SpannerDeployInstanceOperator :
33
+
34
+ SpannerDeployInstanceOperator
35
+ -----------------------------
36
+
37
+ Creates a new Cloud Spanner instance, or if an instance with the same instance id
38
+ exists in the specified project, updates the Cloud Spanner instance.
39
+
40
+ For parameter definition, take a look at
41
+ :class: `~airflow.providers.google.cloud.operators.spanner.SpannerDeployInstanceOperator `.
42
+
43
+ Using the operator
44
+ """"""""""""""""""
45
+ You can create the operator with or without project id. If project id is missing
46
+ it will be retrieved from the GCP connection used. Both variants are shown:
47
+
48
+ .. exampleinclude :: ../../../../airflow/providers/google/cloud/example_dags/example_spanner.py
49
+ :language: python
50
+ :dedent: 4
51
+ :start-after: [START howto_operator_spanner_deploy]
52
+ :end-before: [END howto_operator_spanner_deploy]
53
+
54
+ Templating
55
+ """"""""""
56
+
57
+ .. literalinclude :: ../../../../airflow/providers/google/cloud/operators/spanner.py
58
+ :language: python
59
+ :dedent: 4
60
+ :start-after: [START gcp_spanner_deploy_template_fields]
61
+ :end-before: [END gcp_spanner_deploy_template_fields]
62
+
63
+ More information
64
+ """"""""""""""""
65
+
66
+ See Google Cloud Spanner API documentation `to create a new instance
67
+ <https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances/create> `_.
68
+
69
+
32
70
.. _howto/operator:SpannerDeleteDatabaseInstanceOperator :
33
71
34
72
SpannerDeleteDatabaseInstanceOperator
You canβt perform that action at this time.
0 commit comments