apache-airflow-providers-google 10.17.0rc1__py3-none-any.whl → 10.18.0__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 (91) hide show
  1. airflow/providers/google/__init__.py +5 -8
  2. airflow/providers/google/cloud/hooks/automl.py +35 -1
  3. airflow/providers/google/cloud/hooks/bigquery.py +126 -41
  4. airflow/providers/google/cloud/hooks/cloud_composer.py +250 -2
  5. airflow/providers/google/cloud/hooks/cloud_sql.py +154 -7
  6. airflow/providers/google/cloud/hooks/cloud_storage_transfer_service.py +7 -2
  7. airflow/providers/google/cloud/hooks/compute_ssh.py +2 -1
  8. airflow/providers/google/cloud/hooks/dataflow.py +246 -32
  9. airflow/providers/google/cloud/hooks/dataplex.py +6 -2
  10. airflow/providers/google/cloud/hooks/dlp.py +14 -14
  11. airflow/providers/google/cloud/hooks/gcs.py +6 -2
  12. airflow/providers/google/cloud/hooks/gdm.py +2 -2
  13. airflow/providers/google/cloud/hooks/kubernetes_engine.py +2 -2
  14. airflow/providers/google/cloud/hooks/mlengine.py +8 -4
  15. airflow/providers/google/cloud/hooks/pubsub.py +1 -1
  16. airflow/providers/google/cloud/hooks/secret_manager.py +252 -4
  17. airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py +1431 -74
  18. airflow/providers/google/cloud/hooks/vertex_ai/prediction_service.py +91 -0
  19. airflow/providers/google/cloud/links/vertex_ai.py +2 -1
  20. airflow/providers/google/cloud/log/gcs_task_handler.py +2 -1
  21. airflow/providers/google/cloud/operators/automl.py +243 -37
  22. airflow/providers/google/cloud/operators/bigquery.py +164 -62
  23. airflow/providers/google/cloud/operators/bigquery_dts.py +4 -3
  24. airflow/providers/google/cloud/operators/bigtable.py +7 -6
  25. airflow/providers/google/cloud/operators/cloud_build.py +12 -11
  26. airflow/providers/google/cloud/operators/cloud_composer.py +147 -2
  27. airflow/providers/google/cloud/operators/cloud_memorystore.py +17 -16
  28. airflow/providers/google/cloud/operators/cloud_sql.py +60 -17
  29. airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py +35 -16
  30. airflow/providers/google/cloud/operators/compute.py +12 -11
  31. airflow/providers/google/cloud/operators/datacatalog.py +21 -20
  32. airflow/providers/google/cloud/operators/dataflow.py +59 -42
  33. airflow/providers/google/cloud/operators/datafusion.py +11 -10
  34. airflow/providers/google/cloud/operators/datapipeline.py +3 -2
  35. airflow/providers/google/cloud/operators/dataprep.py +5 -4
  36. airflow/providers/google/cloud/operators/dataproc.py +20 -17
  37. airflow/providers/google/cloud/operators/datastore.py +8 -7
  38. airflow/providers/google/cloud/operators/dlp.py +31 -30
  39. airflow/providers/google/cloud/operators/functions.py +4 -3
  40. airflow/providers/google/cloud/operators/gcs.py +66 -41
  41. airflow/providers/google/cloud/operators/kubernetes_engine.py +256 -49
  42. airflow/providers/google/cloud/operators/life_sciences.py +2 -1
  43. airflow/providers/google/cloud/operators/mlengine.py +11 -10
  44. airflow/providers/google/cloud/operators/pubsub.py +6 -5
  45. airflow/providers/google/cloud/operators/spanner.py +7 -6
  46. airflow/providers/google/cloud/operators/speech_to_text.py +2 -1
  47. airflow/providers/google/cloud/operators/stackdriver.py +11 -10
  48. airflow/providers/google/cloud/operators/tasks.py +14 -13
  49. airflow/providers/google/cloud/operators/text_to_speech.py +2 -1
  50. airflow/providers/google/cloud/operators/translate_speech.py +2 -1
  51. airflow/providers/google/cloud/operators/vertex_ai/custom_job.py +333 -26
  52. airflow/providers/google/cloud/operators/vertex_ai/generative_model.py +20 -12
  53. airflow/providers/google/cloud/operators/vertex_ai/pipeline_job.py +0 -1
  54. airflow/providers/google/cloud/operators/vision.py +13 -12
  55. airflow/providers/google/cloud/operators/workflows.py +12 -14
  56. airflow/providers/google/cloud/secrets/secret_manager.py +2 -1
  57. airflow/providers/google/cloud/sensors/bigquery_dts.py +2 -1
  58. airflow/providers/google/cloud/sensors/bigtable.py +2 -1
  59. airflow/providers/google/cloud/sensors/cloud_storage_transfer_service.py +2 -1
  60. airflow/providers/google/cloud/sensors/dataflow.py +239 -52
  61. airflow/providers/google/cloud/sensors/datafusion.py +2 -1
  62. airflow/providers/google/cloud/sensors/dataproc.py +3 -2
  63. airflow/providers/google/cloud/sensors/gcs.py +14 -12
  64. airflow/providers/google/cloud/sensors/tasks.py +2 -1
  65. airflow/providers/google/cloud/sensors/workflows.py +2 -1
  66. airflow/providers/google/cloud/transfers/adls_to_gcs.py +8 -2
  67. airflow/providers/google/cloud/transfers/azure_blob_to_gcs.py +7 -1
  68. airflow/providers/google/cloud/transfers/azure_fileshare_to_gcs.py +7 -1
  69. airflow/providers/google/cloud/transfers/bigquery_to_gcs.py +2 -1
  70. airflow/providers/google/cloud/transfers/bigquery_to_mssql.py +1 -1
  71. airflow/providers/google/cloud/transfers/bigquery_to_sql.py +1 -0
  72. airflow/providers/google/cloud/transfers/gcs_to_bigquery.py +5 -6
  73. airflow/providers/google/cloud/transfers/gcs_to_gcs.py +22 -12
  74. airflow/providers/google/cloud/triggers/bigquery.py +75 -6
  75. airflow/providers/google/cloud/triggers/cloud_composer.py +68 -0
  76. airflow/providers/google/cloud/triggers/cloud_sql.py +2 -1
  77. airflow/providers/google/cloud/triggers/cloud_storage_transfer_service.py +2 -1
  78. airflow/providers/google/cloud/triggers/dataflow.py +504 -4
  79. airflow/providers/google/cloud/triggers/dataproc.py +190 -27
  80. airflow/providers/google/cloud/triggers/kubernetes_engine.py +2 -3
  81. airflow/providers/google/cloud/triggers/mlengine.py +2 -1
  82. airflow/providers/google/cloud/triggers/vertex_ai.py +94 -0
  83. airflow/providers/google/common/hooks/base_google.py +45 -7
  84. airflow/providers/google/firebase/hooks/firestore.py +2 -2
  85. airflow/providers/google/firebase/operators/firestore.py +2 -1
  86. airflow/providers/google/get_provider_info.py +5 -3
  87. {apache_airflow_providers_google-10.17.0rc1.dist-info → apache_airflow_providers_google-10.18.0.dist-info}/METADATA +18 -18
  88. {apache_airflow_providers_google-10.17.0rc1.dist-info → apache_airflow_providers_google-10.18.0.dist-info}/RECORD +90 -90
  89. airflow/providers/google/cloud/example_dags/example_cloud_sql_query.py +0 -289
  90. {apache_airflow_providers_google-10.17.0rc1.dist-info → apache_airflow_providers_google-10.18.0.dist-info}/WHEEL +0 -0
  91. {apache_airflow_providers_google-10.17.0rc1.dist-info → apache_airflow_providers_google-10.18.0.dist-info}/entry_points.txt +0 -0
