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.
Files changed (122) hide show
  1. airflow/providers/google/cloud/hooks/automl.py +5 -6
  2. airflow/providers/google/cloud/hooks/bigquery.py +5 -6
  3. airflow/providers/google/cloud/hooks/bigquery_dts.py +11 -8
  4. airflow/providers/google/cloud/hooks/bigtable.py +5 -6
  5. airflow/providers/google/cloud/hooks/cloud_build.py +14 -11
  6. airflow/providers/google/cloud/hooks/cloud_composer.py +16 -0
  7. airflow/providers/google/cloud/hooks/cloud_memorystore.py +5 -14
  8. airflow/providers/google/cloud/hooks/cloud_sql.py +5 -7
  9. airflow/providers/google/cloud/hooks/cloud_storage_transfer_service.py +5 -5
  10. airflow/providers/google/cloud/hooks/compute.py +5 -6
  11. airflow/providers/google/cloud/hooks/compute_ssh.py +8 -12
  12. airflow/providers/google/cloud/hooks/datacatalog.py +5 -9
  13. airflow/providers/google/cloud/hooks/dataflow.py +14 -6
  14. airflow/providers/google/cloud/hooks/dataform.py +8 -0
  15. airflow/providers/google/cloud/hooks/datafusion.py +13 -6
  16. airflow/providers/google/cloud/hooks/dataplex.py +5 -8
  17. airflow/providers/google/cloud/hooks/dataproc.py +13 -8
  18. airflow/providers/google/cloud/hooks/dataproc_metastore.py +8 -0
  19. airflow/providers/google/cloud/hooks/datastore.py +5 -6
  20. airflow/providers/google/cloud/hooks/dlp.py +5 -9
  21. airflow/providers/google/cloud/hooks/functions.py +5 -6
  22. airflow/providers/google/cloud/hooks/gcs.py +6 -6
  23. airflow/providers/google/cloud/hooks/gdm.py +5 -6
  24. airflow/providers/google/cloud/hooks/kms.py +5 -9
  25. airflow/providers/google/cloud/hooks/kubernetes_engine.py +6 -4
  26. airflow/providers/google/cloud/hooks/life_sciences.py +5 -9
  27. airflow/providers/google/cloud/hooks/mlengine.py +8 -0
  28. airflow/providers/google/cloud/hooks/natural_language.py +5 -9
  29. airflow/providers/google/cloud/hooks/os_login.py +5 -6
  30. airflow/providers/google/cloud/hooks/pubsub.py +5 -5
  31. airflow/providers/google/cloud/hooks/secret_manager.py +5 -9
  32. airflow/providers/google/cloud/hooks/spanner.py +5 -6
  33. airflow/providers/google/cloud/hooks/speech_to_text.py +5 -9
  34. airflow/providers/google/cloud/hooks/stackdriver.py +5 -6
  35. airflow/providers/google/cloud/hooks/tasks.py +5 -9
  36. airflow/providers/google/cloud/hooks/text_to_speech.py +5 -9
  37. airflow/providers/google/cloud/hooks/translate.py +5 -6
  38. airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py +5 -5
  39. airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py +5 -6
  40. airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py +5 -6
  41. airflow/providers/google/cloud/hooks/vertex_ai/dataset.py +8 -0
  42. airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py +8 -0
  43. airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py +5 -6
  44. airflow/providers/google/cloud/hooks/vertex_ai/model_service.py +8 -0
  45. airflow/providers/google/cloud/hooks/video_intelligence.py +5 -9
  46. airflow/providers/google/cloud/hooks/vision.py +5 -6
  47. airflow/providers/google/cloud/hooks/workflows.py +8 -0
  48. airflow/providers/google/cloud/operators/bigquery.py +1 -148
  49. airflow/providers/google/cloud/operators/cloud_build.py +0 -13
  50. airflow/providers/google/cloud/operators/cloud_composer.py +2 -68
  51. airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py +0 -21
  52. airflow/providers/google/cloud/operators/dataflow.py +2 -72
  53. airflow/providers/google/cloud/operators/dataform.py +5 -141
  54. airflow/providers/google/cloud/operators/datafusion.py +0 -102
  55. airflow/providers/google/cloud/operators/dataplex.py +3 -61
  56. airflow/providers/google/cloud/operators/dataproc.py +5 -13
  57. airflow/providers/google/cloud/operators/datastore.py +2 -86
  58. airflow/providers/google/cloud/operators/gcs.py +1 -43
  59. airflow/providers/google/cloud/operators/mlengine.py +1 -123
  60. airflow/providers/google/cloud/operators/pubsub.py +0 -61
  61. airflow/providers/google/cloud/operators/stackdriver.py +0 -101
  62. airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py +0 -26
  63. airflow/providers/google/cloud/operators/vertex_ai/batch_prediction_job.py +0 -41
  64. airflow/providers/google/cloud/operators/vertex_ai/custom_job.py +0 -39
  65. airflow/providers/google/cloud/operators/vertex_ai/dataset.py +0 -71
  66. airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py +0 -71
  67. airflow/providers/google/cloud/operators/vertex_ai/hyperparameter_tuning_job.py +0 -35
  68. airflow/providers/google/cloud/operators/vertex_ai/model_service.py +0 -41
  69. airflow/providers/google/cloud/sensors/bigquery.py +0 -24
  70. airflow/providers/google/cloud/sensors/cloud_composer.py +0 -10
  71. airflow/providers/google/cloud/sensors/dataflow.py +0 -42
  72. airflow/providers/google/cloud/sensors/dataform.py +0 -12
  73. airflow/providers/google/cloud/sensors/datafusion.py +0 -11
  74. airflow/providers/google/cloud/sensors/dataplex.py +0 -10
  75. airflow/providers/google/cloud/sensors/gcs.py +0 -44
  76. airflow/providers/google/cloud/sensors/pubsub.py +0 -11
  77. airflow/providers/google/cloud/transfers/adls_to_gcs.py +0 -12
  78. airflow/providers/google/cloud/transfers/azure_fileshare_to_gcs.py +0 -12
  79. airflow/providers/google/cloud/transfers/bigquery_to_bigquery.py +0 -10
  80. airflow/providers/google/cloud/transfers/bigquery_to_gcs.py +0 -11
  81. airflow/providers/google/cloud/transfers/bigquery_to_mssql.py +0 -11
  82. airflow/providers/google/cloud/transfers/bigquery_to_mysql.py +0 -11
  83. airflow/providers/google/cloud/transfers/calendar_to_gcs.py +0 -12
  84. airflow/providers/google/cloud/transfers/cassandra_to_gcs.py +0 -11
  85. airflow/providers/google/cloud/transfers/gcs_to_bigquery.py +0 -13
  86. airflow/providers/google/cloud/transfers/gcs_to_gcs.py +0 -11
  87. airflow/providers/google/cloud/transfers/gcs_to_local.py +0 -11
  88. airflow/providers/google/cloud/transfers/gcs_to_sftp.py +0 -11
  89. airflow/providers/google/cloud/transfers/gdrive_to_gcs.py +0 -12
  90. airflow/providers/google/cloud/transfers/gdrive_to_local.py +0 -11
  91. airflow/providers/google/cloud/transfers/local_to_gcs.py +0 -9
  92. airflow/providers/google/cloud/transfers/s3_to_gcs.py +0 -11
  93. airflow/providers/google/cloud/transfers/sftp_to_gcs.py +0 -11
  94. airflow/providers/google/cloud/transfers/sheets_to_gcs.py +0 -12
  95. airflow/providers/google/cloud/transfers/sql_to_gcs.py +0 -11
  96. airflow/providers/google/cloud/triggers/bigquery_dts.py +0 -12
  97. airflow/providers/google/cloud/triggers/cloud_build.py +0 -11
  98. airflow/providers/google/cloud/triggers/cloud_composer.py +0 -9
  99. airflow/providers/google/cloud/triggers/dataflow.py +0 -7
  100. airflow/providers/google/cloud/triggers/datafusion.py +0 -11
  101. airflow/providers/google/cloud/triggers/dataproc.py +2 -8
  102. airflow/providers/google/cloud/triggers/kubernetes_engine.py +0 -4
  103. airflow/providers/google/cloud/triggers/mlengine.py +0 -3
  104. airflow/providers/google/common/hooks/discovery_api.py +0 -7
  105. airflow/providers/google/firebase/hooks/firestore.py +0 -10
  106. airflow/providers/google/get_provider_info.py +1 -0
  107. airflow/providers/google/marketing_platform/example_dags/example_display_video.py +0 -64
  108. airflow/providers/google/marketing_platform/hooks/campaign_manager.py +3 -3
  109. airflow/providers/google/marketing_platform/hooks/display_video.py +7 -38
  110. airflow/providers/google/marketing_platform/operators/campaign_manager.py +22 -22
  111. airflow/providers/google/marketing_platform/operators/display_video.py +0 -284
  112. airflow/providers/google/marketing_platform/sensors/campaign_manager.py +3 -3
  113. airflow/providers/google/marketing_platform/sensors/display_video.py +0 -65
  114. airflow/providers/google/suite/transfers/gcs_to_gdrive.py +0 -4
  115. airflow/providers/google/suite/transfers/gcs_to_sheets.py +0 -4
  116. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/METADATA +33 -4
  117. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/RECORD +122 -122
  118. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/LICENSE +0 -0
  119. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/NOTICE +0 -0
  120. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/WHEEL +0 -0
  121. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/entry_points.txt +0 -0
  122. {apache_airflow_providers_google-9.0.0rc2.dist-info → apache_airflow_providers_google-10.0.0rc1.dist-info}/top_level.txt +0 -0
