@@ -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 shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request={\n \" create_destination_connector\" : {\n \" name\" : \" <value>\" ,\n \" type\" : shared.DestinationConnectorType.ASTRADB ,\n \" config\" : {\n \" remote_url \" : \" https://fortunate-appliance.info \" ,\n \" anonymous \" : False,\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 shared\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request={\n \" create_destination_connector\" : {\n \" name\" : \" <value>\" ,\n \" type\" : shared.DestinationConnectorType.AZURE_AI_SEARCH ,\n \" config\" : {\n \" collection_name \" : \" <value> \" , \n \" batch_size \" : 20, \n \" api_endpoint \" : \" <value> \" ,\n \" token \" : \" <value> \" , \n \" flatten_metadata \" : False,\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 " :
@@ -33,6 +33,18 @@ actions:
3333 - " lang " : " python"
3434 " label " : " update_destination"
3535 " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.update_destination(request={\n \" destination_id\" : \" 9ea9d27c-4e2e-4cb5-9a69-71bd7ec9d226\" ,\n \" update_destination_connector\" : {\n \" config\" : {\n \" host\" : \" acidic-patroller.com\" ,\n \" database\" : \" <value>\" ,\n \" port\" : 832931,\n \" username\" : \" Salvador.Walsh-Thiel\" ,\n \" password\" : \" vIMqbllzrdJBExE\" ,\n \" table_name\" : \" <value>\" ,\n \" batch_size\" : 977983,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
36+ - target : $["paths"]["/api/v1/destinations/{destination_id}/connection-check"]["get"]
37+ update :
38+ " x-codeSamples " :
39+ - " lang " : " python"
40+ " label " : " get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get"
41+ " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get(request={\n \" destination_id\" : \" 3c48df35-2b2c-46f2-9aa2-d7eae993797c\" ,\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)"
42+ - target : $["paths"]["/api/v1/destinations/{destination_id}/connection-check"]["post"]
43+ update :
44+ " x-codeSamples " :
45+ - " lang " : " python"
46+ " label " : " check_destination_connection_api_v1_destinations__destination_id__connection_check_post"
47+ " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={\n \" destination_id\" : \" b65169f5-79ba-4464-918f-b0be2c07b962\" ,\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)"
3648 - target : $["paths"]["/api/v1/jobs/"]["get"]
3749 update :
3850 " x-codeSamples " :
@@ -87,6 +99,18 @@ actions:
8799 - " lang " : " python"
88100 " label " : " update_source"
89101 " 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\" : \" 396edec4-39e8-4ef6-ac69-c9e3ba7a8418\" ,\n \" update_source_connector\" : {\n \" config\" : {\n \" host\" : \" black-and-white-obesity.info\" ,\n \" database\" : \" <value>\" ,\n \" port\" : 848106,\n \" username\" : \" Bruce.Stracke19\" ,\n \" password\" : \" L8K8WEZq1xvBpSw\" ,\n \" table_name\" : \" <value>\" ,\n \" batch_size\" : 177849,\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)"
102+ - target : $["paths"]["/api/v1/sources/{source_id}/connection-check"]["get"]
103+ update :
104+ " x-codeSamples " :
105+ - " lang " : " python"
106+ " label " : " get_connection_check_api_v1_sources__source_id__connection_check_get"
107+ " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_connection_check_api_v1_sources_source_id_connection_check_get(request={\n \" source_id\" : \" d9c3daec-ddf9-4cef-ae8d-3a989813cc7b\" ,\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)"
108+ - target : $["paths"]["/api/v1/sources/{source_id}/connection-check"]["post"]
109+ update :
110+ " x-codeSamples " :
111+ - " lang " : " python"
112+ " label " : " check_connection_api_v1_sources__source_id__connection_check_post"
113+ " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.sources.check_connection_api_v1_sources_source_id_connection_check_post(request={\n \" source_id\" : \" 8cb54f13-5652-423e-889c-1df1f8147126\" ,\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)"
90114 - target : $["paths"]["/api/v1/workflows/"]["get"]
91115 update :
92116 " x-codeSamples " :
0 commit comments