apache-airflow-providers-google 11.0.0rc1__py3-none-any.whl → 12.0.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 (45) hide show
  1. airflow/providers/google/__init__.py +3 -3
  2. airflow/providers/google/assets/gcs.py +1 -7
  3. airflow/providers/google/cloud/hooks/alloy_db.py +289 -0
  4. airflow/providers/google/cloud/hooks/cloud_batch.py +13 -5
  5. airflow/providers/google/cloud/hooks/dataproc.py +7 -3
  6. airflow/providers/google/cloud/hooks/dataproc_metastore.py +41 -22
  7. airflow/providers/google/cloud/hooks/kubernetes_engine.py +7 -38
  8. airflow/providers/google/cloud/hooks/translate.py +355 -0
  9. airflow/providers/google/cloud/hooks/vertex_ai/feature_store.py +147 -0
  10. airflow/providers/google/cloud/hooks/vertex_ai/generative_model.py +10 -0
  11. airflow/providers/google/cloud/links/alloy_db.py +55 -0
  12. airflow/providers/google/cloud/links/translate.py +98 -0
  13. airflow/providers/google/cloud/log/stackdriver_task_handler.py +1 -5
  14. airflow/providers/google/cloud/openlineage/mixins.py +4 -12
  15. airflow/providers/google/cloud/openlineage/utils.py +200 -22
  16. airflow/providers/google/cloud/operators/alloy_db.py +459 -0
  17. airflow/providers/google/cloud/operators/automl.py +55 -44
  18. airflow/providers/google/cloud/operators/bigquery.py +60 -15
  19. airflow/providers/google/cloud/operators/dataproc.py +12 -0
  20. airflow/providers/google/cloud/operators/gcs.py +5 -14
  21. airflow/providers/google/cloud/operators/kubernetes_engine.py +377 -705
  22. airflow/providers/google/cloud/operators/mlengine.py +41 -31
  23. airflow/providers/google/cloud/operators/translate.py +586 -1
  24. airflow/providers/google/cloud/operators/vertex_ai/feature_store.py +163 -0
  25. airflow/providers/google/cloud/operators/vertex_ai/generative_model.py +5 -0
  26. airflow/providers/google/cloud/sensors/dataproc.py +2 -2
  27. airflow/providers/google/cloud/sensors/vertex_ai/__init__.py +16 -0
  28. airflow/providers/google/cloud/sensors/vertex_ai/feature_store.py +112 -0
  29. airflow/providers/google/cloud/transfers/bigquery_to_gcs.py +6 -11
  30. airflow/providers/google/cloud/transfers/bigquery_to_mssql.py +3 -0
  31. airflow/providers/google/cloud/transfers/bigquery_to_mysql.py +3 -0
  32. airflow/providers/google/cloud/transfers/gcs_to_bigquery.py +5 -10
  33. airflow/providers/google/cloud/transfers/gcs_to_gcs.py +3 -15
  34. airflow/providers/google/cloud/transfers/gcs_to_local.py +9 -0
  35. airflow/providers/google/cloud/transfers/local_to_gcs.py +41 -6
  36. airflow/providers/google/cloud/transfers/s3_to_gcs.py +15 -0
  37. airflow/providers/google/get_provider_info.py +30 -18
  38. airflow/providers/google/version_compat.py +36 -0
  39. {apache_airflow_providers_google-11.0.0rc1.dist-info → apache_airflow_providers_google-12.0.0.dist-info}/METADATA +20 -22
  40. {apache_airflow_providers_google-11.0.0rc1.dist-info → apache_airflow_providers_google-12.0.0.dist-info}/RECORD +42 -37
  41. airflow/providers/google/cloud/hooks/datapipeline.py +0 -71
  42. airflow/providers/google/cloud/openlineage/BigQueryErrorRunFacet.json +0 -30
  43. airflow/providers/google/cloud/operators/datapipeline.py +0 -63
  44. {apache_airflow_providers_google-11.0.0rc1.dist-info → apache_airflow_providers_google-12.0.0.dist-info}/WHEEL +0 -0
  45. {apache_airflow_providers_google-11.0.0rc1.dist-info → apache_airflow_providers_google-12.0.0.dist-info}/entry_points.txt +0 -0
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$defs": {
4
- "BigQueryErrorRunFacet": {
5
- "allOf": [
6
- {
7
- "$ref": "https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/RunFacet"
8
- },
9
- {
10
- "type": "object",
11
- "properties": {
12
- "clientError": {
13
- "type": "string"
14
- },
15
- "parserError": {
16
- "type": "string"
17
- }
18
- }
19
- }
20
- ],
21
- "type": "object"
22
- }
23
- },
24
- "type": "object",
25
- "properties": {
26
- "bigQuery_error": {
27
- "$ref": "#/$defs/BigQueryErrorRunFacet"
28
- }
29
- }
30
- }
@@ -1,63 +0,0 @@
1
- #
2
- # Licensed to the Apache Software Foundation (ASF) under one
3
- # or more contributor license agreements. See the NOTICE file
4
- # distributed with this work for additional information
5
- # regarding copyright ownership. The ASF licenses this file
6
- # to you under the Apache License, Version 2.0 (the
7
- # "License"); you may not use this file except in compliance
8
- # with the License. You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing,
13
- # software distributed under the License is distributed on an
14
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- # KIND, either express or implied. See the License for the
16
- # specific language governing permissions and limitations
17
- # under the License.
18
- """This module contains Google Data Pipelines operators."""
19
-
20
- from __future__ import annotations
21
-
22
- from airflow.exceptions import AirflowProviderDeprecationWarning
23
- from airflow.providers.google.cloud.hooks.dataflow import DEFAULT_DATAFLOW_LOCATION
24
- from airflow.providers.google.cloud.operators.dataflow import (
25
- DataflowCreatePipelineOperator,
26
- DataflowRunPipelineOperator,
27
- )
28
- from airflow.providers.google.common.deprecated import deprecated
29
- from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID
30
-
31
-
32
- @deprecated(
33
- planned_removal_date="December 01, 2024",
34
- use_instead="DataflowCreatePipelineOperator",
35
- category=AirflowProviderDeprecationWarning,
36
- )
37
- class CreateDataPipelineOperator(DataflowCreatePipelineOperator):
38
- """Creates a new Data Pipelines instance from the Data Pipelines API."""
39
-
40
-
41
- @deprecated(
42
- planned_removal_date="December 01, 2024",
43
- use_instead="DataflowRunPipelineOperator",
44
- category=AirflowProviderDeprecationWarning,
45
- )
46
- class RunDataPipelineOperator(DataflowRunPipelineOperator):
47
- """Runs a Data Pipelines Instance using the Data Pipelines API."""
48
-
49
- def __init__(
50
- self,
51
- data_pipeline_name: str,
52
- project_id: str = PROVIDE_PROJECT_ID,
53
- location: str = DEFAULT_DATAFLOW_LOCATION,
54
- gcp_conn_id: str = "google_cloud_default",
55
- **kwargs,
56
- ) -> None:
57
- super().__init__(
58
- pipeline_name=data_pipeline_name,
59
- project_id=project_id,
60
- location=location,
61
- gcp_conn_id=gcp_conn_id,
62
- **kwargs,
63
- )