@@ -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
@@ -93,7 +92,6 @@ class CustomTrainingJobBaseOperator(GoogleCloudBaseOperator):
93
92
  tensorboard: str | None = None,
94
93
  sync=True,
95
94
  gcp_conn_id: str = "google_cloud_default",
96
- delegate_to: str | None = None,
97
95
  impersonation_chain: str | Sequence[str] | None = None,
98
96
  **kwargs,
99
97
  ) -> None:
@@ -148,11 +146,6 @@ class CustomTrainingJobBaseOperator(GoogleCloudBaseOperator):
148
146
  self.sync = sync
149
147
  # END Run param
150
148
  self.gcp_conn_id = gcp_conn_id
151
- if delegate_to:
152
- warnings.warn(
153
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
154
- )
155
- self.delegate_to = delegate_to
156
149
  self.impersonation_chain = impersonation_chain
157
150
 
158
151
 
@@ -402,9 +395,6 @@ class CreateCustomContainerTrainingJobOperator(CustomTrainingJobBaseOperator):
402
395
  will be executed in concurrent Future and any downstream object will
403
396
  be immediately returned and synced when the Future has completed.
404
397
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
405
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
406
- if any. For this to work, the service account making the request must have
407
- domain-wide delegation enabled.
408
398
  :param impersonation_chain: Optional service account to impersonate using short-term
