diff --git a/airflow/providers/microsoft/azure/CHANGELOG.rst b/airflow/providers/microsoft/azure/CHANGELOG.rst index 9bcdeb4aa083b..284068b36e790 100644 --- a/airflow/providers/microsoft/azure/CHANGELOG.rst +++ b/airflow/providers/microsoft/azure/CHANGELOG.rst @@ -34,6 +34,7 @@ Breaking changes providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers * In AzureFileShareHook, if both ``extra__azure_fileshare__foo`` and ``foo`` existed in connection extra dict, the prefixed version would be used; now, the non-prefixed version will be preferred. +* ``Remove deprecated classes (#27417)`` 4.3.0 ..... diff --git a/airflow/providers/microsoft/azure/hooks/azure_batch.py b/airflow/providers/microsoft/azure/hooks/azure_batch.py deleted file mode 100644 index 9389413edf171..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_batch.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.batch`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.batch import AzureBatchHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.batch`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_container_instance.py b/airflow/providers/microsoft/azure/hooks/azure_container_instance.py deleted file mode 100644 index d1f0b6f54c36e..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_container_instance.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.container_instance`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.container_instance import AzureContainerInstanceHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_instance`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_container_registry.py b/airflow/providers/microsoft/azure/hooks/azure_container_registry.py deleted file mode 100644 index 94e45d5d86bee..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_container_registry.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.container_registry`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.container_registry import AzureContainerRegistryHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_registry`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_container_volume.py b/airflow/providers/microsoft/azure/hooks/azure_container_volume.py deleted file mode 100644 index e98a4824f3414..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_container_volume.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.container_volume`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.container_volume import AzureContainerVolumeHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_volume`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_cosmos.py b/airflow/providers/microsoft/azure/hooks/azure_cosmos.py deleted file mode 100644 index b6e1a178ffad1..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_cosmos.py +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.cosmos`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.cosmos import ( # noqa - AzureCosmosDBHook, - get_collection_link, - get_database_link, - get_document_link, -) - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.cosmos`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_data_factory.py b/airflow/providers/microsoft/azure/hooks/azure_data_factory.py deleted file mode 100644 index 12af9adaf7d19..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_data_factory.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.data_factory`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.data_factory import AzureDataFactoryHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.data_factory`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_data_lake.py b/airflow/providers/microsoft/azure/hooks/azure_data_lake.py deleted file mode 100644 index ef9de6ac59ecc..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_data_lake.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.data_lake`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.data_lake import AzureDataLakeHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.data_lake`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/hooks/azure_fileshare.py b/airflow/providers/microsoft/azure/hooks/azure_fileshare.py deleted file mode 100644 index 836636f8e7e8d..0000000000000 --- a/airflow/providers/microsoft/azure/hooks/azure_fileshare.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.fileshare`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.hooks.fileshare import AzureFileShareHook # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.fileshare`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/operators/adls_delete.py b/airflow/providers/microsoft/azure/operators/adls_delete.py deleted file mode 100644 index eef98ca1d97fe..0000000000000 --- a/airflow/providers/microsoft/azure/operators/adls_delete.py +++ /dev/null @@ -1,39 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.operators.adls`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.operators.adls import ADLSDeleteOperator - - -class AzureDataLakeStorageDeleteOperator(ADLSDeleteOperator): - """ - This class is deprecated. - Please use `airflow.providers.microsoft.azure.operators.adls.ADLSDeleteOperator`. - """ - - def __init__(self, *args, **kwargs): - warnings.warn( - """This class is deprecated. - Please use - `airflow.providers.microsoft.azure.operators.adls.ADLSDeleteOperator`.""", - DeprecationWarning, - stacklevel=3, - ) - super().__init__(*args, **kwargs) diff --git a/airflow/providers/microsoft/azure/operators/adls_list.py b/airflow/providers/microsoft/azure/operators/adls_list.py deleted file mode 100644 index 30291c1838416..0000000000000 --- a/airflow/providers/microsoft/azure/operators/adls_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.operators.adls`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.operators.adls import ADLSListOperator - - -class AzureDataLakeStorageListOperator(ADLSListOperator): - """ - This class is deprecated. - Please use `airflow.providers.microsoft.azure.operators.adls.ADLSListOperator`. - """ - - def __init__(self, *args, **kwargs): - warnings.warn( - """This class is deprecated. - Please use - `airflow.providers.microsoft.azure.operators.adls.ADLSListOperator`.""", - DeprecationWarning, - stacklevel=3, - ) - super().__init__(*args, **kwargs) diff --git a/airflow/providers/microsoft/azure/operators/azure_batch.py b/airflow/providers/microsoft/azure/operators/azure_batch.py deleted file mode 100644 index a87126c9bf149..0000000000000 --- a/airflow/providers/microsoft/azure/operators/azure_batch.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.operators.batch`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.operators.batch import AzureBatchOperator # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.batch`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/operators/azure_container_instances.py b/airflow/providers/microsoft/azure/operators/azure_container_instances.py deleted file mode 100644 index c857edf7b3d58..0000000000000 --- a/airflow/providers/microsoft/azure/operators/azure_container_instances.py +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -""" -This module is deprecated. -Please use :mod:`airflow.providers.microsoft.azure.operators.container_instances`. -""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.operators.container_instances import ( # noqa - AzureContainerInstancesOperator, -) - -warnings.warn( - "This module is deprecated. " - "Please use `airflow.providers.microsoft.azure.operators.container_instances`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/operators/azure_cosmos.py b/airflow/providers/microsoft/azure/operators/azure_cosmos.py deleted file mode 100644 index 289fd09e8108d..0000000000000 --- a/airflow/providers/microsoft/azure/operators/azure_cosmos.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.operators.cosmos`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.operators.cosmos import AzureCosmosInsertDocumentOperator # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.cosmos`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/provider.yaml b/airflow/providers/microsoft/azure/provider.yaml index bfa336e006f11..63c670d4a88c5 100644 --- a/airflow/providers/microsoft/azure/provider.yaml +++ b/airflow/providers/microsoft/azure/provider.yaml @@ -125,8 +125,6 @@ integrations: operators: - integration-name: Microsoft Azure Data Lake Storage python-modules: - - airflow.providers.microsoft.azure.operators.adls_list - - airflow.providers.microsoft.azure.operators.adls_delete - airflow.providers.microsoft.azure.operators.adls - integration-name: Microsoft Azure Data Explorer python-modules: @@ -134,15 +132,12 @@ operators: - integration-name: Microsoft Azure Batch python-modules: - airflow.providers.microsoft.azure.operators.batch - - airflow.providers.microsoft.azure.operators.azure_batch - integration-name: Microsoft Azure Container Instances python-modules: - airflow.providers.microsoft.azure.operators.container_instances - - airflow.providers.microsoft.azure.operators.azure_container_instances - integration-name: Microsoft Azure Cosmos DB python-modules: - airflow.providers.microsoft.azure.operators.cosmos - - airflow.providers.microsoft.azure.operators.azure_cosmos - integration-name: Microsoft Azure Blob Storage python-modules: - airflow.providers.microsoft.azure.operators.wasb_delete_blob @@ -160,7 +155,6 @@ sensors: - integration-name: Microsoft Azure Cosmos DB python-modules: - airflow.providers.microsoft.azure.sensors.cosmos - - airflow.providers.microsoft.azure.sensors.azure_cosmos - integration-name: Microsoft Azure Blob Storage python-modules: - airflow.providers.microsoft.azure.sensors.wasb @@ -174,38 +168,30 @@ hooks: - airflow.providers.microsoft.azure.hooks.container_volume - airflow.providers.microsoft.azure.hooks.container_registry - airflow.providers.microsoft.azure.hooks.container_instance - - airflow.providers.microsoft.azure.hooks.azure_container_volume - - airflow.providers.microsoft.azure.hooks.azure_container_registry - - airflow.providers.microsoft.azure.hooks.azure_container_instance - integration-name: Microsoft Azure Data Explorer python-modules: - airflow.providers.microsoft.azure.hooks.adx - integration-name: Microsoft Azure FileShare python-modules: - airflow.providers.microsoft.azure.hooks.fileshare - - airflow.providers.microsoft.azure.hooks.azure_fileshare - integration-name: Microsoft Azure python-modules: - airflow.providers.microsoft.azure.hooks.base_azure - integration-name: Microsoft Azure Batch python-modules: - airflow.providers.microsoft.azure.hooks.batch - - airflow.providers.microsoft.azure.hooks.azure_batch - integration-name: Microsoft Azure Data Lake Storage python-modules: - airflow.providers.microsoft.azure.hooks.data_lake - - airflow.providers.microsoft.azure.hooks.azure_data_lake - integration-name: Microsoft Azure Cosmos DB python-modules: - airflow.providers.microsoft.azure.hooks.cosmos - - airflow.providers.microsoft.azure.hooks.azure_cosmos - integration-name: Microsoft Azure Blob Storage python-modules: - airflow.providers.microsoft.azure.hooks.wasb - integration-name: Microsoft Azure Data Factory python-modules: - airflow.providers.microsoft.azure.hooks.data_factory - - airflow.providers.microsoft.azure.hooks.azure_data_factory - integration-name: Microsoft Azure Service Bus python-modules: - airflow.providers.microsoft.azure.hooks.asb @@ -221,9 +207,6 @@ transfers: - source-integration-name: Oracle target-integration-name: Microsoft Azure Data Lake Storage python-module: airflow.providers.microsoft.azure.transfers.oracle_to_azure_data_lake - - source-integration-name: Local - target-integration-name: Microsoft Azure Blob Storage - python-module: airflow.providers.microsoft.azure.transfers.file_to_wasb - source-integration-name: Local target-integration-name: Microsoft Azure Blob Storage python-module: airflow.providers.microsoft.azure.transfers.local_to_wasb @@ -269,7 +252,6 @@ connection-types: secrets-backends: - airflow.providers.microsoft.azure.secrets.key_vault.AzureKeyVaultBackend - - airflow.providers.microsoft.azure.secrets.azure_key_vault.AzureKeyVaultBackend logging: - airflow.providers.microsoft.azure.log.wasb_task_handler.WasbTaskHandler diff --git a/airflow/providers/microsoft/azure/secrets/azure_key_vault.py b/airflow/providers/microsoft/azure/secrets/azure_key_vault.py deleted file mode 100644 index 5875fea0148d9..0000000000000 --- a/airflow/providers/microsoft/azure/secrets/azure_key_vault.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.secrets.key_vault`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.secrets.key_vault import AzureKeyVaultBackend # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.secrets.key_vault`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/sensors/azure_cosmos.py b/airflow/providers/microsoft/azure/sensors/azure_cosmos.py deleted file mode 100644 index 6dac5a124d6c1..0000000000000 --- a/airflow/providers/microsoft/azure/sensors/azure_cosmos.py +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.sensors.cosmos`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.sensors.cosmos import AzureCosmosDocumentSensor # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.sensors.cosmos`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/airflow/providers/microsoft/azure/transfers/file_to_wasb.py b/airflow/providers/microsoft/azure/transfers/file_to_wasb.py deleted file mode 100644 index 60ee64c8b5f52..0000000000000 --- a/airflow/providers/microsoft/azure/transfers/file_to_wasb.py +++ /dev/null @@ -1,29 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.transfers.local_to_wasb`.""" -from __future__ import annotations - -import warnings - -from airflow.providers.microsoft.azure.transfers.local_to_wasb import LocalFilesystemToWasbOperator # noqa - -warnings.warn( - "This module is deprecated. Please use `airflow.providers.microsoft.azure.transfers.local_to_wasb`.", - DeprecationWarning, - stacklevel=2, -) diff --git a/scripts/in_container/verify_providers.py b/scripts/in_container/verify_providers.py index 0c70abe8e3c47..15b617702155b 100755 --- a/scripts/in_container/verify_providers.py +++ b/scripts/in_container/verify_providers.py @@ -232,21 +232,6 @@ class ProviderPackageDetails(NamedTuple): # ignore those messages when the warnings are generated directly by importlib - which means that # we imported it directly during module walk by the importlib library KNOWN_DEPRECATED_DIRECT_IMPORTS: set[str] = { - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.batch`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_instance`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_registry`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.container_volume`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.cosmos`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.data_factory`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.data_lake`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.fileshare`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.batch`.", - "This module is deprecated. " - "Please use `airflow.providers.microsoft.azure.operators.container_instances`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.cosmos`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.secrets.key_vault`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.sensors.cosmos`.", - "This module is deprecated. Please use `airflow.providers.microsoft.azure.transfers.local_to_wasb`.", "This module is deprecated. Please use `kubernetes.client.models.V1Volume`.", "This module is deprecated. Please use `kubernetes.client.models.V1VolumeMount`.", (