diff --git a/platform-api/api/destinations/motherduck.mdx b/platform-api/api/destinations/motherduck.mdx
index 4c637327..9e6fc071 100644
--- a/platform-api/api/destinations/motherduck.mdx
+++ b/platform-api/api/destinations/motherduck.mdx
@@ -12,10 +12,12 @@ import MotherDuckPrerequisites from '/snippets/general-shared-text/motherduck.md
To create or change a MotherDuck destination connector, see the following examples.
+import MotherDuckSDK from '/snippets/destination_connectors/motherduck_sdk.mdx';
import MotherDuckAPIRESTCreate from '/snippets/destination_connectors/motherduck_rest_create.mdx';
import MotherDuckAPIRESTChange from '/snippets/destination_connectors/motherduck_rest_change.mdx';
+
diff --git a/platform-api/api/destinations/overview.mdx b/platform-api/api/destinations/overview.mdx
index 6665ff7d..483f262b 100644
--- a/platform-api/api/destinations/overview.mdx
+++ b/platform-api/api/destinations/overview.mdx
@@ -18,25 +18,25 @@ To use the [Unstructured Platform Workflow Endpoint](/platform-api/api/overview)
To create or update a destination connector, you must also provide settings that are specific to that connector.
For the list of specific settings, see:
-- [Astra DB](/platform-api/api/destinations/astradb) (`astradb`)
-- [Azure AI Search](/platform-api/api/destinations/azure-ai-search) (`azure_ai_search`)
-- [Couchbase](/platform-api/api/destinations/couchbase) (`couchbase`)
-- [Databricks Volumes](/platform-api/api/destinations/databricks-volumes) (`databricks_volumes`)
-- [Delta Tables in Amazon S3](/platform-api/api/destinations/delta-table) (`delta_table`)
-- [Delta Tables in Databricks](/platform-api/api/destinations/databricks-delta-table) (`databricks_volume_delta_tables`)
-- [Elasticsearch](/platform-api/api/destinations/elasticsearch) (`elasticsearch`)
-- [Google Cloud Storage](/platform-api/api/destinations/google-cloud) (`gcs`)
-- [Kafka](/platform-api/api/destinations/kafka) (`kafka-cloud`)
-- [Milvus](/platform-api/api/destinations/milvus) (`milvus`)
-- [MongoDB](/platform-api/api/destinations/mongodb) (`mongodb`)
-- [MotherDuck](/platform-api/api/destinations/motherduck) (`motherduck`)
-- [Neo4j](/platform-api/api/destinations/neo4j) (`neo4j`)
-- [OneDrive](/platform-api/api/destinations/onedrive) (`onedrive`)
-- [Pinecone](/platform-api/api/destinations/pinecone) (`pinecone`)
-- [PostgreSQL](/platform-api/api/destinations/postgresql) (`postgres`)
-- [Qdrant](/platform-api/api/destinations/qdrant) (`qdrant-cloud`)
-- [Redis](/platform-api/api/destinations/redis) (`redis`)
-- [Snowflake](/platform-api/api/destinations/snowflake) (`snowflake`)
-- [S3](/platform-api/api/destinations/s3) (`s3`)
-- [Weaviate](/platform-api/api/destinations/weaviate) (`weaviate`)
+- [Astra DB](/platform-api/api/destinations/astradb) (`ASTRADB` for the Python SDK or `astradb` for `curl` or Postman)
+- [Azure AI Search](/platform-api/api/destinations/azure-ai-search) (`AZURE_AI_SEARCH` for the Python SDK or `azure_ai_search` for `curl` or Postman)
+- [Couchbase](/platform-api/api/destinations/couchbase) (`COUCHBASE` for the Python SDK or `couchbase` for `curl` or Postman)
+- [Databricks Volumes](/platform-api/api/destinations/databricks-volumes) (`DATABRICKS_VOLUMES` for the Python SDK or `databricks_volumes` for `curl` or Postman)
+- [Delta Tables in Amazon S3](/platform-api/api/destinations/delta-table) (`DELTA_TABLE` for the Python SDK or `delta_table` for `curl` or Postman)
+- [Delta Tables in Databricks](/platform-api/api/destinations/databricks-delta-table) (`DATABRICKS_VOLUME_DELTA_TABLES` for the Python SDK or `databricks_volume_delta_tables` for `curl` or Postman)
+- [Elasticsearch](/platform-api/api/destinations/elasticsearch) (`ELASTICSEARCH` for the Python SDK or `elasticsearch` for `curl` or Postman)
+- [Google Cloud Storage](/platform-api/api/destinations/google-cloud) (`GCS` for the Python SDK or `gcs` for `curl` or Postman)
+- [Kafka](/platform-api/api/destinations/kafka) (`KAFKA_CLOUD` for the Python SDK or `kafka-cloud` for `curl` or Postman)
+- [Milvus](/platform-api/api/destinations/milvus) (`MILVUS` for the Python SDK or `milvus` for `curl` or Postman)
+- [MongoDB](/platform-api/api/destinations/mongodb) (`MONGODB` for the Python SDK or `mongodb` for `curl` or Postman)
+- [MotherDuck](/platform-api/api/destinations/motherduck) (`MOTHERDUCK` for the Python SDK or `motherduck` for `curl` or Postman)
+- [Neo4j](/platform-api/api/destinations/neo4j) (`NEO4J` for the Python SDK or `neo4j` for `curl` or Postman)
+- [OneDrive](/platform-api/api/destinations/onedrive) (`ONEDRIVE` for the Python SDK or `onedrive` for `curl` or Postman)
+- [Pinecone](/platform-api/api/destinations/pinecone) (`PINECONE` for the Python SDK or `pinecone` for `curl` or Postman)
+- [PostgreSQL](/platform-api/api/destinations/postgresql) (`POSTGRES` for the Python SDK or `postgres` for `curl` or Postman)
+- [Qdrant](/platform-api/api/destinations/qdrant) (`QDRANT_CLOUD` for the Python SDK or `qdrant-cloud` for `curl` or Postman)
+- [Redis](/platform-api/api/destinations/redis) (`REDIS` for the Python SDK or `redis` for `curl` or Postman)
+- [Snowflake](/platform-api/api/destinations/snowflake) (`SNOWFLAKE` for the Python SDK or `snowflake` for `curl` or Postman)
+- [S3](/platform-api/api/destinations/s3) (`S3` for the Python SDK or `s3` for `curl` or Postman)
+- [Weaviate](/platform-api/api/destinations/weaviate) (`WEAVIATE` for the Python SDK or `weaviate` for `curl` or Postman)
diff --git a/platform-api/api/sources/overview.mdx b/platform-api/api/sources/overview.mdx
index e4f1cc01..fed53173 100644
--- a/platform-api/api/sources/overview.mdx
+++ b/platform-api/api/sources/overview.mdx
@@ -18,23 +18,23 @@ To use the [Unstructured Platform Workflow Endpoint](/platform-api/api/overview)
To create or update a source connector, you must also provide settings that are specific to that connector.
For the list of specific settings, see:
-- [Azure](/platform-api/api/sources/azure-blob-storage) (`azure`)
-- [Box](/platform-api/api/sources/box) (`box`)
-- [Confluence](/platform-api/api/sources/confluence) (`confluence`)
-- [Couchbase](/platform-api/api/sources/couchbase) (`couchbase`)
-- [Databricks Volumes](/platform-api/api/sources/databricks-volumes) (`databricks_volumes`)
-- [Dropbox](/platform-api/api/sources/dropbox) (`dropbox`)
-- [Elasticsearch](/platform-api/api/sources/elasticsearch) (`elasticsearch`)
-- [Google Cloud Storage](/platform-api/api/sources/google-cloud) (`gcs`)
-- [Google Drive](/platform-api/api/sources/google-drive) (`google_drive`)
-- [Kafka](/platform-api/api/sources/kafka) (`kafka-cloud`)
-- [MongoDB](/platform-api/api/sources/mongodb) (`mongodb`)
-- [OneDrive](/platform-api/api/sources/onedrive) (`onedrive`)
-- [Outlook](/platform-api/api/sources/outlook) (`outlook`)
-- [PostgreSQL](/platform-api/api/sources/postgresql) (`postgres`)
-- [S3](/platform-api/api/sources/s3) (`s3`)
-- [Salesforce](/platform-api/api/sources/salesforce) (`salesforce`)
-- [SharePoint](/platform-api/api/sources/sharepoint) (`sharepoint`)
-- [Snowflake](/platform-api/api/sources/snowflake) (`snowflake`)
+- [Azure](/platform-api/api/sources/azure-blob-storage) (`AZURE` for the Python SDK or `azure` for `curl` and Postman)
+- [Box](/platform-api/api/sources/box) (`BOX` for the Python SDK or `box` for `curl` and Postman)
+- [Confluence](/platform-api/api/sources/confluence) (`CONFLUENCE` for the Python SDK or `confluence` for `curl` and Postman)
+- [Couchbase](/platform-api/api/sources/couchbase) (`COUCHBASE` for the Python SDK or `couchbase` for `curl` and Postman)
+- [Databricks Volumes](/platform-api/api/sources/databricks-volumes) (`DATABRICKS_VOLUMES` for the Python SDK or `databricks_volumes` for `curl` and Postman)
+- [Dropbox](/platform-api/api/sources/dropbox) (`DROPBOX` for the Python SDK or `dropbox` for `curl` and Postman)
+- [Elasticsearch](/platform-api/api/sources/elasticsearch) (`ELASTICSEARCH` for the Python SDK or `elasticsearch` for `curl` and Postman)
+- [Google Cloud Storage](/platform-api/api/sources/google-cloud) (`GCS` for the Python SDK or `gcs` for `curl` and Postman)
+- [Google Drive](/platform-api/api/sources/google-drive) (`GOOGLE_DRIVE` for the Python SDK or `google_drive` for `curl` and Postman)
+- [Kafka](/platform-api/api/sources/kafka) (`KAFKA_CLOUD` for the Python SDK or `kafka-cloud` for `curl` and Postman)
+- [MongoDB](/platform-api/api/sources/mongodb) (`MONGODB` for the Python SDK or `mongodb` for `curl` and Postman)
+- [OneDrive](/platform-api/api/sources/onedrive) (`ONEDRIVE` for the Python SDK or `onedrive` for `curl` and Postman)
+- [Outlook](/platform-api/api/sources/outlook) (`OUTLOOK` for the Python SDK or `outlook` for `curl` and Postman)
+- [PostgreSQL](/platform-api/api/sources/postgresql) (`POSTGRES` for the Python SDK or `postgres` for `curl` and Postman)
+- [S3](/platform-api/api/sources/s3) (`S3` for the Python SDK or `s3` for `curl` and Postman)
+- [Salesforce](/platform-api/api/sources/salesforce) (`SALESFORCE` for the Python SDK or `salesforce` for `curl` and Postman)
+- [SharePoint](/platform-api/api/sources/sharepoint) (`SHAREPOINT` for the Python SDK or `sharepoint` for `curl` and Postman)
+- [Snowflake](/platform-api/api/sources/snowflake) (`SNOWFLAKE` for the Python SDK or `snowflake` for `curl` and Postman)
diff --git a/snippets/destination_connectors/astradb_sdk.mdx b/snippets/destination_connectors/astradb_sdk.mdx
index e94f6db9..e503dc34 100644
--- a/snippets/destination_connectors/astradb_sdk.mdx
+++ b/snippets/destination_connectors/astradb_sdk.mdx
@@ -1,17 +1,21 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ AstraDBConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="astradb", # Create only.
- config={
- "token": "",
- "api_endpoint": "",
- "collection_name": "",
- "keyspace": "",
- "batch_size":
- }
+ type=DestinationConnectorType.ASTRADB, # Create only.
+ config=AstraDBConnectorConfigInput(
+ token="",
+ api_endpoint="",
+ collection_name="",
+ keyspace="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/azure_ai_search_sdk.mdx b/snippets/destination_connectors/azure_ai_search_sdk.mdx
index 26c27e42..79cab701 100644
--- a/snippets/destination_connectors/azure_ai_search_sdk.mdx
+++ b/snippets/destination_connectors/azure_ai_search_sdk.mdx
@@ -1,15 +1,19 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ AzureAISearchConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="azure_ai_search", # Create only.
- config={
- "endpoint": "",
- "index": "",
- "azure_ai_search_key": ""
- }
+ type=DestinationConnectorType.AZURE_AI_SEARCH, # Create only.
+ config=AzureAISearchConnectorConfigInput(
+ endpoint="",
+ index="",
+ key=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/couchbase_rest_change.mdx b/snippets/destination_connectors/couchbase_rest_change.mdx
index 290cd5d7..72f91580 100644
--- a/snippets/destination_connectors/couchbase_rest_change.mdx
+++ b/snippets/destination_connectors/couchbase_rest_change.mdx
@@ -13,8 +13,7 @@ curl --request 'PUT' --location \
"scope": "",
"collection": "",
"password": "",
- "batch_size": ,
- "collection_id": ""
+ "batch_size":
}
}'
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/couchbase_rest_create.mdx b/snippets/destination_connectors/couchbase_rest_create.mdx
index d221efea..43813d5c 100644
--- a/snippets/destination_connectors/couchbase_rest_create.mdx
+++ b/snippets/destination_connectors/couchbase_rest_create.mdx
@@ -15,8 +15,7 @@ curl --request 'POST' --location \
"scope": "",
"collection": "",
"password": "",
- "batch_size": ,
- "collection_id": ""
+ "batch_size":
}
}'
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/couchbase_sdk.mdx b/snippets/destination_connectors/couchbase_sdk.mdx
index 2bfd8362..808c9b53 100644
--- a/snippets/destination_connectors/couchbase_sdk.mdx
+++ b/snippets/destination_connectors/couchbase_sdk.mdx
@@ -1,20 +1,23 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ CouchbaseDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="couchbase", # Create only.
- config={
- "username": "",
- "bucket": "",
- "connection_string": "",
- "scope": "",
- "collection": "",
- "password": "",
- "batch_size": ,
- "collection_id": ""
- }
+ type=estinationConnectorType.COUCHBASE, # Create only.
+ config=CouchbaseDestinationConnectorConfigInput(
+ username="",
+ bucket="",
+ connection_string="",
+ scope="",
+ collection="",
+ password="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/databricks_delta_table_sdk.mdx b/snippets/destination_connectors/databricks_delta_table_sdk.mdx
index c9359af1..e3da6475 100644
--- a/snippets/destination_connectors/databricks_delta_table_sdk.mdx
+++ b/snippets/destination_connectors/databricks_delta_table_sdk.mdx
@@ -1,23 +1,27 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ DatabricksVDTDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="databricks_volume_delta_tables", # Create only.
- config={
- "server_hostname": "",
- "http_path": "",
- "token": "",
- "client_id": "",
- "client_secret": "",
- "volume": "",
- "catalog": "",
- "volume_path": "",
- "schema": "",
- "database": "",
- "table_name": ""
- }
+ type=DestinationConnectorType.DATABRICKS_VOLUME_DELTA_TABLES, # Create only.
+ config=DatabricksVDTDestinationConnectorConfigInput(
+ server_hostname="",
+ http_path="",
+ token="",
+ client_id="",
+ client_secret="",
+ volume="",
+ catalog="",
+ volume_path="",
+ schema="",
+ database="",
+ table_name=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/databricks_volumes_sdk.mdx b/snippets/destination_connectors/databricks_volumes_sdk.mdx
index 79594467..bf1cdb7a 100644
--- a/snippets/destination_connectors/databricks_volumes_sdk.mdx
+++ b/snippets/destination_connectors/databricks_volumes_sdk.mdx
@@ -1,19 +1,23 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ DatabricksVolumesConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="databricks_volumes", # Create only.
- config={
- "host": "",
- "catalog": "",
- "schema": "",
- "volume": "",
- "volume_path": "",
- "client_secret": "",
- "client_id": ""
- }
+ type=DestinationConnectorType.DATABRICKS_VOLUMES, # Create only.
+ config=DatabricksVolumesConnectorConfigInput(
+ host="",
+ catalog="",
+ schema="",
+ volume="",
+ volume_path="",
+ client_secret="",
+ client_id=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/delta_table_sdk.mdx b/snippets/destination_connectors/delta_table_sdk.mdx
index de5a3b24..99752f63 100644
--- a/snippets/destination_connectors/delta_table_sdk.mdx
+++ b/snippets/destination_connectors/delta_table_sdk.mdx
@@ -1,16 +1,20 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ DeltaTableConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="delta_table", # Create only.
- config={
- "aws_region": "",
- "table_uri": "",
- "aws_access_key_id": "",
- "aws_secret_access_key": ""
- }
+ type=DestinationConnectorType.DELTA_TABLE, # Create only.
+ config=DeltaTableConnectorConfigInput(
+ aws_region="",
+ table_uri="",
+ aws_access_key_id="",
+ aws_secret_access_key=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/elasticsearch_sdk.mdx b/snippets/destination_connectors/elasticsearch_sdk.mdx
index 9e81c9c6..c89f31ec 100644
--- a/snippets/destination_connectors/elasticsearch_sdk.mdx
+++ b/snippets/destination_connectors/elasticsearch_sdk.mdx
@@ -1,15 +1,19 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ ElasticsearchConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="elasticsearch", # Create only.
- config={
- "hosts": [""],
- "es_api_key": "",
- "index_name": ""
- }
+ type=DestinationConnectorType.ELASTICSEARCH, # Create only.
+ config=ElasticsearchConnectorConfigInput(
+ hosts=[""],
+ es_api_key="",
+ index_name=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/gcs_sdk.mdx b/snippets/destination_connectors/gcs_sdk.mdx
index ad7c8207..3ab4f15f 100644
--- a/snippets/destination_connectors/gcs_sdk.mdx
+++ b/snippets/destination_connectors/gcs_sdk.mdx
@@ -1,14 +1,18 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ GCSDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="gcs", # Create only.
- config={
- "remote_url": "",
- "service_account_key": ""
- }
+ type=DestinationConnectorType.GCS, # Create only.
+ config=GCSDestinationConnectorConfigInput(
+ remote_url="",
+ service_account_key=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/kafka_sdk.mdx b/snippets/destination_connectors/kafka_sdk.mdx
index f1f8758c..f4746d2d 100644
--- a/snippets/destination_connectors/kafka_sdk.mdx
+++ b/snippets/destination_connectors/kafka_sdk.mdx
@@ -1,19 +1,23 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ KafkaCloudDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="kafka-cloud", # Create only.
- config={
- "bootstrap_server": "",
- "port": ,
- "group_id": "",
- "kafka_api_key": "",
- "secret": "",
- "topic": "",
- "num_messages_to_consume":
- }
+ type=DestinationConnectorType.KAFKA_CLOUD, # Create only.
+ config=KafkaCloudDestinationConnectorConfigInput(
+ bootstrap_servers="",
+ port=,
+ group_id="",
+ kafka_api_key="",
+ secret="",
+ topic="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/milvus_sdk.mdx b/snippets/destination_connectors/milvus_sdk.mdx
index 44d9b1df..78dff550 100644
--- a/snippets/destination_connectors/milvus_sdk.mdx
+++ b/snippets/destination_connectors/milvus_sdk.mdx
@@ -1,17 +1,21 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ MilvusDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="milvus", # Create only.
- config={
- "user": "",
- "uri": "",
- "db_name": "",
- "password": "",
- "collection_name": ""
- }
+ type=DestinationConnectorType.MILVUS, # Create only.
+ config=MilvusDestinationConnectorConfigInput(
+ user="",
+ uri="",
+ db_name="",
+ password="",
+ collection_name=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/mongodb_sdk.mdx b/snippets/destination_connectors/mongodb_sdk.mdx
index a1925c1b..c14559c5 100644
--- a/snippets/destination_connectors/mongodb_sdk.mdx
+++ b/snippets/destination_connectors/mongodb_sdk.mdx
@@ -1,15 +1,19 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ MongoDBConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="mongodb", # Create only.
- config={
- "database": "",
- "collection": "",
- "uri": ""
- }
+ type=DestinationConnectorType.MONGODB, # Create only.
+ config=MongoDBConnectorConfigInput(
+ database="",
+ collection="",
+ uri=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/motherduck_sdk.mdx b/snippets/destination_connectors/motherduck_sdk.mdx
new file mode 100644
index 00000000..16148a6b
--- /dev/null
+++ b/snippets/destination_connectors/motherduck_sdk.mdx
@@ -0,0 +1,20 @@
+```python Python SDK
+# ...
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ MotherDuckDestinationConnectorConfigInput
+)
+# ...
+destination_connector = DestinationConnector(
+ name="", # Create only.
+ type=DestinationConnectorType.MOTHERDUCK, # Create only.
+ config=MotherDuckDestinationConnectorConfigInput(
+ database="",
+ db_schema="",
+ table="",
+ md_token=""
+ )
+)
+# ...
+```
\ No newline at end of file
diff --git a/snippets/destination_connectors/neo4j_sdk.mdx b/snippets/destination_connectors/neo4j_sdk.mdx
index 9265b50e..1a09e339 100644
--- a/snippets/destination_connectors/neo4j_sdk.mdx
+++ b/snippets/destination_connectors/neo4j_sdk.mdx
@@ -1,17 +1,21 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ Neo4jDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="neo4j", # Create only.
- config={
- "uri": "",
- "database": "",
- "username": "",
- "password": "",
- "batch_size":
- }
+ type=DestinationConnectorType.NEO4J, # Create only.
+ config=Neo4jDestinationConnectorConfigInput(
+ uri="",
+ database="",
+ username="",
+ password="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/onedrive_sdk.mdx b/snippets/destination_connectors/onedrive_sdk.mdx
index d8693ae5..a126cf71 100644
--- a/snippets/destination_connectors/onedrive_sdk.mdx
+++ b/snippets/destination_connectors/onedrive_sdk.mdx
@@ -1,18 +1,22 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ OneDriveDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="onedrive", # Create only.
- config={
- "client_id": "",
- "user_pname": "",
- "tenant": "",
- "authority_url": "",
- "client_cred": "",
- "remote_url": ""
- }
+ type=DestinationConnectorType.ONEDRIVE, # Create only.
+ config=OneDriveDestinationConnectorConfigInput(
+ client_id="",
+ user_pname="",
+ tenant="",
+ authority_url="",
+ client_cred="",
+ remote_url=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/pinecone_sdk.mdx b/snippets/destination_connectors/pinecone_sdk.mdx
index cefa9e19..76930188 100644
--- a/snippets/destination_connectors/pinecone_sdk.mdx
+++ b/snippets/destination_connectors/pinecone_sdk.mdx
@@ -1,15 +1,19 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ PineconeDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="pinecone", # Create only.
- config={
- "index_name" "",
- "api_key": "",
- "batch_size"
- }
+ type=DestinationConnectorType.PINECONE, # Create only.
+ config=PineconeDestinationConnectorConfigInput(
+ index_name="",
+ api_key="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/postgresql_sdk.mdx b/snippets/destination_connectors/postgresql_sdk.mdx
index 8367355f..a4bf736a 100644
--- a/snippets/destination_connectors/postgresql_sdk.mdx
+++ b/snippets/destination_connectors/postgresql_sdk.mdx
@@ -1,19 +1,23 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ PostgresDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="postgres", # Create only.
- config={
- "host": "",
- "database": "",
- "port": "",
- "username": "",
- "password": "",
- "table_name": "",
- "batch_size":
- }
+ type=DestinationConnectorType.POSTGRES, # Create only.
+ config=PostgresDestinationConnectorConfigInput(
+ host="",
+ database="",
+ port="",
+ username="",
+ password="",
+ table_name="",
+ batch_size=
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/qdrant_sdk.mdx b/snippets/destination_connectors/qdrant_sdk.mdx
index 93168ca6..6abe5c90 100644
--- a/snippets/destination_connectors/qdrant_sdk.mdx
+++ b/snippets/destination_connectors/qdrant_sdk.mdx
@@ -1,16 +1,20 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ QdrantCloudDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="qdrant", # Create only.
- config={
- "url": "",
- "collection_name": "",
- "batch_size": "",
- "api_key": ""
- }
+ type=DestinationConnectorType.QDRANT_CLOUD,
+ config=QdrantCloudDestinationConnectorConfigInput(
+ url="",
+ collection_name="",
+ batch_size=,
+ api_key=""
+ )
)
# ...
```
\ No newline at end of file
diff --git a/snippets/destination_connectors/redis_sdk.mdx b/snippets/destination_connectors/redis_sdk.mdx
index e35b08b9..ee1250ad 100644
--- a/snippets/destination_connectors/redis_sdk.mdx
+++ b/snippets/destination_connectors/redis_sdk.mdx
@@ -1,24 +1,28 @@
```python Python SDK
# ...
-from unstructured_client.models.shared import DestinationConnector
+from unstructured_client.models.shared import (
+ DestinationConnector,
+ DestinationConnectorType,
+ RedisDestinationConnectorConfigInput
+)
# ...
destination_connector = DestinationConnector(
name="", # Create only.
- type="redis", # Create only.
- config={
- "database": "",
- "ssl": "",
- "batch_size":