# 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-redis",
        "name": "Redis",
        "description": "`Redis <https://redis.io/>`__\n",
        "integrations": [
            {
                "integration-name": "Redis",
                "external-doc-url": "https://redis.io/",
                "logo": "/docs/integration-logos/Redis.png",
                "tags": ["software"],
            }
        ],
        "operators": [
            {
                "integration-name": "Redis",
                "python-modules": ["airflow.providers.redis.operators.redis_publish"],
            }
        ],
        "queues": ["airflow.providers.redis.queues.redis.RedisPubSubMessageQueueProvider"],
        "sensors": [
            {
                "integration-name": "Redis",
                "python-modules": [
                    "airflow.providers.redis.sensors.redis_key",
                    "airflow.providers.redis.sensors.redis_pub_sub",
                ],
            }
        ],
        "triggers": [
            {
                "integration-name": "Redis",
                "python-modules": ["airflow.providers.redis.triggers.redis_await_message"],
            }
        ],
        "hooks": [{"integration-name": "Redis", "python-modules": ["airflow.providers.redis.hooks.redis"]}],
        "connection-types": [
            {
                "hook-class-name": "airflow.providers.redis.hooks.redis.RedisHook",
                "hook-name": "Redis",
                "connection-type": "redis",
                "ui-field-behaviour": {"hidden-fields": ["schema", "extra"], "relabeling": {}},
                "conn-fields": {
                    "db": {"label": "DB", "schema": {"type": ["integer", "null"], "default": 0}},
                    "ssl": {"label": "Enable SSL", "schema": {"type": ["boolean", "null"], "default": False}},
                    "ssl_cert_reqs": {
                        "label": "SSL verify mode",
                        "description": "Must be one of: required, optional, none.",
                        "schema": {
                            "type": ["string", "null"],
                            "default": "required",
                            "enum": ["required", "optional", "none"],
                        },
                    },
                    "ssl_ca_certs": {"label": "CA certificate path", "schema": {"type": ["string", "null"]}},
                    "ssl_keyfile": {"label": "Private key path", "schema": {"type": ["string", "null"]}},
                    "ssl_certfile": {"label": "Certificate path", "schema": {"type": ["string", "null"]}},
                    "ssl_check_hostname": {
                        "label": "Enable hostname check",
                        "schema": {"type": ["boolean", "null"], "default": False},
                    },
                },
            }
        ],
        "logging": ["airflow.providers.redis.log.redis_task_handler.RedisTaskHandler"],
    }
