Skip to content

Commit 1081911

Browse files
committed
Revert AzureDestination and WorkflowNode changes
1 parent ccbaffc commit 1081911

21 files changed

+279
-60
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ with UnstructuredClient() as uc_client:
126126
"token": "<value>",
127127
},
128128
"name": "<value>",
129-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
129+
"type": shared.DestinationConnectorType.AZURE,
130130
},
131131
},
132132
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
@@ -159,7 +159,7 @@ with UnstructuredClient(
159159
"token": "<value>",
160160
},
161161
"name": "<value>",
162-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
162+
"type": shared.DestinationConnectorType.AZURE,
163163
},
164164
})
165165

@@ -214,7 +214,7 @@ with UnstructuredClient() as uc_client:
214214
"token": "<value>",
215215
},
216216
"name": "<value>",
217-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
217+
"type": shared.DestinationConnectorType.AZURE,
218218
},
219219
})
220220

@@ -347,7 +347,7 @@ with UnstructuredClient() as uc_client:
347347
"token": "<value>",
348348
},
349349
"name": "<value>",
350-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
350+
"type": shared.DestinationConnectorType.AZURE,
351351
},
352352
})
353353

@@ -380,7 +380,7 @@ async def main():
380380
"token": "<value>",
381381
},
382382
"name": "<value>",
383-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
383+
"type": shared.DestinationConnectorType.AZURE,
384384
},
385385
})
386386

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ with UnstructuredClient() as uc_client:
1717
"token": "<value>",
1818
},
1919
"name": "<value>",
20-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
20+
"type": shared.DestinationConnectorType.AZURE,
2121
},
2222
})
2323

@@ -50,7 +50,7 @@ async def main():
5050
"token": "<value>",
5151
},
5252
"name": "<value>",
53-
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
53+
"type": shared.DestinationConnectorType.AZURE,
5454
},
5555
})
5656

codeSamples.yaml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actions:
1414
"x-codeSamples":
1515
- "lang": "python"
1616
"label": "create_destination"
17-
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith 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)"
17+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith 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)"
1818
- target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"]
1919
update:
2020
"x-codeSamples":
@@ -33,18 +33,6 @@ actions:
3333
- "lang": "python"
3434
"label": "update_destination"
3535
"source": "from unstructured_client import UnstructuredClient\n\n\nwith 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\nwith 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\nwith 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)"
4836
- target: $["paths"]["/api/v1/jobs/"]["get"]
4937
update:
5038
"x-codeSamples":
@@ -99,18 +87,6 @@ actions:
9987
- "lang": "python"
10088
"label": "update_source"
10189
"source": "from unstructured_client import UnstructuredClient\n\n\nwith 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\nwith 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\nwith 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)"
11490
- target: $["paths"]["/api/v1/workflows/"]["get"]
11591
update:
11692
"x-codeSamples":
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AzureDestinationConnectorConfig
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
9+
| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
10+
| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
11+
| `remote_url` | *str* | :heavy_check_mark: | N/A |
12+
| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AzureDestinationConnectorConfigInput
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
9+
| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
10+
| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
11+
| `remote_url` | *str* | :heavy_check_mark: | N/A |
12+
| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |

docs/models/shared/config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
## Supported Types
55

6+
### `shared.AzureDestinationConnectorConfigInput`
7+
8+
```python
9+
value: shared.AzureDestinationConnectorConfigInput = /* values here */
10+
```
11+
612
### `shared.AstraDBConnectorConfigInput`
713

814
```python

docs/models/shared/destinationconnectorinformationconfig.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
## Supported Types
55

6+
### `shared.AzureDestinationConnectorConfig`
7+
8+
```python
9+
value: shared.AzureDestinationConnectorConfig = /* values here */
10+
```
11+
612
### `shared.AstraDBConnectorConfig`
713

814
```python

docs/models/shared/destinationconnectortype.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
| Name | Value |
77
| -------------------------------- | -------------------------------- |
8+
| `AZURE` | azure |
89
| `ASTRADB` | astradb |
910
| `AZURE_AI_SEARCH` | azure_ai_search |
1011
| `COUCHBASE` | couchbase |

docs/models/shared/updatedestinationconnectorconfig.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
## Supported Types
55

6+
### `shared.AzureDestinationConnectorConfigInput`
7+
8+
```python
9+
value: shared.AzureDestinationConnectorConfigInput = /* values here */
10+
```
11+
612
### `shared.AstraDBConnectorConfigInput`
713

814
```python

docs/models/shared/workflownode.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8-
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
9-
| `name` | *str* | :heavy_check_mark: | N/A |
10-
| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
11-
| `subtype` | *str* | :heavy_check_mark: | N/A |
12-
| `type` | *str* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
8+
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
9+
| `name` | *str* | :heavy_check_mark: | N/A |
10+
| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
11+
| `subtype` | *str* | :heavy_check_mark: | N/A |
12+
| `type` | [shared.WorkflowNodeType](../../models/shared/workflownodetype.md) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)