# 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-weaviate",
        "name": "Weaviate",
        "description": "`Weaviate <https://weaviate.io/developers/weaviate>`__\n",
        "integrations": [
            {
                "integration-name": "Weaviate",
                "external-doc-url": "https://weaviate.io/developers/weaviate",
                "logo": "/docs/integration-logos/Weaviate.png",
                "how-to-guide": ["/docs/apache-airflow-providers-weaviate/operators/weaviate.rst"],
                "tags": ["software"],
            }
        ],
        "hooks": [
            {"integration-name": "Weaviate", "python-modules": ["airflow.providers.weaviate.hooks.weaviate"]}
        ],
        "connection-types": [
            {
                "hook-class-name": "airflow.providers.weaviate.hooks.weaviate.WeaviateHook",
                "hook-name": "Weaviate",
                "connection-type": "weaviate",
                "ui-field-behaviour": {
                    "hidden-fields": ["schema"],
                    "relabeling": {"login": "OIDC Username", "password": "OIDC Password"},
                },
                "conn-fields": {
                    "http_secure": {
                        "label": "Use https",
                        "schema": {"type": ["boolean", "null"], "default": False},
                    },
                    "token": {
                        "label": "Weaviate API Key",
                        "schema": {"type": ["string", "null"], "format": "password"},
                    },
                    "grpc_host": {"label": "gRPC host", "schema": {"type": ["string", "null"]}},
                    "grpc_port": {"label": "gRPC port", "schema": {"type": ["string", "null"]}},
                    "grpc_secure": {
                        "label": "Use a secure channel for the underlying gRPC API",
                        "schema": {"type": ["boolean", "null"], "default": False},
                    },
                },
            }
        ],
        "operators": [
            {
                "integration-name": "Weaviate",
                "python-modules": ["airflow.providers.weaviate.operators.weaviate"],
            }
        ],
    }