409
399
  credentials, or chained list of accounts required to get the access_token
410
400
  of the last account in the list, which will be impersonated in the request.
@@ -435,7 +425,6 @@ class CreateCustomContainerTrainingJobOperator(CustomTrainingJobBaseOperator):
435
425
  def execute(self, context: Context):
436
426
  self.hook = CustomJobHook(
437
427
  gcp_conn_id=self.gcp_conn_id,
438
- delegate_to=self.delegate_to,
439
428
  impersonation_chain=self.impersonation_chain,
440
429
  )
441
430
  model, training_id, custom_job_id = self.hook.create_custom_container_training_job(
@@ -754,9 +743,6 @@ class CreateCustomPythonPackageTrainingJobOperator(CustomTrainingJobBaseOperator
754
743
  will be executed in concurrent Future and any downstream object will
755
744
  be immediately returned and synced when the Future has completed.
756
745
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
757
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
758
- if any. For this to work, the service account making the request must have
759
- domain-wide delegation enabled.
760
746
  :param impersonation_chain: Optional service account to impersonate using short-term
761
747
  credentials, or chained list of accounts required to get the access_token
762
748
  of the last account in the list, which will be impersonated in the request.
@@ -788,7 +774,6 @@ class CreateCustomPythonPackageTrainingJobOperator(CustomTrainingJobBaseOperator
788
774
  def execute(self, context: Context):
789
775
  self.hook = CustomJobHook(
790
776
  gcp_conn_id=self.gcp_conn_id,
791
- delegate_to=self.delegate_to,
792
777
  impersonation_chain=self.impersonation_chain,
793
778
  )
794
779
  model, training_id, custom_job_id = self.hook.create_custom_python_package_training_job(
@@ -1108,9 +1093,6 @@ class CreateCustomTrainingJobOperator(CustomTrainingJobBaseOperator):
1108
1093
  will be executed in concurrent Future and any downstream object will
1109
1094
  be immediately returned and synced when the Future has completed.
1110
1095
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
1111
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
1112
- if any. For this to work, the service account making the request must have
1113
- domain-wide delegation enabled.
1114
1096
  :param impersonation_chain: Optional service account to impersonate using short-term
1115
1097
  credentials, or chained list of accounts required to get the access_token
1116
1098
  of the last account in the list, which will be impersonated in the request.
@@ -1144,7 +1126,6 @@ class CreateCustomTrainingJobOperator(CustomTrainingJobBaseOperator):
1144
1126
  def execute(self, context: Context):
1145
1127
  self.hook = CustomJobHook(
1146
1128
  gcp_conn_id=self.gcp_conn_id,
1147
- delegate_to=self.delegate_to,
1148
1129
  impersonation_chain=self.impersonation_chain,
1149
1130
  )
1150
1131
  model, training_id, custom_job_id = self.hook.create_custom_training_job(
@@ -1229,9 +1210,6 @@ class DeleteCustomTrainingJobOperator(GoogleCloudBaseOperator):
1229
1210
  :param timeout: The timeout for this request.
1230
1211
  :param metadata: Strings which should be sent along with the request as metadata.
1231
1212
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
1232
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
1233
- if any. For this to work, the service account making the request must have
1234
- domain-wide delegation enabled.
1235
1213
  :param impersonation_chain: Optional service account to impersonate using short-term
1236
1214
  credentials, or chained list of accounts required to get the access_token
1237
1215
  of the last account in the list, which will be impersonated in the request.
@@ -1255,7 +1233,6 @@ class DeleteCustomTrainingJobOperator(GoogleCloudBaseOperator):
1255
1233
  timeout: float | None = None,
1256
1234
  metadata: Sequence[tuple[str, str]] = (),
1257
1235
  gcp_conn_id: str = "google_cloud_default",
1258
- delegate_to: str | None = None,
1259
1236
  impersonation_chain: str | Sequence[str] | None = None,
1260
1237
  **kwargs,
1261
1238
  ) -> None:
@@ -1268,17 +1245,11 @@ class DeleteCustomTrainingJobOperator(GoogleCloudBaseOperator):
1268
1245
  self.timeout = timeout
1269
1246
  self.metadata = metadata
1270
1247
  self.gcp_conn_id = gcp_conn_id
1271
- if delegate_to:
1272
- warnings.warn(
1273
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
1274
- )
1275
- self.delegate_to = delegate_to
1276
1248
  self.impersonation_chain = impersonation_chain
1277
1249
 
1278
1250
  def execute(self, context: Context):
1279
1251
  hook = CustomJobHook(
1280
1252
  gcp_conn_id=self.gcp_conn_id,
1281
- delegate_to=self.delegate_to,
1282
1253
  impersonation_chain=self.impersonation_chain,
1283
1254
  )
1284
1255
  try:
@@ -1342,9 +1313,6 @@ class ListCustomTrainingJobOperator(GoogleCloudBaseOperator):
1342
1313
  :param timeout: The timeout for this request.
1343
1314
  :param metadata: Strings which should be sent along with the request as metadata.
1344
1315
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
1345
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
1346
- if any. For this to work, the service account making the request must have
1347
- domain-wide delegation enabled.
1348
1316
  :param impersonation_chain: Optional service account to impersonate using short-term
1349
1317
  credentials, or chained list of accounts required to get the access_token
1350
1318
  of the last account in the list, which will be impersonated in the request.
@@ -1377,7 +1345,6 @@ class ListCustomTrainingJobOperator(GoogleCloudBaseOperator):
1377
1345
  timeout: float | None = None,
1378
1346
  metadata: Sequence[tuple[str, str]] = (),
1379
1347
  gcp_conn_id: str = "google_cloud_default",
1380
- delegate_to: str | None = None,
1381
1348
  impersonation_chain: str | Sequence[str] | None = None,
1382
1349
  **kwargs,
1383
1350
  ) -> None:
@@ -1392,17 +1359,11 @@ class ListCustomTrainingJobOperator(GoogleCloudBaseOperator):
1392
1359
  self.timeout = timeout
1393
1360
  self.metadata = metadata
1394
1361
  self.gcp_conn_id = gcp_conn_id
1395
- if delegate_to:
1396
- warnings.warn(
1397
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
1398
- )
1399
- self.delegate_to = delegate_to
1400
1362
  self.impersonation_chain = impersonation_chain
1401
1363
 
1402
1364
  def execute(self, context: Context):
1403
1365
  hook = CustomJobHook(
1404
1366
  gcp_conn_id=self.gcp_conn_id,
1405
- delegate_to=self.delegate_to,
1406
1367
  impersonation_chain=self.impersonation_chain,
1407
1368
  )
1408
1369
  results = hook.list_training_pipelines(
@@ -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
@@ -47,9 +46,6 @@ class CreateDatasetOperator(GoogleCloudBaseOperator):
47
46
  :param timeout: The timeout for this request.
48
47
  :param metadata: Strings which should be sent along with the request as metadata.
49
48
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
50
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
51
- if any. For this to work, the service account making the request must have
52
- domain-wide delegation enabled.
53
49
  :param impersonation_chain: Optional service account to impersonate using short-term
54
50
  credentials, or chained list of accounts required to get the access_token
55
51
  of the last account in the list, which will be impersonated in the request.
@@ -73,7 +69,6 @@ class CreateDatasetOperator(GoogleCloudBaseOperator):
73
69
  timeout: float | None = None,
74
70
  metadata: Sequence[tuple[str, str]] = (),
75
71
  gcp_conn_id: str = "google_cloud_default",
76
- delegate_to: str | None = None,
77
72
  impersonation_chain: str | Sequence[str] | None = None,
78
73
  **kwargs,
79
74
  ) -> None:
@@ -85,17 +80,11 @@ class CreateDatasetOperator(GoogleCloudBaseOperator):
85
80
  self.timeout = timeout
86
81
  self.metadata = metadata
87
82
  self.gcp_conn_id = gcp_conn_id
88
- if delegate_to:
89
- warnings.warn(
90
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
91
- )
92
- self.delegate_to = delegate_to
93
83
  self.impersonation_chain = impersonation_chain
94
84
 
95
85
  def execute(self, context: Context):
96
86
  hook = DatasetHook(
97
87
  gcp_conn_id=self.gcp_conn_id,
98
- delegate_to=self.delegate_to,
99
88
  impersonation_chain=self.impersonation_chain,
100
89
  )
101
90
 
@@ -130,9 +119,6 @@ class GetDatasetOperator(GoogleCloudBaseOperator):
130
119
  :param timeout: The timeout for this request.
131
120
  :param metadata: Strings which should be sent along with the request as metadata.
132
121
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
133
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
134
- if any. For this to work, the service account making the request must have
135
- domain-wide delegation enabled.
136
122
  :param impersonation_chain: Optional service account to impersonate using short-term
137
123
  credentials, or chained list of accounts required to get the access_token
138
124
  of the last account in the list, which will be impersonated in the request.
@@ -157,7 +143,6 @@ class GetDatasetOperator(GoogleCloudBaseOperator):
157
143
  timeout: float | None = None,
158
144
  metadata: Sequence[tuple[str, str]] = (),
159
145
  gcp_conn_id: str = "google_cloud_default",
160
- delegate_to: str | None = None,
161
146
  impersonation_chain: str | Sequence[str] | None = None,
162
147
  **kwargs,
163
148
  ) -> None:
@@ -170,17 +155,11 @@ class GetDatasetOperator(GoogleCloudBaseOperator):
170
155
  self.timeout = timeout
171
156
  self.metadata = metadata
172
157
  self.gcp_conn_id = gcp_conn_id
173
- if delegate_to:
174
- warnings.warn(
175
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
176
- )
177
- self.delegate_to = delegate_to
178
158
  self.impersonation_chain = impersonation_chain
179
159
 
180
160
  def execute(self, context: Context):
181
161
  hook = DatasetHook(
182
162
  gcp_conn_id=self.gcp_conn_id,
183
- delegate_to=self.delegate_to,
184
163
  impersonation_chain=self.impersonation_chain,
185
164
  )
186
165
 
@@ -213,9 +192,6 @@ class DeleteDatasetOperator(GoogleCloudBaseOperator):
213
192
  :param timeout: The timeout for this request.
214
193
  :param metadata: Strings which should be sent along with the request as metadata.
215
194
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
216
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
217
- if any. For this to work, the service account making the request must have
218
- domain-wide delegation enabled.
219
195
  :param impersonation_chain: Optional service account to impersonate using short-term
220
196
  credentials, or chained list of accounts required to get the access_token
221
197
  of the last account in the list, which will be impersonated in the request.
@@ -238,7 +214,6 @@ class DeleteDatasetOperator(GoogleCloudBaseOperator):
238
214
  timeout: float | None = None,
239
215
  metadata: Sequence[tuple[str, str]] = (),
240
216
  gcp_conn_id: str = "google_cloud_default",
241
- delegate_to: str | None = None,
242
217
  impersonation_chain: str | Sequence[str] | None = None,
243
218
  **kwargs,
244
219
  ) -> None:
@@ -250,17 +225,11 @@ class DeleteDatasetOperator(GoogleCloudBaseOperator):
250
225
  self.timeout = timeout
251
226
  self.metadata = metadata
252
227
  self.gcp_conn_id = gcp_conn_id
253
- if delegate_to:
254
- warnings.warn(
255
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
256
- )
257
- self.delegate_to = delegate_to
258
228
  self.impersonation_chain = impersonation_chain
259
229
 
260
230
  def execute(self, context: Context):
261
231
  hook = DatasetHook(
262
232
  gcp_conn_id=self.gcp_conn_id,
263
- delegate_to=self.delegate_to,
264
233
  impersonation_chain=self.impersonation_chain,
265
234
  )
266
235
 
@@ -292,9 +261,6 @@ class ExportDataOperator(GoogleCloudBaseOperator):
292
261
  :param timeout: The timeout for this request.
293
262
  :param metadata: Strings which should be sent along with the request as metadata.
294
263
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
295
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
296
- if any. For this to work, the service account making the request must have
297
- domain-wide delegation enabled.
298
264
  :param impersonation_chain: Optional service account to impersonate using short-term
299
265
  credentials, or chained list of accounts required to get the access_token
300
266
  of the last account in the list, which will be impersonated in the request.
@@ -318,7 +284,6 @@ class ExportDataOperator(GoogleCloudBaseOperator):
318
284
  timeout: float | None = None,
319
285
  metadata: Sequence[tuple[str, str]] = (),
320
286
  gcp_conn_id: str = "google_cloud_default",
321
- delegate_to: str | None = None,
322
287
  impersonation_chain: str | Sequence[str] | None = None,
323
288
  **kwargs,
324
289
  ) -> None:
