@@ -51,6 +51,12 @@ actions:
5151 - " lang " : " python"
5252 " label " : " cancel_job"
5353 " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.cancel_job(request={\n \" job_id\" : \" ec29bf67-0f30-4793-b5ee-8fc0da196032\" ,\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
54+ - target : $["paths"]["/api/v1/jobs/{job_id}/download"]["get"]
55+ update :
56+ " x-codeSamples " :
57+ - " lang " : " python"
58+ " label " : " download_playground_job"
59+ " source " : " from unstructured_client import UnstructuredClient\n\n\n with UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_playground_job(request={\n \" job_id\" : \" 844a9b13-d032-43c7-8e81-b20a874c4c79\" ,\n \" file_id\" : \" <id>\" ,\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
5460 - target : $["paths"]["/api/v1/sources/"]["get"]
5561 update :
5662 " x-codeSamples " :
@@ -62,7 +68,7 @@ actions:
6268 " x-codeSamples " :
6369 - " lang " : " python"
6470 " label " : " create_source"
65- " 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.S3,\n \" config\" : {\n \" username\" : \" Eldora_Casper\" ,\n \" consumer_key \" : \" <value> \" ,\n \" private_key \" : \" <value>\" , \n \" categories \" : [ \n \" <value> \" , \n ] ,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
71+ " 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.S3,\n \" config\" : {\n \" username\" : \" Eldora_Casper\" ,\n \" password \" : \" I5xeRKAX3jUtlnj \" ,\n \" security_token \" : \" <value>\" ,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
6672 - target : $["paths"]["/api/v1/sources/{source_id}"]["delete"]
6773 update :
6874 " x-codeSamples " :
@@ -80,7 +86,7 @@ actions:
8086 " x-codeSamples " :
8187 - " lang " : " python"
8288 " label " : " update_source"
83- " 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\" : \" 7d031737-4969-4d2e-ae5d-8e2396edec43 \" ,\n \" update_source_connector\" : {\n \" config\" : {\n \" client_id\" : \" <id>\" ,\n \" tenant \" : \" <value> \" , \n \" authority_url \" : \" https://pleasing-hammock.org/ \" , \n \" user_pname \" : \" <value> \" , \n \" client_cred\" : \" <value>\" ,\n \" recursive\" : False,\n \" path \" : \" /etc/namedb \" ,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
89+ " 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\" : \" 196d27d0-3173-4749-b69d-2ee5d8e2396e \" ,\n \" update_source_connector\" : {\n \" config\" : {\n \" client_id\" : \" <id>\" ,\n \" client_cred\" : \" <value>\" ,\n \" recursive\" : False,\n \" user_email \" : \" <value> \" ,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
8490 - target : $["paths"]["/api/v1/workflows/"]["get"]
8591 update :
8692 " x-codeSamples " :
@@ -92,7 +98,7 @@ actions:
9298 " x-codeSamples " :
9399 - " lang " : " python"
94100 " label " : " create_workflow"
95- " 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.workflows.create_workflow(request={\n \" create_workflow\" : {\n \" name\" : \" <value>\" ,\n \" source_id \" : \" b5baba90-bc88-4ea4-b45f-e894788e3f38 \" , \n \" destination_id \" : \" 0efa0612-4dfe-411e-b84d-d7cfa1e3fe9e \" , \n \" workflow_type\" : shared.WorkflowType.ADVANCED ,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)"
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.workflows.create_workflow(request={\n \" create_workflow\" : {\n \" name\" : \" <value>\" ,\n \" workflow_type\" : shared.WorkflowType.PLATINUM ,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)"
96102 - target : $["paths"]["/api/v1/workflows/{workflow_id}"]["delete"]
97103 update :
98104 " x-codeSamples " :
@@ -122,4 +128,4 @@ actions:
122128 " x-codeSamples " :
123129 - " lang " : " python"
124130 " label " : " partition"
125- " 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.general.partition(request={\n \" partition_parameters\" : {\n \" files\" : {\n \" file_name\" : \" example.file\" ,\n \" content\" : open(\" example.file\" , \" rb\" ),\n },\n \" vlm_model_provider\" : shared.PartitionParametersStrategy .OPENAI,\n \" vlm_model\" : shared.PartitionParametersSchemasStrategy .GPT_4O,\n \" split_pdf_page_range\" : [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
131+ " 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.general.partition(request={\n \" partition_parameters\" : {\n \" files\" : {\n \" file_name\" : \" example.file\" ,\n \" content\" : open(\" example.file\" , \" rb\" ),\n },\n \" vlm_model_provider\" : shared.VLMModelProvider .OPENAI,\n \" vlm_model\" : shared.VLMModel .GPT_4O,\n \" split_pdf_page_range\" : [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
0 commit comments