# 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-hashicorp",
        "name": "Hashicorp",
        "description": "Hashicorp including `Hashicorp Vault <https://www.vaultproject.io/>`__\n",
        "integrations": [
            {
                "integration-name": "Hashicorp Vault",
                "external-doc-url": "https://www.vaultproject.io/",
                "logo": "/docs/integration-logos/Hashicorp-Vault.png",
                "tags": ["software"],
            }
        ],
        "hooks": [
            {
                "integration-name": "Hashicorp Vault",
                "python-modules": ["airflow.providers.hashicorp.hooks.vault"],
            }
        ],
        "connection-types": [
            {
                "hook-class-name": "airflow.providers.hashicorp.hooks.vault.VaultHook",
                "connection-type": "vault",
                "ui-field-behaviour": {"hidden-fields": ["extra"]},
                "conn-fields": {
                    "auth_type": {"label": "Auth type", "schema": {"type": ["string", "null"]}},
                    "auth_mount_point": {"label": "Auth mount point", "schema": {"type": ["string", "null"]}},
                    "kv_engine_version": {
                        "label": "KV engine version",
                        "schema": {"type": ["integer", "null"], "default": 2, "enum": [1, 2]},
                        "description": "Must be 1 or 2.",
                    },
                    "kubernetes_role": {"label": "Kubernetes role", "schema": {"type": ["string", "null"]}},
                    "kubernetes_jwt_path": {
                        "label": "Kubernetes jwt path",
                        "schema": {"type": ["string", "null"]},
                    },
                    "jwt_role": {"label": "JWT role", "schema": {"type": ["string", "null"]}},
                    "jwt_token": {"label": "JWT token", "schema": {"type": ["string", "null"]}},
                    "jwt_token_path": {"label": "JWT token path", "schema": {"type": ["string", "null"]}},
                    "token_path": {"label": "Token path", "schema": {"type": ["string", "null"]}},
                    "gcp_key_path": {"label": "GCP key path", "schema": {"type": ["string", "null"]}},
                    "gcp_scopes": {"label": "GCP scopes", "schema": {"type": ["string", "null"]}},
                    "azure_tenant_id": {"label": "Azure tenant ID", "schema": {"type": ["string", "null"]}},
                    "azure_resource": {"label": "Azure resource", "schema": {"type": ["string", "null"]}},
                    "radius_host": {"label": "Radius host", "schema": {"type": ["string", "null"]}},
                    "radius_port": {"label": "Radius port", "schema": {"type": ["integer", "null"]}},
                    "use_tls": {"label": "Use TLS", "schema": {"type": ["boolean", "null"], "default": True}},
                },
            }
        ],
        "secrets-backends": ["airflow.providers.hashicorp.secrets.vault.VaultBackend"],
    }
