@@ -14,7 +14,7 @@ actions:
1414 " x-codeSamples " :
1515 - " lang " : " python"
1616 " label " : " create_destination"
17- " source " : " from unstructured_client import UnstructuredClient\n from unstructured_client.models import operations, shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\" <value>\" ,\n type=shared.DestinationConnectorType.MOTHERDUCK ,\n config={ \n \" hosts \" : [] ,\n \" index_name \" : \" <value>\" ,\n } ,\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
17+ " source " : " from unstructured_client import UnstructuredClient\n from unstructured_client.models import operations, shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\" <value>\" ,\n type=\" <value> \" ,\n config=shared.PineconeDestinationConnectorConfigInput( \n index_name= \" <value> \" ,\n api_key= \" <value> \" , \n namespace= \" <value>\" ,\n batch_size=50, \n ) ,\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
1818 - target : $["paths"]["/api/v1/destinations/{destination_id}"]["delete"]
1919 update :
2020 " x-codeSamples " :
@@ -98,7 +98,7 @@ actions:
9898 " x-codeSamples " :
9999 - " lang " : " python"
100100 " label " : " create_source"
101- " source " : " from unstructured_client import UnstructuredClient\n from unstructured_client.models import shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \" create_source_connector \" : { \ n \" name \" : \" <value>\" ,\n \" type \" : shared.SourceConnectorType.DROPBOX ,\n \" config \" : { \ n \" box_app_config \" : \" <value> \" ,\n \" remote_url \" : \" https://ugly-ribbon.info \" ,\n \" recursive \" : True ,\n } ,\n },\n } )\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
101+ " source " : " from unstructured_client import UnstructuredClient\n from unstructured_client.models import operations, shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request=operations.CreateSourceRequest( \n create_source_connector=shared.CreateSourceConnector( \n name= \" <value> \" , \n type=shared.SourceConnectorType.BOX, \n config= {\n \" host \" : \" ugly-ribbon.info \" , \ n \" database \" : \" <value>\" ,\n \" port \" : 526676 ,\n \" username \" : \" Albertha_Senger \" , \ n \" password \" : \" jIalrq2izU8rFxd \" ,\n \" table_name \" : \" <value> \" ,\n \" batch_size \" : 637100 ,\n \" id_column \" : \" id \" ,\n },\n ), \n ) )\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
102102 - target : $["paths"]["/api/v1/sources/{source_id}"]["delete"]
103103 update :
104104 " x-codeSamples " :
@@ -116,7 +116,7 @@ actions:
116116 " x-codeSamples " :
117117 - " lang " : " python"
118118 " label " : " update_source"
119- " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={ \n \" source_id\" : \" 6ddfe201-42c1-4097-a271-1fc2801d1903\" ,\n \" update_source_connector\" : { \ n \" config\" : {\n \" bucket\" : \" <value>\" ,\n \" connection_string\" : \" <value>\" ,\n \" batch_size\" : 615322,\n \" username\" : \" Lue.Murphy87\" ,\n \" password\" : \" qfyDYveMwvwoQEV\" ,\n \" collection_id\" : \" <id>\" ,\n },\n } ,\n } )\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
119+ " source " : " from unstructured_client import UnstructuredClient\n from unstructured_client.models import operations, shared \ n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request=operations.UpdateSourceRequest( \n source_id= \" 6ddfe201-42c1-4097-a271-1fc2801d1903\" ,\n update_source_connector=shared.UpdateSourceConnector( \ n config= {\n \" bucket\" : \" <value>\" ,\n \" connection_string\" : \" <value>\" ,\n \" batch_size\" : 615322,\n \" username\" : \" Lue.Murphy87\" ,\n \" password\" : \" qfyDYveMwvwoQEV\" ,\n \" collection_id\" : \" <id>\" ,\n },\n ) ,\n ) )\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
120120 - target : $["paths"]["/api/v1/sources/{source_id}/connection-check"]["get"]
121121 update :
122122 " x-codeSamples " :
0 commit comments