apache-airflow-providers-google 9.0.0rc2__py3-none-any.whl → 10.0.0rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airflow/providers/google/cloud/hooks/automl.py +5 -6
- airflow/providers/google/cloud/hooks/bigquery.py +5 -6
- airflow/providers/google/cloud/hooks/bigquery_dts.py +11 -8
- airflow/providers/google/cloud/hooks/bigtable.py +5 -6
- airflow/providers/google/cloud/hooks/cloud_build.py +14 -11
- airflow/providers/google/cloud/hooks/cloud_composer.py +16 -0
- airflow/providers/google/cloud/hooks/cloud_memorystore.py +5 -14
- airflow/providers/google/cloud/hooks/cloud_sql.py +5 -7
- airflow/providers/google/cloud/hooks/cloud_storage_transfer_service.py +5 -5
- airflow/providers/google/cloud/hooks/compute.py +5 -6
- airflow/providers/google/cloud/hooks/compute_ssh.py +8 -12
- airflow/providers/google/cloud/hooks/datacatalog.py +5 -9
- airflow/providers/google/cloud/hooks/dataflow.py +14 -6
- airflow/providers/google/cloud/hooks/dataform.py +8 -0
- airflow/providers/google/cloud/hooks/datafusion.py +13 -6
- airflow/providers/google/cloud/hooks/dataplex.py +5 -8
- airflow/providers/google/cloud/hooks/dataproc.py +13 -8
- airflow/providers/google/cloud/hooks/dataproc_metastore.py +8 -0
- airflow/providers/google/cloud/hooks/datastore.py +5 -6
- airflow/providers/google/cloud/hooks/dlp.py +5 -9
- airflow/providers/google/cloud/hooks/functions.py +5 -6
- airflow/providers/google/cloud/hooks/gcs.py +6 -6
- airflow/providers/google/cloud/hooks/gdm.py +5 -6
- airflow/providers/google/cloud/hooks/kms.py +5 -9
- airflow/providers/google/cloud/hooks/kubernetes_engine.py +6 -4
- airflow/providers/google/cloud/hooks/life_sciences.py +5 -9
- airflow/providers/google/cloud/hooks/mlengine.py +8 -0
- airflow/providers/google/cloud/hooks/natural_language.py +5 -9
- airflow/providers/google/cloud/hooks/os_login.py +5 -6
- airflow/providers/google/cloud/hooks/pubsub.py +5 -5
- airflow/providers/google/cloud/hooks/secret_manager.py +5 -9
- airflow/providers/google/cloud/hooks/spanner.py +5 -6
- airflow/providers/google/cloud/hooks/speech_to_text.py +5 -9
- airflow/providers/google/cloud/hooks/stackdriver.py +5 -6
- airflow/providers/google/cloud/hooks/tasks.py +5 -9
- airflow/providers/google/cloud/hooks/text_to_speech.py +5 -9
- airflow/providers/google/cloud/hooks/translate.py +5 -6
- airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py +5 -5
- airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py +5 -6
- airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py +5 -6
- airflow/providers/google/cloud/hooks/vertex_ai/dataset.py +8 -0
- airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py +8 -0
- airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py +5 -6
- airflow/providers/google/cloud/hooks/vertex_ai/model_service.py +8 -0
- airflow/providers/google/cloud/hooks/video_intelligence.py +5 -9
- airflow/providers/google/cloud/hooks/vision.py +5 -6
- airflow/providers/google/cloud/hooks/workflows.py +8 -0
- airflow/providers/google/cloud/operators/bigquery.py +1 -148
- airflow/providers/google/cloud/operators/cloud_build.py +0 -13
- airflow/providers/google/cloud/operators/cloud_composer.py +2 -68
- airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py +0 -21
- airflow/providers/google/cloud/operators/dataflow.py +2 -72
- airflow/providers/google/cloud/operators/dataform.py +5 -141
- airflow/providers/google/cloud/operators/datafusion.py +0 -102
- airflow/providers/google/cloud/operators/dataplex.py +3 -61
- airflow/providers/google/cloud/operators/dataproc.py +5 -13
- airflow/providers/google/cloud/operators/datastore.py +2 -86
- airflow/providers/google/cloud/operators/gcs.py +1 -43
- airflow/providers/google/cloud/operators/mlengine.py +1 -123
- airflow/providers/google/cloud/operators/pubsub.py +0 -61
- airflow/providers/google/cloud/operators/stackdriver.py +0 -101
- airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py +0 -26
- airflow/providers/google/cloud/operators/vertex_ai/batch_prediction_job.py +0 -41
- airflow/providers/google/cloud/operators/vertex_ai/custom_job.py +0 -39
- airflow/providers/google/cloud/operators/vertex_ai/dataset.py +0 -71
- airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py +0 -71
- airflow/providers/google/cloud/operators/vertex_ai/hyperparameter_tuning_job.py +0 -35
- airflow/providers/google/cloud/operators/vertex_ai/model_service.py +0 -41
- airflow/providers/google/cloud/sensors/bigquery.py +0 -24
- airflow/providers/google/cloud/sensors/cloud_composer.py +0 -10
- airflow/providers/google/cloud/sensors/dataflow.py +0 -42
- airflow/providers/google/cloud/sensors/dataform.py +0 -12
- airflow/providers/google/cloud/sensors/datafusion.py +0 -11
- airflow/providers/google/cloud/sensors/dataplex.py +0 -10
- airflow/providers/google/cloud/sensors/gcs.py +0 -44
- airflow/providers/google/cloud/sensors/pubsub.py +0 -11
- airflow/providers/google/cloud/transfers/adls_to_gcs.py +0 -12
- airflow/providers/google/cloud/transfers/azure_fileshare_to_gcs.py +0 -12
- airflow/providers/google/cloud/transfers/bigquery_to_bigquery.py +0 -10
- airflow/providers/google/cloud/transfers/bigquery_to_gcs.py +0 -11
- airflow/providers/google/cloud/transfers/bigquery_to_mssql.py +0 -11
- airflow/providers/google/cloud/transfers/bigquery_to_mysql.py +0 -11
- airflow/providers/google/cloud/transfers/calendar_to_gcs.py +0 -12
- airflow/providers/google/cloud/transfers/cassandra_to_gcs.py +0 -11
- airflow/providers/google/cloud/transfers/gcs_to_bigquery.py +0 -13
- airflow/providers/google/cloud/transfers/gcs_to_gcs.py +0 -11
- airflow/providers/google/cloud/transfers/gcs_to_local.py +0 -11
- airflow/providers/google/cloud/transfers/gcs_to_sftp.py +0 -11
- airflow/providers/google/cloud/transfers/gdrive_to_gcs.py +0 -12
- airflow/providers/google/cloud/transfers/gdrive_to_local.py +0 -11
- airflow/providers/google/cloud/transfers/local_to_gcs.py +0 -9
- airflow/providers/google/cloud/transfers/s3_to_gcs.py +0 -11
- airflow/providers/google/cloud/transfers/sftp_to_gcs.py +0 -11
- airflow/providers/google/cloud/transfers/sheets_to_gcs.py +0 -12
- airflow/providers/google/cloud/transfers/sql_to_gcs.py +0 -11
- airflow/providers/google/cloud/triggers/bigquery_dts.py +0 -12
- airflow/providers/google/cloud/triggers/cloud_build.py +0 -11
- airflow/providers/google/cloud/triggers/cloud_composer.py +0 -9
- airflow/providers/google/cloud/triggers/dataflow.py +0 -7
- airflow/providers/google/cloud/triggers/datafusion.py +0 -11
- airflow/providers/google/cloud/triggers/dataproc.py +2 -8
- airflow/providers/google/cloud/triggers/kubernetes_engine.py +0 -4
- airflow/providers/google/cloud/triggers/mlengine.py +0 -3
- airflow/providers/google/common/hooks/discovery_api.py +0 -7
- airflow/providers/google/firebase/hooks/firestore.py +0 -10
- airflow/providers/google/get_provider_info.py +1 -0
- airflow/providers/google/marketing_platform/example_dags/example_display_video.py +0 -64
- airflow/providers/google/marketing_platform/hooks/campaign_manager.py +3 -3
- airflow/providers/google/marketing_platform/hooks/display_video.py +7 -38
- airflow/providers/google/marketing_platform/operators/campaign_manager.py +22 -22
- airflow/providers/google/marketing_platform/operators/display_video.py +0 -284
- airflow/providers/google/marketing_platform/sensors/campaign_manager.py +3 -3
- airflow/providers/google/marketing_platform/sensors/display_video.py +0 -65
- airflow/providers/google/suite/transfers/gcs_to_gdrive.py +0 -4
- airflow/providers/google/suite/transfers/gcs_to_sheets.py +0 -4
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/METADATA +33 -4
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/RECORD +122 -122
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/LICENSE +0 -0
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/NOTICE +0 -0
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/entry_points.txt +0 -0
- {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,6 @@
|
|
17
17
|
"""This module contains Google DataFusion operators."""
|
18
18
|
from __future__ import annotations
|
19
19
|
|
20
|
-
import warnings
|
21
20
|
from time import sleep
|
22
21
|
from typing import TYPE_CHECKING, Any, Sequence
|
23
22
|
|
@@ -62,9 +61,6 @@ class CloudDataFusionRestartInstanceOperator(GoogleCloudBaseOperator):
|
|
62
61
|
:param project_id: The ID of the Google Cloud project that the instance belongs to.
|
63
62
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
64
63
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
65
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
66
|
-
if any. For this to work, the service account making the request must have
|
67
|
-
domain-wide delegation enabled.
|
68
64
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
69
65
|
credentials, or chained list of accounts required to get the access_token
|
70
66
|
of the last account in the list, which will be impersonated in the request.
|
@@ -89,7 +85,6 @@ class CloudDataFusionRestartInstanceOperator(GoogleCloudBaseOperator):
|
|
89
85
|
project_id: str | None = None,
|
90
86
|
api_version: str = "v1beta1",
|
91
87
|
gcp_conn_id: str = "google_cloud_default",
|
92
|
-
delegate_to: str | None = None,
|
93
88
|
impersonation_chain: str | Sequence[str] | None = None,
|
94
89
|
**kwargs,
|
95
90
|
) -> None:
|
@@ -99,17 +94,11 @@ class CloudDataFusionRestartInstanceOperator(GoogleCloudBaseOperator):
|
|
99
94
|
self.project_id = project_id
|
100
95
|
self.api_version = api_version
|
101
96
|
self.gcp_conn_id = gcp_conn_id
|
102
|
-
if delegate_to:
|
103
|
-
warnings.warn(
|
104
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
105
|
-
)
|
106
|
-
self.delegate_to = delegate_to
|
107
97
|
self.impersonation_chain = impersonation_chain
|
108
98
|
|
109
99
|
def execute(self, context: Context) -> None:
|
110
100
|
hook = DataFusionHook(
|
111
101
|
gcp_conn_id=self.gcp_conn_id,
|
112
|
-
delegate_to=self.delegate_to,
|
113
102
|
api_version=self.api_version,
|
114
103
|
impersonation_chain=self.impersonation_chain,
|
115
104
|
)
|
@@ -145,9 +134,6 @@ class CloudDataFusionDeleteInstanceOperator(GoogleCloudBaseOperator):
|
|
145
134
|
:param project_id: The ID of the Google Cloud project that the instance belongs to.
|
146
135
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
147
136
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
148
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
149
|
-
if any. For this to work, the service account making the request must have
|
150
|
-
domain-wide delegation enabled.
|
151
137
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
152
138
|
credentials, or chained list of accounts required to get the access_token
|
153
139
|
of the last account in the list, which will be impersonated in the request.
|
@@ -171,7 +157,6 @@ class CloudDataFusionDeleteInstanceOperator(GoogleCloudBaseOperator):
|
|
171
157
|
project_id: str | None = None,
|
172
158
|
api_version: str = "v1beta1",
|
173
159
|
gcp_conn_id: str = "google_cloud_default",
|
174
|
-
delegate_to: str | None = None,
|
175
160
|
impersonation_chain: str | Sequence[str] | None = None,
|
176
161
|
**kwargs,
|
177
162
|
) -> None:
|
@@ -181,17 +166,11 @@ class CloudDataFusionDeleteInstanceOperator(GoogleCloudBaseOperator):
|
|
181
166
|
self.project_id = project_id
|
182
167
|
self.api_version = api_version
|
183
168
|
self.gcp_conn_id = gcp_conn_id
|
184
|
-
if delegate_to:
|
185
|
-
warnings.warn(
|
186
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
187
|
-
)
|
188
|
-
self.delegate_to = delegate_to
|
189
169
|
self.impersonation_chain = impersonation_chain
|
190
170
|
|
191
171
|
def execute(self, context: Context) -> None:
|
192
172
|
hook = DataFusionHook(
|
193
173
|
gcp_conn_id=self.gcp_conn_id,
|
194
|
-
delegate_to=self.delegate_to,
|
195
174
|
api_version=self.api_version,
|
196
175
|
impersonation_chain=self.impersonation_chain,
|
197
176
|
)
|
@@ -220,9 +199,6 @@ class CloudDataFusionCreateInstanceOperator(GoogleCloudBaseOperator):
|
|
220
199
|
:param project_id: The ID of the Google Cloud project that the instance belongs to.
|
221
200
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
222
201
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
223
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
224
|
-
if any. For this to work, the service account making the request must have
|
225
|
-
domain-wide delegation enabled.
|
226
202
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
227
203
|
credentials, or chained list of accounts required to get the access_token
|
228
204
|
of the last account in the list, which will be impersonated in the request.
|
@@ -249,7 +225,6 @@ class CloudDataFusionCreateInstanceOperator(GoogleCloudBaseOperator):
|
|
249
225
|
project_id: str | None = None,
|
250
226
|
api_version: str = "v1beta1",
|
251
227
|
gcp_conn_id: str = "google_cloud_default",
|
252
|
-
delegate_to: str | None = None,
|
253
228
|
impersonation_chain: str | Sequence[str] | None = None,
|
254
229
|
**kwargs,
|
255
230
|
) -> None:
|
@@ -260,17 +235,11 @@ class CloudDataFusionCreateInstanceOperator(GoogleCloudBaseOperator):
|
|
260
235
|
self.project_id = project_id
|
261
236
|
self.api_version = api_version
|
262
237
|
self.gcp_conn_id = gcp_conn_id
|
263
|
-
if delegate_to:
|
264
|
-
warnings.warn(
|
265
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
266
|
-
)
|
267
|
-
self.delegate_to = delegate_to
|
268
238
|
self.impersonation_chain = impersonation_chain
|
269
239
|
|
270
240
|
def execute(self, context: Context) -> dict:
|
271
241
|
hook = DataFusionHook(
|
272
242
|
gcp_conn_id=self.gcp_conn_id,
|
273
|
-
delegate_to=self.delegate_to,
|
274
243
|
api_version=self.api_version,
|
275
244
|
impersonation_chain=self.impersonation_chain,
|
276
245
|
)
|
@@ -332,9 +301,6 @@ class CloudDataFusionUpdateInstanceOperator(GoogleCloudBaseOperator):
|
|
332
301
|
:param project_id: The ID of the Google Cloud project that the instance belongs to.
|
333
302
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
334
303
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
335
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
336
|
-
if any. For this to work, the service account making the request must have
|
337
|
-
domain-wide delegation enabled.
|
338
304
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
339
305
|
credentials, or chained list of accounts required to get the access_token
|
340
306
|
of the last account in the list, which will be impersonated in the request.
|
@@ -362,7 +328,6 @@ class CloudDataFusionUpdateInstanceOperator(GoogleCloudBaseOperator):
|
|
362
328
|
project_id: str | None = None,
|
363
329
|
api_version: str = "v1beta1",
|
364
330
|
gcp_conn_id: str = "google_cloud_default",
|
365
|
-
delegate_to: str | None = None,
|
366
331
|
impersonation_chain: str | Sequence[str] | None = None,
|
367
332
|
**kwargs,
|
368
333
|
) -> None:
|
@@ -374,17 +339,11 @@ class CloudDataFusionUpdateInstanceOperator(GoogleCloudBaseOperator):
|
|
374
339
|
self.project_id = project_id
|
375
340
|
self.api_version = api_version
|
376
341
|
self.gcp_conn_id = gcp_conn_id
|
377
|
-
if delegate_to:
|
378
|
-
warnings.warn(
|
379
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
380
|
-
)
|
381
|
-
self.delegate_to = delegate_to
|
382
342
|
self.impersonation_chain = impersonation_chain
|
383
343
|
|
384
344
|
def execute(self, context: Context) -> None:
|
385
345
|
hook = DataFusionHook(
|
386
346
|
gcp_conn_id=self.gcp_conn_id,
|
387
|
-
delegate_to=self.delegate_to,
|
388
347
|
api_version=self.api_version,
|
389
348
|
impersonation_chain=self.impersonation_chain,
|
390
349
|
)
|
@@ -422,9 +381,6 @@ class CloudDataFusionGetInstanceOperator(GoogleCloudBaseOperator):
|
|
422
381
|
:param project_id: The ID of the Google Cloud project that the instance belongs to.
|
423
382
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
424
383
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
425
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
426
|
-
if any. For this to work, the service account making the request must have
|
427
|
-
domain-wide delegation enabled.
|
428
384
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
429
385
|
credentials, or chained list of accounts required to get the access_token
|
430
386
|
of the last account in the list, which will be impersonated in the request.
|
@@ -449,7 +405,6 @@ class CloudDataFusionGetInstanceOperator(GoogleCloudBaseOperator):
|
|
449
405
|
project_id: str | None = None,
|
450
406
|
api_version: str = "v1beta1",
|
451
407
|
gcp_conn_id: str = "google_cloud_default",
|
452
|
-
delegate_to: str | None = None,
|
453
408
|
impersonation_chain: str | Sequence[str] | None = None,
|
454
409
|
**kwargs,
|
455
410
|
) -> None:
|
@@ -459,17 +414,11 @@ class CloudDataFusionGetInstanceOperator(GoogleCloudBaseOperator):
|
|
459
414
|
self.project_id = project_id
|
460
415
|
self.api_version = api_version
|
461
416
|
self.gcp_conn_id = gcp_conn_id
|
462
|
-
if delegate_to:
|
463
|
-
warnings.warn(
|
464
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
465
|
-
)
|
466
|
-
self.delegate_to = delegate_to
|
467
417
|
self.impersonation_chain = impersonation_chain
|
468
418
|
|
469
419
|
def execute(self, context: Context) -> dict:
|
470
420
|
hook = DataFusionHook(
|
471
421
|
gcp_conn_id=self.gcp_conn_id,
|
472
|
-
delegate_to=self.delegate_to,
|
473
422
|
api_version=self.api_version,
|
474
423
|
impersonation_chain=self.impersonation_chain,
|
475
424
|
)
|
@@ -509,9 +458,6 @@ class CloudDataFusionCreatePipelineOperator(GoogleCloudBaseOperator):
|
|
509
458
|
can create a namespace.
|
510
459
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
511
460
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
512
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
513
|
-
if any. For this to work, the service account making the request must have
|
514
|
-
domain-wide delegation enabled.
|
515
461
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
516
462
|
credentials, or chained list of accounts required to get the access_token
|
517
463
|
of the last account in the list, which will be impersonated in the request.
|
@@ -541,7 +487,6 @@ class CloudDataFusionCreatePipelineOperator(GoogleCloudBaseOperator):
|
|
541
487
|
project_id: str | None = None,
|
542
488
|
api_version: str = "v1beta1",
|
543
489
|
gcp_conn_id: str = "google_cloud_default",
|
544
|
-
delegate_to: str | None = None,
|
545
490
|
impersonation_chain: str | Sequence[str] | None = None,
|
546
491
|
**kwargs,
|
547
492
|
) -> None:
|
@@ -554,17 +499,11 @@ class CloudDataFusionCreatePipelineOperator(GoogleCloudBaseOperator):
|
|
554
499
|
self.project_id = project_id
|
555
500
|
self.api_version = api_version
|
556
501
|
self.gcp_conn_id = gcp_conn_id
|
557
|
-
if delegate_to:
|
558
|
-
warnings.warn(
|
559
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
560
|
-
)
|
561
|
-
self.delegate_to = delegate_to
|
562
502
|
self.impersonation_chain = impersonation_chain
|
563
503
|
|
564
504
|
def execute(self, context: Context) -> None:
|
565
505
|
hook = DataFusionHook(
|
566
506
|
gcp_conn_id=self.gcp_conn_id,
|
567
|
-
delegate_to=self.delegate_to,
|
568
507
|
api_version=self.api_version,
|
569
508
|
impersonation_chain=self.impersonation_chain,
|
570
509
|
)
|
@@ -607,9 +546,6 @@ class CloudDataFusionDeletePipelineOperator(GoogleCloudBaseOperator):
|
|
607
546
|
can create a namespace.
|
608
547
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
609
548
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
610
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
611
|
-
if any. For this to work, the service account making the request must have
|
612
|
-
domain-wide delegation enabled.
|
613
549
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
614
550
|
credentials, or chained list of accounts required to get the access_token
|
615
551
|
of the last account in the list, which will be impersonated in the request.
|
@@ -638,7 +574,6 @@ class CloudDataFusionDeletePipelineOperator(GoogleCloudBaseOperator):
|
|
638
574
|
project_id: str | None = None,
|
639
575
|
api_version: str = "v1beta1",
|
640
576
|
gcp_conn_id: str = "google_cloud_default",
|
641
|
-
delegate_to: str | None = None,
|
642
577
|
impersonation_chain: str | Sequence[str] | None = None,
|
643
578
|
**kwargs,
|
644
579
|
) -> None:
|
@@ -651,17 +586,11 @@ class CloudDataFusionDeletePipelineOperator(GoogleCloudBaseOperator):
|
|
651
586
|
self.project_id = project_id
|
652
587
|
self.api_version = api_version
|
653
588
|
self.gcp_conn_id = gcp_conn_id
|
654
|
-
if delegate_to:
|
655
|
-
warnings.warn(
|
656
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
657
|
-
)
|
658
|
-
self.delegate_to = delegate_to
|
659
589
|
self.impersonation_chain = impersonation_chain
|
660
590
|
|
661
591
|
def execute(self, context: Context) -> None:
|
662
592
|
hook = DataFusionHook(
|
663
593
|
gcp_conn_id=self.gcp_conn_id,
|
664
|
-
delegate_to=self.delegate_to,
|
665
594
|
api_version=self.api_version,
|
666
595
|
impersonation_chain=self.impersonation_chain,
|
667
596
|
)
|
@@ -699,9 +628,6 @@ class CloudDataFusionListPipelinesOperator(GoogleCloudBaseOperator):
|
|
699
628
|
can create a namespace.
|
700
629
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
701
630
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
702
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
703
|
-
if any. For this to work, the service account making the request must have
|
704
|
-
domain-wide delegation enabled.
|
705
631
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
706
632
|
credentials, or chained list of accounts required to get the access_token
|
707
633
|
of the last account in the list, which will be impersonated in the request.
|
@@ -731,7 +657,6 @@ class CloudDataFusionListPipelinesOperator(GoogleCloudBaseOperator):
|
|
731
657
|
project_id: str | None = None,
|
732
658
|
api_version: str = "v1beta1",
|
733
659
|
gcp_conn_id: str = "google_cloud_default",
|
734
|
-
delegate_to: str | None = None,
|
735
660
|
impersonation_chain: str | Sequence[str] | None = None,
|
736
661
|
**kwargs,
|
737
662
|
) -> None:
|
@@ -744,17 +669,11 @@ class CloudDataFusionListPipelinesOperator(GoogleCloudBaseOperator):
|
|
744
669
|
self.project_id = project_id
|
745
670
|
self.api_version = api_version
|
746
671
|
self.gcp_conn_id = gcp_conn_id
|
747
|
-
if delegate_to:
|
748
|
-
warnings.warn(
|
749
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
750
|
-
)
|
751
|
-
self.delegate_to = delegate_to
|
752
672
|
self.impersonation_chain = impersonation_chain
|
753
673
|
|
754
674
|
def execute(self, context: Context) -> dict:
|
755
675
|
hook = DataFusionHook(
|
756
676
|
gcp_conn_id=self.gcp_conn_id,
|
757
|
-
delegate_to=self.delegate_to,
|
758
677
|
api_version=self.api_version,
|
759
678
|
impersonation_chain=self.impersonation_chain,
|
760
679
|
)
|
@@ -799,9 +718,6 @@ class CloudDataFusionStartPipelineOperator(GoogleCloudBaseOperator):
|
|
799
718
|
can create a namespace.
|
800
719
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
801
720
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
802
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
803
|
-
if any. For this to work, the service account making the request must have
|
804
|
-
domain-wide delegation enabled.
|
805
721
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
806
722
|
credentials, or chained list of accounts required to get the access_token
|
807
723
|
of the last account in the list, which will be impersonated in the request.
|
@@ -841,7 +757,6 @@ class CloudDataFusionStartPipelineOperator(GoogleCloudBaseOperator):
|
|
841
757
|
project_id: str | None = None,
|
842
758
|
api_version: str = "v1beta1",
|
843
759
|
gcp_conn_id: str = "google_cloud_default",
|
844
|
-
delegate_to: str | None = None,
|
845
760
|
impersonation_chain: str | Sequence[str] | None = None,
|
846
761
|
asynchronous=False,
|
847
762
|
deferrable=False,
|
@@ -857,11 +772,6 @@ class CloudDataFusionStartPipelineOperator(GoogleCloudBaseOperator):
|
|
857
772
|
self.project_id = project_id
|
858
773
|
self.api_version = api_version
|
859
774
|
self.gcp_conn_id = gcp_conn_id
|
860
|
-
if delegate_to:
|
861
|
-
warnings.warn(
|
862
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
863
|
-
)
|
864
|
-
self.delegate_to = delegate_to
|
865
775
|
self.impersonation_chain = impersonation_chain
|
866
776
|
self.asynchronous = asynchronous
|
867
777
|
self.pipeline_timeout = pipeline_timeout
|
@@ -876,7 +786,6 @@ class CloudDataFusionStartPipelineOperator(GoogleCloudBaseOperator):
|
|
876
786
|
def execute(self, context: Context) -> str:
|
877
787
|
hook = DataFusionHook(
|
878
788
|
gcp_conn_id=self.gcp_conn_id,
|
879
|
-
delegate_to=self.delegate_to,
|
880
789
|
api_version=self.api_version,
|
881
790
|
impersonation_chain=self.impersonation_chain,
|
882
791
|
)
|
@@ -917,7 +826,6 @@ class CloudDataFusionStartPipelineOperator(GoogleCloudBaseOperator):
|
|
917
826
|
poll_interval=self.poll_interval,
|
918
827
|
gcp_conn_id=self.gcp_conn_id,
|
919
828
|
impersonation_chain=self.impersonation_chain,
|
920
|
-
delegate_to=self.delegate_to,
|
921
829
|
),
|
922
830
|
method_name="execute_complete",
|
923
831
|
)
|
@@ -969,9 +877,6 @@ class CloudDataFusionStopPipelineOperator(GoogleCloudBaseOperator):
|
|
969
877
|
can create a namespace.
|
970
878
|
:param api_version: The version of the api that will be requested for example 'v3'.
|
971
879
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
972
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
973
|
-
if any. For this to work, the service account making the request must have
|
974
|
-
domain-wide delegation enabled.
|
975
880
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
976
881
|
credentials, or chained list of accounts required to get the access_token
|
977
882
|
of the last account in the list, which will be impersonated in the request.
|
@@ -999,7 +904,6 @@ class CloudDataFusionStopPipelineOperator(GoogleCloudBaseOperator):
|
|
999
904
|
project_id: str | None = None,
|
1000
905
|
api_version: str = "v1beta1",
|
1001
906
|
gcp_conn_id: str = "google_cloud_default",
|
1002
|
-
delegate_to: str | None = None,
|
1003
907
|
impersonation_chain: str | Sequence[str] | None = None,
|
1004
908
|
**kwargs,
|
1005
909
|
) -> None:
|
@@ -1011,17 +915,11 @@ class CloudDataFusionStopPipelineOperator(GoogleCloudBaseOperator):
|
|
1011
915
|
self.project_id = project_id
|
1012
916
|
self.api_version = api_version
|
1013
917
|
self.gcp_conn_id = gcp_conn_id
|
1014
|
-
if delegate_to:
|
1015
|
-
warnings.warn(
|
1016
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1017
|
-
)
|
1018
|
-
self.delegate_to = delegate_to
|
1019
918
|
self.impersonation_chain = impersonation_chain
|
1020
919
|
|
1021
920
|
def execute(self, context: Context) -> None:
|
1022
921
|
hook = DataFusionHook(
|
1023
922
|
gcp_conn_id=self.gcp_conn_id,
|
1024
|
-
delegate_to=self.delegate_to,
|
1025
923
|
api_version=self.api_version,
|
1026
924
|
impersonation_chain=self.impersonation_chain,
|
1027
925
|
)
|
@@ -18,7 +18,6 @@
|
|
18
18
|
|
19
19
|
from __future__ import annotations
|
20
20
|
|
21
|
-
import warnings
|
22
21
|
from time import sleep
|
23
22
|
from typing import TYPE_CHECKING, Any, Sequence
|
24
23
|
|
@@ -57,8 +56,6 @@ class DataplexCreateTaskOperator(GoogleCloudBaseOperator):
|
|
57
56
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
58
57
|
:param metadata: Additional metadata that is provided to the method.
|
59
58
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
60
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service accountmaking the
|
61
|
-
request must have domain-wide delegation enabled.
|
62
59
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
63
60
|
credentials, or chained list of accounts required to get the access_token
|
64
61
|
of the last account in the list, which will be impersonated in the request.
|
@@ -77,7 +74,6 @@ class DataplexCreateTaskOperator(GoogleCloudBaseOperator):
|
|
77
74
|
"dataplex_task_id",
|
78
75
|
"body",
|
79
76
|
"validate_only",
|
80
|
-
"delegate_to",
|
81
77
|
"impersonation_chain",
|
82
78
|
)
|
83
79
|
template_fields_renderers = {"body": "json"}
|
@@ -96,7 +92,6 @@ class DataplexCreateTaskOperator(GoogleCloudBaseOperator):
|
|
96
92
|
timeout: float | None = None,
|
97
93
|
metadata: Sequence[tuple[str, str]] = (),
|
98
94
|
gcp_conn_id: str = "google_cloud_default",
|
99
|
-
delegate_to: str | None = None,
|
100
95
|
impersonation_chain: str | Sequence[str] | None = None,
|
101
96
|
asynchronous: bool = False,
|
102
97
|
*args,
|
@@ -114,18 +109,12 @@ class DataplexCreateTaskOperator(GoogleCloudBaseOperator):
|
|
114
109
|
self.timeout = timeout
|
115
110
|
self.metadata = metadata
|
116
111
|
self.gcp_conn_id = gcp_conn_id
|
117
|
-
if delegate_to:
|
118
|
-
warnings.warn(
|
119
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
120
|
-
)
|
121
|
-
self.delegate_to = delegate_to
|
122
112
|
self.impersonation_chain = impersonation_chain
|
123
113
|
self.asynchronous = asynchronous
|
124
114
|
|
125
115
|
def execute(self, context: Context) -> dict:
|
126
116
|
hook = DataplexHook(
|
127
117
|
gcp_conn_id=self.gcp_conn_id,
|
128
|
-
delegate_to=self.delegate_to,
|
129
118
|
api_version=self.api_version,
|
130
119
|
impersonation_chain=self.impersonation_chain,
|
131
120
|
)
|
@@ -189,8 +178,6 @@ class DataplexDeleteTaskOperator(GoogleCloudBaseOperator):
|
|
189
178
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
190
179
|
:param metadata: Additional metadata that is provided to the method.
|
191
180
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
192
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service accountmaking the
|
193
|
-
request must have domain-wide delegation enabled.
|
194
181
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
195
182
|
credentials, or chained list of accounts required to get the access_token
|
196
183
|
of the last account in the list, which will be impersonated in the request.
|
@@ -201,7 +188,7 @@ class DataplexDeleteTaskOperator(GoogleCloudBaseOperator):
|
|
201
188
|
account from the list granting this role to the originating account (templated).
|
202
189
|
"""
|
203
190
|
|
204
|
-
template_fields = ("project_id", "dataplex_task_id", "
|
191
|
+
template_fields = ("project_id", "dataplex_task_id", "impersonation_chain")
|
205
192
|
|
206
193
|
def __init__(
|
207
194
|
self,
|
@@ -214,7 +201,6 @@ class DataplexDeleteTaskOperator(GoogleCloudBaseOperator):
|
|
214
201
|
timeout: float | None = None,
|
215
202
|
metadata: Sequence[tuple[str, str]] = (),
|
216
203
|
gcp_conn_id: str = "google_cloud_default",
|
217
|
-
delegate_to: str | None = None,
|
218
204
|
impersonation_chain: str | Sequence[str] | None = None,
|
219
205
|
*args,
|
220
206
|
**kwargs,
|
@@ -229,17 +215,11 @@ class DataplexDeleteTaskOperator(GoogleCloudBaseOperator):
|
|
229
215
|
self.timeout = timeout
|
230
216
|
self.metadata = metadata
|
231
217
|
self.gcp_conn_id = gcp_conn_id
|
232
|
-
if delegate_to:
|
233
|
-
warnings.warn(
|
234
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
235
|
-
)
|
236
|
-
self.delegate_to = delegate_to
|
237
218
|
self.impersonation_chain = impersonation_chain
|
238
219
|
|
239
220
|
def execute(self, context: Context) -> None:
|
240
221
|
hook = DataplexHook(
|
241
222
|
gcp_conn_id=self.gcp_conn_id,
|
242
|
-
delegate_to=self.delegate_to,
|
243
223
|
api_version=self.api_version,
|
244
224
|
impersonation_chain=self.impersonation_chain,
|
245
225
|
)
|
@@ -280,8 +260,6 @@ class DataplexListTasksOperator(GoogleCloudBaseOperator):
|
|
280
260
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
281
261
|
:param metadata: Additional metadata that is provided to the method.
|
282
262
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
283
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service accountmaking the
|
284
|
-
request must have domain-wide delegation enabled.
|
285
263
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
286
264
|
credentials, or chained list of accounts required to get the access_token
|
287
265
|
of the last account in the list, which will be impersonated in the request.
|
@@ -298,7 +276,6 @@ class DataplexListTasksOperator(GoogleCloudBaseOperator):
|
|
298
276
|
"page_token",
|
299
277
|
"filter",
|
300
278
|
"order_by",
|
301
|
-
"delegate_to",
|
302
279
|
"impersonation_chain",
|
303
280
|
)
|
304
281
|
operator_extra_links = (DataplexTasksLink(),)
|
@@ -317,7 +294,6 @@ class DataplexListTasksOperator(GoogleCloudBaseOperator):
|
|
317
294
|
timeout: float | None = None,
|
318
295
|
metadata: Sequence[tuple[str, str]] = (),
|
319
296
|
gcp_conn_id: str = "google_cloud_default",
|
320
|
-
delegate_to: str | None = None,
|
321
297
|
impersonation_chain: str | Sequence[str] | None = None,
|
322
298
|
*args,
|
323
299
|
**kwargs,
|
@@ -335,17 +311,11 @@ class DataplexListTasksOperator(GoogleCloudBaseOperator):
|
|
335
311
|
self.timeout = timeout
|
336
312
|
self.metadata = metadata
|
337
313
|
self.gcp_conn_id = gcp_conn_id
|
338
|
-
if delegate_to:
|
339
|
-
warnings.warn(
|
340
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
341
|
-
)
|
342
|
-
self.delegate_to = delegate_to
|
343
314
|
self.impersonation_chain = impersonation_chain
|
344
315
|
|
345
316
|
def execute(self, context: Context) -> list[dict]:
|
346
317
|
hook = DataplexHook(
|
347
318
|
gcp_conn_id=self.gcp_conn_id,
|
348
|
-
delegate_to=self.delegate_to,
|
349
319
|
api_version=self.api_version,
|
350
320
|
impersonation_chain=self.impersonation_chain,
|
351
321
|
)
|
@@ -382,8 +352,6 @@ class DataplexGetTaskOperator(GoogleCloudBaseOperator):
|
|
382
352
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
383
353
|
:param metadata: Additional metadata that is provided to the method.
|
384
354
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
385
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service accountmaking the
|
386
|
-
request must have domain-wide delegation enabled.
|
387
355
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
388
356
|
credentials, or chained list of accounts required to get the access_token
|
389
357
|
of the last account in the list, which will be impersonated in the request.
|
@@ -394,7 +362,7 @@ class DataplexGetTaskOperator(GoogleCloudBaseOperator):
|
|
394
362
|
account from the list granting this role to the originating account (templated).
|
395
363
|
"""
|
396
364
|
|
397
|
-
template_fields = ("project_id", "dataplex_task_id", "
|
365
|
+
template_fields = ("project_id", "dataplex_task_id", "impersonation_chain")
|
398
366
|
operator_extra_links = (DataplexTaskLink(),)
|
399
367
|
|
400
368
|
def __init__(
|
@@ -408,7 +376,6 @@ class DataplexGetTaskOperator(GoogleCloudBaseOperator):
|
|
408
376
|
timeout: float | None = None,
|
409
377
|
metadata: Sequence[tuple[str, str]] = (),
|
410
378
|
gcp_conn_id: str = "google_cloud_default",
|
411
|
-
delegate_to: str | None = None,
|
412
379
|
impersonation_chain: str | Sequence[str] | None = None,
|
413
380
|
*args,
|
414
381
|
**kwargs,
|
@@ -423,17 +390,11 @@ class DataplexGetTaskOperator(GoogleCloudBaseOperator):
|
|
423
390
|
self.timeout = timeout
|
424
391
|
self.metadata = metadata
|
425
392
|
self.gcp_conn_id = gcp_conn_id
|
426
|
-
if delegate_to:
|
427
|
-
warnings.warn(
|
428
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
429
|
-
)
|
430
|
-
self.delegate_to = delegate_to
|
431
393
|
self.impersonation_chain = impersonation_chain
|
432
394
|
|
433
395
|
def execute(self, context: Context) -> dict:
|
434
396
|
hook = DataplexHook(
|
435
397
|
gcp_conn_id=self.gcp_conn_id,
|
436
|
-
delegate_to=self.delegate_to,
|
437
398
|
api_version=self.api_version,
|
438
399
|
impersonation_chain=self.impersonation_chain,
|
439
400
|
)
|
@@ -470,8 +431,6 @@ class DataplexCreateLakeOperator(GoogleCloudBaseOperator):
|
|
470
431
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
471
432
|
:param metadata: Additional metadata that is provided to the method.
|
472
433
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
473
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service account making the
|
474
|
-
request must have domain-wide delegation enabled.
|
475
434
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
476
435
|
credentials, or chained list of accounts required to get the access_token
|
477
436
|
of the last account in the list, which will be impersonated in the request.
|
@@ -490,7 +449,6 @@ class DataplexCreateLakeOperator(GoogleCloudBaseOperator):
|
|
490
449
|
"lake_id",
|
491
450
|
"body",
|
492
451
|
"validate_only",
|
493
|
-
"delegate_to",
|
494
452
|
"impersonation_chain",
|
495
453
|
)
|
496
454
|
template_fields_renderers = {"body": "json"}
|
@@ -508,7 +466,6 @@ class DataplexCreateLakeOperator(GoogleCloudBaseOperator):
|
|
508
466
|
timeout: float | None = None,
|
509
467
|
metadata: Sequence[tuple[str, str]] = (),
|
510
468
|
gcp_conn_id: str = "google_cloud_default",
|
511
|
-
delegate_to: str | None = None,
|
512
469
|
impersonation_chain: str | Sequence[str] | None = None,
|
513
470
|
asynchronous: bool = False,
|
514
471
|
*args,
|
@@ -525,18 +482,12 @@ class DataplexCreateLakeOperator(GoogleCloudBaseOperator):
|
|
525
482
|
self.timeout = timeout
|
526
483
|
self.metadata = metadata
|
527
484
|
self.gcp_conn_id = gcp_conn_id
|
528
|
-
if delegate_to:
|
529
|
-
warnings.warn(
|
530
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
531
|
-
)
|
532
|
-
self.delegate_to = delegate_to
|
533
485
|
self.impersonation_chain = impersonation_chain
|
534
486
|
self.asynchronous = asynchronous
|
535
487
|
|
536
488
|
def execute(self, context: Context) -> dict:
|
537
489
|
hook = DataplexHook(
|
538
490
|
gcp_conn_id=self.gcp_conn_id,
|
539
|
-
delegate_to=self.delegate_to,
|
540
491
|
api_version=self.api_version,
|
541
492
|
impersonation_chain=self.impersonation_chain,
|
542
493
|
)
|
@@ -599,8 +550,6 @@ class DataplexDeleteLakeOperator(GoogleCloudBaseOperator):
|
|
599
550
|
Note that if `retry` is specified, the timeout applies to each individual attempt.
|
600
551
|
:param metadata: Additional metadata that is provided to the method.
|
601
552
|
:param gcp_conn_id: The connection ID to use when fetching connection info.
|
602
|
-
:param delegate_to: The account to impersonate, if any. For this to work, the service account making the
|
603
|
-
request must have domain-wide delegation enabled.
|
604
553
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
605
554
|
credentials, or chained list of accounts required to get the access_token
|
606
555
|
of the last account in the list, which will be impersonated in the request.
|
@@ -611,7 +560,7 @@ class DataplexDeleteLakeOperator(GoogleCloudBaseOperator):
|
|
611
560
|
account from the list granting this role to the originating account (templated).
|
612
561
|
"""
|
613
562
|
|
614
|
-
template_fields = ("project_id", "lake_id", "
|
563
|
+
template_fields = ("project_id", "lake_id", "impersonation_chain")
|
615
564
|
operator_extra_links = (DataplexLakeLink(),)
|
616
565
|
|
617
566
|
def __init__(
|
@@ -624,7 +573,6 @@ class DataplexDeleteLakeOperator(GoogleCloudBaseOperator):
|
|
624
573
|
timeout: float | None = None,
|
625
574
|
metadata: Sequence[tuple[str, str]] = (),
|
626
575
|
gcp_conn_id: str = "google_cloud_default",
|
627
|
-
delegate_to: str | None = None,
|
628
576
|
impersonation_chain: str | Sequence[str] | None = None,
|
629
577
|
*args,
|
630
578
|
**kwargs,
|
@@ -639,18 +587,12 @@ class DataplexDeleteLakeOperator(GoogleCloudBaseOperator):
|
|
639
587
|
self.timeout = timeout
|
640
588
|
self.metadata = metadata
|
641
589
|
self.gcp_conn_id = gcp_conn_id
|
642
|
-
if delegate_to:
|
643
|
-
warnings.warn(
|
644
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
645
|
-
)
|
646
|
-
self.delegate_to = delegate_to
|
647
590
|
self.impersonation_chain = impersonation_chain
|
648
591
|
|
649
592
|
def execute(self, context: Context) -> None:
|
650
593
|
|
651
594
|
hook = DataplexHook(
|
652
595
|
gcp_conn_id=self.gcp_conn_id,
|
653
|
-
delegate_to=self.delegate_to,
|
654
596
|
api_version=self.api_version,
|
655
597
|
impersonation_chain=self.impersonation_chain,
|
656
598
|
)
|