apache-airflow-providers-google 9.0.0rc1__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
- airflow/providers/google_vendor/googleads/interceptors/interceptor.py +1 -1
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/METADATA +34 -4
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/RECORD +123 -123
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/LICENSE +0 -0
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/NOTICE +0 -0
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/entry_points.txt +0 -0
- {apache_airflow_providers_google-9.0.0rc1.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,6 @@
|
|
17
17
|
# under the License.
|
18
18
|
from __future__ import annotations
|
19
19
|
|
20
|
-
import warnings
|
21
20
|
from typing import TYPE_CHECKING, Sequence
|
22
21
|
|
23
22
|
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
|
@@ -71,9 +70,6 @@ class StackdriverListAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
71
70
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
72
71
|
Cloud Platform.
|
73
72
|
:param project_id: The project to fetch alerts from.
|
74
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
75
|
-
if any. For this to work, the service account making the request must have
|
76
|
-
domain-wide delegation enabled.
|
77
73
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
78
74
|
credentials, or chained list of accounts required to get the access_token
|
79
75
|
of the last account in the list, which will be impersonated in the request.
|
@@ -103,7 +99,6 @@ class StackdriverListAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
103
99
|
metadata: Sequence[tuple[str, str]] = (),
|
104
100
|
gcp_conn_id: str = "google_cloud_default",
|
105
101
|
project_id: str | None = None,
|
106
|
-
delegate_to: str | None = None,
|
107
102
|
impersonation_chain: str | Sequence[str] | None = None,
|
108
103
|
**kwargs,
|
109
104
|
) -> None:
|
@@ -117,11 +112,6 @@ class StackdriverListAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
117
112
|
self.metadata = metadata
|
118
113
|
self.gcp_conn_id = gcp_conn_id
|
119
114
|
self.project_id = project_id
|
120
|
-
if delegate_to:
|
121
|
-
warnings.warn(
|
122
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
123
|
-
)
|
124
|
-
self.delegate_to = delegate_to
|
125
115
|
self.impersonation_chain = impersonation_chain
|
126
116
|
self.hook: StackdriverHook | None = None
|
127
117
|
|
@@ -137,7 +127,6 @@ class StackdriverListAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
137
127
|
if self.hook is None:
|
138
128
|
self.hook = StackdriverHook(
|
139
129
|
gcp_conn_id=self.gcp_conn_id,
|
140
|
-
delegate_to=self.delegate_to,
|
141
130
|
impersonation_chain=self.impersonation_chain,
|
142
131
|
)
|
143
132
|
|
@@ -180,9 +169,6 @@ class StackdriverEnableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
180
169
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
181
170
|
Cloud Platform.
|
182
171
|
:param project_id: The project in which alert needs to be enabled.
|
183
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
184
|
-
if any. For this to work, the service account making the request must have
|
185
|
-
domain-wide delegation enabled.
|
186
172
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
187
173
|
credentials, or chained list of accounts required to get the access_token
|
188
174
|
of the last account in the list, which will be impersonated in the request.
|
@@ -209,18 +195,12 @@ class StackdriverEnableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
209
195
|
metadata: Sequence[tuple[str, str]] = (),
|
210
196
|
gcp_conn_id: str = "google_cloud_default",
|
211
197
|
project_id: str | None = None,
|
212
|
-
delegate_to: str | None = None,
|
213
198
|
impersonation_chain: str | Sequence[str] | None = None,
|
214
199
|
**kwargs,
|
215
200
|
) -> None:
|
216
201
|
super().__init__(**kwargs)
|
217
202
|
self.gcp_conn_id = gcp_conn_id
|
218
203
|
self.project_id = project_id
|
219
|
-
if delegate_to:
|
220
|
-
warnings.warn(
|
221
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
222
|
-
)
|
223
|
-
self.delegate_to = delegate_to
|
224
204
|
self.filter_ = filter_
|
225
205
|
self.retry = retry
|
226
206
|
self.timeout = timeout
|
@@ -233,7 +213,6 @@ class StackdriverEnableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
233
213
|
if self.hook is None:
|
234
214
|
self.hook = StackdriverHook(
|
235
215
|
gcp_conn_id=self.gcp_conn_id,
|
236
|
-
delegate_to=self.delegate_to,
|
237
216
|
impersonation_chain=self.impersonation_chain,
|
238
217
|
)
|
239
218
|
self.hook.enable_alert_policies(
|
@@ -272,9 +251,6 @@ class StackdriverDisableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
272
251
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
273
252
|
Cloud Platform.
|
274
253
|
:param project_id: The project in which alert needs to be disabled.
|
275
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
276
|
-
if any. For this to work, the service account making the request must have
|
277
|
-
domain-wide delegation enabled.
|
278
254
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
279
255
|
credentials, or chained list of accounts required to get the access_token
|
280
256
|
of the last account in the list, which will be impersonated in the request.
|
@@ -301,18 +277,12 @@ class StackdriverDisableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
301
277
|
metadata: Sequence[tuple[str, str]] = (),
|
302
278
|
gcp_conn_id: str = "google_cloud_default",
|
303
279
|
project_id: str | None = None,
|
304
|
-
delegate_to: str | None = None,
|
305
280
|
impersonation_chain: str | Sequence[str] | None = None,
|
306
281
|
**kwargs,
|
307
282
|
) -> None:
|
308
283
|
super().__init__(**kwargs)
|
309
284
|
self.gcp_conn_id = gcp_conn_id
|
310
285
|
self.project_id = project_id
|
311
|
-
if delegate_to:
|
312
|
-
warnings.warn(
|
313
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
314
|
-
)
|
315
|
-
self.delegate_to = delegate_to
|
316
286
|
self.filter_ = filter_
|
317
287
|
self.retry = retry
|
318
288
|
self.timeout = timeout
|
@@ -325,7 +295,6 @@ class StackdriverDisableAlertPoliciesOperator(GoogleCloudBaseOperator):
|
|
325
295
|
if self.hook is None:
|
326
296
|
self.hook = StackdriverHook(
|
327
297
|
gcp_conn_id=self.gcp_conn_id,
|
328
|
-
delegate_to=self.delegate_to,
|
329
298
|
impersonation_chain=self.impersonation_chain,
|
330
299
|
)
|
331
300
|
self.hook.disable_alert_policies(
|
@@ -364,9 +333,6 @@ class StackdriverUpsertAlertOperator(GoogleCloudBaseOperator):
|
|
364
333
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
365
334
|
Cloud Platform.
|
366
335
|
:param project_id: The project in which alert needs to be created/updated.
|
367
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
368
|
-
if any. For this to work, the service account making the request must have
|
369
|
-
domain-wide delegation enabled.
|
370
336
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
371
337
|
credentials, or chained list of accounts required to get the access_token
|
372
338
|
of the last account in the list, which will be impersonated in the request.
|
@@ -395,7 +361,6 @@ class StackdriverUpsertAlertOperator(GoogleCloudBaseOperator):
|
|
395
361
|
metadata: Sequence[tuple[str, str]] = (),
|
396
362
|
gcp_conn_id: str = "google_cloud_default",
|
397
363
|
project_id: str | None = None,
|
398
|
-
delegate_to: str | None = None,
|
399
364
|
impersonation_chain: str | Sequence[str] | None = None,
|
400
365
|
**kwargs,
|
401
366
|
) -> None:
|
@@ -406,11 +371,6 @@ class StackdriverUpsertAlertOperator(GoogleCloudBaseOperator):
|
|
406
371
|
self.metadata = metadata
|
407
372
|
self.gcp_conn_id = gcp_conn_id
|
408
373
|
self.project_id = project_id
|
409
|
-
if delegate_to:
|
410
|
-
warnings.warn(
|
411
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
412
|
-
)
|
413
|
-
self.delegate_to = delegate_to
|
414
374
|
self.impersonation_chain = impersonation_chain
|
415
375
|
self.hook: StackdriverHook | None = None
|
416
376
|
|
@@ -419,7 +379,6 @@ class StackdriverUpsertAlertOperator(GoogleCloudBaseOperator):
|
|
419
379
|
if self.hook is None:
|
420
380
|
self.hook = StackdriverHook(
|
421
381
|
gcp_conn_id=self.gcp_conn_id,
|
422
|
-
delegate_to=self.delegate_to,
|
423
382
|
impersonation_chain=self.impersonation_chain,
|
424
383
|
)
|
425
384
|
self.hook.upsert_alert(
|
@@ -455,9 +414,6 @@ class StackdriverDeleteAlertOperator(GoogleCloudBaseOperator):
|
|
455
414
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
456
415
|
Cloud Platform.
|
457
416
|
:param project_id: The project from which alert needs to be deleted.
|
458
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
459
|
-
if any. For this to work, the service account making the request must have
|
460
|
-
domain-wide delegation enabled.
|
461
417
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
462
418
|
credentials, or chained list of accounts required to get the access_token
|
463
419
|
of the last account in the list, which will be impersonated in the request.
|
@@ -484,7 +440,6 @@ class StackdriverDeleteAlertOperator(GoogleCloudBaseOperator):
|
|
484
440
|
metadata: Sequence[tuple[str, str]] = (),
|
485
441
|
gcp_conn_id: str = "google_cloud_default",
|
486
442
|
project_id: str | None = None,
|
487
|
-
delegate_to: str | None = None,
|
488
443
|
impersonation_chain: str | Sequence[str] | None = None,
|
489
444
|
**kwargs,
|
490
445
|
) -> None:
|
@@ -495,11 +450,6 @@ class StackdriverDeleteAlertOperator(GoogleCloudBaseOperator):
|
|
495
450
|
self.metadata = metadata
|
496
451
|
self.gcp_conn_id = gcp_conn_id
|
497
452
|
self.project_id = project_id
|
498
|
-
if delegate_to:
|
499
|
-
warnings.warn(
|
500
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
501
|
-
)
|
502
|
-
self.delegate_to = delegate_to
|
503
453
|
self.impersonation_chain = impersonation_chain
|
504
454
|
self.hook: StackdriverHook | None = None
|
505
455
|
|
@@ -508,7 +458,6 @@ class StackdriverDeleteAlertOperator(GoogleCloudBaseOperator):
|
|
508
458
|
if self.hook is None:
|
509
459
|
self.hook = StackdriverHook(
|
510
460
|
gcp_conn_id=self.gcp_conn_id,
|
511
|
-
delegate_to=self.delegate_to,
|
512
461
|
impersonation_chain=self.impersonation_chain,
|
513
462
|
)
|
514
463
|
self.hook.delete_alert_policy(
|
@@ -555,9 +504,6 @@ class StackdriverListNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
555
504
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
556
505
|
Cloud Platform.
|
557
506
|
:param project_id: The project to fetch notification channels from.
|
558
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
559
|
-
if any. For this to work, the service account making the request must have
|
560
|
-
domain-wide delegation enabled.
|
561
507
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
562
508
|
credentials, or chained list of accounts required to get the access_token
|
563
509
|
of the last account in the list, which will be impersonated in the request.
|
@@ -588,7 +534,6 @@ class StackdriverListNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
588
534
|
metadata: Sequence[tuple[str, str]] = (),
|
589
535
|
gcp_conn_id: str = "google_cloud_default",
|
590
536
|
project_id: str | None = None,
|
591
|
-
delegate_to: str | None = None,
|
592
537
|
impersonation_chain: str | Sequence[str] | None = None,
|
593
538
|
**kwargs,
|
594
539
|
) -> None:
|
@@ -602,11 +547,6 @@ class StackdriverListNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
602
547
|
self.metadata = metadata
|
603
548
|
self.gcp_conn_id = gcp_conn_id
|
604
549
|
self.project_id = project_id
|
605
|
-
if delegate_to:
|
606
|
-
warnings.warn(
|
607
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
608
|
-
)
|
609
|
-
self.delegate_to = delegate_to
|
610
550
|
self.impersonation_chain = impersonation_chain
|
611
551
|
self.hook: StackdriverHook | None = None
|
612
552
|
|
@@ -622,7 +562,6 @@ class StackdriverListNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
622
562
|
if self.hook is None:
|
623
563
|
self.hook = StackdriverHook(
|
624
564
|
gcp_conn_id=self.gcp_conn_id,
|
625
|
-
delegate_to=self.delegate_to,
|
626
565
|
impersonation_chain=self.impersonation_chain,
|
627
566
|
)
|
628
567
|
channels = self.hook.list_notification_channels(
|
@@ -664,9 +603,6 @@ class StackdriverEnableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
664
603
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
665
604
|
Cloud Platform.
|
666
605
|
:param project_id: The location used for the operation.
|
667
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
668
|
-
if any. For this to work, the service account making the request must have
|
669
|
-
domain-wide delegation enabled.
|
670
606
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
671
607
|
credentials, or chained list of accounts required to get the access_token
|
672
608
|
of the last account in the list, which will be impersonated in the request.
|
@@ -694,7 +630,6 @@ class StackdriverEnableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
694
630
|
metadata: Sequence[tuple[str, str]] = (),
|
695
631
|
gcp_conn_id: str = "google_cloud_default",
|
696
632
|
project_id: str | None = None,
|
697
|
-
delegate_to: str | None = None,
|
698
633
|
impersonation_chain: str | Sequence[str] | None = None,
|
699
634
|
**kwargs,
|
700
635
|
) -> None:
|
@@ -705,11 +640,6 @@ class StackdriverEnableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
705
640
|
self.metadata = metadata
|
706
641
|
self.gcp_conn_id = gcp_conn_id
|
707
642
|
self.project_id = project_id
|
708
|
-
if delegate_to:
|
709
|
-
warnings.warn(
|
710
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
711
|
-
)
|
712
|
-
self.delegate_to = delegate_to
|
713
643
|
self.impersonation_chain = impersonation_chain
|
714
644
|
self.hook: StackdriverHook | None = None
|
715
645
|
|
@@ -720,7 +650,6 @@ class StackdriverEnableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
720
650
|
if self.hook is None:
|
721
651
|
self.hook = StackdriverHook(
|
722
652
|
gcp_conn_id=self.gcp_conn_id,
|
723
|
-
delegate_to=self.delegate_to,
|
724
653
|
impersonation_chain=self.impersonation_chain,
|
725
654
|
)
|
726
655
|
self.hook.enable_notification_channels(
|
@@ -758,9 +687,6 @@ class StackdriverDisableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
758
687
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
759
688
|
Cloud Platform.
|
760
689
|
:param project_id: The project in which notification channels needs to be enabled.
|
761
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
762
|
-
if any. For this to work, the service account making the request must have
|
763
|
-
domain-wide delegation enabled.
|
764
690
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
765
691
|
credentials, or chained list of accounts required to get the access_token
|
766
692
|
of the last account in the list, which will be impersonated in the request.
|
@@ -788,7 +714,6 @@ class StackdriverDisableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
788
714
|
metadata: Sequence[tuple[str, str]] = (),
|
789
715
|
gcp_conn_id: str = "google_cloud_default",
|
790
716
|
project_id: str | None = None,
|
791
|
-
delegate_to: str | None = None,
|
792
717
|
impersonation_chain: str | Sequence[str] | None = None,
|
793
718
|
**kwargs,
|
794
719
|
) -> None:
|
@@ -799,11 +724,6 @@ class StackdriverDisableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
799
724
|
self.metadata = metadata
|
800
725
|
self.gcp_conn_id = gcp_conn_id
|
801
726
|
self.project_id = project_id
|
802
|
-
if delegate_to:
|
803
|
-
warnings.warn(
|
804
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
805
|
-
)
|
806
|
-
self.delegate_to = delegate_to
|
807
727
|
self.impersonation_chain = impersonation_chain
|
808
728
|
self.hook: StackdriverHook | None = None
|
809
729
|
|
@@ -814,7 +734,6 @@ class StackdriverDisableNotificationChannelsOperator(GoogleCloudBaseOperator):
|
|
814
734
|
if self.hook is None:
|
815
735
|
self.hook = StackdriverHook(
|
816
736
|
gcp_conn_id=self.gcp_conn_id,
|
817
|
-
delegate_to=self.delegate_to,
|
818
737
|
impersonation_chain=self.impersonation_chain,
|
819
738
|
)
|
820
739
|
self.hook.disable_notification_channels(
|
@@ -853,9 +772,6 @@ class StackdriverUpsertNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
853
772
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
854
773
|
Cloud Platform.
|
855
774
|
:param project_id: The project in which notification channels needs to be created/updated.
|
856
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
857
|
-
if any. For this to work, the service account making the request must have
|
858
|
-
domain-wide delegation enabled.
|
859
775
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
860
776
|
credentials, or chained list of accounts required to get the access_token
|
861
777
|
of the last account in the list, which will be impersonated in the request.
|
@@ -884,7 +800,6 @@ class StackdriverUpsertNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
884
800
|
metadata: Sequence[tuple[str, str]] = (),
|
885
801
|
gcp_conn_id: str = "google_cloud_default",
|
886
802
|
project_id: str | None = None,
|
887
|
-
delegate_to: str | None = None,
|
888
803
|
impersonation_chain: str | Sequence[str] | None = None,
|
889
804
|
**kwargs,
|
890
805
|
) -> None:
|
@@ -895,11 +810,6 @@ class StackdriverUpsertNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
895
810
|
self.metadata = metadata
|
896
811
|
self.gcp_conn_id = gcp_conn_id
|
897
812
|
self.project_id = project_id
|
898
|
-
if delegate_to:
|
899
|
-
warnings.warn(
|
900
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
901
|
-
)
|
902
|
-
self.delegate_to = delegate_to
|
903
813
|
self.impersonation_chain = impersonation_chain
|
904
814
|
self.hook: StackdriverHook | None = None
|
905
815
|
|
@@ -910,7 +820,6 @@ class StackdriverUpsertNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
910
820
|
if self.hook is None:
|
911
821
|
self.hook = StackdriverHook(
|
912
822
|
gcp_conn_id=self.gcp_conn_id,
|
913
|
-
delegate_to=self.delegate_to,
|
914
823
|
impersonation_chain=self.impersonation_chain,
|
915
824
|
)
|
916
825
|
self.hook.upsert_channel(
|
@@ -946,9 +855,6 @@ class StackdriverDeleteNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
946
855
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
|
947
856
|
Cloud Platform.
|
948
857
|
:param project_id: The project from which notification channel needs to be deleted.
|
949
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
950
|
-
if any. For this to work, the service account making the request must have
|
951
|
-
domain-wide delegation enabled.
|
952
858
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
953
859
|
credentials, or chained list of accounts required to get the access_token
|
954
860
|
of the last account in the list, which will be impersonated in the request.
|
@@ -975,7 +881,6 @@ class StackdriverDeleteNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
975
881
|
metadata: Sequence[tuple[str, str]] = (),
|
976
882
|
gcp_conn_id: str = "google_cloud_default",
|
977
883
|
project_id: str | None = None,
|
978
|
-
delegate_to: str | None = None,
|
979
884
|
impersonation_chain: str | Sequence[str] | None = None,
|
980
885
|
**kwargs,
|
981
886
|
) -> None:
|
@@ -986,11 +891,6 @@ class StackdriverDeleteNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
986
891
|
self.metadata = metadata
|
987
892
|
self.gcp_conn_id = gcp_conn_id
|
988
893
|
self.project_id = project_id
|
989
|
-
if delegate_to:
|
990
|
-
warnings.warn(
|
991
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
992
|
-
)
|
993
|
-
self.delegate_to = delegate_to
|
994
894
|
self.impersonation_chain = impersonation_chain
|
995
895
|
self.hook: StackdriverHook | None = None
|
996
896
|
|
@@ -999,7 +899,6 @@ class StackdriverDeleteNotificationChannelOperator(GoogleCloudBaseOperator):
|
|
999
899
|
if self.hook is None:
|
1000
900
|
self.hook = StackdriverHook(
|
1001
901
|
gcp_conn_id=self.gcp_conn_id,
|
1002
|
-
delegate_to=self.delegate_to,
|
1003
902
|
impersonation_chain=self.impersonation_chain,
|
1004
903
|
)
|
1005
904
|
self.hook.delete_notification_channel(
|
@@ -18,7 +18,6 @@
|
|
18
18
|
"""This module contains Google Vertex AI operators."""
|
19
19
|
from __future__ import annotations
|
20
20
|
|
21
|
-
import warnings
|
22
21
|
from typing import TYPE_CHECKING, Sequence
|
23
22
|
|
24
23
|
from google.api_core.exceptions import NotFound
|
@@ -59,7 +58,6 @@ class AutoMLTrainingJobBaseOperator(GoogleCloudBaseOperator):
|
|
59
58
|
model_labels: dict[str, str] | None = None,
|
60
59
|
sync: bool = True,
|
61
60
|
gcp_conn_id: str = "google_cloud_default",
|
62
|
-
delegate_to: str | None = None,
|
63
61
|
impersonation_chain: str | Sequence[str] | None = None,
|
64
62
|
**kwargs,
|
65
63
|
) -> None:
|
@@ -78,11 +76,6 @@ class AutoMLTrainingJobBaseOperator(GoogleCloudBaseOperator):
|
|
78
76
|
self.sync = sync
|
79
77
|
# END Run param
|
80
78
|
self.gcp_conn_id = gcp_conn_id
|
81
|
-
if delegate_to:
|
82
|
-
warnings.warn(
|
83
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
84
|
-
)
|
85
|
-
self.delegate_to = delegate_to
|
86
79
|
self.impersonation_chain = impersonation_chain
|
87
80
|
self.hook: AutoMLHook | None = None
|
88
81
|
|
@@ -165,7 +158,6 @@ class CreateAutoMLForecastingTrainingJobOperator(AutoMLTrainingJobBaseOperator):
|
|
165
158
|
def execute(self, context: Context):
|
166
159
|
self.hook = AutoMLHook(
|
167
160
|
gcp_conn_id=self.gcp_conn_id,
|
168
|
-
delegate_to=self.delegate_to,
|
169
161
|
impersonation_chain=self.impersonation_chain,
|
170
162
|
)
|
171
163
|
model, training_id = self.hook.create_auto_ml_forecasting_training_job(
|
@@ -262,7 +254,6 @@ class CreateAutoMLImageTrainingJobOperator(AutoMLTrainingJobBaseOperator):
|
|
262
254
|
def execute(self, context: Context):
|
263
255
|
self.hook = AutoMLHook(
|
264
256
|
gcp_conn_id=self.gcp_conn_id,
|
265
|
-
delegate_to=self.delegate_to,
|
266
257
|
impersonation_chain=self.impersonation_chain,
|
267
258
|
)
|
268
259
|
model, training_id = self.hook.create_auto_ml_image_training_job(
|
@@ -359,7 +350,6 @@ class CreateAutoMLTabularTrainingJobOperator(AutoMLTrainingJobBaseOperator):
|
|
359
350
|
def execute(self, context: Context):
|
360
351
|
self.hook = AutoMLHook(
|
361
352
|
gcp_conn_id=self.gcp_conn_id,
|
362
|
-
delegate_to=self.delegate_to,
|
363
353
|
impersonation_chain=self.impersonation_chain,
|
364
354
|
)
|
365
355
|
model, training_id = self.hook.create_auto_ml_tabular_training_job(
|
@@ -444,7 +434,6 @@ class CreateAutoMLTextTrainingJobOperator(AutoMLTrainingJobBaseOperator):
|
|
444
434
|
def execute(self, context: Context):
|
445
435
|
self.hook = AutoMLHook(
|
446
436
|
gcp_conn_id=self.gcp_conn_id,
|
447
|
-
delegate_to=self.delegate_to,
|
448
437
|
impersonation_chain=self.impersonation_chain,
|
449
438
|
)
|
450
439
|
model, training_id = self.hook.create_auto_ml_text_training_job(
|
@@ -510,7 +499,6 @@ class CreateAutoMLVideoTrainingJobOperator(AutoMLTrainingJobBaseOperator):
|
|
510
499
|
def execute(self, context: Context):
|
511
500
|
self.hook = AutoMLHook(
|
512
501
|
gcp_conn_id=self.gcp_conn_id,
|
513
|
-
delegate_to=self.delegate_to,
|
514
502
|
impersonation_chain=self.impersonation_chain,
|
515
503
|
)
|
516
504
|
model, training_id = self.hook.create_auto_ml_video_training_job(
|
@@ -560,7 +548,6 @@ class DeleteAutoMLTrainingJobOperator(GoogleCloudBaseOperator):
|
|
560
548
|
timeout: float | None = None,
|
561
549
|
metadata: Sequence[tuple[str, str]] = (),
|
562
550
|
gcp_conn_id: str = "google_cloud_default",
|
563
|
-
delegate_to: str | None = None,
|
564
551
|
impersonation_chain: str | Sequence[str] | None = None,
|
565
552
|
**kwargs,
|
566
553
|
) -> None:
|
@@ -572,17 +559,11 @@ class DeleteAutoMLTrainingJobOperator(GoogleCloudBaseOperator):
|
|
572
559
|
self.timeout = timeout
|
573
560
|
self.metadata = metadata
|
574
561
|
self.gcp_conn_id = gcp_conn_id
|
575
|
-
if delegate_to:
|
576
|
-
warnings.warn(
|
577
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
578
|
-
)
|
579
|
-
self.delegate_to = delegate_to
|
580
562
|
self.impersonation_chain = impersonation_chain
|
581
563
|
|
582
564
|
def execute(self, context: Context):
|
583
565
|
hook = AutoMLHook(
|
584
566
|
gcp_conn_id=self.gcp_conn_id,
|
585
|
-
delegate_to=self.delegate_to,
|
586
567
|
impersonation_chain=self.impersonation_chain,
|
587
568
|
)
|
588
569
|
try:
|
@@ -628,7 +609,6 @@ class ListAutoMLTrainingJobOperator(GoogleCloudBaseOperator):
|
|
628
609
|
timeout: float | None = None,
|
629
610
|
metadata: Sequence[tuple[str, str]] = (),
|
630
611
|
gcp_conn_id: str = "google_cloud_default",
|
631
|
-
delegate_to: str | None = None,
|
632
612
|
impersonation_chain: str | Sequence[str] | None = None,
|
633
613
|
**kwargs,
|
634
614
|
) -> None:
|
@@ -643,17 +623,11 @@ class ListAutoMLTrainingJobOperator(GoogleCloudBaseOperator):
|
|
643
623
|
self.timeout = timeout
|
644
624
|
self.metadata = metadata
|
645
625
|
self.gcp_conn_id = gcp_conn_id
|
646
|
-
if delegate_to:
|
647
|
-
warnings.warn(
|
648
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
649
|
-
)
|
650
|
-
self.delegate_to = delegate_to
|
651
626
|
self.impersonation_chain = impersonation_chain
|
652
627
|
|
653
628
|
def execute(self, context: Context):
|
654
629
|
hook = AutoMLHook(
|
655
630
|
gcp_conn_id=self.gcp_conn_id,
|
656
|
-
delegate_to=self.delegate_to,
|
657
631
|
impersonation_chain=self.impersonation_chain,
|
658
632
|
)
|
659
633
|
results = hook.list_training_pipelines(
|
@@ -26,7 +26,6 @@
|
|
26
26
|
"""
|
27
27
|
from __future__ import annotations
|
28
28
|
|
29
|
-
import warnings
|
30
29
|
from typing import TYPE_CHECKING, Sequence
|
31
30
|
|
32
31
|
from google.api_core.exceptions import NotFound
|
@@ -144,9 +143,6 @@ class CreateBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
144
143
|
:param timeout: The timeout for this request.
|
145
144
|
:param metadata: Strings which should be sent along with the request as metadata.
|
146
145
|
:param gcp_conn_id: The connection ID to use connecting to Google Cloud.
|
147
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
148
|
-
if any. For this to work, the service account making the request must have
|
149
|
-
domain-wide delegation enabled.
|
150
146
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
151
147
|
credentials, or chained list of accounts required to get the access_token
|
152
148
|
of the last account in the list, which will be impersonated in the request.
|
@@ -186,7 +182,6 @@ class CreateBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
186
182
|
encryption_spec_key_name: str | None = None,
|
187
183
|
sync: bool = True,
|
188
184
|
gcp_conn_id: str = "google_cloud_default",
|
189
|
-
delegate_to: str | None = None,
|
190
185
|
impersonation_chain: str | Sequence[str] | None = None,
|
191
186
|
**kwargs,
|
192
187
|
) -> None:
|
@@ -214,11 +209,6 @@ class CreateBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
214
209
|
self.encryption_spec_key_name = encryption_spec_key_name
|
215
210
|
self.sync = sync
|
216
211
|
self.gcp_conn_id = gcp_conn_id
|
217
|
-
if delegate_to:
|
218
|
-
warnings.warn(
|
219
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
220
|
-
)
|
221
|
-
self.delegate_to = delegate_to
|
222
212
|
self.impersonation_chain = impersonation_chain
|
223
213
|
self.hook: BatchPredictionJobHook | None = None
|
224
214
|
|
@@ -226,7 +216,6 @@ class CreateBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
226
216
|
self.log.info("Creating Batch prediction job")
|
227
217
|
self.hook = BatchPredictionJobHook(
|
228
218
|
gcp_conn_id=self.gcp_conn_id,
|
229
|
-
delegate_to=self.delegate_to,
|
230
219
|
impersonation_chain=self.impersonation_chain,
|
231
220
|
)
|
232
221
|
result = self.hook.create_batch_prediction_job(
|
@@ -284,9 +273,6 @@ class DeleteBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
284
273
|
:param timeout: The timeout for this request.
|
285
274
|
:param metadata: Strings which should be sent along with the request as metadata.
|
286
275
|
:param gcp_conn_id: The connection ID to use connecting to Google Cloud.
|
287
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
288
|
-
if any. For this to work, the service account making the request must have
|
289
|
-
domain-wide delegation enabled.
|
290
276
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
291
277
|
credentials, or chained list of accounts required to get the access_token
|
292
278
|
of the last account in the list, which will be impersonated in the request.
|
@@ -309,7 +295,6 @@ class DeleteBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
309
295
|
timeout: float | None = None,
|
310
296
|
metadata: Sequence[tuple[str, str]] = (),
|
311
297
|
gcp_conn_id: str = "google_cloud_default",
|
312
|
-
delegate_to: str | None = None,
|
313
298
|
impersonation_chain: str | Sequence[str] | None = None,
|
314
299
|
**kwargs,
|
315
300
|
) -> None:
|
@@ -321,17 +306,11 @@ class DeleteBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
321
306
|
self.timeout = timeout
|
322
307
|
self.metadata = metadata
|
323
308
|
self.gcp_conn_id = gcp_conn_id
|
324
|
-
if delegate_to:
|
325
|
-
warnings.warn(
|
326
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
327
|
-
)
|
328
|
-
self.delegate_to = delegate_to
|
329
309
|
self.impersonation_chain = impersonation_chain
|
330
310
|
|
331
311
|
def execute(self, context: Context):
|
332
312
|
hook = BatchPredictionJobHook(
|
333
313
|
gcp_conn_id=self.gcp_conn_id,
|
334
|
-
delegate_to=self.delegate_to,
|
335
314
|
impersonation_chain=self.impersonation_chain,
|
336
315
|
)
|
337
316
|
|
@@ -362,9 +341,6 @@ class GetBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
362
341
|
:param timeout: The timeout for this request.
|
363
342
|
:param metadata: Strings which should be sent along with the request as metadata.
|
364
343
|
:param gcp_conn_id: The connection ID to use connecting to Google Cloud.
|
365
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
366
|
-
if any. For this to work, the service account making the request must have
|
367
|
-
domain-wide delegation enabled.
|
368
344
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
369
345
|
credentials, or chained list of accounts required to get the access_token
|
370
346
|
of the last account in the list, which will be impersonated in the request.
|
@@ -388,7 +364,6 @@ class GetBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
388
364
|
timeout: float | None = None,
|
389
365
|
metadata: Sequence[tuple[str, str]] = (),
|
390
366
|
gcp_conn_id: str = "google_cloud_default",
|
391
|
-
delegate_to: str | None = None,
|
392
367
|
impersonation_chain: str | Sequence[str] | None = None,
|
393
368
|
**kwargs,
|
394
369
|
) -> None:
|
@@ -400,17 +375,11 @@ class GetBatchPredictionJobOperator(GoogleCloudBaseOperator):
|
|
400
375
|
self.timeout = timeout
|
401
376
|
self.metadata = metadata
|
402
377
|
self.gcp_conn_id = gcp_conn_id
|
403
|
-
if delegate_to:
|
404
|
-
warnings.warn(
|
405
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
406
|
-
)
|
407
|
-
self.delegate_to = delegate_to
|
408
378
|
self.impersonation_chain = impersonation_chain
|
409
379
|
|
410
380
|
def execute(self, context: Context):
|
411
381
|
hook = BatchPredictionJobHook(
|
412
382
|
gcp_conn_id=self.gcp_conn_id,
|
413
|
-
delegate_to=self.delegate_to,
|
414
383
|
impersonation_chain=self.impersonation_chain,
|
415
384
|
)
|
416
385
|
|
@@ -456,9 +425,6 @@ class ListBatchPredictionJobsOperator(GoogleCloudBaseOperator):
|
|
456
425
|
:param timeout: The timeout for this request.
|
457
426
|
:param metadata: Strings which should be sent along with the request as metadata.
|
458
427
|
:param gcp_conn_id: The connection ID to use connecting to Google Cloud.
|
459
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
460
|
-
if any. For this to work, the service account making the request must have
|
461
|
-
domain-wide delegation enabled.
|
462
428
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
463
429
|
credentials, or chained list of accounts required to get the access_token
|
464
430
|
of the last account in the list, which will be impersonated in the request.
|
@@ -485,7 +451,6 @@ class ListBatchPredictionJobsOperator(GoogleCloudBaseOperator):
|
|
485
451
|
timeout: float | None = None,
|
486
452
|
metadata: Sequence[tuple[str, str]] = (),
|
487
453
|
gcp_conn_id: str = "google_cloud_default",
|
488
|
-
delegate_to: str | None = None,
|
489
454
|
impersonation_chain: str | Sequence[str] | None = None,
|
490
455
|
**kwargs,
|
491
456
|
) -> None:
|
@@ -500,17 +465,11 @@ class ListBatchPredictionJobsOperator(GoogleCloudBaseOperator):
|
|
500
465
|
self.timeout = timeout
|
501
466
|
self.metadata = metadata
|
502
467
|
self.gcp_conn_id = gcp_conn_id
|
503
|
-
if delegate_to:
|
504
|
-
warnings.warn(
|
505
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
506
|
-
)
|
507
|
-
self.delegate_to = delegate_to
|
508
468
|
self.impersonation_chain = impersonation_chain
|
509
469
|
|
510
470
|
def execute(self, context: Context):
|
511
471
|
hook = BatchPredictionJobHook(
|
512
472
|
gcp_conn_id=self.gcp_conn_id,
|
513
|
-
delegate_to=self.delegate_to,
|
514
473
|
impersonation_chain=self.impersonation_chain,
|
515
474
|
)
|
516
475
|
results = hook.list_batch_prediction_jobs(
|