@@ -42,15 +42,15 @@ Using the operator
42
42
You can create the operator with or without project id. If project id is missing
43
43
it will be retrieved from the Google Cloud connection used. Both variants are shown:
44
44
45
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
45
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
46
46
:language: python
47
47
:dedent: 4
48
48
:start-after: [START howto_operator_cloudsql_db_create]
49
49
:end-before: [END howto_operator_cloudsql_db_create]
50
50
51
51
Example request body:
52
52
53
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
53
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
54
54
:language: python
55
55
:start-after: [START howto_operator_cloudsql_db_create_body]
56
56
:end-before: [END howto_operator_cloudsql_db_create_body]
@@ -87,7 +87,7 @@ Using the operator
87
87
You can create the operator with or without project id. If project id is missing
88
88
it will be retrieved from the Google Cloud connection used. Both variants are shown:
89
89
90
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
90
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
91
91
:language: python
92
92
:dedent: 4
93
93
:start-after: [START howto_operator_cloudsql_db_delete]
@@ -127,15 +127,15 @@ Using the operator
127
127
You can create the operator with or without project id. If project id is missing
128
128
it will be retrieved from the Google Cloud connection used. Both variants are shown:
129
129
130
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
130
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
131
131
:language: python
132
132
:dedent: 4
133
133
:start-after: [START howto_operator_cloudsql_db_patch]
134
134
:end-before: [END howto_operator_cloudsql_db_patch]
135
135
136
136
Example request body:
137
137
138
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
138
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
139
139
:language: python
140
140
:start-after: [START howto_operator_cloudsql_db_patch_body]
141
141
:end-before: [END howto_operator_cloudsql_db_patch_body]
@@ -174,7 +174,7 @@ Using the operator
174
174
You can create the operator with or without project id. If project id is missing
175
175
it will be retrieved from the Google Cloud connection used. Both variants are shown:
176
176
177
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
177
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
178
178
:language: python
179
179
:dedent: 4
180
180
:start-after: [START howto_operator_cloudsql_delete]
@@ -183,7 +183,7 @@ it will be retrieved from the Google Cloud connection used. Both variants are sh
183
183
Note: If the instance has read or failover replicas you need to delete them before you delete the primary instance.
184
184
Replicas are deleted the same way as primary instances:
185
185
186
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
186
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
187
187
:language: python
188
188
:dedent: 4
189
189
:start-after: [START howto_operator_cloudsql_replicas_delete]
@@ -224,7 +224,7 @@ Arguments
224
224
225
225
Example body defining the export operation:
226
226
227
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
227
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
228
228
:language: python
229
229
:start-after: [START howto_operator_cloudsql_export_body]
230
230
:end-before: [END howto_operator_cloudsql_export_body]
@@ -235,7 +235,7 @@ Using the operator
235
235
You can create the operator with or without project id. If project id is missing
236
236
it will be retrieved from the Google Cloud connection used. Both variants are shown:
237
237
238
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
238
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
239
239
:language: python
240
240
:dedent: 4
241
241
:start-after: [START howto_operator_cloudsql_export]
@@ -269,7 +269,7 @@ To grant the service account with the appropriate WRITE permissions for the GCS
269
269
you can use the :class: `~airflow.providers.google.cloud.operators.gcs.GCSBucketCreateAclEntryOperator `,
270
270
as shown in the example:
271
271
272
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
272
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
273
273
:language: python
274
274
:dedent: 4
275
275
:start-after: [START howto_operator_cloudsql_export_gcs_permissions]
@@ -309,7 +309,7 @@ Arguments
309
309
310
310
Example body defining the import operation:
311
311
312
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
312
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
313
313
:language: python
314
314
:start-after: [START howto_operator_cloudsql_import_body]
315
315
:end-before: [END howto_operator_cloudsql_import_body]
@@ -320,7 +320,7 @@ Using the operator
320
320
You can create the operator with or without project id. If project id is missing
321
321
it will be retrieved from the Google Cloud connection used. Both variants are shown:
322
322
323
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
323
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
324
324
:language: python
325
325
:dedent: 4
326
326
:start-after: [START howto_operator_cloudsql_import]
@@ -354,7 +354,7 @@ To grant the service account with the appropriate READ permissions for the GCS o
354
354
you can use the :class: `~airflow.providers.google.cloud.operators.gcs.GCSBucketCreateAclEntryOperator `,
355
355
as shown in the example:
356
356
357
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
357
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
358
358
:language: python
359
359
:dedent: 4
360
360
:start-after: [START howto_operator_cloudsql_import_gcs_permissions]
@@ -380,14 +380,14 @@ Arguments
380
380
381
381
Example body defining the instance with failover replica:
382
382
383
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
383
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
384
384
:language: python
385
385
:start-after: [START howto_operator_cloudsql_create_body]
386
386
:end-before: [END howto_operator_cloudsql_create_body]
387
387
388
388
Example body defining read replica for the instance above:
389
389
390
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
390
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
391
391
:language: python
392
392
:start-after: [START howto_operator_cloudsql_create_replica]
393
393
:end-before: [END howto_operator_cloudsql_create_replica]
@@ -401,7 +401,7 @@ Using the operator
401
401
You can create the operator with or without project id. If project id is missing
402
402
it will be retrieved from the Google Cloud connection used. Both variants are shown:
403
403
404
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
404
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
405
405
:language: python
406
406
:dedent: 4
407
407
:start-after: [START howto_operator_cloudsql_create]
@@ -441,7 +441,7 @@ Arguments
441
441
442
442
Example body defining the instance:
443
443
444
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
444
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
445
445
:language: python
446
446
:start-after: [START howto_operator_cloudsql_patch_body]
447
447
:end-before: [END howto_operator_cloudsql_patch_body]
@@ -452,7 +452,7 @@ Using the operator
452
452
You can create the operator with or without project id. If project id is missing
453
453
it will be retrieved from the Google Cloud connection used. Both variants are shown:
454
454
455
- .. exampleinclude :: /../../airflow/ providers/google/cloud/example_dags /example_cloud_sql.py
455
+ .. exampleinclude :: /../../tests/system/ providers/google/cloud_sql /example_cloud_sql.py
456
456
:language: python
457
457
:dedent: 4
458
458
:start-after: [START howto_operator_cloudsql_patch]
0 commit comments