@@ -28,6 +28,7 @@ from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
28
28
  from airflow.providers.google.cloud.hooks.cloud_storage_transfer_service import (
29
29
  ACCESS_KEY_ID,
30
30
  AWS_ACCESS_KEY,
31
+ AWS_ROLE_ARN,
31
32
  AWS_S3_DATA_SOURCE,
32
33
  BUCKET_NAME,
33
34
  DAY,
@@ -62,6 +63,7 @@ from airflow.providers.google.cloud.links.cloud_storage_transfer import (
62
63
  )
63
64
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
64
65
  from airflow.providers.google.cloud.utils.helpers import normalize_directory_path
66
+ from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
65
67
 
66
68
  if TYPE_CHECKING:
67
69
  from airflow.utils.context import Context
@@ -78,15 +80,23 @@ class TransferJobPreprocessor:
78
80
  self.default_schedule = default_schedule
79
81
 
80
82
  def _inject_aws_credentials(self) -> None:
81
- if TRANSFER_SPEC in self.body and AWS_S3_DATA_SOURCE in self.body[TRANSFER_SPEC]:
82
- aws_hook = AwsBaseHook(self.aws_conn_id, resource_type="s3")
83
- aws_credentials = aws_hook.get_credentials()
84
- aws_access_key_id = aws_credentials.access_key # type: ignore[attr-defined]
85
- aws_secret_access_key = aws_credentials.secret_key # type: ignore[attr-defined]
86
- self.body[TRANSFER_SPEC][AWS_S3_DATA_SOURCE][AWS_ACCESS_KEY] = {
87
- ACCESS_KEY_ID: aws_access_key_id,
88
- SECRET_ACCESS_KEY: aws_secret_access_key,
89
- }
83
+ if TRANSFER_SPEC not in self.body:
84
+ return
85
+
86
+ if AWS_S3_DATA_SOURCE not in self.body[TRANSFER_SPEC]:
87
+ return
88
+
89
+ if AWS_ROLE_ARN in self.body[TRANSFER_SPEC][AWS_S3_DATA_SOURCE]:
90
+ return
91
+
92
+ aws_hook = AwsBaseHook(self.aws_conn_id, resource_type="s3")
93
+ aws_credentials = aws_hook.get_credentials()
94
+ aws_access_key_id = aws_credentials.access_key # type: ignore[attr-defined]
95
+ aws_secret_access_key = aws_credentials.secret_key # type: ignore[attr-defined]
96
+ self.body[TRANSFER_SPEC][AWS_S3_DATA_SOURCE][AWS_ACCESS_KEY] = {
97
+ ACCESS_KEY_ID: aws_access_key_id,
98
+ SECRET_ACCESS_KEY: aws_secret_access_key,
99
+ }
90
100
 
91
101
  def _reformat_date(self, field_key: str) -> None:
92
102
  schedule = self.body[SCHEDULE]
@@ -234,7 +244,7 @@ class CloudDataTransferServiceCreateJobOperator(GoogleCloudBaseOperator):
234
244
  aws_conn_id: str | None = "aws_default",
235
245
  gcp_conn_id: str = "google_cloud_default",
236
246
  api_version: str = "v1",
237
- project_id: str | None = None,
247
+ project_id: str = PROVIDE_PROJECT_ID,
238
248
  google_impersonation_chain: str | Sequence[str] | None = None,
239
249
  **kwargs,
240
250
  ) -> None:
@@ -324,7 +334,7 @@ class CloudDataTransferServiceUpdateJobOperator(GoogleCloudBaseOperator):
324
334
  aws_conn_id: str | None = "aws_default",
325
335
  gcp_conn_id: str = "google_cloud_default",
326
336
  api_version: str = "v1",
327
- project_id: str | None = None,
337
+ project_id: str = PROVIDE_PROJECT_ID,
328
338
  google_impersonation_chain: str | Sequence[str] | None = None,
329
339
  **kwargs,
330
340
  ) -> None:
@@ -407,7 +417,7 @@ class CloudDataTransferServiceDeleteJobOperator(GoogleCloudBaseOperator):
407
417
  job_name: str,
408
418
  gcp_conn_id: str = "google_cloud_default",
409
419
  api_version: str = "v1",
410
- project_id: str | None = None,
420
+ project_id: str = PROVIDE_PROJECT_ID,
411
421
  google_impersonation_chain: str | Sequence[str] | None = None,
412
422
  **kwargs,
413
423
  ) -> None:
@@ -467,7 +477,7 @@ class CloudDataTransferServiceGetOperationOperator(GoogleCloudBaseOperator):
467
477
  def __init__(
468
478
  self,
469
479
  *,
470
- project_id: str | None = None,
480
+ project_id: str = PROVIDE_PROJECT_ID,
471
481
  operation_name: str,
472
482
  gcp_conn_id: str = "google_cloud_default",
473
483
  api_version: str = "v1",
@@ -541,7 +551,7 @@ class CloudDataTransferServiceListOperationsOperator(GoogleCloudBaseOperator):
541
551
  def __init__(
542
552
  self,
543
553
  request_filter: dict,
544
- project_id: str | None = None,
554
+ project_id: str = PROVIDE_PROJECT_ID,
545
555
  gcp_conn_id: str = "google_cloud_default",
546
556
  api_version: str = "v1",
547
557
  google_impersonation_chain: str | Sequence[str] | None = None,
@@ -818,6 +828,9 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
818
828
  account from the list granting this role to the originating account (templated).
819
829
  :param delete_job_after_completion: If True, delete the job after complete.
820
830
  If set to True, 'wait' must be set to True.
831
+ :param aws_role_arn: Optional AWS role ARN for workload identity federation. This will
832
+ override the `aws_conn_id` for authentication between GCP and AWS; see
833
+ https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#AwsS3Data
821
834
  """
822
835
 
823
836
  template_fields: Sequence[str] = (
@@ -829,6 +842,7 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
829
842
  "description",
830
843
  "object_conditions",
831
844
  "google_impersonation_chain",
845
+ "aws_role_arn",
832
846
  )
833
847
  ui_color = "#e09411"
834
848
 
@@ -839,7 +853,7 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
839
853
  gcs_bucket: str,
840
854
  s3_path: str | None = None,
841
855
  gcs_path: str | None = None,
842
- project_id: str | None = None,
856
+ project_id: str = PROVIDE_PROJECT_ID,
843
857
  aws_conn_id: str | None = "aws_default",
844
858
  gcp_conn_id: str = "google_cloud_default",
845
859
  description: str | None = None,
@@ -850,6 +864,7 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
850
864
  timeout: float | None = None,
851
865
  google_impersonation_chain: str | Sequence[str] | None = None,
852
866
  delete_job_after_completion: bool = False,
867
+ aws_role_arn: str | None = None,
853
868
  **kwargs,
854
869
  ) -> None:
855
870
  super().__init__(**kwargs)
@@ -868,6 +883,7 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
868
883
  self.timeout = timeout
869
884
  self.google_impersonation_chain = google_impersonation_chain
870
885
  self.delete_job_after_completion = delete_job_after_completion
886
+ self.aws_role_arn = aws_role_arn
871
887
  self._validate_inputs()
872
888
 
873
889
  def _validate_inputs(self) -> None:
@@ -918,6 +934,9 @@ class CloudDataTransferServiceS3ToGCSOperator(GoogleCloudBaseOperator):
918
934
  if self.transfer_options is not None:
919
935
  body[TRANSFER_SPEC][TRANSFER_OPTIONS] = self.transfer_options # type: ignore[index]
920
936
 
937
+ if self.aws_role_arn is not None:
938
+ body[TRANSFER_SPEC][AWS_S3_DATA_SOURCE][AWS_ROLE_ARN] = self.aws_role_arn # type: ignore[index]
939
+
921
940
  return body
922
941
 
923
942
 
@@ -1007,7 +1026,7 @@ class CloudDataTransferServiceGCSToGCSOperator(GoogleCloudBaseOperator):
1007
1026
  destination_bucket: str,
1008
1027
  source_path: str | None = None,
1009
1028
  destination_path: str | None = None,
1010
- project_id: str | None = None,
1029
+ project_id: str = PROVIDE_PROJECT_ID,
1011
1030
  gcp_conn_id: str = "google_cloud_default",
1012
1031
  description: str | None = None,
1013
1032
  schedule: dict | None = None,
@@ -36,6 +36,7 @@ from airflow.providers.google.cloud.links.compute import (
36
36
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
37
37
  from airflow.providers.google.cloud.utils.field_sanitizer import GcpBodyFieldSanitizer
38
38
  from airflow.providers.google.cloud.utils.field_validator import GcpBodyFieldValidator
39
+ from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
39
40
 
40
41
  if TYPE_CHECKING:
41
42
  from google.api_core.retry import Retry
@@ -51,7 +52,7 @@ class ComputeEngineBaseOperator(GoogleCloudBaseOperator):
51
52
  *,
52
53
  zone: str,
53
54
  resource_id: str | None = None,
54
- project_id: str | None = None,
55
+ project_id: str = PROVIDE_PROJECT_ID,
55
56
  gcp_conn_id: str = "google_cloud_default",
56
57
  api_version: str = "v1",
57
58
  impersonation_chain: str | Sequence[str] | None = None,
@@ -138,7 +139,7 @@ class ComputeEngineInsertInstanceOperator(ComputeEngineBaseOperator):
138
139
  body: dict,
139
140
  zone: str,
140
141
  resource_id: str | None = None,
141
- project_id: str | None = None,
142
+ project_id: str = PROVIDE_PROJECT_ID,
142
143
  request_id: str | None = None,
143
144
  retry: Retry | None = None,
144
145
  timeout: float | None = None,
@@ -320,7 +321,7 @@ class ComputeEngineInsertInstanceFromTemplateOperator(ComputeEngineBaseOperator)
320
321
  body: dict,
321
322
  zone: str,
322
323
  resource_id: str | None = None,
323
- project_id: str | None = None,
324
+ project_id: str = PROVIDE_PROJECT_ID,
324
325
  request_id: str | None = None,
325
326
  retry: Retry | None = None,
326
327
  timeout: float | None = None,
@@ -477,7 +478,7 @@ class ComputeEngineDeleteInstanceOperator(ComputeEngineBaseOperator):
477
478
  resource_id: str,
478
479
  zone: str,
479
480
  request_id: str | None = None,
480
- project_id: str | None = None,
481
+ project_id: str = PROVIDE_PROJECT_ID,
481
482
  retry: Retry | None = None,
482
483
  timeout: float | None = None,
483
484
  metadata: Sequence[tuple[str, str]] = (),
@@ -721,7 +722,7 @@ class ComputeEngineSetMachineTypeOperator(ComputeEngineBaseOperator):
721
722
  zone: str,
722
723
  resource_id: str,
723
724
  body: dict,
724
- project_id: str | None = None,
725
+ project_id: str = PROVIDE_PROJECT_ID,
725
726
  gcp_conn_id: str = "google_cloud_default",
726
727
  api_version: str = "v1",
727
728
  validate_body: bool = True,
@@ -882,7 +883,7 @@ class ComputeEngineInsertInstanceTemplateOperator(ComputeEngineBaseOperator):
882
883
  self,
883
884
  *,
884
885
  body: dict,
885
- project_id: str | None = None,
886
+ project_id: str = PROVIDE_PROJECT_ID,
886
887
  resource_id: str | None = None,
887
888
  request_id: str | None = None,
888
889
  retry: Retry | None = None,
@@ -1044,7 +1045,7 @@ class ComputeEngineDeleteInstanceTemplateOperator(ComputeEngineBaseOperator):
1044
1045
  *,
1045
1046
  resource_id: str,
1046
1047
  request_id: str | None = None,
1047
- project_id: str | None = None,
1048
+ project_id: str = PROVIDE_PROJECT_ID,
1048
1049
  retry: Retry | None = None,
1049
1050
  timeout: float | None = None,
1050
1051
  metadata: Sequence[tuple[str, str]] = (),
@@ -1164,7 +1165,7 @@ class ComputeEngineCopyInstanceTemplateOperator(ComputeEngineBaseOperator):
1164
1165
  *,
1165
1166
  resource_id: str,
1166
1167
  body_patch: dict,
1167
- project_id: str | None = None,
1168
+ project_id: str = PROVIDE_PROJECT_ID,
1168
1169
  request_id: str | None = None,
1169
1170
  gcp_conn_id: str = "google_cloud_default",
1170
1171
  api_version: str = "v1",
@@ -1323,7 +1324,7 @@ class ComputeEngineInstanceGroupUpdateManagerTemplateOperator(ComputeEngineBaseO
1323
1324
  zone: str,
1324
1325
  source_template: str,
1325
1326
  destination_template: str,
1326
- project_id: str | None = None,
1327
+ project_id: str = PROVIDE_PROJECT_ID,
1327
1328
  update_policy: dict[str, Any] | None = None,
1328
1329
  request_id: str | None = None,
1329
1330
  gcp_conn_id: str = "google_cloud_default",
@@ -1468,7 +1469,7 @@ class ComputeEngineInsertInstanceGroupManagerOperator(ComputeEngineBaseOperator)
1468
1469
  *,
1469
1470
  body: dict,
1470
1471
  zone: str,
1471
- project_id: str | None = None,
1472
+ project_id: str = PROVIDE_PROJECT_ID,
1472
1473
  resource_id: str | None = None,
1473
1474
  request_id: str | None = None,
1474
1475
  gcp_conn_id: str = "google_cloud_default",
@@ -1630,7 +1631,7 @@ class ComputeEngineDeleteInstanceGroupManagerOperator(ComputeEngineBaseOperator)
1630
1631
  *,
1631
1632
  resource_id: str,
1632
1633
  zone: str,
1633
- project_id: str | None = None,
1634
+ project_id: str = PROVIDE_PROJECT_ID,
1634
1635
  request_id: str | None = None,
1635
1636
  gcp_conn_id: str = "google_cloud_default",
1636
1637
  api_version="v1",
@@ -38,6 +38,7 @@ from airflow.providers.google.cloud.links.datacatalog import (
38
38
  DataCatalogTagTemplateLink,
39
39
  )
40
40
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
41
+ from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
41
42
 
42
43
  if TYPE_CHECKING:
43
44
  from google.api_core.retry import Retry
@@ -104,7 +105,7 @@ class CloudDataCatalogCreateEntryOperator(GoogleCloudBaseOperator):
104
105
  entry_group: str,
105
106
  entry_id: str,
106
107
  entry: dict | Entry,
107
- project_id: str | None = None,
108
+ project_id: str = PROVIDE_PROJECT_ID,
108
109
  retry: Retry | _MethodDefault = DEFAULT,
109
110
  timeout: float | None = None,
110
111
  metadata: Sequence[tuple[str, str]] = (),
@@ -220,7 +221,7 @@ class CloudDataCatalogCreateEntryGroupOperator(GoogleCloudBaseOperator):
220
221
  location: str,
221
222
  entry_group_id: str,
222
223
  entry_group: dict | EntryGroup,
223
- project_id: str | None = None,
224
+ project_id: str = PROVIDE_PROJECT_ID,
224
225
  retry: Retry | _MethodDefault = DEFAULT,
225
226
  timeout: float | None = None,
226
227
  metadata: Sequence[tuple[str, str]] = (),
@@ -336,7 +337,7 @@ class CloudDataCatalogCreateTagOperator(GoogleCloudBaseOperator):
336
337
  entry: str,
337
338
  tag: dict | Tag,
338
339
  template_id: str | None = None,
339
- project_id: str | None = None,
340
+ project_id: str = PROVIDE_PROJECT_ID,
340
341
  retry: Retry | _MethodDefault = DEFAULT,
341
342
  timeout: float | None = None,
342
343
  metadata: Sequence[tuple[str, str]] = (),
@@ -467,7 +468,7 @@ class CloudDataCatalogCreateTagTemplateOperator(GoogleCloudBaseOperator):
467
468
  location: str,
468
469
  tag_template_id: str,
469
470
  tag_template: dict | TagTemplate,
470
- project_id: str | None = None,
471
+ project_id: str = PROVIDE_PROJECT_ID,
471
472
  retry: Retry | _MethodDefault = DEFAULT,
472
473
  timeout: float | None = None,
473
474
  metadata: Sequence[tuple[str, str]] = (),
@@ -583,7 +584,7 @@ class CloudDataCatalogCreateTagTemplateFieldOperator(GoogleCloudBaseOperator):
583
584
  tag_template: str,
584
585
  tag_template_field_id: str,
585
586
  tag_template_field: dict | TagTemplateField,
586
- project_id: str | None = None,
587
+ project_id: str = PROVIDE_PROJECT_ID,
587
588
  retry: Retry | _MethodDefault = DEFAULT,
588
589
  timeout: float | None = None,
589
590
  metadata: Sequence[tuple[str, str]] = (),
@@ -690,7 +691,7 @@ class CloudDataCatalogDeleteEntryOperator(GoogleCloudBaseOperator):
690
691
  location: str,
691
692
  entry_group: str,
692
693
  entry: str,
693
- project_id: str | None = None,
694
+ project_id: str = PROVIDE_PROJECT_ID,
694
695
  retry: Retry | _MethodDefault = DEFAULT,
695
696
  timeout: float | None = None,
696
697
  metadata: Sequence[tuple[str, str]] = (),
@@ -774,7 +775,7 @@ class CloudDataCatalogDeleteEntryGroupOperator(GoogleCloudBaseOperator):
774
775
  *,
775
776
  location: str,
776
777
  entry_group: str,
777
- project_id: str | None = None,
778
+ project_id: str = PROVIDE_PROJECT_ID,
778
779
  retry: Retry | _MethodDefault = DEFAULT,
779
780
  timeout: float | None = None,
780
781
  metadata: Sequence[tuple[str, str]] = (),
@@ -860,7 +861,7 @@ class CloudDataCatalogDeleteTagOperator(GoogleCloudBaseOperator):
860
861
  entry_group: str,
861
862
  entry: str,
862
863
  tag: str,
863
- project_id: str | None = None,
864
+ project_id: str = PROVIDE_PROJECT_ID,
864
865
  retry: Retry | _MethodDefault = DEFAULT,
865
866
  timeout: float | None = None,
866
867
  metadata: Sequence[tuple[str, str]] = (),
@@ -949,7 +950,7 @@ class CloudDataCatalogDeleteTagTemplateOperator(GoogleCloudBaseOperator):
949
950
  location: str,
950
951
  tag_template: str,
951
952
  force: bool,
952
- project_id: str | None = None,
953
+ project_id: str = PROVIDE_PROJECT_ID,
953
954
  retry: Retry | _MethodDefault = DEFAULT,
954
955
  timeout: float | None = None,
955
956
  metadata: Sequence[tuple[str, str]] = (),
@@ -1037,7 +1038,7 @@ class CloudDataCatalogDeleteTagTemplateFieldOperator(GoogleCloudBaseOperator):
1037
1038
  tag_template: str,
1038
1039
  field: str,
1039
1040
  force: bool,
1040
- project_id: str | None = None,
1041
+ project_id: str = PROVIDE_PROJECT_ID,
1041
1042
  retry: Retry | _MethodDefault = DEFAULT,
1042
1043
  timeout: float | None = None,
1043
1044
  metadata: Sequence[tuple[str, str]] = (),
@@ -1125,7 +1126,7 @@ class CloudDataCatalogGetEntryOperator(GoogleCloudBaseOperator):
1125
1126
  location: str,
1126
1127
  entry_group: str,
1127
1128
  entry: str,
1128
- project_id: str | None = None,
1129
+ project_id: str = PROVIDE_PROJECT_ID,
1129
1130
  retry: Retry | _MethodDefault = DEFAULT,
1130
1131
  timeout: float | None = None,
1131
1132
  metadata: Sequence[tuple[str, str]] = (),
@@ -1220,7 +1221,7 @@ class CloudDataCatalogGetEntryGroupOperator(GoogleCloudBaseOperator):
1220
1221
  location: str,
1221
1222
  entry_group: str,
1222
1223
  read_mask: FieldMask,
1223
- project_id: str | None = None,
1224
+ project_id: str = PROVIDE_PROJECT_ID,
1224
1225
  retry: Retry | _MethodDefault = DEFAULT,
1225
1226
  timeout: float | None = None,
1226
1227
  metadata: Sequence[tuple[str, str]] = (),
@@ -1308,7 +1309,7 @@ class CloudDataCatalogGetTagTemplateOperator(GoogleCloudBaseOperator):
1308
1309
  *,
1309
1310
  location: str,
1310
1311
  tag_template: str,
1311
- project_id: str | None = None,
1312
+ project_id: str = PROVIDE_PROJECT_ID,
1312
1313
  retry: Retry | _MethodDefault = DEFAULT,
1313
1314
  timeout: float | None = None,
1314
1315
  metadata: Sequence[tuple[str, str]] = (),
@@ -1403,7 +1404,7 @@ class CloudDataCatalogListTagsOperator(GoogleCloudBaseOperator):
1403
1404
  entry_group: str,
1404
1405
  entry: str,
1405
1406
  page_size: int = 100,
1406
- project_id: str | None = None,
1407
+ project_id: str = PROVIDE_PROJECT_ID,
1407
1408
  retry: Retry | _MethodDefault = DEFAULT,
1408
1409
  timeout: float | None = None,
1409
1410
  metadata: Sequence[tuple[str, str]] = (),
@@ -1497,7 +1498,7 @@ class CloudDataCatalogLookupEntryOperator(GoogleCloudBaseOperator):
1497
1498
  *,
1498
1499
  linked_resource: str | None = None,
1499
1500
  sql_resource: str | None = None,
1500
- project_id: str | None = None,
1501
+ project_id: str = PROVIDE_PROJECT_ID,
1501
1502
  retry: Retry | _MethodDefault = DEFAULT,
1502
1503
  timeout: float | None = None,
1503
1504
  metadata: Sequence[tuple[str, str]] = (),
@@ -1593,7 +1594,7 @@ class CloudDataCatalogRenameTagTemplateFieldOperator(GoogleCloudBaseOperator):
1593
1594
  tag_template: str,
1594
1595
  field: str,
1595
1596
  new_tag_template_field_id: str,
1596
- project_id: str | None = None,
1597
+ project_id: str = PROVIDE_PROJECT_ID,
1597
1598
  retry: Retry | _MethodDefault = DEFAULT,
1598
1599
  timeout: float | None = None,
1599
1600
  metadata: Sequence[tuple[str, str]] = (),
@@ -1808,7 +1809,7 @@ class CloudDataCatalogUpdateEntryOperator(GoogleCloudBaseOperator):
1808
1809
  location: str | None = None,
1809
1810
  entry_group: str | None = None,
1810
1811
  entry_id: str | None = None,
1811
- project_id: str | None = None,
1812
+ project_id: str = PROVIDE_PROJECT_ID,
1812
1813
  retry: Retry | _MethodDefault = DEFAULT,
1813
1814
  timeout: float | None = None,
1814
1815
  metadata: Sequence[tuple[str, str]] = (),
@@ -1920,7 +1921,7 @@ class CloudDataCatalogUpdateTagOperator(GoogleCloudBaseOperator):
1920
1921
  entry_group: str | None = None,
1921
1922
  entry: str | None = None,
1922
1923
  tag_id: str | None = None,
1923
- project_id: str | None = None,
1924
+ project_id: str = PROVIDE_PROJECT_ID,
1924
1925
  retry: Retry | _MethodDefault = DEFAULT,
1925
1926
  timeout: float | None = None,
1926
1927
  metadata: Sequence[tuple[str, str]] = (),
@@ -2034,7 +2035,7 @@ class CloudDataCatalogUpdateTagTemplateOperator(GoogleCloudBaseOperator):
2034
2035
  update_mask: dict | FieldMask,
2035
2036
  location: str | None = None,
2036
2037
  tag_template_id: str | None = None,
2037
- project_id: str | None = None,
2038
+ project_id: str = PROVIDE_PROJECT_ID,
2038
2039
  retry: Retry | _MethodDefault = DEFAULT,
2039
2040
  timeout: float | None = None,
2040
2041
  metadata: Sequence[tuple[str, str]] = (),
@@ -2151,7 +2152,7 @@ class CloudDataCatalogUpdateTagTemplateFieldOperator(GoogleCloudBaseOperator):
2151
2152
  location: str | None = None,
2152
2153
  tag_template: str | None = None,
2153
2154
  tag_template_field_id: str | None = None,
2154
- project_id: str | None = None,
2155
+ project_id: str = PROVIDE_PROJECT_ID,
2155
2156
  retry: Retry | _MethodDefault = DEFAULT,
2156
2157
  timeout: float | None = None,
2157
2158
  metadata: Sequence[tuple[str, str]] = (),