@@ -331,17 +296,11 @@ class ExportDataOperator(GoogleCloudBaseOperator):
331
296
  self.timeout = timeout
332
297
  self.metadata = metadata
333
298
  self.gcp_conn_id = gcp_conn_id
334
- if delegate_to:
335
- warnings.warn(
336
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
337
- )
338
- self.delegate_to = delegate_to
339
299
  self.impersonation_chain = impersonation_chain
340
300
 
341
301
  def execute(self, context: Context):
342
302
  hook = DatasetHook(
343
303
  gcp_conn_id=self.gcp_conn_id,
344
- delegate_to=self.delegate_to,
345
304
  impersonation_chain=self.impersonation_chain,
346
305
  )
347
306
 
@@ -372,9 +331,6 @@ class ImportDataOperator(GoogleCloudBaseOperator):
372
331
  :param timeout: The timeout for this request.
373
332
  :param metadata: Strings which should be sent along with the request as metadata.
374
333
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
375
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
376
- if any. For this to work, the service account making the request must have
377
- domain-wide delegation enabled.
378
334
  :param impersonation_chain: Optional service account to impersonate using short-term
379
335
  credentials, or chained list of accounts required to get the access_token
380
336
  of the last account in the list, which will be impersonated in the request.
@@ -398,7 +354,6 @@ class ImportDataOperator(GoogleCloudBaseOperator):
398
354
  timeout: float | None = None,
