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
@@ -811,9 +811,6 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
|
|
811
811
|
:param deferrable: Run operator in the deferrable mode
|
812
812
|
:param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
|
813
813
|
Defaults to 4 seconds.
|
814
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
815
|
-
if any. For this to work, the service account making the request must have
|
816
|
-
domain-wide delegation enabled. Deprecated.
|
817
814
|
"""
|
818
815
|
|
819
816
|
template_fields: Sequence[str] = (
|
@@ -838,7 +835,6 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
|
|
838
835
|
location: str | None = None,
|
839
836
|
impersonation_chain: str | Sequence[str] | None = None,
|
840
837
|
deferrable: bool = False,
|
841
|
-
delegate_to: str | None = None,
|
842
838
|
poll_interval: float = 4.0,
|
843
839
|
**kwargs,
|
844
840
|
) -> None:
|
@@ -849,11 +845,6 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
|
|
849
845
|
self.max_results = int(max_results)
|
850
846
|
self.selected_fields = selected_fields
|
851
847
|
self.gcp_conn_id = gcp_conn_id
|
852
|
-
if delegate_to:
|
853
|
-
warnings.warn(
|
854
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
855
|
-
)
|
856
|
-
self.delegate_to = delegate_to
|
857
848
|
self.location = location
|
858
849
|
self.impersonation_chain = impersonation_chain
|
859
850
|
self.project_id = project_id
|
@@ -892,7 +883,6 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
|
|
892
883
|
def execute(self, context: Context):
|
893
884
|
hook = BigQueryHook(
|
894
885
|
gcp_conn_id=self.gcp_conn_id,
|
895
|
-
delegate_to=self.delegate_to,
|
896
886
|
impersonation_chain=self.impersonation_chain,
|
897
887
|
)
|
898
888
|
self.hook = hook
|
@@ -905,6 +895,7 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
|
|
905
895
|
schema: dict[str, list] = hook.get_schema(
|
906
896
|
dataset_id=self.dataset_id,
|
907
897
|
table_id=self.table_id,
|
898
|
+
project_id=self.project_id,
|
908
899
|
)
|
909
900
|
if "fields" in schema:
|
910
901
|
self.selected_fields = ",".join([field["name"] for field in schema["fields"]])
|
@@ -976,9 +967,6 @@ class BigQueryExecuteQueryOperator(GoogleCloudBaseOperator):
|
|
976
967
|
must be ``true`` if this is set to ``false``. For standard SQL queries, this
|
977
968
|
flag is ignored and results are never flattened.
|
978
969
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
979
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
980
|
-
if any. For this to work, the service account making the request must have
|
981
|
-
domain-wide delegation enabled.
|
982
970
|
:param udf_config: The User Defined Function configuration for the query.
|
983
971
|
See https://cloud.google.com/bigquery/user-defined-functions for details.
|
984
972
|
:param use_legacy_sql: Whether to use legacy SQL (true) or standard SQL (false).
|
@@ -1059,7 +1047,6 @@ class BigQueryExecuteQueryOperator(GoogleCloudBaseOperator):
|
|
1059
1047
|
allow_large_results: bool = False,
|
1060
1048
|
flatten_results: bool | None = None,
|
1061
1049
|
gcp_conn_id: str = "google_cloud_default",
|
1062
|
-
delegate_to: str | None = None,
|
1063
1050
|
udf_config: list | None = None,
|
1064
1051
|
use_legacy_sql: bool = True,
|
1065
1052
|
maximum_billing_tier: int | None = None,
|
@@ -1091,7 +1078,6 @@ class BigQueryExecuteQueryOperator(GoogleCloudBaseOperator):
|
|
1091
1078
|
self.allow_large_results = allow_large_results
|
1092
1079
|
self.flatten_results = flatten_results
|
1093
1080
|
self.gcp_conn_id = gcp_conn_id
|
1094
|
-
self.delegate_to = delegate_to
|
1095
1081
|
self.udf_config = udf_config
|
1096
1082
|
self.use_legacy_sql = use_legacy_sql
|
1097
1083
|
self.maximum_billing_tier = maximum_billing_tier
|
@@ -1114,7 +1100,6 @@ class BigQueryExecuteQueryOperator(GoogleCloudBaseOperator):
|
|
1114
1100
|
self.hook = BigQueryHook(
|
1115
1101
|
gcp_conn_id=self.gcp_conn_id,
|
1116
1102
|
use_legacy_sql=self.use_legacy_sql,
|
1117
|
-
delegate_to=self.delegate_to,
|
1118
1103
|
location=self.location,
|
1119
1104
|
impersonation_chain=self.impersonation_chain,
|
1120
1105
|
)
|
@@ -1213,9 +1198,6 @@ class BigQueryCreateEmptyTableOperator(GoogleCloudBaseOperator):
|
|
1213
1198
|
interact with the Bigquery service.
|
1214
1199
|
:param google_cloud_storage_conn_id: [Optional] The connection ID used to connect to Google Cloud.
|
1215
1200
|
and interact with the Google Cloud Storage service.
|
1216
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
1217
|
-
if any. For this to work, the service account making the request must have
|
1218
|
-
domain-wide delegation enabled.
|
1219
1201
|
:param labels: a dictionary containing labels for the table, passed to BigQuery
|
1220
1202
|
|
1221
1203
|
**Example (with schema JSON in GCS)**: ::
|
@@ -1325,7 +1307,6 @@ class BigQueryCreateEmptyTableOperator(GoogleCloudBaseOperator):
|
|
1325
1307
|
cluster_fields: list[str] | None = None,
|
1326
1308
|
impersonation_chain: str | Sequence[str] | None = None,
|
1327
1309
|
if_exists: str = "log",
|
1328
|
-
delegate_to: str | None = None,
|
1329
1310
|
bigquery_conn_id: str | None = None,
|
1330
1311
|
exists_ok: bool | None = None,
|
1331
1312
|
**kwargs,
|
@@ -1347,11 +1328,6 @@ class BigQueryCreateEmptyTableOperator(GoogleCloudBaseOperator):
|
|
1347
1328
|
self.gcs_schema_object = gcs_schema_object
|
1348
1329
|
self.gcp_conn_id = gcp_conn_id
|
1349
1330
|
self.google_cloud_storage_conn_id = google_cloud_storage_conn_id
|
1350
|
-
if delegate_to:
|
1351
|
-
warnings.warn(
|
1352
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1353
|
-
)
|
1354
|
-
self.delegate_to = delegate_to
|
1355
1331
|
self.time_partitioning = {} if time_partitioning is None else time_partitioning
|
1356
1332
|
self.labels = labels
|
1357
1333
|
self.view = view
|
@@ -1370,7 +1346,6 @@ class BigQueryCreateEmptyTableOperator(GoogleCloudBaseOperator):
|
|
1370
1346
|
def execute(self, context: Context) -> None:
|
1371
1347
|
bq_hook = BigQueryHook(
|
1372
1348
|
gcp_conn_id=self.gcp_conn_id,
|
1373
|
-
delegate_to=self.delegate_to,
|
1374
1349
|
location=self.location,
|
1375
1350
|
impersonation_chain=self.impersonation_chain,
|
1376
1351
|
)
|
@@ -1379,7 +1354,6 @@ class BigQueryCreateEmptyTableOperator(GoogleCloudBaseOperator):
|
|
1379
1354
|
gcs_bucket, gcs_object = _parse_gcs_url(self.gcs_schema_object)
|
1380
1355
|
gcs_hook = GCSHook(
|
1381
1356
|
gcp_conn_id=self.google_cloud_storage_conn_id,
|
1382
|
-
delegate_to=self.delegate_to,
|
1383
1357
|
impersonation_chain=self.impersonation_chain,
|
1384
1358
|
)
|
1385
1359
|
schema_fields_string = gcs_hook.download_as_byte_array(gcs_bucket, gcs_object).decode("utf-8")
|
@@ -1481,9 +1455,6 @@ class BigQueryCreateExternalTableOperator(GoogleCloudBaseOperator):
|
|
1481
1455
|
interact with the Bigquery service.
|
1482
1456
|
:param google_cloud_storage_conn_id: (Optional) The connection ID used to connect to Google Cloud
|
1483
1457
|
and interact with the Google Cloud Storage service.
|
1484
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
1485
|
-
if any. For this to work, the service account making the request must have
|
1486
|
-
domain-wide delegation enabled.
|
1487
1458
|
:param src_fmt_configs: configure optional fields specific to the source format
|
1488
1459
|
:param labels: a dictionary containing labels for the table, passed to BigQuery
|
1489
1460
|
:param encryption_configuration: [Optional] Custom encryption configuration (e.g., Cloud KMS keys).
|
@@ -1541,7 +1512,6 @@ class BigQueryCreateExternalTableOperator(GoogleCloudBaseOperator):
|
|
1541
1512
|
encryption_configuration: dict | None = None,
|
1542
1513
|
location: str | None = None,
|
1543
1514
|
impersonation_chain: str | Sequence[str] | None = None,
|
1544
|
-
delegate_to: str | None = None,
|
1545
1515
|
bigquery_conn_id: str | None = None,
|
1546
1516
|
**kwargs,
|
1547
1517
|
) -> None:
|
@@ -1624,11 +1594,6 @@ class BigQueryCreateExternalTableOperator(GoogleCloudBaseOperator):
|
|
1624
1594
|
self.allow_jagged_rows = allow_jagged_rows
|
1625
1595
|
self.gcp_conn_id = gcp_conn_id
|
1626
1596
|
self.google_cloud_storage_conn_id = google_cloud_storage_conn_id
|
1627
|
-
if delegate_to:
|
1628
|
-
warnings.warn(
|
1629
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1630
|
-
)
|
1631
|
-
self.delegate_to = delegate_to
|
1632
1597
|
self.autodetect = autodetect
|
1633
1598
|
|
1634
1599
|
self.src_fmt_configs = src_fmt_configs or {}
|
@@ -1640,7 +1605,6 @@ class BigQueryCreateExternalTableOperator(GoogleCloudBaseOperator):
|
|
1640
1605
|
def execute(self, context: Context) -> None:
|
1641
1606
|
bq_hook = BigQueryHook(
|
1642
1607
|
gcp_conn_id=self.gcp_conn_id,
|
1643
|
-
delegate_to=self.delegate_to,
|
1644
1608
|
location=self.location,
|
1645
1609
|
impersonation_chain=self.impersonation_chain,
|
1646
1610
|
)
|
@@ -1660,7 +1624,6 @@ class BigQueryCreateExternalTableOperator(GoogleCloudBaseOperator):
|
|
1660
1624
|
if not self.schema_fields and self.schema_object and self.source_format != "DATASTORE_BACKUP":
|
1661
1625
|
gcs_hook = GCSHook(
|
1662
1626
|
gcp_conn_id=self.google_cloud_storage_conn_id,
|
1663
|
-
delegate_to=self.delegate_to,
|
1664
1627
|
impersonation_chain=self.impersonation_chain,
|
1665
1628
|
)
|
1666
1629
|
schema_fields = json.loads(gcs_hook.download(self.bucket, self.schema_object).decode("utf-8"))
|
@@ -1729,9 +1692,6 @@ class BigQueryDeleteDatasetOperator(GoogleCloudBaseOperator):
|
|
1729
1692
|
Will raise HttpError 400: "{dataset_id} is still in use" if set to False and dataset is not empty.
|
1730
1693
|
The default value is False.
|
1731
1694
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
1732
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
1733
|
-
if any. For this to work, the service account making the request must have
|
1734
|
-
domain-wide delegation enabled.
|
1735
1695
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
1736
1696
|
credentials, or chained list of accounts required to get the access_token
|
1737
1697
|
of the last account in the list, which will be impersonated in the request.
|
@@ -1767,18 +1727,12 @@ class BigQueryDeleteDatasetOperator(GoogleCloudBaseOperator):
|
|
1767
1727
|
delete_contents: bool = False,
|
1768
1728
|
gcp_conn_id: str = "google_cloud_default",
|
1769
1729
|
impersonation_chain: str | Sequence[str] | None = None,
|
1770
|
-
delegate_to: str | None = None,
|
1771
1730
|
**kwargs,
|
1772
1731
|
) -> None:
|
1773
1732
|
self.dataset_id = dataset_id
|
1774
1733
|
self.project_id = project_id
|
1775
1734
|
self.delete_contents = delete_contents
|
1776
1735
|
self.gcp_conn_id = gcp_conn_id
|
1777
|
-
if delegate_to:
|
1778
|
-
warnings.warn(
|
1779
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1780
|
-
)
|
1781
|
-
self.delegate_to = delegate_to
|
1782
1736
|
self.impersonation_chain = impersonation_chain
|
1783
1737
|
|
1784
1738
|
super().__init__(**kwargs)
|
@@ -1788,7 +1742,6 @@ class BigQueryDeleteDatasetOperator(GoogleCloudBaseOperator):
|
|
1788
1742
|
|
1789
1743
|
bq_hook = BigQueryHook(
|
1790
1744
|
gcp_conn_id=self.gcp_conn_id,
|
1791
|
-
delegate_to=self.delegate_to,
|
1792
1745
|
impersonation_chain=self.impersonation_chain,
|
1793
1746
|
)
|
1794
1747
|
|
@@ -1813,9 +1766,6 @@ class BigQueryCreateEmptyDatasetOperator(GoogleCloudBaseOperator):
|
|
1813
1766
|
More info:
|
1814
1767
|
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource
|
1815
1768
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
1816
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
1817
|
-
if any. For this to work, the service account making the request must have
|
1818
|
-
domain-wide delegation enabled.
|
1819
1769
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
1820
1770
|
credentials, or chained list of accounts required to get the access_token
|
1821
1771
|
of the last account in the list, which will be impersonated in the request.
|
@@ -1859,7 +1809,6 @@ class BigQueryCreateEmptyDatasetOperator(GoogleCloudBaseOperator):
|
|
1859
1809
|
gcp_conn_id: str = "google_cloud_default",
|
1860
1810
|
impersonation_chain: str | Sequence[str] | None = None,
|
1861
1811
|
if_exists: str = "log",
|
1862
|
-
delegate_to: str | None = None,
|
1863
1812
|
exists_ok: bool | None = None,
|
1864
1813
|
**kwargs,
|
1865
1814
|
) -> None:
|
@@ -1869,11 +1818,6 @@ class BigQueryCreateEmptyDatasetOperator(GoogleCloudBaseOperator):
|
|
1869
1818
|
self.location = location
|
1870
1819
|
self.gcp_conn_id = gcp_conn_id
|
1871
1820
|
self.dataset_reference = dataset_reference if dataset_reference else {}
|
1872
|
-
if delegate_to:
|
1873
|
-
warnings.warn(
|
1874
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1875
|
-
)
|
1876
|
-
self.delegate_to = delegate_to
|
1877
1821
|
self.impersonation_chain = impersonation_chain
|
1878
1822
|
if exists_ok is not None:
|
1879
1823
|
warnings.warn("`exists_ok` parameter is deprecated, please use `if_exists`", DeprecationWarning)
|
@@ -1886,7 +1830,6 @@ class BigQueryCreateEmptyDatasetOperator(GoogleCloudBaseOperator):
|
|
1886
1830
|
def execute(self, context: Context) -> None:
|
1887
1831
|
bq_hook = BigQueryHook(
|
1888
1832
|
gcp_conn_id=self.gcp_conn_id,
|
1889
|
-
delegate_to=self.delegate_to,
|
1890
1833
|
location=self.location,
|
1891
1834
|
impersonation_chain=self.impersonation_chain,
|
1892
1835
|
)
|
@@ -1929,9 +1872,6 @@ class BigQueryGetDatasetOperator(GoogleCloudBaseOperator):
|
|
1929
1872
|
:param project_id: The name of the project where we want to create the dataset.
|
1930
1873
|
Don't need to provide, if projectId in dataset_reference.
|
1931
1874
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
1932
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
1933
|
-
if any. For this to work, the service account making the request must have
|
1934
|
-
domain-wide delegation enabled.
|
1935
1875
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
1936
1876
|
credentials, or chained list of accounts required to get the access_token
|
1937
1877
|
of the last account in the list, which will be impersonated in the request.
|
@@ -1957,24 +1897,17 @@ class BigQueryGetDatasetOperator(GoogleCloudBaseOperator):
|
|
1957
1897
|
project_id: str | None = None,
|
1958
1898
|
gcp_conn_id: str = "google_cloud_default",
|
1959
1899
|
impersonation_chain: str | Sequence[str] | None = None,
|
1960
|
-
delegate_to: str | None = None,
|
1961
1900
|
**kwargs,
|
1962
1901
|
) -> None:
|
1963
1902
|
self.dataset_id = dataset_id
|
1964
1903
|
self.project_id = project_id
|
1965
1904
|
self.gcp_conn_id = gcp_conn_id
|
1966
|
-
if delegate_to:
|
1967
|
-
warnings.warn(
|
1968
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
1969
|
-
)
|
1970
|
-
self.delegate_to = delegate_to
|
1971
1905
|
self.impersonation_chain = impersonation_chain
|
1972
1906
|
super().__init__(**kwargs)
|
1973
1907
|
|
1974
1908
|
def execute(self, context: Context):
|
1975
1909
|
bq_hook = BigQueryHook(
|
1976
1910
|
gcp_conn_id=self.gcp_conn_id,
|
1977
|
-
delegate_to=self.delegate_to,
|
1978
1911
|
impersonation_chain=self.impersonation_chain,
|
1979
1912
|
)
|
1980
1913
|
|
@@ -2004,9 +1937,6 @@ class BigQueryGetDatasetTablesOperator(GoogleCloudBaseOperator):
|
|
2004
1937
|
self.project_id will be used.
|
2005
1938
|
:param max_results: (Optional) the maximum number of tables to return.
|
2006
1939
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2007
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2008
|
-
if any. For this to work, the service account making the request must have
|
2009
|
-
domain-wide delegation enabled.
|
2010
1940
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2011
1941
|
credentials, or chained list of accounts required to get the access_token
|
2012
1942
|
of the last account in the list, which will be impersonated in the request.
|
@@ -2032,25 +1962,18 @@ class BigQueryGetDatasetTablesOperator(GoogleCloudBaseOperator):
|
|
2032
1962
|
max_results: int | None = None,
|
2033
1963
|
gcp_conn_id: str = "google_cloud_default",
|
2034
1964
|
impersonation_chain: str | Sequence[str] | None = None,
|
2035
|
-
delegate_to: str | None = None,
|
2036
1965
|
**kwargs,
|
2037
1966
|
) -> None:
|
2038
1967
|
self.dataset_id = dataset_id
|
2039
1968
|
self.project_id = project_id
|
2040
1969
|
self.max_results = max_results
|
2041
1970
|
self.gcp_conn_id = gcp_conn_id
|
2042
|
-
if delegate_to:
|
2043
|
-
warnings.warn(
|
2044
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2045
|
-
)
|
2046
|
-
self.delegate_to = delegate_to
|
2047
1971
|
self.impersonation_chain = impersonation_chain
|
2048
1972
|
super().__init__(**kwargs)
|
2049
1973
|
|
2050
1974
|
def execute(self, context: Context):
|
2051
1975
|
bq_hook = BigQueryHook(
|
2052
1976
|
gcp_conn_id=self.gcp_conn_id,
|
2053
|
-
delegate_to=self.delegate_to,
|
2054
1977
|
impersonation_chain=self.impersonation_chain,
|
2055
1978
|
)
|
2056
1979
|
|
@@ -2076,9 +1999,6 @@ class BigQueryPatchDatasetOperator(GoogleCloudBaseOperator):
|
|
2076
1999
|
:param project_id: The name of the project where we want to create the dataset.
|
2077
2000
|
Don't need to provide, if projectId in dataset_reference.
|
2078
2001
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2079
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2080
|
-
if any. For this to work, the service account making the request must have
|
2081
|
-
domain-wide delegation enabled.
|
2082
2002
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2083
2003
|
credentials, or chained list of accounts required to get the access_token
|
2084
2004
|
of the last account in the list, which will be impersonated in the request.
|
@@ -2105,7 +2025,6 @@ class BigQueryPatchDatasetOperator(GoogleCloudBaseOperator):
|
|
2105
2025
|
project_id: str | None = None,
|
2106
2026
|
gcp_conn_id: str = "google_cloud_default",
|
2107
2027
|
impersonation_chain: str | Sequence[str] | None = None,
|
2108
|
-
delegate_to: str | None = None,
|
2109
2028
|
**kwargs,
|
2110
2029
|
) -> None:
|
2111
2030
|
warnings.warn(
|
@@ -2117,18 +2036,12 @@ class BigQueryPatchDatasetOperator(GoogleCloudBaseOperator):
|
|
2117
2036
|
self.project_id = project_id
|
2118
2037
|
self.gcp_conn_id = gcp_conn_id
|
2119
2038
|
self.dataset_resource = dataset_resource
|
2120
|
-
if delegate_to:
|
2121
|
-
warnings.warn(
|
2122
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2123
|
-
)
|
2124
|
-
self.delegate_to = delegate_to
|
2125
2039
|
self.impersonation_chain = impersonation_chain
|
2126
2040
|
super().__init__(**kwargs)
|
2127
2041
|
|
2128
2042
|
def execute(self, context: Context):
|
2129
2043
|
bq_hook = BigQueryHook(
|
2130
2044
|
gcp_conn_id=self.gcp_conn_id,
|
2131
|
-
delegate_to=self.delegate_to,
|
2132
2045
|
impersonation_chain=self.impersonation_chain,
|
2133
2046
|
)
|
2134
2047
|
|
@@ -2160,9 +2073,6 @@ class BigQueryUpdateTableOperator(GoogleCloudBaseOperator):
|
|
2160
2073
|
:param project_id: The name of the project where we want to create the table.
|
2161
2074
|
Don't need to provide, if projectId in table_reference.
|
2162
2075
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2163
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2164
|
-
if any. For this to work, the service account making the request must have
|
2165
|
-
domain-wide delegation enabled.
|
2166
2076
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2167
2077
|
credentials, or chained list of accounts required to get the access_token
|
2168
2078
|
of the last account in the list, which will be impersonated in the request.
|
@@ -2193,7 +2103,6 @@ class BigQueryUpdateTableOperator(GoogleCloudBaseOperator):
|
|
2193
2103
|
project_id: str | None = None,
|
2194
2104
|
gcp_conn_id: str = "google_cloud_default",
|
2195
2105
|
impersonation_chain: str | Sequence[str] | None = None,
|
2196
|
-
delegate_to: str | None = None,
|
2197
2106
|
**kwargs,
|
2198
2107
|
) -> None:
|
2199
2108
|
self.dataset_id = dataset_id
|
@@ -2202,18 +2111,12 @@ class BigQueryUpdateTableOperator(GoogleCloudBaseOperator):
|
|
2202
2111
|
self.fields = fields
|
2203
2112
|
self.gcp_conn_id = gcp_conn_id
|
2204
2113
|
self.table_resource = table_resource
|
2205
|
-
if delegate_to:
|
2206
|
-
warnings.warn(
|
2207
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2208
|
-
)
|
2209
|
-
self.delegate_to = delegate_to
|
2210
2114
|
self.impersonation_chain = impersonation_chain
|
2211
2115
|
super().__init__(**kwargs)
|
2212
2116
|
|
2213
2117
|
def execute(self, context: Context):
|
2214
2118
|
bq_hook = BigQueryHook(
|
2215
2119
|
gcp_conn_id=self.gcp_conn_id,
|
2216
|
-
delegate_to=self.delegate_to,
|
2217
2120
|
impersonation_chain=self.impersonation_chain,
|
2218
2121
|
)
|
2219
2122
|
|
@@ -2256,9 +2159,6 @@ class BigQueryUpdateDatasetOperator(GoogleCloudBaseOperator):
|
|
2256
2159
|
:param project_id: The name of the project where we want to create the dataset.
|
2257
2160
|
Don't need to provide, if projectId in dataset_reference.
|
2258
2161
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2259
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2260
|
-
if any. For this to work, the service account making the request must have
|
2261
|
-
domain-wide delegation enabled.
|
2262
2162
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2263
2163
|
credentials, or chained list of accounts required to get the access_token
|
2264
2164
|
of the last account in the list, which will be impersonated in the request.
|
@@ -2287,7 +2187,6 @@ class BigQueryUpdateDatasetOperator(GoogleCloudBaseOperator):
|
|
2287
2187
|
project_id: str | None = None,
|
2288
2188
|
gcp_conn_id: str = "google_cloud_default",
|
2289
2189
|
impersonation_chain: str | Sequence[str] | None = None,
|
2290
|
-
delegate_to: str | None = None,
|
2291
2190
|
**kwargs,
|
2292
2191
|
) -> None:
|
2293
2192
|
self.dataset_id = dataset_id
|
@@ -2295,18 +2194,12 @@ class BigQueryUpdateDatasetOperator(GoogleCloudBaseOperator):
|
|
2295
2194
|
self.fields = fields
|
2296
2195
|
self.gcp_conn_id = gcp_conn_id
|
2297
2196
|
self.dataset_resource = dataset_resource
|
2298
|
-
if delegate_to:
|
2299
|
-
warnings.warn(
|
2300
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2301
|
-
)
|
2302
|
-
self.delegate_to = delegate_to
|
2303
2197
|
self.impersonation_chain = impersonation_chain
|
2304
2198
|
super().__init__(**kwargs)
|
2305
2199
|
|
2306
2200
|
def execute(self, context: Context):
|
2307
2201
|
bq_hook = BigQueryHook(
|
2308
2202
|
gcp_conn_id=self.gcp_conn_id,
|
2309
|
-
delegate_to=self.delegate_to,
|
2310
2203
|
impersonation_chain=self.impersonation_chain,
|
2311
2204
|
)
|
2312
2205
|
fields = self.fields or list(self.dataset_resource.keys())
|
@@ -2340,9 +2233,6 @@ class BigQueryDeleteTableOperator(GoogleCloudBaseOperator):
|
|
2340
2233
|
``(<project>.|<project>:)<dataset>.<table>`` that indicates which table
|
2341
2234
|
will be deleted. (templated)
|
2342
2235
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2343
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2344
|
-
if any. For this to work, the service account making the request must have
|
2345
|
-
domain-wide delegation enabled.
|
2346
2236
|
:param ignore_if_missing: if True, then return success even if the
|
2347
2237
|
requested table does not exist.
|
2348
2238
|
:param location: The location used for the operation.
|
@@ -2370,18 +2260,12 @@ class BigQueryDeleteTableOperator(GoogleCloudBaseOperator):
|
|
2370
2260
|
ignore_if_missing: bool = False,
|
2371
2261
|
location: str | None = None,
|
2372
2262
|
impersonation_chain: str | Sequence[str] | None = None,
|
2373
|
-
delegate_to: str | None = None,
|
2374
2263
|
**kwargs,
|
2375
2264
|
) -> None:
|
2376
2265
|
super().__init__(**kwargs)
|
2377
2266
|
|
2378
2267
|
self.deletion_dataset_table = deletion_dataset_table
|
2379
2268
|
self.gcp_conn_id = gcp_conn_id
|
2380
|
-
if delegate_to:
|
2381
|
-
warnings.warn(
|
2382
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2383
|
-
)
|
2384
|
-
self.delegate_to = delegate_to
|
2385
2269
|
self.ignore_if_missing = ignore_if_missing
|
2386
2270
|
self.location = location
|
2387
2271
|
self.impersonation_chain = impersonation_chain
|
@@ -2390,7 +2274,6 @@ class BigQueryDeleteTableOperator(GoogleCloudBaseOperator):
|
|
2390
2274
|
self.log.info("Deleting: %s", self.deletion_dataset_table)
|
2391
2275
|
hook = BigQueryHook(
|
2392
2276
|
gcp_conn_id=self.gcp_conn_id,
|
2393
|
-
delegate_to=self.delegate_to,
|
2394
2277
|
location=self.location,
|
2395
2278
|
impersonation_chain=self.impersonation_chain,
|
2396
2279
|
)
|
@@ -2413,9 +2296,6 @@ class BigQueryUpsertTableOperator(GoogleCloudBaseOperator):
|
|
2413
2296
|
:param project_id: The name of the project where we want to update the dataset.
|
2414
2297
|
Don't need to provide, if projectId in dataset_reference.
|
2415
2298
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2416
|
-
:param delegate_to: The account to impersonate, if any.
|
2417
|
-
For this to work, the service account making the request must have domain-wide
|
2418
|
-
delegation enabled.
|
2419
2299
|
:param location: The location used for the operation.
|
2420
2300
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2421
2301
|
credentials, or chained list of accounts required to get the access_token
|
@@ -2446,7 +2326,6 @@ class BigQueryUpsertTableOperator(GoogleCloudBaseOperator):
|
|
2446
2326
|
gcp_conn_id: str = "google_cloud_default",
|
2447
2327
|
location: str | None = None,
|
2448
2328
|
impersonation_chain: str | Sequence[str] | None = None,
|
2449
|
-
delegate_to: str | None = None,
|
2450
2329
|
**kwargs,
|
2451
2330
|
) -> None:
|
2452
2331
|
super().__init__(**kwargs)
|
@@ -2455,11 +2334,6 @@ class BigQueryUpsertTableOperator(GoogleCloudBaseOperator):
|
|
2455
2334
|
self.table_resource = table_resource
|
2456
2335
|
self.project_id = project_id
|
2457
2336
|
self.gcp_conn_id = gcp_conn_id
|
2458
|
-
if delegate_to:
|
2459
|
-
warnings.warn(
|
2460
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2461
|
-
)
|
2462
|
-
self.delegate_to = delegate_to
|
2463
2337
|
self.location = location
|
2464
2338
|
self.impersonation_chain = impersonation_chain
|
2465
2339
|
|
@@ -2467,7 +2341,6 @@ class BigQueryUpsertTableOperator(GoogleCloudBaseOperator):
|
|
2467
2341
|
self.log.info("Upserting Dataset: %s with table_resource: %s", self.dataset_id, self.table_resource)
|
2468
2342
|
hook = BigQueryHook(
|
2469
2343
|
gcp_conn_id=self.gcp_conn_id,
|
2470
|
-
delegate_to=self.delegate_to,
|
2471
2344
|
location=self.location,
|
2472
2345
|
impersonation_chain=self.impersonation_chain,
|
2473
2346
|
)
|
@@ -2521,9 +2394,6 @@ class BigQueryUpdateTableSchemaOperator(GoogleCloudBaseOperator):
|
|
2521
2394
|
:param project_id: The name of the project where we want to update the dataset.
|
2522
2395
|
Don't need to provide, if projectId in dataset_reference.
|
2523
2396
|
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
|
2524
|
-
:param delegate_to: The account to impersonate, if any.
|
2525
|
-
For this to work, the service account making the request must have domain-wide
|
2526
|
-
delegation enabled.
|
2527
2397
|
:param location: The location used for the operation.
|
2528
2398
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2529
2399
|
credentials, or chained list of accounts required to get the access_token
|
@@ -2556,7 +2426,6 @@ class BigQueryUpdateTableSchemaOperator(GoogleCloudBaseOperator):
|
|
2556
2426
|
project_id: str | None = None,
|
2557
2427
|
gcp_conn_id: str = "google_cloud_default",
|
2558
2428
|
impersonation_chain: str | Sequence[str] | None = None,
|
2559
|
-
delegate_to: str | None = None,
|
2560
2429
|
**kwargs,
|
2561
2430
|
) -> None:
|
2562
2431
|
self.schema_fields_updates = schema_fields_updates
|
@@ -2565,18 +2434,12 @@ class BigQueryUpdateTableSchemaOperator(GoogleCloudBaseOperator):
|
|
2565
2434
|
self.dataset_id = dataset_id
|
2566
2435
|
self.project_id = project_id
|
2567
2436
|
self.gcp_conn_id = gcp_conn_id
|
2568
|
-
if delegate_to:
|
2569
|
-
warnings.warn(
|
2570
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2571
|
-
)
|
2572
|
-
self.delegate_to = delegate_to
|
2573
2437
|
self.impersonation_chain = impersonation_chain
|
2574
2438
|
super().__init__(**kwargs)
|
2575
2439
|
|
2576
2440
|
def execute(self, context: Context):
|
2577
2441
|
bq_hook = BigQueryHook(
|
2578
2442
|
gcp_conn_id=self.gcp_conn_id,
|
2579
|
-
delegate_to=self.delegate_to,
|
2580
2443
|
impersonation_chain=self.impersonation_chain,
|
2581
2444
|
)
|
2582
2445
|
|
@@ -2635,9 +2498,6 @@ class BigQueryInsertJobOperator(GoogleCloudBaseOperator):
|
|
2635
2498
|
:param project_id: Google Cloud Project where the job is running
|
2636
2499
|
:param location: location the job is running
|
2637
2500
|
:param gcp_conn_id: The connection ID used to connect to Google Cloud.
|
2638
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
2639
|
-
if any. For this to work, the service account making the request must have
|
2640
|
-
domain-wide delegation enabled.
|
2641
2501
|
:param impersonation_chain: Optional service account to impersonate using short-term
|
2642
2502
|
credentials, or chained list of accounts required to get the access_token
|
2643
2503
|
of the last account in the list, which will be impersonated in the request.
|
@@ -2683,7 +2543,6 @@ class BigQueryInsertJobOperator(GoogleCloudBaseOperator):
|
|
2683
2543
|
result_timeout: float | None = None,
|
2684
2544
|
deferrable: bool = False,
|
2685
2545
|
poll_interval: float = 4.0,
|
2686
|
-
delegate_to: str | None = None,
|
2687
2546
|
**kwargs,
|
2688
2547
|
) -> None:
|
2689
2548
|
super().__init__(**kwargs)
|
@@ -2692,11 +2551,6 @@ class BigQueryInsertJobOperator(GoogleCloudBaseOperator):
|
|
2692
2551
|
self.job_id = job_id
|
2693
2552
|
self.project_id = project_id
|
2694
2553
|
self.gcp_conn_id = gcp_conn_id
|
2695
|
-
if delegate_to:
|
2696
|
-
warnings.warn(
|
2697
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
2698
|
-
)
|
2699
|
-
self.delegate_to = delegate_to
|
2700
2554
|
self.force_rerun = force_rerun
|
2701
2555
|
self.reattach_states: set[str] = reattach_states or set()
|
2702
2556
|
self.impersonation_chain = impersonation_chain
|
@@ -2737,7 +2591,6 @@ class BigQueryInsertJobOperator(GoogleCloudBaseOperator):
|
|
2737
2591
|
def execute(self, context: Any):
|
2738
2592
|
hook = BigQueryHook(
|
2739
2593
|
gcp_conn_id=self.gcp_conn_id,
|
2740
|
-
delegate_to=self.delegate_to,
|
2741
2594
|
impersonation_chain=self.impersonation_chain,
|
2742
2595
|
)
|
2743
2596
|
self.hook = hook
|
@@ -20,7 +20,6 @@ from __future__ import annotations
|
|
20
20
|
|
21
21
|
import json
|
22
22
|
import re
|
23
|
-
import warnings
|
24
23
|
from copy import deepcopy
|
25
24
|
from typing import TYPE_CHECKING, Any, Sequence
|
26
25
|
from urllib.parse import unquote, urlsplit
|
@@ -155,9 +154,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
155
154
|
If set as a sequence, the identities from the list must grant
|
156
155
|
Service Account Token Creator IAM role to the directly preceding identity, with first
|
157
156
|
account from the list granting this role to the originating account (templated).
|
158
|
-
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
|
159
|
-
if any. For this to work, the service account making the request must have
|
160
|
-
domain-wide delegation enabled.
|
161
157
|
:param retry: Designation of what errors, if any, should be retried.
|
162
158
|
:param timeout: The timeout for this request.
|
163
159
|
:param metadata: Strings which should be sent along with the request as metadata.
|
@@ -179,7 +175,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
179
175
|
metadata: Sequence[tuple[str, str]] = (),
|
180
176
|
gcp_conn_id: str = "google_cloud_default",
|
181
177
|
impersonation_chain: str | Sequence[str] | None = None,
|
182
|
-
delegate_to: str | None = None,
|
183
178
|
poll_interval: float = 4.0,
|
184
179
|
deferrable: bool = False,
|
185
180
|
location: str = "global",
|
@@ -196,11 +191,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
196
191
|
self.metadata = metadata
|
197
192
|
self.gcp_conn_id = gcp_conn_id
|
198
193
|
self.impersonation_chain = impersonation_chain
|
199
|
-
if delegate_to:
|
200
|
-
warnings.warn(
|
201
|
-
"'delegate_to' parameter is deprecated, please use 'impersonation_chain'", DeprecationWarning
|
202
|
-
)
|
203
|
-
self.delegate_to = delegate_to
|
204
194
|
self.poll_interval = poll_interval
|
205
195
|
self.deferrable = deferrable
|
206
196
|
self.location = location
|
@@ -219,7 +209,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
219
209
|
hook = CloudBuildHook(
|
220
210
|
gcp_conn_id=self.gcp_conn_id,
|
221
211
|
impersonation_chain=self.impersonation_chain,
|
222
|
-
delegate_to=self.delegate_to,
|
223
212
|
)
|
224
213
|
build = BuildProcessor(build=self.build).process_body()
|
225
214
|
|
@@ -244,7 +233,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
244
233
|
project_id=self.project_id,
|
245
234
|
gcp_conn_id=self.gcp_conn_id,
|
246
235
|
impersonation_chain=self.impersonation_chain,
|
247
|
-
delegate_to=self.delegate_to,
|
248
236
|
poll_interval=self.poll_interval,
|
249
237
|
location=self.location,
|
250
238
|
),
|
@@ -270,7 +258,6 @@ class CloudBuildCreateBuildOperator(GoogleCloudBaseOperator):
|
|
270
258
|
hook = CloudBuildHook(
|
271
259
|
gcp_conn_id=self.gcp_conn_id,
|
272
260
|
impersonation_chain=self.impersonation_chain,
|
273
|
-
delegate_to=self.delegate_to,
|
274
261
|
)
|
275
262
|
self.log.info("Cloud Build completed with response %s ", event["message"])
|
276
263
|
project_id = self.project_id or hook.project_id
|