diff --git a/providers/pinecone/provider.yaml b/providers/pinecone/provider.yaml index d181e6d291a3a..5db7836f4e1f6 100644 --- a/providers/pinecone/provider.yaml +++ b/providers/pinecone/provider.yaml @@ -68,6 +68,34 @@ hooks: connection-types: - hook-class-name: airflow.providers.pinecone.hooks.pinecone.PineconeHook connection-type: pinecone + ui-field-behaviour: + hidden-fields: + - port + - schema + relabeling: + login: Pinecone Environment + host: Pinecone Host + password: Pinecone API key + conn-fields: + region: + label: Pinecone Region + schema: + type: + - string + - 'null' + debug_curl: + label: PINECONE_DEBUG_CURL + schema: + type: + - boolean + - 'null' + default: false + project_id: + label: Project ID + schema: + type: + - string + - 'null' operators: - integration-name: Pinecone diff --git a/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py b/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py index 03b22d762dc1a..b298ba565c931 100644 --- a/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py +++ b/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py @@ -41,6 +41,22 @@ def get_provider_info(): { "hook-class-name": "airflow.providers.pinecone.hooks.pinecone.PineconeHook", "connection-type": "pinecone", + "ui-field-behaviour": { + "hidden-fields": ["port", "schema"], + "relabeling": { + "login": "Pinecone Environment", + "host": "Pinecone Host", + "password": "Pinecone API key", + }, + }, + "conn-fields": { + "region": {"label": "Pinecone Region", "schema": {"type": ["string", "null"]}}, + "debug_curl": { + "label": "PINECONE_DEBUG_CURL", + "schema": {"type": ["boolean", "null"], "default": False}, + }, + "project_id": {"label": "Project ID", "schema": {"type": ["string", "null"]}}, + }, } ], "operators": [