399
355
  metadata: Sequence[tuple[str, str]] = (),
400
356
  gcp_conn_id: str = "google_cloud_default",
401
- delegate_to: str | None = None,
402
357
  impersonation_chain: str | Sequence[str] | None = None,
403
358
  **kwargs,
404
359
  ) -> None:
@@ -411,17 +366,11 @@ class ImportDataOperator(GoogleCloudBaseOperator):
411
366
  self.timeout = timeout
412
367
  self.metadata = metadata
413
368
  self.gcp_conn_id = gcp_conn_id
414
- if delegate_to:
415
- warnings.warn(
416
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
417
- )
418
- self.delegate_to = delegate_to
419
369
  self.impersonation_chain = impersonation_chain
420
370
 
421
371
  def execute(self, context: Context):
422
372
  hook = DatasetHook(
423
373
  gcp_conn_id=self.gcp_conn_id,
424
- delegate_to=self.delegate_to,
425
374
  impersonation_chain=self.impersonation_chain,
426
375
  )
427
376
 
@@ -455,9 +404,6 @@ class ListDatasetsOperator(GoogleCloudBaseOperator):
455
404
  :param timeout: The timeout for this request.
456
405
  :param metadata: Strings which should be sent along with the request as metadata.
457
406
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
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
407
  :param impersonation_chain: Optional service account to impersonate using short-term
