# 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-salesforce",
        "name": "Salesforce",
        "description": "`Salesforce <https://www.salesforce.com/>`__\n",
        "integrations": [
            {
                "integration-name": "Salesforce",
                "external-doc-url": "https://www.salesforce.com/",
                "how-to-guide": [
                    "/docs/apache-airflow-providers-salesforce/operators/salesforce_apex_rest.rst",
                    "/docs/apache-airflow-providers-salesforce/operators/bulk.rst",
                ],
                "logo": "/docs/integration-logos/Salesforce.png",
                "tags": ["service"],
            }
        ],
        "operators": [
            {
                "integration-name": "Salesforce",
                "python-modules": [
                    "airflow.providers.salesforce.operators.salesforce_apex_rest",
                    "airflow.providers.salesforce.operators.bulk",
                ],
            }
        ],
        "hooks": [
            {
                "integration-name": "Salesforce",
                "python-modules": ["airflow.providers.salesforce.hooks.salesforce"],
            }
        ],
        "connection-types": [
            {
                "hook-class-name": "airflow.providers.salesforce.hooks.salesforce.SalesforceHook",
                "connection-type": "salesforce",
                "conn-fields": {
                    "security_token": {
                        "label": "Security Token",
                        "schema": {"type": ["string", "null"], "format": "password"},
                    },
                    "domain": {"label": "Domain", "schema": {"type": ["string", "null"]}},
                    "consumer_key": {"label": "Consumer Key", "schema": {"type": ["string", "null"]}},
                    "consumer_secret": {
                        "label": "Consumer Secret",
                        "schema": {"type": ["string", "null"], "format": "password"},
                    },
                    "private_key_file_path": {
                        "label": "Private Key File Path",
                        "schema": {"type": ["string", "null"], "format": "password"},
                    },
                    "private_key": {
                        "label": "Private Key",
                        "schema": {"type": ["string", "null"], "format": "password"},
                    },
                    "organization_id": {"label": "Organization ID", "schema": {"type": ["string", "null"]}},
                    "instance": {"label": "Instance", "schema": {"type": ["string", "null"]}},
                    "instance_url": {"label": "Instance URL", "schema": {"type": ["string", "null"]}},
                    "proxies": {"label": "Proxies", "schema": {"type": ["string", "null"]}},
                    "version": {"label": "API Version", "schema": {"type": ["string", "null"]}},
                    "client_id": {"label": "Client ID", "schema": {"type": ["string", "null"]}},
                },
                "ui-field-behaviour": {
                    "hidden-fields": ["schema", "port", "extra", "host"],
                    "relabeling": {"login": "Username"},
                },
            }
        ],
    }
