# 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.

# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
#
# IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
# `get_provider_info_TEMPLATE.py.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY


def get_provider_info():
    return {
        "package-name": "apache-airflow-providers-sftp",
        "name": "SFTP",
        "description": "`SSH File Transfer Protocol (SFTP) <https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/>`__\n",
        "integrations": [
            {
                "integration-name": "SSH File Transfer Protocol (SFTP)",
                "external-doc-url": "https://tools.ietf.org/wg/secsh/draft-ietf-secsh-filexfer/",
                "how-to-guide": ["/docs/apache-airflow-providers-sftp/sensors/sftp_sensor.rst"],
                "logo": "/docs/integration-logos/SFTP.png",
                "tags": ["protocol"],
            }
        ],
        "operators": [
            {
                "integration-name": "SSH File Transfer Protocol (SFTP)",
                "python-modules": ["airflow.providers.sftp.operators.sftp"],
            }
        ],
        "sensors": [
            {
                "integration-name": "SSH File Transfer Protocol (SFTP)",
                "python-modules": [
                    "airflow.providers.sftp.sensors.sftp",
                    "airflow.providers.sftp.decorators.sensors.sftp",
                ],
            }
        ],
        "asset-uris": [
            {
                "schemes": ["sftp"],
                "handler": "airflow.providers.sftp.assets.sftp.sanitize_uri",
                "factory": "airflow.providers.sftp.assets.sftp.create_asset",
                "to_openlineage_converter": "airflow.providers.sftp.assets.sftp.convert_asset_to_openlineage",
            }
        ],
        "dataset-uris": [
            {
                "schemes": ["sftp"],
                "handler": "airflow.providers.sftp.assets.sftp.sanitize_uri",
                "factory": "airflow.providers.sftp.assets.sftp.create_asset",
                "to_openlineage_converter": "airflow.providers.sftp.assets.sftp.convert_asset_to_openlineage",
            }
        ],
        "hooks": [
            {
                "integration-name": "SSH File Transfer Protocol (SFTP)",
                "python-modules": ["airflow.providers.sftp.hooks.sftp"],
            }
        ],
        "connection-types": [
            {
                "hook-class-name": "airflow.providers.sftp.hooks.sftp.SFTPHook",
                "hook-name": "SFTP",
                "connection-type": "sftp",
                "ui-field-behaviour": {
                    "hidden-fields": ["schema"],
                    "relabeling": {"login": "Username"},
                    "placeholders": {},
                },
            }
        ],
        "task-decorators": [
            {
                "class-name": "airflow.providers.sftp.decorators.sensors.sftp.sftp_sensor_task",
                "name": "sftp_sensor",
            }
        ],
        "triggers": [
            {
                "integration-name": "SSH File Transfer Protocol (SFTP)",
                "python-modules": ["airflow.providers.sftp.triggers.sftp"],
            }
        ],
        "filesystems": ["airflow.providers.sftp.fs.sftp"],
    }