462
408
  credentials, or chained list of accounts required to get the access_token
463
409
  of the last account in the list, which will be impersonated in the request.
@@ -485,7 +431,6 @@ class ListDatasetsOperator(GoogleCloudBaseOperator):
485
431
  timeout: float | None = None,
486
432
  metadata: Sequence[tuple[str, str]] = (),
487
433
  gcp_conn_id: str = "google_cloud_default",
488
- delegate_to: str | None = None,
489
434
  impersonation_chain: str | Sequence[str] | None = None,
490
435
  **kwargs,
491
436
  ) -> None:
@@ -501,17 +446,11 @@ class ListDatasetsOperator(GoogleCloudBaseOperator):
501
446
  self.timeout = timeout
502
447
  self.metadata = metadata
503
448
  self.gcp_conn_id = gcp_conn_id
504
- if delegate_to:
505
- warnings.warn(
506
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
507
- )
508
- self.delegate_to = delegate_to
509
449
  self.impersonation_chain = impersonation_chain
510
450
 
511
451
  def execute(self, context: Context):
512
452
  hook = DatasetHook(
513
453
  gcp_conn_id=self.gcp_conn_id,
514
- delegate_to=self.delegate_to,
515
454
  impersonation_chain=self.impersonation_chain,
516
455
  )
517
456
  results = hook.list_datasets(
@@ -543,9 +482,6 @@ class UpdateDatasetOperator(GoogleCloudBaseOperator):
543
482
  :param timeout: The timeout for this request.
544
483
  :param metadata: Strings which should be sent along with the request as metadata.
545
484
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
546
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
547
- if any. For this to work, the service account making the request must have
548
- domain-wide delegation enabled.
549
485
  :param impersonation_chain: Optional service account to impersonate using short-term
550
486
  credentials, or chained list of accounts required to get the access_token
551
487
  of the last account in the list, which will be impersonated in the request.
@@ -570,7 +506,6 @@ class UpdateDatasetOperator(GoogleCloudBaseOperator):
570
506
  timeout: float | None = None,
571
507
  metadata: Sequence[tuple[str, str]] = (),
572
508
  gcp_conn_id: str = "google_cloud_default",
573
- delegate_to: str | None = None,
574
509
  impersonation_chain: str | Sequence[str] | None = None,
575
510
  **kwargs,
576
511
  ) -> None:
@@ -584,17 +519,11 @@ class UpdateDatasetOperator(GoogleCloudBaseOperator):
584
519
  self.timeout = timeout
585
520
  self.metadata = metadata
586
521
  self.gcp_conn_id = gcp_conn_id
587
- if delegate_to:
588
- warnings.warn(
589
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
590
- )
591
- self.delegate_to = delegate_to
592
522
  self.impersonation_chain = impersonation_chain
593
523
 
594
524
  def execute(self, context: Context):
595
525
  hook = DatasetHook(
596
526
  gcp_conn_id=self.gcp_conn_id,
597
- delegate_to=self.delegate_to,
598
527
  impersonation_chain=self.impersonation_chain,
599
528
  )
600
529
  self.log.info("Updating dataset: %s", self.dataset_id)
@@ -28,7 +28,6 @@
28
28
  """
29
29
  from __future__ import annotations
30
30
 
31
- import warnings
32
31
  from typing import TYPE_CHECKING, Sequence
33
32
 
34
33
  from google.api_core.exceptions import NotFound
@@ -62,9 +61,6 @@ class CreateEndpointOperator(GoogleCloudBaseOperator):
62
61
  :param timeout: The timeout for this request.
63
62
  :param metadata: Strings which should be sent along with the request as metadata.
64
63
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
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 CreateEndpointOperator(GoogleCloudBaseOperator):
89
85
  timeout: float | None = None,
90
86
  metadata: Sequence[tuple[str, str]] = (),
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:
@@ -102,17 +97,11 @@ class CreateEndpointOperator(GoogleCloudBaseOperator):
102
97
  self.timeout = timeout
103
98
  self.metadata = metadata
104
99
  self.gcp_conn_id = gcp_conn_id
105
- if delegate_to:
106
- warnings.warn(
107
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
108
- )
109
- self.delegate_to = delegate_to
110
100
  self.impersonation_chain = impersonation_chain
111
101
 
112
102
  def execute(self, context: Context):
113
103
  hook = EndpointServiceHook(
114
104
  gcp_conn_id=self.gcp_conn_id,
115
- delegate_to=self.delegate_to,
116
105
  impersonation_chain=self.impersonation_chain,
117
106
  )
118
107
 
@@ -148,9 +137,6 @@ class DeleteEndpointOperator(GoogleCloudBaseOperator):
148
137
  :param timeout: The timeout for this request.
149
138
  :param metadata: Strings which should be sent along with the request as metadata.
150
139
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
151
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
152
- if any. For this to work, the service account making the request must have
153
- domain-wide delegation enabled.
154
140
  :param impersonation_chain: Optional service account to impersonate using short-term
155
141
  credentials, or chained list of accounts required to get the access_token
156
142
  of the last account in the list, which will be impersonated in the request.
@@ -173,7 +159,6 @@ class DeleteEndpointOperator(GoogleCloudBaseOperator):
173
159
  timeout: float | None = None,
174
160
  metadata: Sequence[tuple[str, str]] = (),
175
161
  gcp_conn_id: str = "google_cloud_default",
176
- delegate_to: str | None = None,
177
162
  impersonation_chain: str | Sequence[str] | None = None,
178
163
  **kwargs,
179
164
  ) -> None:
@@ -185,17 +170,11 @@ class DeleteEndpointOperator(GoogleCloudBaseOperator):
185
170
  self.timeout = timeout
186
171
  self.metadata = metadata
187
172
  self.gcp_conn_id = gcp_conn_id
188
- if delegate_to:
189
- warnings.warn(
190
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
191
- )
192
- self.delegate_to = delegate_to
193
173
  self.impersonation_chain = impersonation_chain
194
174
 
195
175
  def execute(self, context: Context):
196
176
  hook = EndpointServiceHook(
197
177
  gcp_conn_id=self.gcp_conn_id,
198
- delegate_to=self.delegate_to,
199
178
  impersonation_chain=self.impersonation_chain,
200
179
  )
201
180
 
@@ -242,9 +221,6 @@ class DeployModelOperator(GoogleCloudBaseOperator):
242
221
  :param timeout: The timeout for this request.
243
222
  :param metadata: Strings which should be sent along with the request as metadata.
244
223
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
245
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
246
- if any. For this to work, the service account making the request must have
247
- domain-wide delegation enabled.
248
224
  :param impersonation_chain: Optional service account to impersonate using short-term
249
225
  credentials, or chained list of accounts required to get the access_token
250
226
  of the last account in the list, which will be impersonated in the request.
@@ -270,7 +246,6 @@ class DeployModelOperator(GoogleCloudBaseOperator):
270
246
  timeout: float | None = None,
271
247
  metadata: Sequence[tuple[str, str]] = (),
272
248
  gcp_conn_id: str = "google_cloud_default",
273
- delegate_to: str | None = None,
274
249
  impersonation_chain: str | Sequence[str] | None = None,
275
250
  **kwargs,
276
251
  ) -> None:
@@ -284,17 +259,11 @@ class DeployModelOperator(GoogleCloudBaseOperator):
284
259
  self.timeout = timeout
285
260
  self.metadata = metadata
286
261
  self.gcp_conn_id = gcp_conn_id
287
- if delegate_to:
288
- warnings.warn(
289
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
290
- )
291
- self.delegate_to = delegate_to
292
262
  self.impersonation_chain = impersonation_chain
293
263
 
294
264
  def execute(self, context: Context):
295
265
  hook = EndpointServiceHook(
296
266
  gcp_conn_id=self.gcp_conn_id,
297
- delegate_to=self.delegate_to,
298
267
  impersonation_chain=self.impersonation_chain,
299
268
  )
300
269
 
@@ -331,9 +300,6 @@ class GetEndpointOperator(GoogleCloudBaseOperator):
331
300
  :param timeout: The timeout for this request.
332
301
  :param metadata: Strings which should be sent along with the request as metadata.
333
302
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
334
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
335
- if any. For this to work, the service account making the request must have
336
- domain-wide delegation enabled.
337
303
  :param impersonation_chain: Optional service account to impersonate using short-term
338
304
  credentials, or chained list of accounts required to get the access_token
339
305
  of the last account in the list, which will be impersonated in the request.
@@ -357,7 +323,6 @@ class GetEndpointOperator(GoogleCloudBaseOperator):
357
323
  timeout: float | None = None,
358
324
  metadata: Sequence[tuple[str, str]] = (),
359
325
  gcp_conn_id: str = "google_cloud_default",
360
- delegate_to: str | None = None,
361
326
  impersonation_chain: str | Sequence[str] | None = None,
362
327
  **kwargs,
363
328
  ) -> None:
@@ -369,17 +334,11 @@ class GetEndpointOperator(GoogleCloudBaseOperator):
369
334
  self.timeout = timeout
370
335
  self.metadata = metadata
371
336
  self.gcp_conn_id = gcp_conn_id
372
- if delegate_to:
373
- warnings.warn(
374
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
375
- )
376
- self.delegate_to = delegate_to
377
337
  self.impersonation_chain = impersonation_chain
378
338
 
379
339
  def execute(self, context: Context):
380
340
  hook = EndpointServiceHook(
381
341
  gcp_conn_id=self.gcp_conn_id,
382
- delegate_to=self.delegate_to,
383
342
  impersonation_chain=self.impersonation_chain,
384
343
  )
385
344
 
@@ -432,9 +391,6 @@ class ListEndpointsOperator(GoogleCloudBaseOperator):
432
391
  :param timeout: The timeout for this request.
433
392
  :param metadata: Strings which should be sent along with the request as metadata.
434
393
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
435
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
436
- if any. For this to work, the service account making the request must have
437
- domain-wide delegation enabled.
438
394
  :param impersonation_chain: Optional service account to impersonate using short-term
439
395
  credentials, or chained list of accounts required to get the access_token
440
396
  of the last account in the list, which will be impersonated in the request.
@@ -462,7 +418,6 @@ class ListEndpointsOperator(GoogleCloudBaseOperator):
462
418
  timeout: float | None = None,
463
419
  metadata: Sequence[tuple[str, str]] = (),
464
420
  gcp_conn_id: str = "google_cloud_default",
465
- delegate_to: str | None = None,
466
421
  impersonation_chain: str | Sequence[str] | None = None,
467
422
  **kwargs,
468
423
  ) -> None:
@@ -478,17 +433,11 @@ class ListEndpointsOperator(GoogleCloudBaseOperator):
478
433
  self.timeout = timeout
479
434
  self.metadata = metadata
480
435
  self.gcp_conn_id = gcp_conn_id
481
- if delegate_to:
482
- warnings.warn(
483
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
484
- )
485
- self.delegate_to = delegate_to
486
436
  self.impersonation_chain = impersonation_chain
487
437
 
488
438
  def execute(self, context: Context):
489
439
  hook = EndpointServiceHook(
490
440
  gcp_conn_id=self.gcp_conn_id,
491
- delegate_to=self.delegate_to,
492
441
  impersonation_chain=self.impersonation_chain,
493
442
  )
494
443
  results = hook.list_endpoints(
@@ -527,9 +476,6 @@ class UndeployModelOperator(GoogleCloudBaseOperator):
527
476
  :param timeout: The timeout for this request.
528
477
  :param metadata: Strings which should be sent along with the request as metadata.
529
478
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
530
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
531
- if any. For this to work, the service account making the request must have
532
- domain-wide delegation enabled.
533
479
  :param impersonation_chain: Optional service account to impersonate using short-term
534
480
  credentials, or chained list of accounts required to get the access_token
535
481
  of the last account in the list, which will be impersonated in the request.
@@ -554,7 +500,6 @@ class UndeployModelOperator(GoogleCloudBaseOperator):
554
500
  timeout: float | None = None,
555
501
  metadata: Sequence[tuple[str, str]] = (),
556
502
  gcp_conn_id: str = "google_cloud_default",
557
- delegate_to: str | None = None,
558
503
  impersonation_chain: str | Sequence[str] | None = None,
559
504
  **kwargs,
560
505
  ) -> None:
@@ -568,17 +513,11 @@ class UndeployModelOperator(GoogleCloudBaseOperator):
568
513
  self.timeout = timeout
569
514
  self.metadata = metadata
570
515
  self.gcp_conn_id = gcp_conn_id
571
- if delegate_to:
572
- warnings.warn(
573
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
574
- )
575
- self.delegate_to = delegate_to
576
516
  self.impersonation_chain = impersonation_chain
577
517
 
578
518
  def execute(self, context: Context):
579
519
  hook = EndpointServiceHook(
580
520
  gcp_conn_id=self.gcp_conn_id,
581
- delegate_to=self.delegate_to,
582
521
  impersonation_chain=self.impersonation_chain,
583
522
  )
584
523
 
@@ -611,9 +550,6 @@ class UpdateEndpointOperator(GoogleCloudBaseOperator):
611
550
  :param timeout: The timeout for this request.
612
551
  :param metadata: Strings which should be sent along with the request as metadata.
613
552
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
614
- :param delegate_to: The account to impersonate using domain-wide delegation of authority,
615
- if any. For this to work, the service account making the request must have
616
- domain-wide delegation enabled.
617
553
  :param impersonation_chain: Optional service account to impersonate using short-term
618
554
  credentials, or chained list of accounts required to get the access_token
619
555
  of the last account in the list, which will be impersonated in the request.
@@ -639,7 +575,6 @@ class UpdateEndpointOperator(GoogleCloudBaseOperator):
639
575
  timeout: float | None = None,
640
576
  metadata: Sequence[tuple[str, str]] = (),
641
577
  gcp_conn_id: str = "google_cloud_default",
642
- delegate_to: str | None = None,
643
578
  impersonation_chain: str | Sequence[str] | None = None,
644
579
  **kwargs,
645
580
  ) -> None:
@@ -653,17 +588,11 @@ class UpdateEndpointOperator(GoogleCloudBaseOperator):
653
588
  self.timeout = timeout
654
589
  self.metadata = metadata
655
590
  self.gcp_conn_id = gcp_conn_id
656
- if delegate_to:
657
- warnings.warn(
658
- "'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
659
- )
660
- self.delegate_to = delegate_to
661
591
  self.impersonation_chain = impersonation_chain
662
592
 
663
593
  def execute(self, context: Context):
664
594
  hook = EndpointServiceHook(
665
595
  gcp_conn_id=self.gcp_conn_id,
666
- delegate_to=self.delegate_to,
667
596
  impersonation_chain=self.impersonation_chain,
668
597
  )
669
598
  self.log.info("Updating endpoint: %s", self.endpoint_id)